clipbucket/upload/download.php

46 lines
855 B
PHP
Raw Normal View History

2009-08-25 12:16:42 +00:00
<?php
/**
* FILE : Download
* Function : Download video
* @author : Arslan Hassan
* @Software : ClipBucket
* @Since : 1 Feb, 2010
*
* @License : CBLA
*/
define("THIS_PAGE",'download');
2009-08-25 12:16:42 +00:00
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);
2009-08-25 12:16:42 +00:00
$file = get_video_file($vdo,false);
if($file)
$vdo['download_file'] = $file;
else
{
$Cbucket->show_page = false;
2010-02-09 11:47:08 +00:00
e(lang("unable_find_download_file"));
2009-08-25 12:16:42 +00:00
}
assign('vdo',$vdo);
subtitle("Download ".$vdo['title']);
2009-08-25 12:16:42 +00:00
}
//Displaying The Template
template_files('download.html');
display_it();
?>