
Added : user account files for photos and collections Added : function add onReload() in head.html Updated : photo_upload.html Updated : view_collection.html Updated : view_item.html to more simple page Added : view_photo.html Updated : watch_video.html. Displayed Collection form Updated : collections.class.php Added : new smarty functions Added : Photo Download Added : New function updateObjectStats Added : Photo Comment case Added : orphan_photos.php Fixed : Admin photo settings Updated : photo_uploader.php Updated : photo.class.php
41 lines
No EOL
1 KiB
PHP
41 lines
No EOL
1 KiB
PHP
<?php
|
|
/*
|
|
****************************************************************
|
|
| Copyright (c) 2007-2010 Clip-Bucket.com. All rights reserved.
|
|
| @ Author : ArslanHassan
|
|
| @ Software : ClipBucket , © PHPBucket.com
|
|
****************************************************************
|
|
*/
|
|
|
|
define("THIS_PAGE","edit_video");
|
|
|
|
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']));
|
|
|
|
$pid = mysql_clean($_GET['photo']);
|
|
$photo = $cbphoto->get_photo($pid);
|
|
|
|
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']))
|
|
{
|
|
$cbphoto->update_photo();
|
|
$photo = $cbphoto->get_photo($pid);
|
|
}
|
|
|
|
assign('p',$photo);
|
|
}
|
|
|
|
subtitle(lang("Edit Photo"));
|
|
template_files('edit_photo.html');
|
|
display_it();
|
|
?>
|