PageRenderTime 139ms CodeModel.GetById 128ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 1ms

/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
  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
 55	if( userInput == "two")
 56	{
 57		topUrl = "http://127.0.0.1:82/scripts/util/download.cgi?link=" + getItemInfo(getFocusItemIndex(),"download") + ";name=" + getItemInfo(getFocusItemIndex(),"name");
 58		dlok = loadXMLFile(topUrl);
 59	}
 60
 61</onUserInput>
 62</mediaDisplay>
 63<destination>
 64	<link>http://127.0.0.1:82/scripts/util/level.php
 65	</link>
 66</destination>
 67<channel>
 68<?php
 69echo "<title>".$serieTitle."</title>"
 70;
 71function str_between($string, $start, $end){
 72	$string = " ".$string; $ini = strpos($string,$start);
 73	if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini;
 74	return substr($string,$ini,$len);
 75}
 76$host = "http://127.0.0.1:82";
 77$baseurl = "http://127.0.0.1:83/cgi-bin/translate?stream,Content-type:video/x-flv,";
 78$content = file_get_contents($episodeLink);
 79$newlines = array("\t","\n","\r","\x20\x20","\0","\x0B");
 80$input = str_replace($newlines, "", $content);
 81//http://www.watch-24-online-free.com/play_source.php?id=200703026
 82$videos = explode("javascript:load_source_new(",$input);
 83preg_match("/<h5>Available Sources<\/h5>(.*)<\/div>/U", $input, $div);
 84$videos = explode("javascript:load_source_new(",$div[1]);
 85unset($videos[0]);
 86$videos = array_values($videos);
 87foreach($videos as $video) {
 88  $t1=explode(",",$video);
 89  $id=$t1[0];
 90  //echo substr($episodeLink,0,strrpos($episodeLink,"/"))."/play_source.php?id=".$id."<br>";
 91  if (strpos($video,"loombo") !==false) {
 92    $source="lombo";
 93    //echo strlen("abqslstdykqarkrf7ujlfpasyigtt5agpljbqqp4lchte3xey6lpcfls");
 94    $html = file_get_contents(substr($episodeLink,0,strrpos($episodeLink,"/")) . "/play_source.php?id=".$id);
 95    $t1=explode('href="',$html);
 96    $t2=explode('"',$t1[1]);
 97    $link=$t2[0];
 98    $embed=substr(strrchr($link,"/"),1);
 99    $link = "http://loombo.com/embed-".$embed."-640x318.html";
100    $h = file_get_contents($link);
101    $h = str_between($h,"eval(function","</script>");
102    $a = explode("|",$h);
103    for ($i=1;$i<60;$i++) {
104      if ((strlen($a[$i]) >= 50) && (strpos($a[$i],"_") === false)) {
105           $hash = $a[$i];
106           break;
107      }
108    }
109    if ($hash <> "") {
110      $link="http://82.199.140.10:182/d/".$hash."/video.avi";
111      $link1=$baseurl.$link;
112     echo '
113     <item>
114     <title>loombo link</title>
115     <name>'.$pg.'.avi</name>
116     <download>'.$link.'</download>
117	 <link>'.$link1.'</link>
118     <enclosure type="video/flv" url="'.$link1.'"/>
119     </item>
120     ';
121    }
122    //http://loombo.com/soa2808si1qs
123    //http://loombo.com/embed-soa2808si1qs-640x318.html
124    //http://82.199.140.10:182/d/abqslstdykqarkrf7ujlfpasyigtt5agpljbqqp4lchte3xey6lpcfls/video.avi
125  } elseif (strpos($video,"megavideo") !==false) {
126    $source="megavideo";
127    $html = file_get_contents(substr($episodeLink,0,strrpos($episodeLink,"/")) . "/play_source.php?id=".$id);
128    $t1=explode('href="',$html);
129    $t2=explode('"',$t1[1]);
130    $megavideo_id=$t2[0];
131    $t1=explode("v=",$megavideo_id);
132    $mega_id=$t1[1];
133    $link1 = "http://127.0.0.1:82/scripts/php1/mega.php?id=".$mega_id;
134   	echo '
135    <item>
136   	<title>megavideo link-'.$mega_id.'-(click for links)</title>
137   	<link>'.$link1.'</link>
138   	</item>
139    ';
140  } elseif (strpos($video,"stagevu") !==false) {
141    $source="stagevu";
142    $html = file_get_contents(substr($episodeLink,0,strrpos($episodeLink,"/")) . "/play_source.php?id=".$id);
143    $t1=explode('href="',$html);
144    $t2=explode('"',$t1[1]);
145    $h=$t2[0];
146    $h=file_get_contents($h);
147    $link = str_between($h,'param name="src" value="','"');
148    $link1=$baseurl.$link;
149     echo '
150     <item>
151     <title>stagevu link</title>
152     <name>'.$pg.'.avi</name>
153     <download>'.$link.'</download>
154	 <link>'.$link1.'</link>
155     <enclosure type="video/flv" url="'.$link1.'"/>
156     </item>
157     ';
158  } elseif (strpos($video,"zshare1") !==false) {
159    $source="zshare";
160    $html = file_get_contents(substr($episodeLink,0,strrpos($episodeLink,"/")) . "/play_source.php?id=".$id);
161    $t1=explode('href="',$html);
162    $t2=explode('"',$t1[1]);
163    $h=$t2[0];
164    $h=file_get_contents($h);
165    $l=str_between($h,'<iframe src="','"');
166    $h=file_get_contents($l);
167    $link = str_between($h,'file: "','"');
168    $link1=$baseurl.$link;
169     echo '
170     <item>
171     <title>zshare link</title>
172     <name>'.$pg.'.avi</name>
173     <download>'.$link.'</download>
174	 <link>'.$link1.'</link>
175     <enclosure type="video/flv" url="'.$link1.'"/>
176     </item>
177     ';
178  }
179}
180// utils
181   echo '
182   <item>
183   <title>Download Manager</title>
184   <link>http://127.0.0.1:82/scripts/util/level.php</link>
185   </item>
186   ';
187    $link = "http://127.0.0.1:82/scripts/util/util1.cgi";
188  	echo '
189    <item>
190  	<title>Stop download</title>
191  	<link>'.$link.'</link>
192  	<enclosure type="text/txt" url="'.$link.'"/>
193  	</item>
194      ';
195   $link = "http://127.0.0.1:82/scripts/util/ren.php";
196   echo '
197   <item>
198   <title>Redenumire fisiere descarcate</title>
199   <link>'.$link.'</link>
200   </item>
201   ';
202?>
203</channel>
204</rss>
205