clipbucket/upload/watch_video.php

51 lines
1.3 KiB
PHP
Raw Normal View History

2009-08-25 12:16:42 +00:00
<?php
/*
******************************************************************
| Copyright (c) 2007-2009 Clip-Bucket.com. All rights reserved.
| @ Author : ArslanHassan
| @ Software : ClipBucket , © PHPBucket.com
*******************************************************************
*/
define("THIS_PAGE",'watch_video');
define("PARENT_PAGE",'videos');
2009-08-25 12:16:42 +00:00
require 'includes/config.inc.php';
2009-10-15 15:50:26 +00:00
$userquery->perm_check('view_video',true);
2009-08-25 12:16:42 +00:00
$pages->page_redir();
//Getting Video Key
$vkey = @$_GET['v'];
2011-01-25 13:23:03 +00:00
$vdo = $cbvid->get_video($vkey);
assign('vdo',$vdo);
2011-01-25 13:23:03 +00:00
if(video_playable($vdo))
{
//Checking for playlist
$pid = $_GET['play_list'];
if(!empty($pid))
{
$plist = $cbvid->action->get_playlist($pid,userid());
if($plist)
$_SESSION['cur_playlist'] = $pid;
}
//Calling Functions When Video Is going to play
call_watch_video_function($vdo);
2011-07-02 12:35:00 +00:00
subtitle($vdo['title']);
2010-02-25 14:02:12 +00:00
}else
$Cbucket->show_page = false;
2009-08-25 12:16:42 +00:00
//Return category id without '#'
$v_cat = $vdo['category'];
if($v_cat[2] =='#') {
$video_cat = $v_cat[1];
}else{
$video_cat = $v_cat[1].$v_cat[2];}
$vid_cat = str_replace('%#%','',$video_cat);
assign('vid_cat',$vid_cat);
//Displaying The Template
template_files('watch_video.html');
display_it();
2009-08-25 12:16:42 +00:00
?>