<?xml version="1.0" encoding="ISO-8859-1"?>

<product productid="getvideo" active="1">
	<title>هاك تحويل الفيديو</title>
	<description>اوتوماتيكيا يقوم الهاك بتحويل روابط العديد من مواقع الفيديو مثل يوتيوب وجوجل وميتا كافيه إلى فيديو يظهر فى الموضوع -- تعريب ARB4HOSTING.COM</description>
	<version>1.1.1</version>
	<url>http://WWW.ARB4HOSTING.COM</url>
	<versioncheckurl />
	<dependencies>
	</dependencies>
	<codes>
	</codes>
	<templates>
	</templates>
	<plugins>
		<plugin active="1" executionorder="5">
			<title>passiveVid - Blog Replacement</title>
			<hookname>blog_entry_complete</hookname>
			<phpcode><![CDATA[if ($vbulletin->options['passiveVid_enabled']) {
	global $passiveVid;
	foreach ($passiveVid as $k => $v) {
		if($vbulletin->options['passiveVid_sites'] & $v['id'] ) {
			$blog['message'] = preg_replace_callback($v['string'],create_function('$matches',$v['replacement']),$blog['message']);
		}
	}
}]]></phpcode>
		</plugin>
		<plugin active="1" executionorder="5">
			<title>passiveVid - Blog Update</title>
			<hookname>blog_post_updateentry_start</hookname>
			<phpcode><![CDATA[preg_match_all("#http://video.yahoo.com/video/play\?(.*?)vid=(\d+)(&matchid)?#s",$vbulletin->GPC['message'], $urlmatch);
	foreach ($urlmatch as $key => $urlmatch2) {
	 	if (($urlmatch[2][$key] != '') && (!preg_match('#matchid#s',$urlmatch[0][$key]))) {
		preg_match('#flashvars=\'id=(\d+)#s',file_get_contents("http://video.yahoo.com/video/play?vid=" . $urlmatch[2][$key]),$match);
		$vbulletin->GPC['message'] = preg_replace("#(\[URL=\"|\[URL\])?(http://video.yahoo.com/video/play\?(.*?)vid=".$urlmatch[2][$key].")(\"\](.*?)\[/URL\]|(.*?)\[/URL\])?#i", "http://video.yahoo.com/video/play?vid=".$urlmatch[2][$key]."&matchid=$match[1]",$vbulletin->GPC['message']);
		}
	}
	preg_match_all("#(?:http://)?(?:www\.)?break.com/index/([^\.]+).html(\?matchid)?#s",$vbulletin->GPC['message'], $urlmatch);
	foreach ($urlmatch as $key => $urlmatch2) {
	 	if (($urlmatch[1][$key] != '') && (!preg_match('#matchid#s',$urlmatch[0][$key]))) {
		preg_match('#value="http://embed.break.com/([^"]+)"#',file_get_contents("http://www.break.com/index/" . $urlmatch[1][$key] . ".html"),$match);
		$vbulletin->GPC['message'] = preg_replace("#(\[URL=\"|\[URL\])?((?:http://)?(?:www\.)?break.com/index/".$urlmatch[1][$key].".html)(\"\](.*?)\[/URL\]|(.*?)\[/URL\])?#i", "http://break.com/index/".$urlmatch[1][$key].".html?matchid=$match[1]",$vbulletin->GPC['message']);
		}
	}]]></phpcode>
		</plugin>
		<plugin active="1" executionorder="5">
			<title>passiveVid - Edit Post Update</title>
			<hookname>editpost_update_process</hookname>
			<phpcode><![CDATA[preg_match_all("#http://video.yahoo.com/video/play\?(.*?)vid=(\d+)(&matchid)?#s",$edit['message'], $urlmatch);
	foreach ($urlmatch as $key => $urlmatch2) {
	 	if (($urlmatch[2][$key] != '') && (!preg_match('#matchid#s',$urlmatch[0][$key]))) {
		preg_match('#flashvars=\'id=(\d+)#s',file_get_contents("http://video.yahoo.com/video/play?vid=" . $urlmatch[2][$key]),$match);
		$edit['message'] = preg_replace("#(\[URL=\"|\[URL\])?(http://video.yahoo.com/video/play\?(.*?)vid=".$urlmatch[2][$key].")(\"\](.*?)\[/URL\]|(.*?)\[/URL\])?#i", "http://video.yahoo.com/video/play?vid=".$urlmatch[2][$key]."&matchid=$match[1]",$edit['message']);
		}
	}
	preg_match_all("#(?:http://)?(?:www\.)?break.com/index/([^\.]+).html(\?matchid)?#s",$edit['message'], $urlmatch);
	foreach ($urlmatch as $key => $urlmatch2) {
	 	if (($urlmatch[1][$key] != '') && (!preg_match('#matchid#s',$urlmatch[0][$key]))) {
		preg_match('#value="http://embed.break.com/([^"]+)"#',file_get_contents("http://www.break.com/index/" . $urlmatch[1][$key] . ".html"),$match);
		$edit['message'] = preg_replace("#(\[URL=\"|\[URL\])?((?:http://)?(?:www\.)?break.com/index/".$urlmatch[1][$key].".html)(\"\](.*?)\[/URL\]|(.*?)\[/URL\])?#i", "http://break.com/index/".$urlmatch[1][$key].".html?matchid=$match[1]",$edit['message']);
		}
	}]]></phpcode>
		</plugin>
		<plugin active="1" executionorder="4">
			<title>passiveVid - Global Array</title>
			<hookname>global_start</hookname>
			<phpcode><![CDATA[if ($vbulletin->options['passiveVid_enabled'] && (in_array(THIS_SCRIPT,array('showthread','editpost','newreply','newthread','showpost','private','announcement','member','blog','adv_index','usernote')))) {
	if ($vbulletin->options['passiveVid_custom_enabled']) {
		$customstring = preg_replace("#\"#","'",$vbulletin->options['passiveVid_custom_str']);
	} else {
		$customstring = '$PASSIVEEMBED';
	}
	// YouTube
	$passiveVid[] = array (
		'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:[a-zA-Z]{1,4}\.)?youtube.com/watch\?v=(.{11}?)[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
		'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/\'.$matches[1].\'"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/\'.$matches[1].\'" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>\'; return "'.$customstring.'";',
		'id' => 1
		);
	$passiveVid[] = array (
		'string' => '#\[youtube\]([^\[\]]+)\[/youtube\]#',
		'replacement' => 'return \'<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/\'.$matches[1].\'"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/\'.$matches[1].\'" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>\';',
		'id' => 1
		);
	// Google
	$passiveVid[] = array (
		'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?video.google.(?:[A-Za-z\.]{2,5})/videoplay\?docid=([0-9\-]+)(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
		'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<embed style="width:400px; height:326px;" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId=\'.$matches[1].\'&hl=en" flashvars=""> </embed>\'; return "'.$customstring.'";',
		'id' => 2
		);
	$passiveVid[] = array (
		'string' => '#\[googlevideo\]([^\[\]]+)\[/googlevideo\]#',
		'replacement' => 'return \'<embed style="width:400px; height:326px;" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId=\'.$matches[1].\'&hl=en" flashvars=""> </embed>\';',
		'id' => 2
		);
	// MySpace
	$passiveVid[] = array (
		'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?vids.myspace.com/index.cfm\?fuseaction=vids\.individual&amp;VideoID=(\d{8,15})(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
		'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<embed src="http://lads.myspace.com/videos/vplayer.swf" flashvars="m=\'.$matches[1].\'&v=2&type=video" type="application/x-shockwave-flash" width="430" height="346"></embed>\'; return "'.$customstring.'";',
		'id' => 4
		);
	$passiveVid[] = array (
		'string' => '#\[myspace\]([^\[\]]+)\[/myspace\]#',
		'replacement' => 'return \'<embed src="http://lads.myspace.com/videos/vplayer.swf" flashvars="m=\'.$matches[1].\'&v=2&type=video" type="application/x-shockwave-flash" width="430" height="346"></embed>\';',
		'id' => 4
		);
	// MetaCafe
	$passiveVid[] = array (
		'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:www\.)?metacafe.com/watch/([0-9]*\/[A-Za-z0-9_]*)(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
		'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<embed src="http://www.metacafe.com/fplayer/\'.$matches[1].\'.swf" width="400" height="345" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>\'; return "'.$customstring.'";',
		'id' => 8
		);
	$passiveVid[] = array (
		'string' => '#\[metacafe\]([^\[\]]+)\[/metacafe\]#',
		'replacement' => 'return \'<embed src="http://www.metacafe.com/fplayer/\'.$matches[1].\'.swf" width="400" height="345" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>\';',
		'id' => 8
		);
	// Yahoo
	$passiveVid[] = array (
		'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?video.yahoo.com/video/play\?vid=(\d+)&amp;matchid=(\d+)(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
		'replacement' => '$PASSIVETITLE = $matches[3]; $PASSIVEEMBED = \'<embed src="http://us.i1.yimg.com/cosmos.bcst.yahoo.com/player/media/swf/FLVVideoSolo.swf" flashvars="vid=\'.$matches[1].\'&id=\'.$matches[2].\'" type="application/x-shockwave-flash" width="425" height="350"></embed>\'; return "'.$customstring.'";',
		'id' => 16
		);
	// Koreus
	$passiveVid[] = array (
		'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:www\.)?koreus.com/video/([^\.]+).html(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
		'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<object type="application/x-shockwave-flash" data="http://www.koreus.com/video/\'.$matches[1].\'" height="320" width="400"><param name="movie" value="http://www.koreus.com/video/\'.$matches[1].\'"></object>\'; return "'.$customstring.'";',
		'id' => 32
		);
	// Sapo
	$passiveVid[] = array (
		'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?videos.sapo.pt/(.{20})(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
		'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<embed src="http://imgs.sapo.pt/sapovideo/swf/flvplayer-sapo.swf?file=http://rd3.videos.sapo.pt/\'.$matches[1].\'/mov/1" type="application/x-shockwave-flash" width="400" height="325" wmode="transparent"></embed>\'; return "'.$customstring.'";',
		'id' => 64
		);
	// Live Leak
	$passiveVid[] = array (
		'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:www\.)?liveleak.com/view\?i=(.{14})(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
		'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<embed src="http://www.liveleak.com/player.swf" width="450" height="370" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="autostart=false&token=\'.$matches[1].\'" scale="showall" name="index"></embed>\'; return "'.$customstring.'";',
		'id' => 256
		);
	// Game Trailers
	$passiveVid[] = array (
		'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:www\.)?gametrailers.com/player/(\d+).html(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
		'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="gtembed" width="480" height="409"><param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="http://www.gametrailers.com/remote_wrap.php?mid=\'.$matches[1].\'"/> <param name="quality" value="high" /><embed src="http://www.gametrailers.com/remote_wrap.php?mid=\'.$matches[1].\'" swLiveConnect="true" name="gtembed" align="middle" allowScriptAccess="sameDomain" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="480" height="409"></embed> </object>\'; return "'.$customstring.'";',
		'id' => 512
		);
	$passiveVid[] = array (
		'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:www\.)?gametrailers.com/player/usermovies/(\d+).html(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
		'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="gtembed" width="480" height="409"><param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="http://www.gametrailers.com/remote_wrap.php?umid=\'.$matches[1].\'"/> <param name="quality" value="high" /><embed src="http://www.gametrailers.com/remote_wrap.php?umid=\'.$matches[1].\'" swLiveConnect="true" name="gtembed" align="middle" allowScriptAccess="sameDomain" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="480" height="409"></embed> </object>\'; return "'.$customstring.'";',
		'id' => 512
		);
	// Street Fire
	$passiveVid[] = array (
		'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?videos.streetfire.net/video/([A-Za-z0-9\-]+)\.htm(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
		'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<embed src="http://videos.streetfire.net/vidiac.swf" FlashVars="video=\'.$matches[1].\'" quality="high" bgcolor="#ffffff" width="428" height="352" name="ePlayer" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>\'; return "'.$customstring.'";',
		'id' => 1024
		);
	// VEOH
	$passiveVid[] = array (
		'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:www\.)?veoh.com/videos/([A-Za-z0-9]+)(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
		'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<embed src="http://www.veoh.com/videodetails2.swf?permalinkId=\'.$matches[1].\'&id=anonymous&player=videodetailsembedded&videoAutoPlay=0" allowFullScreen="true" width="540" height="438" bgcolor="#000000" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>\'; return "'.$customstring.'";',
		'id' => 2048
		);	
	// MyVideo.de
	$passiveVid[] = array (
		'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:www\.)?myvideo.de/watch/(\d+)(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
		'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<object style="width:470px;height:406px;" type="application/x-shockwave-flash" data="http://www.myvideo.de/movie/\'.$matches[1].\'"> <param name="movie" value="http://www.myvideo.de/movie/\'.$matches[1].\'"/>	<param name="FlashVars" value="DESTSERVER=http://www.myvideo.de&LINKTEXT=MyVideo"/> <param name="AllowFullscreen" value="true" /></object>\'; return "'.$customstring.'";',
		'id' => 4096
		);
	// GameSpot
	$passiveVid[] = array (
		'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:www\.)?gamespot.com/video/(\d+)/(\d+)(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
		'replacement' => '$PASSIVETITLE = $matches[3]; $PASSIVEEMBED = \'<embed id="mymovie" width="432" height="355" flashvars="paramsURI=http%3A%2F%2Fwww%2Egamespot%2Ecom%2Fpages%2Fvideo%5Fplayer%2Fproteus%5Fxml%2Ephp%3Fadseg%3D761515%26adgrp%3D11542%26sid%3D\'.$matches[2].\'%26pid%3D\'.$matches[1].\'%26mb%3D%26onid%3D%26nc%3D1193358559372%26embedded%3D1%26showWatermark%3D0%26autoPlay%3D0" allowfullscreen="true" allowscriptaccess="always" quality="high" name="mymovie" src="http://image.com.com/gamespot/images/cne_flash/production/media_player/proteus/gs/proteus_embed.swf" type="application/x-shockwave-flash"/>\'; return "'.$customstring.'";',
		'id' => 8192
		);
	// Stage6
	$passiveVid[] = array (
		'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:stage6\.divx|(?:www\.)?stage6).com/[^"]+video/(\d+)/(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
		'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<object codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab" height="480" width="640" classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616"><param name="autoplay" value="false"><param name="src" value="http://video.stage6.com/\'.$matches[1].\'/.divx" /><param name="custommode" value="Stage6" /><param name="showpostplaybackad" value="false" /><embed type="video/divx" src="http://video.stage6.com/\'.$matches[1].\'/.divx" pluginspage="http://go.divx.com/plugin/download/" showpostplaybackad="false" custommode="Stage6" autoplay="false" height="480" width="640" /></object>\'; return "'.$customstring.'";',
		'id' => 16384
		);
	// SevenLoad
	$passiveVid[] = array (
		'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?\w{2}.sevenload.com/videos/([A-Za-z0-9]+)(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
		'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<object width="425" height="350"><param name="FlashVars" value="apiHost=api.sevenload.com"/><param name="movie" value="http://en.sevenload.com/pl/\'.$matches[1].\'/425x350/swf" /><embed src="http://en.sevenload.com/pl/\'.$matches[1].\'/425x350/swf" type="application/x-shockwave-flash" width="425" height="350" allowfullscreen="true" FlashVars="apiHost=api.sevenload.com"></embed></object>\'; return "'.$customstring.'";',
		'id' => 32768
		);
	// Izlesene
	$passiveVid[] = array (
		'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:www\.)?izlesene.com/video/[^\/]+/(\d+)(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
		'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<object width="432" height="344"><param name="movie" value="http://www.izlesene.com/player2.swf?video=\'.$matches[1].\'"></param><param name="wmode" value="transparent"></param><embed src="http://www.izlesene.com/player2.swf?video=\'.$matches[1].\'" wmode="transparent" width="432" height="344" type="application/x-shockwave-flash"></embed></object>\'; return "'.$customstring.'";',
		'id' => 65536
		);
	// Vidiac
	$passiveVid[] = array (
		'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?([A-Za-z0-9\-]+)\.vidiac.com/video/([A-Za-z0-9\-]+)\.htm(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
		'replacement' => '$PASSIVETITLE = $matches[3]; $PASSIVEEMBED = \'<embed src="http://\'.$matches[1].\'.vidiac.com/vidiac.swf" FlashVars="video=\'.$matches[2].\'" quality="high" bgcolor="#ffffff" width="428" height="352" name="ePlayer" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>\'; return "'.$customstring.'";',
		'id' => 131072
		);
	// Vidmax
	$passiveVid[] = array (
		'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:www\.)?vidmax.com/index.php/videos/view/(\d+)(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
		'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<embed src="http://vidmax.com/img/vidmax_player.swf" width="450" height="447" bgcolor="#FFFFFF" type="application/x-shockwave-flash"  pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="xml=http://vidmax.com/index.php/videos/playlist/&id=\'.$matches[1].\'&autoPlay=false&bg=http://vidmax.com/img/back.jpg" scale="showall" name="index" />\'; return "'.$customstring.'";',
		'id' => 524288
		);
	// Onsmash
	$passiveVid[] = array (
		'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?videos.onsmash.com/v/([A-Za-z0-9]+)(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
		'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<object width="448" height="374"><param name="movie" value="http://videos.onsmash.com/e/\'.$matches[1].\'"></param><embed src="http://videos.onsmash.com/e/\'.$matches[1].\'" type="application/x-shockwave-flash" width="448" height="374"></embed></object>\'; return "'.$customstring.'";',
		'id' => 2097152
		);
	// Godtube			
	$passiveVid[] = array (
		'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:www\.)?godtube.com/view_video.php\?viewkey=([A-Za-z0-9]+)(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
		'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<embed src="http://godtube.com/flvplayer.swf" FlashVars="viewkey=\'.$matches[1].\'" wmode="transparent" quality="high" width="330" height="270" name="godtube" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed>\'; return "'.$customstring.'";',
		'id' => 4194304
		);
	// PhotoBucket
	$passiveVid[] = array (
		'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:www\.)?photobucket.com/mediadetail/\?media=(?:http%3A%2F%2Fphotobucket.com)?%2Fplayer.swf%3Ffile%3D(.*\.flv)(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
		'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<embed width="448" height="361" type="application/x-shockwave-flash" wmode="transparent" src="http://vid138.photobucket.com/player.swf?file=\'.urldecode($matches[1]).\'"></embed>\'; return "'.$customstring.'";',
		'id' => 16777216
		);
	$passiveVid[] = array (
		'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?s(\d+).photobucket.com/albums/([A-Za-z0-9\-\_\/]+)\?action=view&amp;current=([A-Za-z0-9\-\_]+)(?:.*\.flv)(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
		'replacement' => '$PASSIVETITLE = $matches[4]; $PASSIVEEMBED = \'<embed width="448" height="361" type="application/x-shockwave-flash" wmode="transparent" src="http://i\'.$matches[1].\'.photobucket.com/player.swf?file=http://vid\'.$matches[1].\'.photobucket.com/albums/\'.$matches[2].$matches[3].\'.flv"></embed>\'; return "'.$customstring.'";',
		'id' => 16777216
		);
	// BrightCove
	$passiveVid[] = array (
		'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:www\.)?brightcove.tv/title.jsp\?title=(\d+)(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
		'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<embed src="http://www.brightcove.tv/playerswf" bgcolor="#FFFFFF" flashVars="initVideoId=\'.$matches[1].\'&servicesURL=http://www.brightcove.tv&viewerSecureGatewayURL=https://www.brightcove.tv&cdnURL=http://admin.brightcove.com&autoStart=false" base="http://admin.brightcove.com" name="bcPlayer" width="486" height="412" allowFullScreen="true" allowScriptAccess="always" seamlesstabbing="false" type="application/x-shockwave-flash" swLiveConnect="true" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>\'; return "'.$customstring.'";',
		'id' => 33554432
		);
	// YouKu
	$passiveVid[] = array (
		'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:[a-zA-Z0-0]{1,3}.)?youku.com/v_show/id_[a-zA-Z0-9]{4}([A-Za-z0-9\-\=]+)=\.html(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
		'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<embed src="http://player.youku.com/player.php/sid/\'.$matches[1].\'/v.swf" quality="high" width="450" height="372" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash"></embed>\'; return "'.$customstring.'";',
		'id' => 67108864
		);
	// LiveVideo
	$passiveVid[] = array (
		'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:www\.)?livevideo.com/video/(?:[^\/]+/)?([A-Za-z0-9]{32})/[A-Za-z0-9\-\_]+\.aspx(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
		'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<embed src="http://www.livevideo.com/flvplayer/embed/\'.$matches[1].\'" type="application/x-shockwave-flash" quality="high" WIDTH="445" HEIGHT="369" wmode="transparent"></embed>\'; return "'.$customstring.'";',
		'id' => 134217728
		);
	// Break
	$passiveVid[] = array (
		'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:www\.)?break.com/index/[^\.]+.html\?matchid=([A-Za-z0-9]+)(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
		'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<object width="464" height="392"><param name="movie" value="http://embed.break.com/\'.$matches[1].\'"></param><embed src="http://embed.break.com/\'.$matches[1].\'" type="application/x-shockwave-flash" width="464" height="392"></embed></object>\'; return "'.$customstring.'";',
		'id' => 268435456
		);
	/*
	$passiveVid[] = array (
		'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
		'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'\'; return "'.$customstring.'";',
		'id' => 32
		);
	*/
}]]></phpcode>
		</plugin>
		<plugin active="1" executionorder="5">
			<title>passiveVid - Preview Replacement</title>
			<hookname>newreply_form_complete</hookname>
			<phpcode><![CDATA[if ($vbulletin->options['passiveVid_enabled']) {
	global $passiveVid;
	foreach ($passiveVid as $k => $v) {
		if($vbulletin->options['passiveVid_sites'] & $v['id'] ) {
			$postpreview = preg_replace_callback($v['string'],create_function('$matches',$v['replacement']),$postpreview);
		}
	}
}]]></phpcode>
		</plugin>
		<plugin active="1" executionorder="5">
			<title>passiveVid - New Reply Update</title>
			<hookname>newreply_post_start</hookname>
			<phpcode><![CDATA[preg_match_all("#http://video.yahoo.com/video/play\?(.*?)vid=(\d+)(&matchid)?#s",$vbulletin->GPC['message'], $urlmatch);
	foreach ($urlmatch as $key => $urlmatch2) {
	 	if (($urlmatch[2][$key] != '') && (!preg_match('#matchid#s',$urlmatch[0][$key]))) {
		preg_match('#flashvars=\'id=(\d+)#s',file_get_contents("http://video.yahoo.com/video/play?vid=" . $urlmatch[2][$key]),$match);
		$vbulletin->GPC['message'] = preg_replace("#(\[URL=\"|\[URL\])?(http://video.yahoo.com/video/play\?(.*?)vid=".$urlmatch[2][$key].")(\"\](.*?)\[/URL\]|(.*?)\[/URL\])?#i", "http://video.yahoo.com/video/play?vid=".$urlmatch[2][$key]."&matchid=$match[1]",$vbulletin->GPC['message']);
		}
	}
	preg_match_all("#(?:http://)?(?:www\.)?break.com/index/([^\.]+).html(\?matchid)?#s",$vbulletin->GPC['message'], $urlmatch);
	foreach ($urlmatch as $key => $urlmatch2) {
	 	if (($urlmatch[1][$key] != '') && (!preg_match('#matchid#s',$urlmatch[0][$key]))) {
		preg_match('#value="http://embed.break.com/([^"]+)"#',file_get_contents("http://www.break.com/index/" . $urlmatch[1][$key] . ".html"),$match);
		$vbulletin->GPC['message'] = preg_replace("#(\[URL=\"|\[URL\])?((?:http://)?(?:www\.)?break.com/index/".$urlmatch[1][$key].".html)(\"\](.*?)\[/URL\]|(.*?)\[/URL\])?#i", "http://break.com/index/".$urlmatch[1][$key].".html?matchid=$match[1]",$vbulletin->GPC['message']);
		}
	}]]></phpcode>
		</plugin>
		<plugin active="1" executionorder="5">
			<title>passiveVid - New Thread Replacement</title>
			<hookname>newthread_form_complete</hookname>
			<phpcode><![CDATA[if ($vbulletin->options['passiveVid_enabled']) {
	global $passiveVid;
	foreach ($passiveVid as $k => $v) {
		if($vbulletin->options['passiveVid_sites'] & $v['id'] ) {
			$postpreview = preg_replace_callback($v['string'],create_function('$matches',$v['replacement']),$postpreview);
		}
	}
}]]></phpcode>
		</plugin>
		<plugin active="1" executionorder="5">
			<title>passiveVid - New Thread Update</title>
			<hookname>newthread_post_start</hookname>
			<phpcode><![CDATA[preg_match_all("#http://video.yahoo.com/video/play\?(.*?)vid=(\d+)(&matchid)?#s",$vbulletin->GPC['message'], $urlmatch);
	foreach ($urlmatch as $key => $urlmatch2) {
	 	if (($urlmatch[2][$key] != '') && (!preg_match('#matchid#s',$urlmatch[0][$key]))) {
		preg_match('#flashvars=\'id=(\d+)#s',file_get_contents("http://video.yahoo.com/video/play?vid=" . $urlmatch[2][$key]),$match);
		$vbulletin->GPC['message'] = preg_replace("#(\[URL=\"|\[URL\])?(http://video.yahoo.com/video/play\?(.*?)vid=".$urlmatch[2][$key].")(\"\](.*?)\[/URL\]|(.*?)\[/URL\])?#i", "http://video.yahoo.com/video/play?vid=".$urlmatch[2][$key]."&matchid=$match[1]",$vbulletin->GPC['message']);
		}
	}
	preg_match_all("#(?:http://)?(?:www\.)?break.com/index/([^\.]+).html(\?matchid)?#s",$vbulletin->GPC['message'], $urlmatch);
	foreach ($urlmatch as $key => $urlmatch2) {
	 	if (($urlmatch[1][$key] != '') && (!preg_match('#matchid#s',$urlmatch[0][$key]))) {
		preg_match('#value="http://embed.break.com/([^"]+)"#',file_get_contents("http://www.break.com/index/" . $urlmatch[1][$key] . ".html"),$match);
		$vbulletin->GPC['message'] = preg_replace("#(\[URL=\"|\[URL\])?((?:http://)?(?:www\.)?break.com/index/".$urlmatch[1][$key].".html)(\"\](.*?)\[/URL\]|(.*?)\[/URL\])?#i", "http://break.com/index/".$urlmatch[1][$key].".html?matchid=$match[1]",$vbulletin->GPC['message']);
		}
	}]]></phpcode>
		</plugin>
		<plugin active="1" executionorder="5">
			<title>passiveVid - Showthread Replacement</title>
			<hookname>postbit_display_complete</hookname>
			<phpcode><![CDATA[if ($this->registry->options['passiveVid_enabled']) {
	if ( strstr($this->registry->options['passiveVid_forumsenabled'],",") ) {
		$passiveVid_forumsenabled = explode(",",$this->registry->options['passiveVid_forumsenabled']);
	} else {
		$passiveVid_forumsenabled = array($this->registry->options['passiveVid_forumsenabled']);
	}
	if ( ($passiveVid_forumsenabled[0] == 0) || (in_array($this->thread['forumid'],$passiveVid_forumsenabled)) ) {
		if ( strstr($this->registry->options['passiveVid_usergroupenabled'],",") ) {
			$passiveVid_usergroupenabled = explode(",",$this->registry->options['passiveVid_usergroupenabled']);
		} else {
			$passiveVid_usergroupenabled = array($this->registry->options['passiveVid_usergroupenabled']);
		}
		if ( ($passiveVid_usergroupenabled[0] == 0) || (in_array($this->post['usergroupid'],$passiveVid_usergroupenabled)) ) {
			global $passiveVid;
			foreach ($passiveVid as $k => $v) {
				if( $this->registry->options['passiveVid_sites'] & $v['id'] ) {
					$this->post['message'] = preg_replace_callback($v['string'],create_function('$matches',$v['replacement']),$this->post['message']);
				}
			}
		}
	}
}]]></phpcode>
		</plugin>
		<plugin active="1" executionorder="5">
			<title>passiveVid - VBA News Replacement</title>
			<hookname>vba_cmps_module_newsbits</hookname>
			<phpcode><![CDATA[if ($vbulletin->options['passiveVid_enabled']) {
	global $passiveVid;
	foreach ($passiveVid as $k => $v) {
		if($vbulletin->options['passiveVid_sites'] & $v['id'] ) {
			$news['message'] = preg_replace_callback($v['string'],create_function('$matches',$v['replacement']),$news['message']);
		}
	}
}]]></phpcode>
		</plugin>
	</plugins>
	<phrases>
		<phrasetype name="Permissions" fieldname="cppermission">
			<phrase name="passiveVid_sites_break" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[Break]]></phrase>
			<phrase name="passiveVid_sites_brightcove" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[BrightCove]]></phrase>
			<phrase name="passiveVid_sites_gamespot" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[GameSpot]]></phrase>
			<phrase name="passiveVid_sites_gametrailers" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[GameTrailers]]></phrase>
			<phrase name="passiveVid_sites_godtube" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[GodTube]]></phrase>
			<phrase name="passiveVid_sites_google" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[Google]]></phrase>
			<phrase name="passiveVid_sites_googleuk" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[Google UK]]></phrase>
			<phrase name="passiveVid_sites_izlesene" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[Izlesene]]></phrase>
			<phrase name="passiveVid_sites_koreus" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[Koreus]]></phrase>
			<phrase name="passiveVid_sites_liveleak" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[LiveLeak]]></phrase>
			<phrase name="passiveVid_sites_livevideo" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[LiveVideo]]></phrase>
			<phrase name="passiveVid_sites_metacafe" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[MetaCafe]]></phrase>
			<phrase name="passiveVid_sites_myspace" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[MySpace]]></phrase>
			<phrase name="passiveVid_sites_myvideo" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[MyVideo]]></phrase>
			<phrase name="passiveVid_sites_onsmash" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[Onsmash]]></phrase>
			<phrase name="passiveVid_sites_photobucket" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[PhotoBucket]]></phrase>
			<phrase name="passiveVid_sites_sapo" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[Sapo]]></phrase>
			<phrase name="passiveVid_sites_sevenload" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[SevenLoad]]></phrase>
			<phrase name="passiveVid_sites_stage6" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[Stage6]]></phrase>
			<phrase name="passiveVid_sites_streetfire" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[StreetFire]]></phrase>
			<phrase name="passiveVid_sites_veoh" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[VEOH]]></phrase>
			<phrase name="passiveVid_sites_vidiac" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[Vidiac]]></phrase>
			<phrase name="passiveVid_sites_vidmax" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[Vidmax]]></phrase>
			<phrase name="passiveVid_sites_yahoo" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[Yahoo]]></phrase>
			<phrase name="passiveVid_sites_youku" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[YouKu]]></phrase>
			<phrase name="passiveVid_sites_youtube" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[YouTube]]></phrase>
		</phrasetype>
		<phrasetype name="vBulletin Settings" fieldname="vbsettings">
			<phrase name="setting_passiveVid_custom_enabled_desc" date="1196663858" username="Chad" version="1.0.7D"><![CDATA[ اختر نعم لتفعيل الاستبدال الخاص]]></phrase>
			<phrase name="setting_passiveVid_custom_enabled_title" date="1196663858" username="Chad" version="1.0.7D"><![CDATA[تفعيل الاستبدال الخاص؟]]></phrase>
			<phrase name="setting_passiveVid_custom_str_desc" date="1196664018" username="Chad" version="1.0.7D"><![CDATA[من هنا عليك باستخدام اكواد ال html للتحكم فى توسيط الفيديو وغيرها

]]></phrase>
			<phrase name="setting_passiveVid_custom_str_title" date="1196664018" username="Chad" version="1.0.7D"><![CDATA[الاستبدال الخاص]]></phrase>
			<phrase name="setting_passiveVid_enabled_desc" date="1198799689" username="root" version="1.1.0"><![CDATA[السماع بتفعيل وتعطيل الهاك  اختار نعم للتفعيل ]]></phrase>
			<phrase name="setting_passiveVid_enabled_title" date="1198799689" username="root" version="1.1.0"><![CDATA[تفعيل ظهور الفيديو؟]]></phrase>
			<phrase name="setting_passiveVid_forumsenabled_desc" date="1198798244" username="root" version="1.1.0"><![CDATA[لو عاوز الهاك يشتغل فى اقسام معينة  اكتب ارقام الاقسام هنا     القيمة 0 تجعل الهاك يعمل فى كل الاقسام]]></phrase>
			<phrase name="setting_passiveVid_forumsenabled_title" date="1198798244" username="root" version="1.1.0"><![CDATA[لتفعيل الهاك فى اقسام معينة]]></phrase>
			<phrase name="setting_passiveVid_sites_desc" date="1179155117" username="Coders Shack" version="1.0"><![CDATA[اختار المواقع التى تريد ان يسمح بعرض الفيديو منها.]]></phrase>
			<phrase name="setting_passiveVid_sites_title" date="1179155117" username="Coders Shack" version="1.0"><![CDATA[المواقع المسموحة]]></phrase>
			<phrase name="setting_passiveVid_usergroupenabled_desc" date="1198798361" username="root" version="1.1.0"><![CDATA[اكتب هنا ارقام المجموعات التى يسمح لها باستخدام الهاك , تعمل أيضا مثل ارقام الاقسام (اكتب 0 لتتيح الخاصية لكل المجموعات)]]></phrase>
			<phrase name="setting_passiveVid_usergroupenabled_title" date="1198798361" username="root" version="1.1.0"><![CDATA[مجموعات الاعضاء]]></phrase>
			<phrase name="settinggroup_passiveVid_settings" date="0" username="Coders Shack" version="1.0"><![CDATA[ إعدادات ظهور الفيديو تعريب arb4hosting.com]]></phrase>
		</phrasetype>
	</phrases>
	<options>
		<settinggroup name="passiveVid_settings" displayorder="570">
			<setting varname="passiveVid_enabled" displayorder="10">
				<datatype>boolean</datatype>
				<optioncode>yesno</optioncode>
				<defaultvalue>2</defaultvalue>
			</setting>
			<setting varname="passiveVid_sites" displayorder="50">
				<datatype>bitfield</datatype>
				<optioncode>bitfield:nocache|passiveVid_allowedsites</optioncode>
				<defaultvalue>16777215</defaultvalue>
			</setting>
			<setting varname="passiveVid_custom_enabled" displayorder="60">
				<datatype>boolean</datatype>
				<optioncode>yesno</optioncode>
				<defaultvalue>no</defaultvalue>
			</setting>
			<setting varname="passiveVid_custom_str" displayorder="70">
				<datatype>free</datatype>
				<optioncode>textarea</optioncode>
				<defaultvalue><![CDATA[<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" align="center"> 
<tr>
<td class="thead" align="center">$PASSIVETITLE</td> 
</tr> 
<tr> 
<td class="alt1" title="" align="center"> 
<p align="center">$PASSIVEEMBED</td>		
</tr> 
</table>]]></defaultvalue>
			</setting>
			<setting varname="passiveVid_forumsenabled" displayorder="80">
				<datatype>free</datatype>
				<defaultvalue>0</defaultvalue>
			</setting>
			<setting varname="passiveVid_usergroupenabled" displayorder="90">
				<datatype>free</datatype>
				<defaultvalue>0</defaultvalue>
			</setting>
		</settinggroup>
	</options>
	<helptopics>
	</helptopics>
	<cronentries>
	</cronentries>
	<faqentries>
	</faqentries>
</product>
