-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathedit_video.php
More file actions
48 lines (40 loc) · 1.24 KB
/
edit_video.php
File metadata and controls
48 lines (40 loc) · 1.24 KB
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
43
44
45
46
47
48
<?php
/*
****************************************************************
| Copyright (c) 2007-2010 Clip-Bucket.com. All rights reserved.
| @ Author : ArslanHassan
| @ Software : ClipBucket , © PHPBucket.com
****************************************************************
*/
define("THIS_PAGE","edit_video");
define("PARENT_PAGE",'videos');
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']));
$vid = mysql_clean($_GET['vid']);
//get video details
$vdetails = $cbvid->get_video_details($vid);
if($vdetails['userid'] != userid())
{
e(lang('no_edit_video'));
$Cbucket->show_page = false;
}else{
//Updating Video Details
if(isset($_POST['update_video'])){
$Upload->validate_video_upload_form();
if(empty($eh->error_list))
{
$_POST['videoid'] = $vid;
$cbvid->update_video();
$cbvid->set_default_thumb($vid,mysql_clean(post('default_thumb')));
$vdetails = $cbvid->get_video_details($vid);
}
}
assign('v',$vdetails);
}
subtitle(lang("vdo_edit_vdo"));
template_files('edit_video.html');
display_it();
?>