2013-11-17 09:20:17 +00:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
******************************************************************
|
|
|
|
| Copyright (c) 2007-2009 Clip-Bucket.com. All rights reserved.
|
|
|
|
| @ Author : ArslanHassan
|
|
|
|
| @ Software : ClipBucket , © PHPBucket.com
|
|
|
|
*******************************************************************
|
|
|
|
*/
|
|
|
|
|
|
|
|
define( 'THIS_PAGE','view_playlist' );
|
|
|
|
define( 'PARENT_PAGE', 'videos' );
|
|
|
|
|
|
|
|
require 'includes/config.inc.php';
|
|
|
|
|
|
|
|
$pages->page_redir();
|
|
|
|
|
|
|
|
$list_id = mysql_clean( $_GET[ 'list_id' ] );
|
|
|
|
|
|
|
|
$playlist = get_playlist( $list_id );
|
|
|
|
|
2013-11-19 12:01:56 +00:00
|
|
|
if( is_playlist_viewable( $playlist ) and isset( $playlist ) ) {
|
2013-11-17 09:20:17 +00:00
|
|
|
|
|
|
|
$items = get_playlist_items( $list_id );
|
|
|
|
|
|
|
|
if ( !empty( $items ) ) {
|
|
|
|
$playlist[ 'videos' ] = $items;
|
|
|
|
}
|
|
|
|
|
2013-11-19 12:01:56 +00:00
|
|
|
cb_do_action( 'view_playlist', array(
|
|
|
|
'playlist' => $playlist
|
|
|
|
));
|
|
|
|
|
2013-11-17 09:20:17 +00:00
|
|
|
assign( 'playlist', $playlist );
|
|
|
|
|
|
|
|
subtitle( $playlist[ 'playlist_name' ] );
|
2013-11-19 12:01:56 +00:00
|
|
|
} else {
|
|
|
|
$Cbucket->show_page = false;
|
2013-11-17 09:20:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//Displaying The Template
|
|
|
|
template_files('view_playlist.html');
|
|
|
|
display_it();
|