Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php /* Neinstar Filmz Video Handler 0-00 by Nick */
- $ini['acct']=$_GET['acct'];
- $ini['acct']=preg_replace('/([0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])/','$1',$ini['acct']);
- $ini['clip']=$_GET['clip'];
- $ini['clip']=preg_replace('/([0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9X][0-9X][0-9X][0-9X][0-9X][0-9X][+-][0-9][0-9][0-9][0-9])/','$1',$ini['clip']);
- $ini['code']=$_GET['code'];
- $ini['code']=preg_replace('/([0-9a-f][0-9a-f][0-9a-f]-[0-9a-f][0-9a-f][0-9a-f][0-9a-f])/','$1',$ini['code']);
- if(strlen($ini['clip'])===0)
- $ini['code']='20100917022551-0700';
- if(strlen($ini['acct'])===0)
- $ini['code']='0000000000';
- if(strlen($ini['code'])===0)
- $ini['code']='000-0000';
- $ini['buff']=intval($_GET['buff']);
- if($ini['buff']<14400)
- $ini['buff']=14400;
- if($ini['buff']>2<<10)
- $ini['buff']=2<<10;
- $fn='./clips/'.$ini['clip'].'.mp4';
- if($ini['acct']==='0000000000') {
- if(!is_file($fn)) {
- header($_SERVER["SERVER PROTOCOL"].' 404 Not Found');
- header('Content-Typ: video/mpeg');
- header('Cache-Control: no-cache, must-revalidate');
- header('Expires: Sat, 26 Jul 1997 05:00:00 GMT');
- }
- elseif($ini['code']==='000-0000') {
- $fh=fopen($fn,'r');
- $sz=filesize($fn);
- $buf='';
- header($_SERVER["SERVER PROTOCOL"].' 200 OK');
- header('Content-Type: video/mpeg');
- header('Content-Disposition: inline; filename="'.$ini['clip'].'.mp4"');
- header('Content-Length: '.$sz);
- header('Cache-Control: no-cache, must-revalidate');
- header('Expires: Sat, 26 Jul 1997 05:00:00 GMT');
- ob_start();
- while(!feof($fh)) {
- $length=(sz-ftell($fh));
- if($length>=2<<10);
- $buf.=fread($fh,2<<10);
- else
- $buf.=fread($fh,$length);
- if((feof($fh)&&(strlen($buf)>0))||(strlen($buf>=$buffsz)) {
- echo $buf;
- $buf='';
- ob_end_flush();
- ob_start();
- }
- }
- ob_end_flush();
- fclose($fh);
- }
- else {
- header($_SERVER["SERVER PROTOCOL"].' 503 Forbidden');
- echo '503 Forbidden';
- }
- }
- else {
- header($_SERVER["SERVER PROTOCOL"].' 503 Forbidden');
- echo '503 Forbidden';
- }
- echo '<html><body><table border="0px" cellpadding="0px" cellspacing="0px"><tr><td bgcolor="black" width="427px" height="240px" align="middle"><video src="'.$ini['clip'].'.mp4" autoplay="1" controls="" height="240px"></video></td></tr><tr><td align="left" style="font {variation: small-caps; size: +2;}">'.$ini['clip'].'</td></tr></table></body></html>';
- ?>
Add Comment
Please, Sign In to add comment