Fixed : Some PHP 5.4 Errors
Updated : Installer dbconnect.php Added : 'status' column in video class constuctor
This commit is contained in:
parent
e269d20d67
commit
b9853716a0
8 changed files with 21 additions and 12 deletions
|
@ -18,6 +18,12 @@
|
|||
//Setting Table Prefix
|
||||
define('TABLE_PREFIX','_TABLE_PREFIX_');
|
||||
|
||||
|
||||
$db = new Clipbucket_db();
|
||||
|
||||
$db->connect($DBHOST,$DBNAME,$DBUSER,$DBPASS);
|
||||
|
||||
/*
|
||||
require 'adodb/adodb.inc.php';
|
||||
|
||||
$db = ADONewConnection($BDTYPE);
|
||||
|
@ -35,5 +41,6 @@
|
|||
$db->Execute('SET NAMES utf8');
|
||||
$db->Execute('SET CHARACTER SET utf8');
|
||||
$db->Execute('SET COLLATION_CONNECTION="utf8_general_ci"');
|
||||
*/
|
||||
|
||||
?>
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
<h2>Checking File & Directories Permissions</h2>
|
||||
ClipBucket need some files and folders permissions in order to store files properly, please make sure all files given below are chmod properly<br />
|
||||
<em>CHMOD : the chmod command (abbreviated from <strong>ch</strong>ange <strong>mod</strong>e) is a shell command and C language function in Unix and Unix-like environments.</em></p>
|
||||
|
@ -7,7 +6,7 @@
|
|||
|
||||
|
||||
<dl>
|
||||
<? $permissions = checkPermissions(); ?>
|
||||
<?php $permissions = checkPermissions(); ?>
|
||||
<?php
|
||||
foreach($permissions as $permission)
|
||||
{
|
||||
|
@ -15,7 +14,7 @@
|
|||
<dt style="width:300px"><?=$permission['path']?></dt>
|
||||
|
||||
<dd><?=msg_arr($permission);?></dd>
|
||||
<?
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
|
@ -34,4 +33,4 @@
|
|||
<?php else: ?>
|
||||
<input type="hidden" name="mode" value="dataimport" id="mode"/>
|
||||
<?php endif; ?>
|
||||
</form>
|
||||
</form>
|
|
@ -1023,6 +1023,8 @@ class cbactions
|
|||
|
||||
}
|
||||
|
||||
$query_values[ 'last_update' ] = NOW();
|
||||
|
||||
$db->update( tbl( 'playlists' ), array_keys( $query_values ), array_values( $query_values ), " playlist_id = '".$pdetails[ 'playlist_id' ]."' " );
|
||||
}
|
||||
|
||||
|
@ -1144,9 +1146,9 @@ class cbactions
|
|||
|
||||
$data = cb_do_action( 'select_playlists', array_merge( $action_array, $params ) );
|
||||
|
||||
/*if ( $data ) {
|
||||
if ( $data ) {
|
||||
return $data;
|
||||
}*/
|
||||
}
|
||||
|
||||
$results = select( $query );
|
||||
|
||||
|
|
|
@ -381,7 +381,7 @@ class formObj
|
|||
* @param name with brackets
|
||||
* return name without brackets
|
||||
*/
|
||||
function rmBrackets($string)
|
||||
static function rmBrackets($string)
|
||||
{
|
||||
$string = preg_replace('/\[\]/','',$string);
|
||||
return $string;
|
||||
|
|
|
@ -655,7 +655,7 @@ class Upload{
|
|||
for($i=1;$i<32;$i++) $day_array[$i] = $i;
|
||||
for($i=date("Y",time());$i>1900;$i--) $year_array[$i] = $i;
|
||||
|
||||
if($date['value']==NULL)
|
||||
if( isset( $data[ 'value' ] ) and $date['value'] == null )
|
||||
{
|
||||
$d_month = $_POST['month'];
|
||||
$d_day = $_POST['day'];
|
||||
|
|
|
@ -61,7 +61,7 @@ class CBvideo extends CBCategory
|
|||
'videoid', 'videokey', 'userid', 'title', 'description', 'tags', 'category',
|
||||
'active', 'date_added', 'broadcast', 'rating', 'file_server_path', 'files_thumbs_path',
|
||||
'file_thumbs_count', 'duration', 'has_hq', 'has_mobile', 'views', 'file_name', 'rated_by',
|
||||
'default_thumb', 'comments_count', 'last_viewed', 'featured', 'featured_date'
|
||||
'default_thumb', 'comments_count', 'last_viewed', 'featured', 'featured_date', 'status'
|
||||
);
|
||||
|
||||
$cb_columns->object( 'videos' )->register_columns( $basic_fields );
|
||||
|
|
|
@ -800,7 +800,8 @@ function parse_duration($log)
|
|||
*/
|
||||
function get_thumb_num($name)
|
||||
{
|
||||
$list = end(explode('-',$name));
|
||||
$list = explode( '-', $name);
|
||||
$list = end( $list );
|
||||
$list = explode('.',$list);
|
||||
return $list[0];
|
||||
}
|
||||
|
|
|
@ -72,7 +72,7 @@ switch($mode)
|
|||
|
||||
assign('mode','manage_playlist');
|
||||
//Getting List of available playlists
|
||||
$playlists = $cbvid->action->get_playlists();
|
||||
$playlists = $cbvid->action->get_playlists( array( 'order' => 'playlists.date_added DESC' ) );
|
||||
assign('playlists',$playlists);
|
||||
|
||||
|
||||
|
@ -144,7 +144,7 @@ switch($mode)
|
|||
{
|
||||
assign('playlist',$playlist);
|
||||
//Getting Playlist Item
|
||||
$items = $cbvid->get_playlist_items($pid);
|
||||
$items = $cbvid->get_playlist_items( $pid, 'playlist_items.date_added DESC' );
|
||||
assign('items',$items);
|
||||
|
||||
}else
|
||||
|
|
Loading…
Add table
Reference in a new issue