clipbucket/upload/download.php
Arslan Hassan b85178ea84 Added : Category Order
Added : Editor's Pick Order
Added : Editor's Pick Remove
Fixed : Sent items error
Fixed : Delete user
2010-02-01 11:09:02 +00:00

45 lines
852 B
PHP

<?php
/**
* FILE : Download
* Function : Download video
* @author : Arslan Hassan
* @Software : ClipBucket
* @Since : 1 Feb, 2010
*
* @License : CBLA
*/
define("THIS_PAGE",'download');
require 'includes/config.inc.php';
$userquery->perm_check('download_video',true);
$pages->page_redir();
//Getting Video Key
$vkey = @$_GET['v'];
$vdo = $cbvid->get_video($vkey);
if($vdo && video_playable($vkey))
{
//Calling Functions When Video Is going to download
call_download_video_function($vdo);
$file = get_video_file($vdo,false);
if($file)
$vdo['download_file'] = $file;
else
{
$Cbucket->show_page = false;
e("Unable to find download file");
}
assign('vdo',$vdo);
subtitle("Download ".$vdo['title']);
}
//Displaying The Template
template_files('download.html');
display_it();
?>