[ Report Video ]
userid()) { header("location:?name=$module_name"); die(); } if ($_POST['Submit']) { switch($_POST['type']) { default: case 0: // Direct link echo "Default"; $path_to_file = $_POST['loc']; break; case 1: // Youtube $url = $_POST['loc']; $data = implode("", file($url)); if (preg_match_all("/&t=[^&]*/", $data, $matches)) { $t = $matches[0][0]; $t = preg_split("/=/", $t); $t = $t[1]; $v = $url; $v = preg_split ("/\?v=/", $v); //$v = preg_split ("/=/", $v); $v = $v[1]; $path_to_file = "http://www.youtube.com/get_video.php?video_id=" . $v . "&t=". $t . "&.flv"; } break; case 2: // Veoh.com if (preg_match("#^http://www.veoh.com/videos/([\w\d]+)#", $_POST['loc'], $match)) { include("modules/$module_name/class_xml.php"); $url = "http://www.veoh.com/rest/video/{$match[1]}/details"; $xml_parser = new Simple_Parser; $xml_parser->parse(file_get_contents($url)); $veoh = $xml_parser->data['VIDEOS'][0]['child']['VIDEO'][0]['attribs']; $path_to_file = $veoh['FULLPREVIEWHASHPATH']; } break; case 4: // divx stage6 preg_match("#^http://stage6.divx.com/.*/video/(\d+)/#", $_POST['loc'],$match); $path_to_file = $match[ 1 ]; break; case 5: // google video $contents = file_get_contents( $_POST['loc']); preg_match('#'.preg_quote("/googleplayer.swf?&videoUrl\u003d").'([^\s]+)\\\"#', $contents, $match); echo urldecode($match[1]); die(); break; case 6: // dailymotion.com $contents = file_get_contents( $_POST['loc']); preg_match('#'.preg_quote('so1.addVariable("url", "').'(.*)'.preg_quote('");').'#', $contents, $match); $pah_to_file = urldecode($match[1]); break; } $db->query("insert into ".$prefix."_vid_videos (`seriesid`,`userid`,`url_type`,`season`,`ep`,`ep_title`,`part`,`url`,`added`) VALUES ('".(int)$_GET['sid']."','".$fcore->userid()."','{$_POST[type]}','".(int)$_POST['season']."','{$_POST[episode]}','".html2txt($_POST['title'])."','".(int)$_POST['part']."','".html2txt($path_to_file)."','".time()."')"); header("location:?name=$module_name&op=viewser&id=".(int)$_GET['sid']."#S{$_POST[season]}"); } include("header.php"); $db->query("select series.name, cat.name from ".$prefix."_vid_series as series, ".$prefix."_vid_category as cat where cat.id=series.catid and series.id=".(int)$_GET['sid']) or die(mysql_error()); list($series_name,$category_name) = $db->fetch_row(); ?>
< Home
Category :
query("select id,title from ".$prefix."_vid_category order by name"); ?>
   
Series Details
Name: Category:
       
Episode Details
Name* Part
Season Episode
       
File Location *
Website
 

Select a type on the left.

 
(* means required)
userid()) { header("location:?name=$module_name"); die(); } if ($_POST['Submit']) { $time = time(); $db->query("insert into ".$prefix."_vid_series " ."(`catid`,`userid`,`name`,`title`,`desc`,`img_url`,`added`) " ."VALUES ('{$_GET[id]}','".$fcore->userid()."','".html2txt($_POST['name'])."','" .preg_replace(array("/^the/", "/^a/"), "",strtolower(html2txt($_POST['name']))) ."','".htmlentities(html2txt($_POST['desc']))."','".html2txt($_POST['imgurl'])."','".$time."')") or die(mysql_error()); $db->query("select id from ".$prefix."_vid_series where `userid`=".$fcore->userid()." and `added`=".$time) or die(mysql_error()); list($ser_id) = $db->fetch_row(); header("location:?name=$module_name&op=viewser&id=".$ser_id); die(); } include("header.php"); ?>
< Home
Add Series
Name*
Description
Image URL
 
(* means required)
query("select `key` from ".$prefix."_vid_series where id=".(int)$_GET['sid']) or die(mysql_error()); list($key) = $db->fetch_row(); } else if ((int)$_GET['eid']) { list($key) = $db->fetch_row($db->query("select `key` from ".$prefix."_vid_videos where id=".(int)$_GET['eid'])); //$db->query("update ".$prefix."_vid_videos set `key`='' where id=".(int)$_GET['eid']); } echo "key=$key"; } function get_Playlist() { global $prefix, $db; require_once('./includes/rc4crypt/class.rc4crypt.php'); if ($_GET['eid']) { $db->query("select `season`, `ep`, `ep_title`, `part`, `url`, `key` from ".$prefix."_vid_videos where `key`!='' and `id`=".(int)$_GET['eid']); } else if ($_GET['sid']) { list($skey) = $db->fetch_row($db->query("select `key` from ".$prefix."_vid_series where id=".(int)$_GET['sid'])); if (!$skey) die(); $db->query("select `season`, `ep`, `ep_title`, `part`, `url`, `key` from ".$prefix."_vid_videos where seriesid=".(int)$_GET['sid']." and url_type!=3 and url_type!=4 order by season, ep, part"); } header("content-type:text/xml;charset=utf-8"); echo ' '."\n"; while (list($season, $ep, $title, $part, $url, $key) = $db->fetch_row()) { echo ' '."\n" .' '.($season && $ep ? 'S'.$season.'E'.$ep.' ' : "").$title.($part ? " [ Part $part ]" : "").''."\n" .' '.bin2hex(rc4crypt::encrypt(((int)$_GET['eid'] ? $key : $skey),$url)).''."\n" .' flv' .' '."\n"; } echo ' '; if ($_GET['sid']) $db->query("update ".$prefix."_vid_series set `key`='' where id=".(int)$_GET['sid']) or die(mysql_error()); else if ($_GET['eid']) $db->query("update ".$prefix."_vid_videos set `key`='' where id=".(int)$_GET['eid']) or die(mysql_error()); } function index() { global $module_name, $prefix, $db, $fcore; include("header.php"); ?>
Category :
query("select id,title from ".$prefix."_vid_category order by name"); ?>
[ Newly Added Shows ] [ Newly Added Series ] [ Top Viewed Series ] [ Top Viewed Videos ]
query("select vids.*, series.name as sname from ".$prefix."_vid_videos as vids, ".$prefix."_vid_series as series where series.id=vids.seriesid".(!$fcore->userid() ? " and series.registered=0" : "")." order by added desc limit 15") or die(mysql_error()); while ($row = $db->fetch_row()) { ?>
Newly Added Shows
Show
Ep
Title
Newly Added Series
query("select * from ".$prefix."_vid_category order by name"); while ($cat_row = $db->fetch_row($cats)) { ?>query("select series.*, sum(vids.hits) as hits, count(vids.id) as `total` from ".$prefix."_vid_series as series, ".$prefix."_vid_videos as vids where (vids.seriesid=series.id and series.catid=".(int)$cat_row['id'].")".(!$fcore->userid() ? " and series.registered=0" : "")." group by series.name order by series.added desc limit 10") or die(mysql_error()); while ($row = $db->fetch_row()) { ?>
Category:
Series
Hits
Total
Added
Jan 01, 12:00 am

Most Viewed Series
query("select * from ".$prefix."_vid_category order by name"); while ($cat_row = $db->fetch_row($cats)) { ?> query("select series.*, sum(vids.hits) as hits, count(vids.id) as total from ".$prefix."_vid_series as series, ".$prefix."_vid_videos as vids where vids.seriesid=series.id and series.catid={$cat_row[id]}".(!$fcore->userid() ? " and series.registered=0" : "")." group by series.name order by hits desc limit 10"); while ($row = $db->fetch_row()) { ?>
Category:
Series
Hits
Total
 
Most Viewed Videos
query("select * from ".$prefix."_vid_category order by name"); while ($cat_row = $db->fetch_row($cats)) { ?> query("select series.name as sname, series.id as sid,vids.* from ".$prefix."_vid_series as series , ".$prefix."_vid_videos as vids where vids.seriesid=series.id and series.catid={$cat_row[id]}".(!$fcore->userid() ? " and series.registered=0" : "")." order by vids.hits desc limit 10") or die(mysql_error()); while ($row = $db->fetch_row()) { ?>
Category:
Series
Title
Hits
]*?>.*?@si', // Strip out javascript '@]*?>.*?@siU', // Strip style tags properly '@<[\/\!]*?[^<>]*?>@si', // Strip out HTML tags '@@' // Strip multi-line comments including CDATA ); $text = preg_replace($search, '', $document); return $text; } function fnRandomPassword ($var_MaxLength = "8") { //: Creates random password of length $var_MaxLength // start with blank password $var_Password = ""; // characters to pick from $var_Possible = "0123456789bcdfghjkmnpqrstvwxyz"; while(($i < $var_MaxLength)&&(strlen($var_Possible) > 0)) { //: Not yet reached required length for password $i++; // get rand character from possibles $var_Character = substr($var_Possible, mt_rand(0, strlen($var_Possible)-1), 1); // delete selected char from possible choices $var_Possible = preg_replace("/$var_Character/", "", $var_Possible); $var_Password .= $var_Character; } // end not yet reached required length return $var_Password; // all done } // end fnRandomPassword function footnote() { echo "Note:
None of the movies are hosted on this website. But on websites such as Veoh.com, stage6.divx.com, dailymotion.com, google or youtube."; } switch ($_GET['op']) { default: index(); break; case "addvid": add_vid(); break; case "addser": add_series(); break; case "viewvid": view_vid(); break; case "viewcat": view_category(); break; case "viewser": view_series(); break; case "getPlaylist": get_playlist(); break; case "getKey": get_Key(); break; case "report": $db->query("update ".$prefix."_vid_videos set `reported`=1 where `id`=".(int)$_GET['id']); header("location:/?name=$module_name&op=viewvid&eid=".(int)$_GET['id']); break; } ?>