
Fixed : edit_photo.php. Moved photo_manager_link_callbacks() at top of page Updated : set_cover_photo method in collection.class.php Added : Manage Avatars link in account manager Added : Documentation for functions @functions_photos.php Fixed : Few functions Added : Front end dynamic photo manager links Added : New functions @functions_photos.php at the end Added : New functions for adding/displaying/getting manager orders Added : Dynamic order and Avatar manager in Photos Manager for front end Changed : view_channel playlist according to widgets. Now they will display perfect on both sides Added : images and css file
49 lines
No EOL
1.3 KiB
PHP
49 lines
No EOL
1.3 KiB
PHP
<?php
|
|
/*
|
|
****************************************************************
|
|
| Copyright (c) 2007-2010 Clip-Bucket.com. All rights reserved.
|
|
| @ Author : ArslanHassan
|
|
| @ Software : ClipBucket , © PHPBucket.com
|
|
****************************************************************
|
|
*/
|
|
|
|
define("THIS_PAGE","edit_photo");
|
|
define("PARENT_PAGE",'photos');
|
|
|
|
require 'includes/config.inc.php';
|
|
$userquery->login_check('edit_video');
|
|
|
|
$udetails = $userquery->get_user_details(userid());
|
|
assign('user',$udetails);
|
|
assign('p',$userquery->get_user_profile($udetails['userid']));
|
|
|
|
photo_manager_link_callbacks();
|
|
|
|
$pid = mysql_clean($_GET['photo']);
|
|
$photo = $cbphoto->get_photo($pid, true);
|
|
|
|
if(empty($photo))
|
|
e(lang("photo_not_exists"));
|
|
elseif($photo['userid'] != userid())
|
|
{
|
|
e(lang("You can not edit this photo."));
|
|
$Cbucket->show_page = false;
|
|
} else {
|
|
if(isset($_POST['update_photo']))
|
|
{
|
|
if ( $photo['is_avatar'] == 'yes' ) {
|
|
echo 'Temporarily you can can not update your avatar details';
|
|
return false;
|
|
}
|
|
$cbphoto->update_photo();
|
|
$photo = $cbphoto->get_photo( $pid, true );
|
|
}
|
|
|
|
assign('p',$photo);
|
|
}
|
|
|
|
|
|
subtitle(lang("Edit Photo"));
|
|
template_files('edit_photo.html');
|
|
display_it();
|
|
?>
|