My First Program in Python Virtual Stock Market Game
Jul 11

Add this code at the end of  your index.php in Proxy

This code was made my friend so I claim no rights to it…

$b1=preg_match(”/http:\/\/www\.\youtube\.com\/watch\?\v\=/i”,$_url,$c);
if($b1>0)
{
$_url1=preg_replace(”/&(.*)/i”,” “,$_url);
function get_youtube_flv ($url3)
{
$data = @file_get_contents(”http://www.youtube.com/watch?v=” . $url3);
@preg_match(”#fullscreenUrl = \’([^\’]+)\’#i”, $data, $matches);
parse_str($matches[1], $params);
return “http://www.youtube.com/get_video?video_id=” . $params[’video_id’] . “&t=” . $params[’t'];
}

$video_url=$_url1;
$video_url1=preg_match(”/=(.*)/i”,$video_url,$video);
$video1=$video[1];
$ur1=preg_match(”/=(.*)/i”,$video1,$url2);
$url3=$video1;
//echo $url3;
//echo”<BR>”;
$id1=get_youtube_flv($url3);
$url1=base64_encode($id1);
//echo $url1;
//echo”<BR>”;
$url2=”http://67.228.3.79/index.php?q=”.$url1;
//echo $url2;
//echo”<BR>”;

//For image
$image=”http://i.ytimg.com/vi/”.$url3.”/default.jpg”;
$image1=base64_encode($image);

$content= “<embed type=’application/x-shockwave-flash’ src=’player.swf’ style=” id=’ply’ name=’ply’ bgcolor=’#FFFFFF’                                     quality=’high’ allowfullscreen=’true’ allowscriptaccess=’always’ flashvars=’height=395&width=480&file=http://www.proxy.com/index.php?q=$url1.flv&amp;image=http://www.proxy.com/index.php?q=$image1&amp;&backcolor=0×000000&frontcolor=0xCCCCCC&lightcolor=0×996600&searchbar=false&type=flv’ width=’480′ height=’395′>”;
$_response_body = preg_replace(’#<div id=”watch-noplayer-div”>(.*?)</div>#smi’,$content,$_response_body);
//$_response_body = preg_replace(’#<div id=”watch-this-vid”>(.*?)</div>#smi’, ‘<div id=”playerDiv”></div>’ . $content, $_response_body);
echo $_response_body;
}

else
{
echo $_response_body;
}

Also you should replace http://www.proxy.com with your proxy site  and you should download

JW FLV media player and should extract all the files to the folder where your index.php exists..

 http://www.jeroenwijering.com/?item=JW_FLV_Player


                                                                                                

Leave a Reply