PageRenderTime 56ms CodeModel.GetById 31ms RepoModel.GetById 1ms app.codeStats 0ms

/scripts/feeds/scripts_vb6/scripts/filme/php/10starmovies_link.php

http://eboda-hd-for-all-500.googlecode.com/
PHP | 205 lines | 195 code | 3 blank | 7 comment | 9 complexity | 4373e5152ea0dc278cb31305bfe8c96f MD5 | raw file
Possible License(s): GPL-3.0, GPL-2.0
  1. <?php
  2. $query = $_GET["file"];
  3. $queryarr = explode(",",$query);
  4. $episodeLink = $queryarr[0];
  5. $serieTitle = urldecode($queryarr[1]);
  6. $pg = preg_replace('/[^A-Za-z0-9_]/','_',$serieTitle);
  7. ?>
  8. <?php echo "<?xml version='1.0' ?>"; ?>
  9. <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  10. <mediaDisplay name="threePartsView"
  11. itemBackgroundColor="0:0:0"
  12. backgroundColor="0:0:0"
  13. sideLeftWidthPC="0"
  14. itemImageXPC="5"
  15. itemXPC="20"
  16. itemYPC="20"
  17. itemWidthPC="65"
  18. capWidthPC="70"
  19. unFocusFontColor="101:101:101"
  20. focusFontColor="255:255:255"
  21. showHeader="no"
  22. showDefaultInfo="no"
  23. popupXPC = "40"
  24. popupYPC = "55"
  25. popupWidthPC = "22.3"
  26. popupHeightPC = "5.5"
  27. popupFontSize = "13"
  28. popupBorderColor="28:35:51"
  29. popupForegroundColor="255:255:255"
  30. popupBackgroundColor="28:35:51"
  31. idleImageWidthPC="10"
  32. idleImageHeightPC="10">
  33. <idleImage>image/POPUP_LOADING_01.png</idleImage>
  34. <idleImage>image/POPUP_LOADING_02.png</idleImage>
  35. <idleImage>image/POPUP_LOADING_03.png</idleImage>
  36. <idleImage>image/POPUP_LOADING_04.png</idleImage>
  37. <idleImage>image/POPUP_LOADING_05.png</idleImage>
  38. <idleImage>image/POPUP_LOADING_06.png</idleImage>
  39. <idleImage>image/POPUP_LOADING_07.png</idleImage>
  40. <idleImage>image/POPUP_LOADING_08.png</idleImage>
  41. <backgroundDisplay>
  42. <image offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100>
  43. image/mele/backgd.jpg
  44. </image>
  45. </backgroundDisplay>
  46. <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="18" fontSize="24" backgroundColor="10:105:150" foregroundColor="100:200:255">
  47. <script>getPageInfo("pageTitle");</script>
  48. </text>
  49. <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255">
  50. Apasati 2 pentru download
  51. </text>
  52. <onUserInput>
  53. userInput = currentUserInput();
  54. if( userInput == "two")
  55. {
  56. topUrl = "http://127.0.0.1:82/scripts/util/download.cgi?link=" + getItemInfo(getFocusItemIndex(),"download") + ";name=" + getItemInfo(getFocusItemIndex(),"name");
  57. dlok = loadXMLFile(topUrl);
  58. }
  59. </onUserInput>
  60. </mediaDisplay>
  61. <destination>
  62. <link>http://127.0.0.1:82/scripts/util/level.php
  63. </link>
  64. </destination>
  65. <channel>
  66. <?php
  67. echo "<title>".$serieTitle."</title>"
  68. ;
  69. function str_between($string, $start, $end){
  70. $string = " ".$string; $ini = strpos($string,$start);
  71. if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini;
  72. return substr($string,$ini,$len);
  73. }
  74. $host = "http://127.0.0.1:82";
  75. $baseurl = "http://127.0.0.1:83/cgi-bin/translate?stream,Content-type:video/x-flv,";
  76. $content = file_get_contents($episodeLink);
  77. $newlines = array("\t","\n","\r","\x20\x20","\0","\x0B");
  78. $input = str_replace($newlines, "", $content);
  79. //http://www.watch-24-online-free.com/play_source.php?id=200703026
  80. $videos = explode("javascript:load_source_new(",$input);
  81. preg_match("/<h5>Available Sources<\/h5>(.*)<\/div>/U", $input, $div);
  82. $videos = explode("javascript:load_source_new(",$div[1]);
  83. unset($videos[0]);
  84. $videos = array_values($videos);
  85. foreach($videos as $video) {
  86. $t1=explode(",",$video);
  87. $id=$t1[0];
  88. //echo substr($episodeLink,0,strrpos($episodeLink,"/"))."/play_source.php?id=".$id."<br>";
  89. if (strpos($video,"loombo") !==false) {
  90. $source="lombo";
  91. //echo strlen("abqslstdykqarkrf7ujlfpasyigtt5agpljbqqp4lchte3xey6lpcfls");
  92. $html = file_get_contents(substr($episodeLink,0,strrpos($episodeLink,"/")) . "/play_source.php?id=".$id);
  93. $t1=explode('href="',$html);
  94. $t2=explode('"',$t1[1]);
  95. $link=$t2[0];
  96. $embed=substr(strrchr($link,"/"),1);
  97. $link = "http://loombo.com/embed-".$embed."-640x318.html";
  98. $h = file_get_contents($link);
  99. $h = str_between($h,"eval(function","</script>");
  100. $a = explode("|",$h);
  101. for ($i=1;$i<60;$i++) {
  102. if ((strlen($a[$i]) >= 50) && (strpos($a[$i],"_") === false)) {
  103. $hash = $a[$i];
  104. break;
  105. }
  106. }
  107. if ($hash <> "") {
  108. $link="http://82.199.140.10:182/d/".$hash."/video.avi";
  109. $link1=$baseurl.$link;
  110. echo '
  111. <item>
  112. <title>loombo link</title>
  113. <name>'.$pg.'.avi</name>
  114. <download>'.$link.'</download>
  115. <link>'.$link1.'</link>
  116. <enclosure type="video/flv" url="'.$link1.'"/>
  117. </item>
  118. ';
  119. }
  120. //http://loombo.com/soa2808si1qs
  121. //http://loombo.com/embed-soa2808si1qs-640x318.html
  122. //http://82.199.140.10:182/d/abqslstdykqarkrf7ujlfpasyigtt5agpljbqqp4lchte3xey6lpcfls/video.avi
  123. } elseif (strpos($video,"megavideo") !==false) {
  124. $source="megavideo";
  125. $html = file_get_contents(substr($episodeLink,0,strrpos($episodeLink,"/")) . "/play_source.php?id=".$id);
  126. $t1=explode('href="',$html);
  127. $t2=explode('"',$t1[1]);
  128. $megavideo_id=$t2[0];
  129. $t1=explode("v=",$megavideo_id);
  130. $mega_id=$t1[1];
  131. $link1 = "http://127.0.0.1:82/scripts/php1/mega.php?id=".$mega_id;
  132. echo '
  133. <item>
  134. <title>megavideo link-'.$mega_id.'-(click for links)</title>
  135. <link>'.$link1.'</link>
  136. </item>
  137. ';
  138. } elseif (strpos($video,"stagevu") !==false) {
  139. $source="stagevu";
  140. $html = file_get_contents(substr($episodeLink,0,strrpos($episodeLink,"/")) . "/play_source.php?id=".$id);
  141. $t1=explode('href="',$html);
  142. $t2=explode('"',$t1[1]);
  143. $h=$t2[0];
  144. $h=file_get_contents($h);
  145. $link = str_between($h,'param name="src" value="','"');
  146. $link1=$baseurl.$link;
  147. echo '
  148. <item>
  149. <title>stagevu link</title>
  150. <name>'.$pg.'.avi</name>
  151. <download>'.$link.'</download>
  152. <link>'.$link1.'</link>
  153. <enclosure type="video/flv" url="'.$link1.'"/>
  154. </item>
  155. ';
  156. } elseif (strpos($video,"zshare1") !==false) {
  157. $source="zshare";
  158. $html = file_get_contents(substr($episodeLink,0,strrpos($episodeLink,"/")) . "/play_source.php?id=".$id);
  159. $t1=explode('href="',$html);
  160. $t2=explode('"',$t1[1]);
  161. $h=$t2[0];
  162. $h=file_get_contents($h);
  163. $l=str_between($h,'<iframe src="','"');
  164. $h=file_get_contents($l);
  165. $link = str_between($h,'file: "','"');
  166. $link1=$baseurl.$link;
  167. echo '
  168. <item>
  169. <title>zshare link</title>
  170. <name>'.$pg.'.avi</name>
  171. <download>'.$link.'</download>
  172. <link>'.$link1.'</link>
  173. <enclosure type="video/flv" url="'.$link1.'"/>
  174. </item>
  175. ';
  176. }
  177. }
  178. // utils
  179. echo '
  180. <item>
  181. <title>Download Manager</title>
  182. <link>http://127.0.0.1:82/scripts/util/level.php</link>
  183. </item>
  184. ';
  185. $link = "http://127.0.0.1:82/scripts/util/util1.cgi";
  186. echo '
  187. <item>
  188. <title>Stop download</title>
  189. <link>'.$link.'</link>
  190. <enclosure type="text/txt" url="'.$link.'"/>
  191. </item>
  192. ';
  193. $link = "http://127.0.0.1:82/scripts/util/ren.php";
  194. echo '
  195. <item>
  196. <title>Redenumire fisiere descarcate</title>
  197. <link>'.$link.'</link>
  198. </item>
  199. ';
  200. ?>
  201. </channel>
  202. </rss>