
Added : insert_id() method in db.class.php Added : featured and featured_date column in default Added : Image resizer class Added : Few new fuunctions in functions_playlist.php Added : playlist cover option
42 lines
No EOL
1 KiB
PHP
42 lines
No EOL
1 KiB
PHP
<?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 );
|
|
|
|
if( is_playlist_viewable( $playlist ) and isset( $playlist ) ) {
|
|
|
|
$items = get_playlist_items( $list_id );
|
|
|
|
if ( !empty( $items ) ) {
|
|
$playlist[ 'videos' ] = $items;
|
|
}
|
|
|
|
cb_do_action( 'view_playlist', array(
|
|
'playlist' => $playlist
|
|
));
|
|
|
|
assign( 'playlist', $playlist );
|
|
|
|
subtitle( $playlist[ 'playlist_name' ] );
|
|
} else {
|
|
$Cbucket->show_page = false;
|
|
}
|
|
|
|
//Displaying The Template
|
|
template_files('view_playlist.html');
|
|
display_it(); |