PageRenderTime 43ms CodeModel.GetById 11ms RepoModel.GetById 0ms app.codeStats 0ms

/filme/php/link1.php

https://code.google.com/p/hdforall/
PHP | 1041 lines | 983 code | 1 blank | 57 comment | 81 complexity | ed4684b1477f70a13261dce3e526f9fd MD5 | raw file
  1. #!/usr/local/bin/Resource/www/cgi-bin/php
  2. <?php
  3. error_reporting(0);
  4. $filelink = $_GET["file"];
  5. $filelink=urldecode($filelink);
  6. if (strpos($filelink,"adf.ly") !==false) {
  7. $t1=explode("http",$filelink);
  8. $filelink1="http".$t1[2];
  9. if ($filelink1 == "") {
  10. $h1=file_get_contents($filelink);
  11. $filelink=str_between($h1,"var url = '","'");
  12. } else {
  13. $filelink=$filelink1;
  14. }
  15. }
  16. if (strpos($filelink,"moovie.cc") !== false) {
  17. $a = @get_headers($filelink);
  18. $l=$a[10];
  19. $a1=explode("Location:",$l);
  20. $filelink=trim($a1[1]);
  21. }
  22. function str_between($string, $start, $end){
  23. $string = " ".$string; $ini = strpos($string,$start);
  24. if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini;
  25. return substr($string,$ini,$len);
  26. }
  27. function unpack_DivXBrowserPlugin($n_func,$html_cod) {
  28. $f=explode("return p}",$html_cod);
  29. $e=explode("'.split",$f[$n_func]);
  30. $ls=$e[0];
  31. //echo $ls;
  32. $a=explode(";",$ls);
  33. //print_r($a); //for debug only
  34. $a1=explode("'",$a[count($a)-1]); //char list for replace
  35. $b1=explode(",",$a1[1]);
  36. $base_enc=$b1[1];
  37. //echo $base_enc;
  38. $w=explode("|",$a1[2]);
  39. //print_r ($w);
  40. $ch="0123456789abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz";
  41. $ch="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
  42. $ch="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
  43. $fl="";
  44. for ($i=0;$i<count($a)-1;$i++) {
  45. $fl=$fl.$a[$i];
  46. }
  47. $r="";
  48. $x=strlen($fl);
  49. for ($i=0;$i<strlen($fl);$i++) {
  50. if (!preg_match('/[A-Za-z0-9]/',$fl[$i])) { //nu e alfanumeric
  51. $r=$r.$fl[$i];
  52. } elseif (($i<$x) && (preg_match('/[A-Za-z0-9]/',$fl[$i])) && (preg_match('/[A-Za-z0-9]/',$fl[$i+1]))) {
  53. $pos=strpos($ch,$fl[$i+1]);
  54. $pos=$base_enc*$fl[$i] + $pos;
  55. if ($w[$pos] <> "")
  56. $r=$r.$w[$pos];
  57. else
  58. $r=$r.$fl[$i].$fl[$i+1];
  59. } elseif (($i>0) && (preg_match('/[A-Za-z0-9]/',$fl[$i])) && (preg_match('/[A-Za-z0-9]/',$fl[$i-1]))) {
  60. // nothing
  61. } else {
  62. $pos=strpos($ch,$fl[$i]);
  63. if ($w[$pos] <> "")
  64. $r=$r.$w[$pos];
  65. else
  66. $r=$r.$fl[$i];
  67. }
  68. }
  69. $r=str_replace("\\","",$r);
  70. //echo $r;
  71. $ret_val=str_between($r,'param name="src"value="','"');
  72. if ($ret_val == "")
  73. $ret_val = str_between($r,"file','","'");
  74. return $ret_val;
  75. }
  76. function str_prep($string){
  77. $string = str_replace(' ','%20',$string);
  78. $string = str_replace('[','%5B',$string);
  79. $string = str_replace(']','%5D',$string);
  80. $string = str_replace('%3A',':',$string);
  81. $string = str_replace('%2F','/',$string);
  82. $string = str_replace('#038;','',$string);
  83. $string = str_replace('&amp;','&',$string);
  84. return $string;
  85. }
  86. function s2g($string) {
  87. $ch = curl_init($string);
  88. curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);
  89. curl_setopt($ch, CURLOPT_REFERER, $string);
  90. curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL
  91. $h = curl_exec($ch);
  92. $sid=str_between($h,'"sid" value="','"');
  93. $post="sid=".$sid."&submit=Click+Here+To+Continue";
  94. sleep(2);
  95. curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);
  96. curl_setopt($ch, CURLOPT_REFERER, $string);
  97. curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL
  98. curl_setopt ($ch, CURLOPT_POST, 1);
  99. curl_setopt ($ch, CURLOPT_POSTFIELDS, $post);
  100. $h = curl_exec($ch);
  101. $url=unpack_DivXBrowserPlugin(1,$h);
  102. return $url;
  103. }
  104. function uploadville($string) {
  105. $ch = curl_init($string);
  106. curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);
  107. curl_setopt($ch, CURLOPT_REFERER, $string);
  108. curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL
  109. $h = curl_exec($ch);
  110. $id=str_between($h,'"id" value="','"');
  111. $fname=str_between($h,'"fname" value="','"');
  112. $post="op=download1&usr_login=&id=".$id."&fname=".$fname."&referer=&method_free=LOAD_HERE";
  113. //op=download1&usr_login=&id=z5g2on7obv7j&fname=Shark.Night.2011.TS.XviD-TaRiQ786.avi&referer=&method_free=LOAD_HERE
  114. curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);
  115. curl_setopt($ch, CURLOPT_REFERER, $string);
  116. curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL
  117. curl_setopt ($ch, CURLOPT_POST, 1);
  118. curl_setopt ($ch, CURLOPT_POSTFIELDS, $post);
  119. $h = curl_exec($ch);
  120. $r=unpack_DivXBrowserPlugin(2,$h);
  121. return $r;
  122. }
  123. function uploadc($string) {
  124. $ch = curl_init($string);
  125. curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);
  126. curl_setopt($ch, CURLOPT_REFERER, $string);
  127. curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL
  128. $h = curl_exec($ch);
  129. $ipcount_val=str_between($h,'"ipcount_val" value="','"');
  130. $id=str_between($h,'"id" value="','"');
  131. $fname=str_between($h,'"fname" value="','"');
  132. $post="ipcount_val=".$ipcount_val."&op=download2&usr_login=&id=".$id."&fname=".$fname."&referer=&method_free=Slow+access";
  133. //ipcount_val=10&op=download2&usr_login=&id=a2baprw26l3m&fname=np-prophezeiung-xvid.avi&referer=&method_free=Slow+access
  134. //ipcount_val=10&op=download2&usr_login=&id=pia0ng8rrzqk&fname=om-die.geschichte.vom.goldenen.taler-xvid.avi&referer=&method_free=Slow+access
  135. curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);
  136. curl_setopt($ch, CURLOPT_REFERER, $string);
  137. curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL
  138. curl_setopt ($ch, CURLOPT_POST, 1);
  139. curl_setopt ($ch, CURLOPT_POSTFIELDS, $post);
  140. $h = curl_exec($ch);
  141. $r=unpack_DivXBrowserPlugin(2,$h);
  142. return $r;
  143. }
  144. function rapidload($string) {
  145. $ch = curl_init($string);
  146. curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);
  147. curl_setopt($ch, CURLOPT_REFERER, $string);
  148. curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL
  149. $h = curl_exec($ch);
  150. $method_premium=str_between($h,'"method_premium" value="','"');
  151. $method_free=str_between($h,'"method_free" value="','"');
  152. $id=str_between($h,'"id" value="','"');
  153. $fname=str_between($h,'"fname" value="','"');
  154. $post="op=download1&usr_login=&id=".$id."&fname=".$fname."&referer=&method_free=".$method_free;
  155. sleep(2);
  156. curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);
  157. curl_setopt($ch, CURLOPT_REFERER, $string);
  158. curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL
  159. curl_setopt ($ch, CURLOPT_POST, 1);
  160. curl_setopt ($ch, CURLOPT_POSTFIELDS, $post);
  161. $h = curl_exec($ch);
  162. //Enter code below:
  163. if (strpos($h,"Enter code below:") !==false) {
  164. $t1=explode('Enter code below:',$h);
  165. } else {
  166. $t1=explode('Bitte Code eingeben:',$h);
  167. }
  168. $t2=explode('</table>',$t1[1]);
  169. $p=$t2[0];
  170. $t1=explode('position:absolute',$p);
  171. $a1=explode('padding-left:',$t1[1]);
  172. $p1=explode('px',$a1[1]);
  173. $pos1=trim($p1[0]);
  174. $v1=explode('>&#',$a1[1]);
  175. $v2=explode(';',$v1[1]);
  176. $val1=chr($v2[0]);
  177. //
  178. $a1=explode('padding-left:',$t1[2]);
  179. $p1=explode('px',$a1[1]);
  180. $pos2=trim($p1[0]);
  181. $v1=explode('>&#',$a1[1]);
  182. $v2=explode(';',$v1[1]);
  183. $val2=chr($v2[0]);
  184. //
  185. $a1=explode('padding-left:',$t1[3]);
  186. $p1=explode('px',$a1[1]);
  187. $pos3=trim($p1[0]);
  188. $v1=explode('>&#',$a1[1]);
  189. $v2=explode(';',$v1[1]);
  190. $val3=chr($v2[0]);
  191. //
  192. $a1=explode('padding-left:',$t1[4]);
  193. $p1=explode('px',$a1[1]);
  194. $pos4=trim($p1[0]);
  195. $v1=explode('>&#',$a1[1]);
  196. $v2=explode(';',$v1[1]);
  197. $val4=chr($v2[0]);
  198. //
  199. $my = array(
  200. $pos1 => $val1,
  201. $pos2 => $val2,
  202. $pos3 => $val3,
  203. $pos4 => $val4);
  204. ksort($my);
  205. $v = array_values($my);
  206. $p=$v[0].$v[1].$v[2].$v[3];
  207. //
  208. $id=str_between($h,'name="id" value="','"');
  209. $rand=str_between($h,'name="rand" value="','"');
  210. sleep(10);
  211. $post="op=download2&id=".$id."&rand=".$rand."&referer=".urlencode($string)."&method_free=".$method_free."&method_premium=&code=".$p."&down_script=1";
  212. curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,0);
  213. curl_setopt($ch, CURLOPT_REFERER, $string);
  214. curl_setopt($ch, CURLOPT_HEADER, true);
  215. curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL
  216. curl_setopt ($ch, CURLOPT_POST, 1);
  217. curl_setopt ($ch, CURLOPT_POSTFIELDS, $post);
  218. $h = curl_exec($ch);
  219. curl_close ($ch);
  220. $url=unpack_DivXBrowserPlugin(2,$h);
  221. return $url;
  222. }
  223. function dimshare($k,$char_rep,$pos_link,$h,$fn) {
  224. $r=unpack_DivXBrowserPlugin($k,$h);
  225. return $r;
  226. }
  227. function movdivx($k,$char_rep,$pos_link,$h,$fn) {
  228. $r=unpack_DivXBrowserPlugin($k,$h);
  229. return $r;
  230. }
  231. //peteava
  232. function r() {
  233. $i=mt_rand(4096,0xffff);
  234. $j=mt_rand(4096,0xffff);
  235. return dechex($i).dechex($j);
  236. }
  237. function zeroFill($a,$b) {
  238. if ($a >= 0) {
  239. return bindec(decbin($a>>$b)); //simply right shift for positive number
  240. }
  241. $bin = decbin($a>>$b);
  242. $bin = substr($bin, $b); // zero fill on the left side
  243. $o = bindec($bin);
  244. return $o;
  245. }
  246. function crunch($arg1,$arg2) {
  247. $local4 = strlen($arg2);
  248. while ($local5 < $local4) {
  249. $local3 = ord(substr($arg2,$local5));
  250. $arg1=$arg1^$local3;
  251. $local3=$local3%32;
  252. $arg1 = ((($arg1 << $local3) & 0xFFFFFFFF) | zeroFill($arg1,(32 - $local3)));
  253. $local5++;
  254. }
  255. return $arg1;
  256. }
  257. function peteava($movie) {
  258. $seedfile=file_get_contents("http://content.peteava.ro/seed/seed.txt");
  259. $t1=explode("=",$seedfile);
  260. $seed=$t1[1];
  261. if ($seed == "") {
  262. return "";
  263. }
  264. $r=r();
  265. $s = hexdec($seed);
  266. $local3 = crunch($s,$movie);
  267. $local3 = crunch($local3,"0");
  268. $local3 = crunch($local3,$r);
  269. return strtolower(dechex($local3)).$r;
  270. }
  271. /** end peteava **/
  272. function rapidmov($string) {
  273. $h = file_get_contents($string);
  274. $r=unpack_DivXBrowserPlugin(1,$h);
  275. return $r;
  276. }
  277. function videobb($l) {
  278. $ch = curl_init();
  279. curl_setopt($ch, CURLOPT_URL, $l);
  280. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  281. curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 GTB5');
  282. curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);
  283. curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookies.txt');
  284. curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt');
  285. $page = curl_exec($ch);
  286. curl_close($ch);
  287. //preg_match_all('/\{"d":(false|true),"l":"([^"]+)","u":"([^"]+)"\}/i', $page, $st);
  288. preg_match_all('/\{"d":(false|true),"l":"([^"]+)","u":"([^"]+)"/i', $page, $st);
  289. $stream = array();
  290. for ($i = 0; $i < count($st[0]); $i++) {
  291. $stream[$st[2][$i]] = array(($st[1][$i] == "true" ? true : false), base64_decode($st[3][$i]));
  292. }
  293. if (count($stream) > 1) {
  294. foreach ($stream as $st => $da) {
  295. if ($da[0] == true) {
  296. $fl=$da[1];
  297. } else {
  298. $fl=$da[1]; // ?????
  299. }
  300. }
  301. } else {
  302. $qs = array_rand($stream);
  303. $fl = $stream[$qs][1];
  304. }
  305. return $fl;
  306. }
  307. function vk($string) {
  308. if (strpos($string,"video_ext.php") === false) {
  309. $h = file_get_contents($string);
  310. $t1=explode("nvar vars",$h);
  311. $l=$t1[1];
  312. $uid=str_between($l,'\"uid\":\"','\"');
  313. $host=str_between($l,'"host\":\"','\"');
  314. $host=str_replace("\\/","/",$host);
  315. $host=str_replace("\\/","/",$host);
  316. $host=str_replace("\/","/",$host);
  317. $vtag=str_between($l,'"vtag\":\"','\"');
  318. $r=$host."u".$uid."/video/".$vtag.".360.mp4";
  319. } else {
  320. $baza = file_get_contents($string);
  321. $host = str_between($baza,"var video_host = '","'");
  322. $uid = str_between($baza,"var video_uid = '","'");
  323. $vtag = str_between($baza,"var video_vtag = '","'");
  324. $hd = str_between($baza,"var video_max_hd = '","'");
  325. $r = $host."u".$uid."/video/".$vtag.".360.mp4";
  326. if ($hd == "0") {
  327. $r = $host."u".$uid."/video/".$vtag.".240.mp4";
  328. }
  329. }
  330. return $r;
  331. }
  332. function youtube($file) {
  333. if(preg_match('/youtube\.com\/(v\/|watch\?v=|embed\/)([\w\-]+)/', $file, $match)) {;
  334. $l ="http://www.youtube.com/watch?v=".$match[2];
  335. $r=file_get_contents("http://127.0.0.1/cgi-bin/scripts/util/yt.php?file=".$l);
  336. }
  337. return $r;
  338. }
  339. function flvz($string) {
  340. if (strpos($string,"embed") === false) {
  341. $string=str_replace("video","embed",$string);
  342. }
  343. $h = file_get_contents($string);
  344. $r = str_between($h,'"url": "','"');
  345. return $r;
  346. }
  347. function putlocker($string) {
  348. //http://www.putlocker.com/embed/067DF715716F10C5
  349. //http://www.putlocker.com/file/067DF715716F10C5
  350. $string=str_replace("file","embed",$string);
  351. $id=substr(strrchr($string,"/"),1);
  352. $ch = curl_init();
  353. curl_setopt($ch, CURLOPT_URL, $string);
  354. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  355. curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookies.txt');
  356. curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt');
  357. $h = curl_exec($ch);
  358. curl_close($ch);
  359. $t1=explode('form method="post"',$h);
  360. $t2=explode('value="',$t1[1]);
  361. $t3=explode('"',$t2[1]);
  362. $hash=$t3[0];
  363. $post="hash=".$hash."&confirm=Close+Ad+and+Watch+as+Free+User";
  364. $post="fuck_you=".$hash."&confirm=Close+Ad+and+Watch+as+Free+User";
  365. //hash=fe41ab2306be4d45&confirm=Close+Ad+and+Watch+as+Free+User
  366. $ch = curl_init();
  367. curl_setopt($ch, CURLOPT_URL, $string);
  368. curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt');
  369. curl_setopt ($ch, CURLOPT_POST, 1);
  370. curl_setopt ($ch, CURLOPT_POSTFIELDS, $post);
  371. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  372. curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);
  373. $h = curl_exec($ch);
  374. curl_close($ch);
  375. $id=str_between($h,"playlist: '","'");
  376. //$url="http://www.putlocker.com/get_file.php?embed_stream=".$id;
  377. ///get_file.php?embed_stream=MDY3REY3MTU3MTZGMTBDNStlNTY1Y2EwNDcyZjYwZjUy
  378. if (strpos($string,"putlocker") !==false) {
  379. $url="http://www.putlocker.com".$id;
  380. } elseif (strpos($string,"sockshare") !== false) {
  381. $url="http://www.sockshare.com".$id;
  382. }
  383. $ch = curl_init();
  384. curl_setopt($ch, CURLOPT_URL, $url);
  385. curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt');
  386. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  387. $h = curl_exec($ch);
  388. curl_close($ch);
  389. $t1=explode('media:content url="',$h);
  390. $t2=explode('"',$t1[2]);
  391. $r = $t2[0];
  392. return $r;
  393. }
  394. //***************Here we start**************************************
  395. $filelink=str_prep($filelink);
  396. if ((strpos($filelink,"vidxden") !==false) || (strpos($filelink,"divxden") !==false)) {
  397. if (strpos($filelink,"embed") === false) {
  398. $t=explode("/",$filelink);
  399. $id= $t[3];
  400. $filelink="http://www.vidxden.com/embed-".$id."-width-653-height-362.html";
  401. }
  402. $h=file_get_contents($filelink);
  403. $link=unpack_DivXBrowserPlugin(1,$h);
  404. } elseif (strpos($filelink,"vidbux") !==false) {
  405. /*
  406. if (strpos($filelink,"embed") === false) {
  407. $t=explode("/",$filelink);
  408. $id= $t[3];
  409. $filelink=$t[0]."/".$t[1]."/".$t[2]."/"."embed-".$id."-width-653-height-362.html";
  410. }
  411. echo $filelink;
  412. */
  413. //op=download1&usr_login=&id=9e889zt1l1ba&fname=Rush.Hour.3.2007i.flv&referer=&method_free=Continue+to+Video
  414. $ch = curl_init($filelink);
  415. curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);
  416. curl_setopt($ch, CURLOPT_REFERER, $filelink);
  417. curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL
  418. $h = curl_exec($ch);
  419. $id=str_between($h,'"id" type="hidden" value="','"');
  420. $fname=str_between($h,'"fname" type="hidden" value="','"');
  421. $post="op=download1&usr_login=&id=".$id."&fname=".$fname."&referer=&method_free=Continue+to+Video";
  422. curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);
  423. curl_setopt($ch, CURLOPT_REFERER, $string);
  424. curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL
  425. curl_setopt ($ch, CURLOPT_POST, 1);
  426. curl_setopt ($ch, CURLOPT_POSTFIELDS, $post);
  427. $h = curl_exec($ch);
  428. curl_close($ch);
  429. $link=unpack_DivXBrowserPlugin(1,$h);
  430. } elseif (strpos($filelink,'movreel') !==false) {
  431. preg_match('/movreel\.com\/(embed\/)?+([\w\-]+)/', $filelink, $m);
  432. $id=$m[2];
  433. $filelink = "http://movreel.com/embed/".$id;
  434. $h = file_get_contents($filelink);
  435. $link=str_between($h,'<param name="src" value="','"');
  436. } elseif (strpos($filelink,'videoweed') !==false) {
  437. if (strpos($filelink,"embed") !== false) {
  438. preg_match('/(v=)([A-Za-z0-9_]+)/', $filelink, $m);
  439. $id=$m[2];
  440. $s=explode("/",$filelink);
  441. $filelink="http://".$s[2]."/embed.php?v=".$id."&amp;width=900&amp;height=600";
  442. }
  443. $h = file_get_contents($filelink);
  444. $f = str_between($h,'flashvars.file="','"');
  445. $k = str_between($h,'flashvars.filekey="','"');
  446. $l="http://www.videoweed.es/api/player.api.php?user=undefined&codes=undefined&pass=undefined&file=".$f."&key=".$k;
  447. //$l=str_replace("&","&amp;",$l);
  448. $h=file_get_contents($l);
  449. $link=str_between($h,"url=","&");
  450. } elseif (strpos($filelink,'novamov') !==false) {
  451. if (strpos($filelink,"embed") !== false) {
  452. preg_match('/(v=)([A-Za-z0-9_]+)/', $filelink, $m);
  453. $id=$m[2];
  454. $s=explode("/",$filelink);
  455. $filelink="http://".$s[2]."/embed.php?v=".$id."&amp;width=600&amp;height=480";
  456. }
  457. $h=file_get_contents($filelink);
  458. $file=str_between($h,'flashvars.file="','"');
  459. $filekey=str_between($h,'flashvars.filekey="','"');
  460. $l="http://www.novamov.com/api/player.api.php?user=undefined&file=".$file."&pass=undefined&key=".urlencode($filekey);
  461. $h=file_get_contents($l);
  462. $link=str_between($h,"url=","&");
  463. } elseif (strpos($filelink, 'videobb') !== false) {
  464. if (strpos($filelink,'videobb.com') !==false) {
  465. $id=substr(strrchr($filelink,"/"),1);
  466. } else { // filmenet.ro
  467. $a1=explode("videoid=",$filelink);
  468. $a2=explode("&",$a1[1]);
  469. $id=$a2[0];
  470. }
  471. $l="http://www.sheepser.com/vb23.php?s1=".$id;
  472. $h=file_get_contents($l);
  473. $t1=explode('url="',$h);
  474. $t2=explode('"',$t1[1]);
  475. $link=$t2[0];
  476. if (strpos($link,"videobb") === false) {
  477. $filelink="http://www.videobb.com/player_control/settings.php?v=".$id;
  478. $link=videobb($filelink);
  479. }
  480. } elseif (strpos($filelink, 'videozer.com') !== false) {
  481. $id=substr(strrchr($filelink,"/"),1);
  482. $l="http://www.sheepser.com/vz23.php?s1=".$id;
  483. $h=file_get_contents($l);
  484. $t1=explode('url="',$h);
  485. $t2=explode('"',$t1[1]);
  486. $link=$t2[0];
  487. if (strpos($link,"videozer") === false) {
  488. $filelink="http://www.videozer.com/player_control/settings.php?v=".$id;
  489. $link=videobb($filelink);
  490. }
  491. } elseif ((strpos($filelink, 'vk.com') !== false) || (strpos($filelink, 'vkontakte.ru') !== false)) {
  492. $link=vk($filelink);
  493. } elseif (strpos($filelink, 'movshare') !== false){
  494. preg_match('/(v=)([A-Za-z0-9_]+)/', $filelink, $m);
  495. $id=$m[2];
  496. if ($id == "") {
  497. if (strpos($filelink,"?") !==false) {
  498. $a=explode("?",$filelink);
  499. $rest = substr($a[0], 0, -1);
  500. $id= substr(strrchr($rest,"/"),1);
  501. } else {
  502. $id = substr(strrchr($filelink,"/"),1);
  503. }
  504. }
  505. $filelink = "http://embed.movshare.net/embed.php?v=".$id;
  506. $baza = file_get_contents($filelink);
  507. $key=str_between($baza,'flashvars.filekey="','"');
  508. if ($key <> "") {
  509. $l="http://www.movshare.net/api/player.api.php?user=undefined&codes=undefined&key=";
  510. $l=$l.urlencode($key)."&pass=undefined&file=".$id;
  511. $b=file_get_contents($l);
  512. $link=str_between($b,"url=","&");
  513. } else {
  514. $link = str_between($baza,'file="','"');
  515. if ($link == "") {
  516. $link=str_between($baza,'name="src" value="','"');
  517. }
  518. if ($link == "") {
  519. $link=str_between($baza,'src" value="','"');
  520. }
  521. }
  522. } elseif (strpos($filelink, 'youtube') !== false){
  523. $link=youtube($filelink);
  524. } elseif (strpos($filelink, 'flvz.com') !== false){
  525. $link=flvz($filelink);
  526. } elseif (strpos($filelink, 'rapidmov.net') !== false){
  527. $link=rapidmov($filelink);
  528. } elseif (strpos($filelink, 'putlocker.com') !== false){
  529. $link=putlocker($filelink);
  530. } elseif (strpos($filelink, 'sockshare.com') !== false){
  531. $link=putlocker($filelink);
  532. } elseif (strpos($filelink, 'peteava.ro/embed') !== false) {
  533. preg_match('/(video\/)([A-Za-z0-9_]+)/', $filelink, $m);
  534. $id=$m[2];
  535. $filelink = "http://www.peteava.ro/embed/video/".$id;
  536. $h = file_get_contents($filelink);
  537. $id = str_between($h,"hd_file=","&");
  538. if ($id == "") {
  539. $id = str_between($h,"stream.php&file=","&");
  540. }
  541. if ($id <> $last_peteava) {
  542. $last_peteava=$id;
  543. $token = peteava($id);
  544. $link = "http://content.peteava.ro/video/".$id."?start=0&token=".$token;
  545. }
  546. } elseif (strpos($filelink, 'peteava.ro/id') !== false) {
  547. $h = file_get_contents($filelink);
  548. $id = str_between($h,"hd_file=","&");
  549. if ($id == "") {
  550. $id = str_between($h,"stream.php&file=","&");
  551. }
  552. if ($id <> $last_peteava) {
  553. $last_peteava=$id;
  554. $token = peteava($id);
  555. $link = "http://content.peteava.ro/video/".$id."?start=0&token=".$token;
  556. }
  557. } elseif (strpos($filelink, 'content.peteava.ro') !== false) {
  558. $id = str_between($h,"hd_file=","&");
  559. if ($id == "") {
  560. $id = str_between($filelink,"stream.php&file=","&");
  561. }
  562. $p=strpos($id,"."); //cinemaxx.ro
  563. $id1= substr($id,0, $p);
  564. $id2=substr($id,$p,4);
  565. $id= $id1.$id2;
  566. if ($id <> $last_peteava) {
  567. $last_peteava=$id;
  568. $token = peteava($id);
  569. $link = "http://content.peteava.ro/video/".$id."?start=0&token=".$token;
  570. }
  571. } elseif (strpos($filelink,'vimeo.com') !==false){
  572. //http://player.vimeo.com/video/16275866
  573. if (strpos($filelink,"player.vimeo.com") !==false) {
  574. $id=substr(strrchr($filelink,"/"),1);
  575. $link="http://127.0.0.1/cgi-bin/translate?stream,,http://vimeo.com/".$id;
  576. } else {
  577. $link="http://127.0.0.1/cgi-bin/translate?stream,,".$filelink;
  578. }
  579. } elseif (strpos($filelink, 'googleplayer.swf') !== false) {
  580. $t1 = explode("docid=", $filelink);
  581. $t2 = explode("&",$t1[1]);
  582. $link = "http://127.0.0.1/cgi-bin/translate?stream,,http://video.google.com/videoplay?docid=".$t2[0];
  583. } elseif (strpos($filelink, 'filebox.ro/get_video') !== false) {
  584. $s = str_between($filelink,"videoserver",".");
  585. $f = str_between($filelink,"key=","&");
  586. $link = "http://static.filebox.ro/filme/".$s."/".$f.".flv";
  587. } elseif (strpos($filelink, 'videobam.com/widget') !== false) {
  588. //http://videobam.com/widget/Xykqy/3"
  589. $h = file_get_contents($filelink);
  590. $link=str_between($h,',"url":"','"');
  591. $link=str_replace("\\","",$link);
  592. } elseif (strpos($filelink, 'divxstage.net') !== false) {
  593. //divxstage.net/video/canc73f7kgvbt
  594. $h = file_get_contents($filelink);
  595. $link=str_between($h,'param name="src" value="','"');
  596. } elseif (strpos($filelink, 'divxstage.eu') !== false) {
  597. //http://www.divxstage.eu/video/oisekelygcrnb
  598. //http://www.divxstage.eu/api/player.api.php?key=78%2E96%2E189%2E71%2D0158d8005886f55b17aa976b4b596404&user=undefined&codes=undefined&pass=undefined&file=0nm6yadbatt77
  599. $h = file_get_contents($filelink);
  600. $p1=str_between($h,'flashvars.filekey="','"');
  601. $p2=str_between($h,'flashvars.file="','"');
  602. if ($p1 == "") {
  603. $link=str_between($h,'param name="src" value="','"');
  604. if ($link == "") {
  605. $link=str_between($h,'addVariable("file","','"');
  606. }
  607. } else {
  608. $l1="http://www.divxstage.eu/api/player.api.php?key=".urlencode($p1)."&user=undefined&codes=undefined&pass=undefined&file=".$p2;
  609. $h = file_get_contents($l1);
  610. $link=str_between($h,"url=","&");
  611. }
  612. } elseif (strpos($filelink, 'stagero.eu') !== false) {
  613. //http://www.stagero.eu/api/player.api.php?codes=1&key=78%2E96%2E189%2E71%2D43400f4737713449ec249d9baf1e16f9&pass=undefined&user=undefined&file=pq34kgvq7gn26
  614. $h = file_get_contents($filelink);
  615. $p1=str_between($h,'flashvars.filekey="','"');
  616. $p2=str_between($h,'flashvars.file="','"');
  617. $l1="http://www.stagero.eu/api/player.api.php?codes=1&key=".urlencode($p1)."&pass=undefined&user=undefined&file=".$p2;
  618. $h = file_get_contents($l1);
  619. $link=str_between($h,"url=","&");
  620. } elseif (strpos($filelink, 'stream2k.com/playerjw/vConfig') !== false) {
  621. $h = file_get_contents($filelink);
  622. $link=trim(str_between($h,'<file>','</file>'));
  623. } elseif (strpos($filelink, 'xvidstage.com') !== false) {
  624. //http://xvidstage.com/zwvh3et6vugo
  625. //http://xvidstage.com/cgi-bin/dl.cgi/igribijb5hnkqetnfyplgdzywdxney3aiufdbxrwn4/video.avi
  626. //op=download1&usr_login=&id=shb0yb2muu9g&fname=xf-captiva.avi&referer=http%3A%2F%2Fwww.movie2k.to%2FVilla-Captive-online-film-1234382.html&method_free=Free+Download
  627. if (strpos($filelink,"embed") !== false) {
  628. $h = file_get_contents($filelink);
  629. } else {
  630. $id = substr(strrchr($filelink, "/"), 1);
  631. $filelink = "http://xvidstage.com/embed-".$id.".html";
  632. $h = file_get_contents($filelink);
  633. }
  634. $link=unpack_DivXBrowserPlugin(2,$h);
  635. } elseif (strpos($filelink, 'nolimitvideo.com') !== false) {
  636. //http://www.nolimitvideo.com/embed/17ea366031f87f3aa009/new-kids-turbo
  637. $h = file_get_contents($filelink);
  638. $link=str_between($h,"file': '","'");
  639. } elseif (strpos($filelink, 'stage666.net') !== false) {
  640. //http://stage666.net/rfl5qcrxsb3a.html
  641. //http://stage666.net/cgi-bin/dl.cgi/kylgrtsmovb2rbldug23w3o45jkdpr23gv4cxbsdjq/video.avi
  642. $h = file_get_contents($filelink);
  643. preg_match("/(\|)([a-z0-9]{42})\|/",$h,$m);
  644. $hash=$m[2];
  645. $link="http://stage666.net/cgi-bin/dl.cgi/".$hash."/video.avi";
  646. } elseif (strpos($filelink, 'rapidload.org') !== false) {
  647. $link=rapidload($filelink);
  648. } elseif (strpos($filelink, 'vidstream.us') !== false) {
  649. $h=file_get_contents($filelink);
  650. $link=str_between($h,"'file', '","'");
  651. if ($link =="") {
  652. $l=str_between($h,'settingsFile: "','&');
  653. $h=file_get_contents($l);
  654. $link=str_between($h,'videoPath value="','"');
  655. }
  656. } elseif (strpos($filelink, '2gb-hosting.com') !== false) {
  657. $link=s2g($filelink);
  658. } elseif (strpos($filelink, 'dimshare.com') !== false) {
  659. $string=$filelink;
  660. $ch = curl_init($string);
  661. curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);
  662. curl_setopt($ch, CURLOPT_REFERER, $string);
  663. curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL
  664. $h = curl_exec($ch);
  665. $id=str_between($h,'"id" value="','"');
  666. $fname=str_between($h,'"fname" value="','"');
  667. $post="op=download1&usr_login=&id=".$id."&fname=".$fname."&referer=&method_free=LOAD_HERE";
  668. sleep(2);
  669. curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);
  670. curl_setopt($ch, CURLOPT_REFERER, $string);
  671. curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL
  672. curl_setopt ($ch, CURLOPT_POST, 1);
  673. curl_setopt ($ch, CURLOPT_POSTFIELDS, $post);
  674. $h = curl_exec($ch);
  675. $link=dimshare(1,12,9,$h,$fname);
  676. } elseif (strpos($filelink, 'movdivx.com') !== false) {
  677. $string=$filelink;
  678. $ch = curl_init($string);
  679. curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);
  680. curl_setopt($ch, CURLOPT_REFERER, $string);
  681. curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL
  682. $h = curl_exec($ch);
  683. $id=str_between($h,'"id" value="','"');
  684. $fname=str_between($h,'"fname" value="','"');
  685. $post="op=download1&usr_login=&id=".$id."&fname=".$fname."&referer=&method_free=Please+wait+for+0+seconds";
  686. sleep(5);
  687. curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);
  688. curl_setopt($ch, CURLOPT_REFERER, $string);
  689. curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL
  690. curl_setopt ($ch, CURLOPT_POST, 1);
  691. curl_setopt ($ch, CURLOPT_POSTFIELDS, $post);
  692. $h = curl_exec($ch);
  693. $link=unpack_DivXBrowserPlugin(2,$h);
  694. } elseif (strpos($filelink, 'sharevideo22.com') !== false) {
  695. $string=$filelink;
  696. $ch = curl_init($string);
  697. curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);
  698. curl_setopt($ch, CURLOPT_REFERER, $string);
  699. curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL
  700. $h = curl_exec($ch);
  701. $id=str_between($h,'"id" value="','"');
  702. $fname=str_between($h,'"fname" value="','"');
  703. $rand=str_between($h,'name="rand" value="','"');
  704. $post="op=download2&id=".$id."&rand=".$rand."&referer=&method_free=&method_premium=&down_direct=1";
  705. sleep(2);
  706. curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);
  707. curl_setopt($ch, CURLOPT_REFERER, $string);
  708. curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL
  709. curl_setopt ($ch, CURLOPT_POST, 1);
  710. curl_setopt ($ch, CURLOPT_POSTFIELDS, $post);
  711. $h = curl_exec($ch);
  712. $link=unpack_DivXBrowserPlugin(2,$h);
  713. } elseif (strpos($filelink, 'dr9000.com') !== false) {
  714. $h=file_get_contents($filelink); //account suspend
  715. $link=str_between($h,'name="src" value="','"');
  716. } elseif (strpos($filelink, 'altervideo.net') !== false) {
  717. $string=$filelink;
  718. $ch = curl_init($string);
  719. curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);
  720. curl_setopt($ch, CURLOPT_REFERER, $string);
  721. curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL
  722. curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookies.txt');
  723. curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt');
  724. $h = curl_exec($ch);
  725. $id=str_between($h,'"id" value="','"');
  726. $fname=str_between($h,'"fname" value="','"');
  727. $rand=str_between($h,'name="rand" value="','"');
  728. $c=str_between($h,'type="hidden" value="','"');
  729. $post="c=".$c."&choice=Watch+Online";
  730. sleep(2);
  731. curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);
  732. curl_setopt($ch, CURLOPT_REFERER, $string);
  733. curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL
  734. curl_setopt ($ch, CURLOPT_POST, 1);
  735. curl_setopt ($ch, CURLOPT_POSTFIELDS, $post);
  736. $h = curl_exec($ch);
  737. $link=unpack_DivXBrowserPlugin(1,$h);
  738. } elseif (strpos($filelink, 'royalvids.eu') !== false) {
  739. $h=file_get_contents($filelink);
  740. $link=str_between($h,'"flashvars" value="file=','&');
  741. } elseif (strpos($filelink,'skyload.net') !== false) {
  742. //http://skyload.net/File/11f90e69ce45ef43e55650a871ae85df.flv
  743. //http://www.skyload.net/File/335c00e46e57e17ef690de605239c9dd.avi
  744. $h=file_get_contents($filelink);
  745. $link=str_between($h,"addVariable('file','","'");
  746. if ($link=="") {
  747. $link=str_between($h,"param name='src' value='","'");
  748. }
  749. } elseif (strpos($filelink,'rapidvideo.com') !==false) {
  750. //http://rapidvideo.com/view/tl9gewcl
  751. $h=file_get_contents($filelink);
  752. $link=str_between($h,"addVariable('file','","'");
  753. } elseif (strpos($filelink, 'uploadc.com') !== false) {
  754. //http://www.uploadc.com/a2baprw26l3m/np-prophezeiung-xvid.avi.htm
  755. $link=uploadc($filelink);
  756. } elseif (strpos($filelink, 'uploadville.com') !== false) {
  757. //http://uploadville.com/z5g2on7obv7j
  758. $link=uploadville($filelink);
  759. } elseif (strpos($filelink, 'zurvid.com') !== false) {
  760. //http://www.zurvid.com/embed.php?id=635
  761. $h=file_get_contents($filelink);
  762. $link=str_between($h,"file=","&");
  763. } elseif (strpos($filelink, 'flashx.tv') !== false) {
  764. //http://flashx.tv/player/embed_player.php?vid=1394
  765. //http://flashx.tv/player/embed_player.php?vid=2174&
  766. //http://flashx.tv/player/embed_player.php?vid=DOUB43487X33
  767. //http://flashx.tv/video/DOUB43487X33/xf-captiva
  768. //http://flashx.tv/video/D1OY7UBGNW4B/gefaehrtndvdscr-pwnd
  769. //http://flashx.tv/player/embed_player.php?vid=6724&width=661&height=400&autoplay=no
  770. //http://flashx.tv/fxplayer/fxtv.php?hash=D1OY7UBGNW4B&width=661&height=400&autoplay=yes
  771. if (strpos($filelink,"player.php") === false) {
  772. $a1=explode("/",$filelink);
  773. $id=$a1[4];
  774. } else {
  775. $h=file_get_contents($filelink);
  776. $id = str_between($h,"hash=","&");
  777. }
  778. $filelink="http://flashx.tv/fxplayer/fxtv.php?hash=".$id."&width=661&height=400&autoplay=yes";
  779. $h=file_get_contents($filelink);
  780. if (strpos($h,"href") === false) {
  781. $new_file="D://dolce.gz";
  782. $new_file="/tmp/dolce.gz";
  783. exec ("rm -f /tmp/dolce");
  784. $fh = fopen($new_file, 'w');
  785. fwrite($fh, $h);
  786. fclose($fh);
  787. exec("/usr/local/etc/www/cgi-bin/scripts/funzip /tmp/dolce.gz > /tmp/dolce");
  788. sleep(1);
  789. $h=file_get_contents("/tmp/dolce");
  790. }
  791. $link=str_between($h,'href="','"');
  792. } elseif (strpos($filelink, 'sharefiles4u.com') !== false) {
  793. //http://www.sharefiles4u.com/cwfqw29ylesp/nrx-ausgewechselt.avi
  794. //http://stage666.net/cgi-bin/dl.cgi/kylgrtsmovb2rbldug23w3o45jkdpr23gv4cxbsdjq/video.avi
  795. $string = $filelink;
  796. $ch = curl_init($string);
  797. curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);
  798. curl_setopt($ch, CURLOPT_REFERER, $string);
  799. curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL
  800. $h = curl_exec($ch);
  801. $id=str_between($h,'"id" value="','"');
  802. $fname=str_between($h,'"fname" value="','"');
  803. $reff=str_between($h,'referer" value="','"');
  804. //op=download1&usr_login=&id=qbk4ipxvxfir&fname=mortal-legende.schlange.avi&referer=http%3A%2F%2Fwww.movie2k.to%2FDie-Legende-der-weissen-Schlange-online-film-1236209.html&method_free=Free+Download
  805. $post="op=download1&usr_login=&id=".$id."&fname=".$fname."&referer=".urlencode($reff)."&method_free=Free+Download";
  806. curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);
  807. curl_setopt($ch, CURLOPT_REFERER, $string);
  808. curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL
  809. curl_setopt ($ch, CURLOPT_POST, 1);
  810. curl_setopt ($ch, CURLOPT_POSTFIELDS, $post);
  811. $h = curl_exec($ch);
  812. $link=unpack_DivXBrowserPlugin(2,$h);
  813. } elseif (strpos($filelink, 'ovfile.com') !== false) {
  814. $h = file_get_contents($filelink);
  815. $link=get_unpack4(2,12,5,$h);
  816. if (strpos($link,"http") === false) {
  817. $link=unpack_DivXBrowserPlugin(2,$h);
  818. }
  819. } elseif (strpos($filelink, 'filebox.com') !==false) {
  820. //http://www.filebox.com/embed-mxw6nxj1blfs-970x543.html
  821. //http://www.filebox.com/mxw6nxj1blfs
  822. if (strpos($filelink,"embed") === false) {
  823. $id=substr(strrchr($filelink,"/"),1);
  824. $filelink="http://www.filebox.com/embed-".$id."-970x543.html";
  825. }
  826. $h=file_get_contents($filelink);
  827. $link=str_between($h,"{url: '","'");
  828. } elseif (strpos($filelink,"glumbouploads.com") !== false) {
  829. $h=file_get_contents($filelink);
  830. $id=str_between($h,'"id" value="','"');
  831. $fname=str_between($h,'"fname" value="','"');
  832. $referer=str_between($h,'"referer" value="','"');
  833. $post="op=download1&usr_login=&id=".$id."&fname".$fname."&referer=".urlencode($referer)."&method_free=Slow+Download";
  834. $ch = curl_init();
  835. curl_setopt($ch, CURLOPT_URL, $filelink);
  836. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  837. curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 GTB5');
  838. //curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Linux; U; Android 0.5; en-us) AppleWebKit/522+ (KHTML, like Gecko) Safari/419.3');
  839. curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);
  840. curl_setopt ($ch, CURLOPT_POST, 1);
  841. curl_setopt ($ch, CURLOPT_POSTFIELDS, $post);
  842. $h = curl_exec($ch);
  843. curl_close($ch);
  844. $link=unpack_DivXBrowserPlugin(2,$h);
  845. } elseif (strpos($filelink, 'ginbig.com') !==false) {
  846. //http://ginbig.com/dxzttydrg36s.html
  847. $string = $filelink;
  848. $ch = curl_init($string);
  849. curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);
  850. curl_setopt($ch, CURLOPT_REFERER, $string);
  851. curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL
  852. $h = curl_exec($ch);
  853. $id=str_between($h,'"id" value="','"');
  854. $fname=str_between($h,'"fname" value="','"');
  855. $reff=str_between($h,'referer" value="','"');
  856. $post="op=download1&usr_login=&id=".$id."&fname=".$fname."&referer=".urlencode($reff)."&method_free=Free+Download";
  857. //op=download1&usr_login=&id=dxzttydrg36s&fname=nedivx-extremlyloud-a.avi.mp4&referer=http%3A%2F%2Fwww.movie2k.to%2FExtremely-Loud-Incredibly-Close-watch-movie-1235291.html&method_free=Free+Download
  858. curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);
  859. curl_setopt($ch, CURLOPT_REFERER, $string);
  860. curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL
  861. curl_setopt ($ch, CURLOPT_POST, 1);
  862. curl_setopt ($ch, CURLOPT_POSTFIELDS, $post);
  863. $h = curl_exec($ch);
  864. $link=unpack_DivXBrowserPlugin(2,$h);
  865. } elseif (strpos($filelink,"divxbase.com") !==false) {
  866. //http://www.divxbase.com/7oesw7h5u80r
  867. $h=file_get_contents($filelink);
  868. $link=unpack_DivXBrowserPlugin(2,$h);
  869. } elseif (strpos($filelink,"allmyvideos.net") !==false) {
  870. //op=download1&usr_login=&id=klz15k85haa6&fname=Extremely+Loud+Incredibly+Close+2012+DVDSCR+AC3+READNFO+XViD+-+INSPiRAL.mp4&referer=http%3A%2F%2Fwww.movie2k.to%2FExtremely-Loud-Incredibly-Close-watch-movie-1204442.html&method_free=Watch+Now%21
  871. //http://allmyvideos.net/klz15k85haa6
  872. $string = $filelink;
  873. $ch = curl_init($string);
  874. curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);
  875. curl_setopt($ch, CURLOPT_REFERER, $string);
  876. curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL
  877. $h = curl_exec($ch);
  878. $id=str_between($h,'"id" value="','"');
  879. $fname=str_between($h,'"fname" value="','"');
  880. $reff=str_between($h,'referer" value="','"');
  881. $post="op=download1&usr_login=&id=".$id."&fname=".$fname."&referer=".urlencode($reff)."&method_free=Watch+Now%21";
  882. curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);
  883. curl_setopt($ch, CURLOPT_REFERER, $string);
  884. curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL
  885. curl_setopt ($ch, CURLOPT_POST, 1);
  886. curl_setopt ($ch, CURLOPT_POSTFIELDS, $post);
  887. $h = curl_exec($ch);
  888. $link=unpack_DivXBrowserPlugin(2,$h);
  889. } elseif (strpos($filelink,"gorillavid.in") !==false) {
  890. //op=download1&usr_login=&id=apthqam53xtu&fname=Extremely+Loud+And+Incredibly+Close+%282012%29+DVDSCR+XviD+BBnRG.avi&referer=http%3A%2F%2Fwww.movie2k.to%2FExtremely-Loud-Incredibly-Close-watch-movie-1209674.html&channel=&method_free=Free+Download
  891. //http://gorillavid.in/apthqam53xtu
  892. $string = $filelink;
  893. $ch = curl_init($string);
  894. curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);
  895. curl_setopt($ch, CURLOPT_REFERER, $string);
  896. curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL
  897. $h = curl_exec($ch);
  898. $id=str_between($h,'"id" value="','"');
  899. $fname=str_between($h,'"fname" value="','"');
  900. $reff=str_between($h,'referer" value="','"');
  901. $post="op=download1&usr_login=&id=".$id."&fname=".$fname."&referer=".urlencode($reff)."&channel=&method_free=Free+Download";
  902. curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);
  903. curl_setopt($ch, CURLOPT_REFERER, $string);
  904. curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL
  905. curl_setopt ($ch, CURLOPT_POST, 1);
  906. curl_setopt ($ch, CURLOPT_POSTFIELDS, $post);
  907. $h = curl_exec($ch);
  908. $link=str_between($h,'file:"','"');
  909. } elseif (strpos($filelink,"streamcloud.eu") !==false) {
  910. //http://streamcloud.eu/jeg408oelwcw/xf-captiva.avi.html
  911. //op=download1&usr_login=&id=jeg408oelwcw&fname=xf-captiva.avi&referer=http%3A%2F%2Fwww.movie2k.to%2FVilla-Captive-online-film-1234383.html&hash=fx4bvg2nd5khvqjpot7h6ycltzfjppaf&imhuman=Weiter+zum+Video
  912. //op=download1&usr_login=&id=jeg408oelwcw&fname=xf-captiva.avi&referer=http%3A%2F%2Fstreamcloud.eu%2Fjeg408oelwcw%2Fxf-captiva.avi.html&hash=5whpmtswdlu27y4fvuypmj6os4w7oxmj&imhuman=Weiter+zum+Video
  913. $string = $filelink;
  914. $ch = curl_init($string);
  915. curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);
  916. curl_setopt($ch, CURLOPT_REFERER, $string);
  917. curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL
  918. $h = curl_exec($ch);
  919. $id=str_between($h,'"id" value="','"');
  920. $fname=str_between($h,'"fname" value="','"');
  921. $reff=str_between($h,'referer" value="','"');
  922. $hash=str_between($h,'hash" value="','"');
  923. $post="op=download1&usr_login=&id=".$id."&fname=".$fname."&referer=".urlencode($reff)."&hash=".$hash."&imhuman=Weiter+zum+Video";
  924. sleep(10);
  925. curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);
  926. curl_setopt($ch, CURLOPT_REFERER, $string);
  927. curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL
  928. curl_setopt ($ch, CURLOPT_POST, 1);
  929. curl_setopt ($ch, CURLOPT_POSTFIELDS, $post);
  930. $h = curl_exec($ch);
  931. $link=str_between($h,'file: "','"');
  932. } elseif (strpos($filelink,"zalaa.com") !==false) {
  933. //http://www.zalaa.com/4qkcjgb868wy
  934. //http://www.zalaa.com/o337wb48sc5t/gefaehrtn.dvdscr-pwnd.avi.htm
  935. //ipcount_val=10&op=download2&usr_login=&id=4qkcjgb868wy&fname=Made.In.Romania.2010.DVDRIP.XviD-QP.flv&referer=www.movie2k.to%2FMade-in-Romania-watch-movie-1235493.html&method_free=Slow+access
  936. $string = $filelink;
  937. $ch = curl_init($string);
  938. curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);
  939. curl_setopt($ch, CURLOPT_REFERER, $string);
  940. curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL
  941. $h = curl_exec($ch);
  942. $id=str_between($h,'"id" value="','"');
  943. $fname=str_between($h,'"fname" value="','"');
  944. $reff=str_between($h,'referer" value="','"');
  945. $ipcount_val=str_between($h,'ipcount_val" value="','"');
  946. $post="ipcount_val=".$ipcount_val."&op=download2&usr_login=&id=".$id."&fname=".$fname."&referer=".urlencode($reff)."&method_free=Slow+access";
  947. curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);
  948. curl_setopt($ch, CURLOPT_REFERER, $string);
  949. curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL
  950. curl_setopt ($ch, CURLOPT_POST, 1);
  951. curl_setopt ($ch, CURLOPT_POSTFIELDS, $post);
  952. $h = curl_exec($ch);
  953. $link=str_between($h,"file','","'");
  954. if ($link == "")
  955. $link=unpack_DivXBrowserPlugin(2,$h);
  956. } elseif (strpos($filelink,"vreer.com") !==false) {
  957. //http://vreer.com/q1kqxyhutswf
  958. //op=download1&usr_login=&id=q1kqxyhutswf&fname=_Dark.Tide.2012.HDRiP.AC3-5.1.XviD-SiC.avi&referer=http%3A%2F%2Fwww.movie2k.to%2FDark-Tide-watch-movie-1235718.html&hash=iqjrsjrwkl5ie4h2w35cp7znbuemna3r&method_free=Free+Download
  959. //http://vreer.com/embed-uwh8s53ma7ae-728x481.html
  960. if (strpos($filelink,"embed") !==false) {
  961. $id=str_between($filelink,"embed-","-");
  962. $filelink= "http://vreer.com/".$id;
  963. }
  964. $string = $filelink;
  965. $ch = curl_init($string);
  966. curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);
  967. curl_setopt($ch, CURLOPT_REFERER, $string);
  968. curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL
  969. $h = curl_exec($ch);
  970. $id=str_between($h,'"id" value="','"');
  971. $fname=str_between($h,'"fname" value="','"');
  972. $reff=str_between($h,'referer" value="','"');
  973. $hash=str_between($h,'hash" value="','"');
  974. $post="op=download1&usr_login=&id=".$id."&fname=".$fname."&referer=".urlencode($reff)."&hash=".$hash."&method_free=Free+Download";
  975. sleep(10);
  976. curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);
  977. curl_setopt($ch, CURLOPT_REFERER, $string);
  978. curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL
  979. curl_setopt ($ch, CURLOPT_POST, 1);
  980. curl_setopt ($ch, CURLOPT_POSTFIELDS, $post);
  981. $h = curl_exec($ch);
  982. $link=str_between($h,'file: "','"');
  983. } elseif (strpos($filelink, 'zixshare.com') !==false) {
  984. //http://www.zixshare.com/files/Olsjbm1k1331045051.html
  985. $h=file_get_contents($filelink);
  986. $l=str_between($h,"goNewWin('","'");
  987. $h=file_get_contents($l);
  988. $t1=explode("clip: {",$h);
  989. $link=urldecode(str_between($t1[1],"url: '","'"));
  990. } elseif (strpos($filelink, 'veervid.com') !==false) {
  991. //http://www.veervid.com/video/756/d8e9bcf694bd.flv
  992. //http://www.veervid.com/video.php?file=d8e9bcf694bd.flv&position=0&bw=mid
  993. $id=substr(strrchr($filelink,"/"),1);
  994. $link="http://www.veervid.com/video.php?file=".$id;
  995. } elseif (strpos($filelink,"uploadboost.com") !==false) {
  996. //op=download1&usr_login=&id=u9bzgynmlbyb&fname=John.Carter.2012.CAM.XviD.HUN-BEOWULF.flv&referer=http%3A%2F%2Fwww.moovie.cc%2Fonline-filmek%2Fjohn-carte-online-2012&method_free=Free+Download
  997. //http://www.uploadboost.com/u9bzgynmlbyb/John.Carter.2012.CAM.XviD.HUN-BEOWULF.flv
  998. $string = $filelink;
  999. $ch = curl_init($string);
  1000. curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);
  1001. curl_setopt($ch, CURLOPT_REFERER, $string);
  1002. curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL
  1003. $h = curl_exec($ch);
  1004. $id=str_between($h,'"id" value="','"');
  1005. $fname=str_between($h,'"fname" value="','"');
  1006. $reff=str_between($h,'referer" value="','"');
  1007. $post="op=download1&usr_login=&id=".$id."&fname=".$fname."&referer=".urlencode($reff)."&method_free=Free+Download";
  1008. curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);
  1009. curl_setopt($ch, CURLOPT_REFERER, $string);
  1010. curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL
  1011. curl_setopt ($ch, CURLOPT_POST, 1);
  1012. curl_setopt ($ch, CURLOPT_POSTFIELDS, $post);
  1013. $h = curl_exec($ch);
  1014. $link=unpack_DivXBrowserPlugin(1,$h);
  1015. } elseif (strpos($filelink,"ufliq.com") !==false) {
  1016. //http://www.ufliq.com/embed-021l07r13j3a.html#
  1017. $h=file_get_contents($filelink);
  1018. $link=str_between($h,"url: '","'");
  1019. } elseif (strpos($filelink,"muchshare.net") !==false) {
  1020. //http://muchshare.net/kmtllns0vdzk
  1021. //http://muchshare.net/embed-kmtllns0vdzk.html
  1022. if (strpos($filelink,"embed") === false) {
  1023. $t1=explode("/",$filelink);
  1024. $filelink = "http://muchshare.net/embed-".$t1[3].".html";
  1025. }
  1026. $h=file_get_contents($filelink);
  1027. $link=unpack_DivXBrowserPlugin(1,$h);
  1028. } elseif (strpos($filelink,'nowvideo.eu') !==false) {
  1029. //http://www.nowvideo.eu/video/t88lo38nphkhu
  1030. //http://embed.nowvideo.eu/embed.php?v=t88lo38nphkhu
  1031. $h = file_get_contents($filelink);
  1032. $f = str_between($h,'flashvars.file="','"');
  1033. $k = str_between($h,'flashvars.filekey="','"');
  1034. $l="http://www.nowvideo.eu/api/player.api.php?key=".urlencode($k)."&codes=1&pass=undefined&file=".$f."&user=undefined";
  1035. //$l=str_replace("&","&amp;",$l);
  1036. $h=file_get_contents($l);
  1037. $link=str_between($h,"url=","&");
  1038. }
  1039. print $link;
  1040. ?>