-
Notifications
You must be signed in to change notification settings - Fork 0
/
edit_photo.php
executable file
·42 lines (35 loc) · 1.06 KB
/
edit_photo.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?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']));
$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();
?>