the youtube plugin for phproxy was made on a forum: http://proxy.org/forum/proxy-webmasters ... proxy.html but it has not been updated by its op in 5 years so i am looking for someone to update the code with the you-tube updates.
this is the code they posted:
i want the code updated to work on current YouTube update.
the reward is FP$250
this is the code they posted:
Code:
if (($_url_parts['host'] == "youtube.com") || ($_url_parts['host'] == "www.youtube.com"))
{
preg_match('/fullscreenUrl\s\=\s(.*)\&sk\=/', $_response_body, $matches);
preg_match('/video\_id\=(.*)/',$matches[1],$matches);
$file = base64_encode('http://youtube.com/get_video?video_id='.$matches[1]);
$link = $_script_base'?q='.$file;
$s[] = '/var v = "7";(.*?)player_div\);/is';
$r[] = '';
$s[] = '#\/\/ \<\!\[(.*?)\/\/ \]\]\>#is';
$r[] = "
var p = new SWFObject('{$_script_base}mediaplayer.swf','single','450','370','7');
p.addParam('allowfullscreen','true');
p.addVariable('file','$link');
p.addVariable('backcolor','0x000000');
p.addVariable('frontcolor','0xCCCCCC');
p.addVariable('lightcolor','0x996600');
p.addVariable('overstretch','true');
p.addVariable('type','flv');
p.addVariable('volume','50');
p.write('playerDiv');";
$_response_body = preg_replace( $s, $r, $_response_body );
}
i want the code updated to work on current YouTube update.
the reward is FP$250








