modified.
This commit is contained in:
parent
0365b9e1b6
commit
a38023c8b8
1 changed files with 15 additions and 19 deletions
|
@ -218,7 +218,7 @@ class CBPhotos
|
|||
|
||||
|
||||
/**
|
||||
* Setting other things Edited on 12 march 2014 for photo links
|
||||
* Setting other things
|
||||
*/
|
||||
function setting_other_things()
|
||||
{
|
||||
|
@ -226,6 +226,17 @@ class CBPhotos
|
|||
// Search type
|
||||
if(isSectionEnabled('photos'))
|
||||
$Cbucket->search_types['photos'] = "cbphoto";
|
||||
|
||||
// My account links
|
||||
$accountLinks = array();
|
||||
$accountLinks = array(
|
||||
lang('manage_photos') => "manage_photos.php",
|
||||
lang('manage_favorite_photos') => "manage_photos.php?mode=favorite",
|
||||
lang('manage_my_album') => "manage_photos.php?mode=my_album",
|
||||
);
|
||||
if(isSectionEnabled('photos'))
|
||||
$userquery->user_account[lang('Photos')] = $accountLinks;
|
||||
|
||||
//Setting Cbucket links
|
||||
|
||||
$Cbucket->links['photos'] = array('photos.php','photos/');
|
||||
|
@ -236,18 +247,7 @@ class CBPhotos
|
|||
$Cbucket->links['manage_orphan_photos'] = array('manage_photos.php?mode=orphan','manage_photos.php?mode=orphan');
|
||||
$Cbucket->links['user_photos'] = array('user_photos.php?mode=uploaded&user=','user_photos.php?mode=uploaded&user=');
|
||||
$Cbucket->links['user_fav_photos'] = array('user_photos.php?mode=favorite&user=','user_photos.php?mode=favorite&user=');
|
||||
|
||||
// My account links
|
||||
$accountLinks = array();
|
||||
$accountLinks = array(
|
||||
lang('manage_photos') => cblink(array('name'=>'manage_photos')),
|
||||
lang('manage_favorite_photos') => cblink(array('name'=>'manage_photos','extra_params'=>'mode=favorite')),
|
||||
lang('manage_my_album') => cblink(array('name'=>'manage_photos','extra_params'=>'mode=my_album')),
|
||||
);
|
||||
if(isSectionEnabled('photos'))
|
||||
$userquery->user_account[lang('Photos')] = $accountLinks;
|
||||
|
||||
|
||||
|
||||
// Setting Home Tab
|
||||
|
||||
}
|
||||
|
@ -1393,7 +1393,7 @@ class CBPhotos
|
|||
foreach($FullForms as $field)
|
||||
{
|
||||
$name = formObj::rmBrackets($field['name']);
|
||||
$val = $array[$name];
|
||||
$val = $_POST[$name];
|
||||
|
||||
if($field['use_func_val'])
|
||||
$val = $field['validate_function']($val);
|
||||
|
@ -1428,11 +1428,7 @@ class CBPhotos
|
|||
$query_field[] = "date_added";
|
||||
$query_val[] = NOW();
|
||||
|
||||
/*$query_field[] = "file_directory";
|
||||
$query_val[] = $array['file_directory'];*/
|
||||
|
||||
$query_field[] = "active";
|
||||
$query_val[] = 'no';
|
||||
|
||||
|
||||
$query_field[] = "owner_ip";
|
||||
$query_val[] = $_SERVER['REMOTE_ADDR'];
|
||||
|
|
Loading…
Add table
Reference in a new issue