code
stringlengths
1
2.01M
repo_name
stringlengths
3
62
path
stringlengths
1
267
language
stringclasses
231 values
license
stringclasses
13 values
size
int64
1
2.01M
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="justify" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=61 offsetYPC=22.5 widthPC=25 heightPC=30> <script>print(img); img;</script> </image> <idleImage> image/POPUP_LOADING_01.png </idleImage> <idleImage> image/POPUP_LOADING_02.png </idleImage> <idleImage> image/POPUP_LOADING_03.png </idleImage> <idleImage> image/POPUP_LOADING_04.png </idleImage> <idleImage> image/POPUP_LOADING_05.png </idleImage> <idleImage> image/POPUP_LOADING_06.png </idleImage> <idleImage> image/POPUP_LOADING_07.png </idleImage> <idleImage> image/POPUP_LOADING_08.png </idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>themoviesbest.com</title> <menu>main menu</menu> <?php $host = "http://127.0.0.1/cgi-bin"; function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $page = $queryArr[0]; $search = $queryArr[1]; } //http://themoviesbest.com/category/uncategorized/ //http://themoviesbest.com/category/uncategorized/page/2/ if($page) { $html = file_get_contents($search."page/".$page."/"); } else { $page = 1; $html = file_get_contents($search); } if($page > 1) { ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page-1).","; if($search) { $url = $url.$search; } ?> <title>Previous Page</title> <link><?php echo $url;?></link> <annotation>Pagina anterioară</annotation> <image>image/left.jpg</image> <mediaDisplay name="threePartsView"/> </item> <?php } ?> <?php $videos = explode('id="post-', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { // link $v1 = explode('href="', $video); $v2 = explode('"', $v1[1]); $link = $v2[0]; // titlu $v1=explode('title="',$video); $v3 = explode('>',$v1[2]); $v4 = explode('<',$v3[1]); $titlu = $v4[0]; $titlu=preg_replace("/\&(.*);/","",$titlu); $titlu=str_replace("&#","",$titlu); // imagine $v1 = explode('src="', $video); $v2 = explode('"', $v1[1]); if (strpos($v2[0],"default-thumb.png") !==false){ $image = $v2[0]; } else { $v1=explode('src=',$video); $v2=explode("&",$v1[2]); $image="http://themoviesbest.com".$v2[0]; } // descriere $descriere=str_between($video,'</h3>','</div>'); $descriere = preg_replace("/(<\/?)(\w+)([^>]*>)/e","",$descriere); $descriere = str_replace("&nbsp;","",$descriere); $descriere = str_replace("<!--more-->","",$descriere); $descriere = str_replace("&#8230;","",$descriere); $descriere=trim($descriere); if ($descriere == "") { $descriere=$titlu; } else { $descriere = substr($descriere,0,300); $descriere = substr($descriere,0,-strlen(strrchr($descriere," ")))."..."; } if($link!="") { $link = $host."/scripts/filme/php/filme_link.php?".$link.",".urlencode($titlu); echo' <item> <title>'.$titlu.'</title> <link>'.$link.'</link> <annotation>'.$descriere.'</annotation> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page+1).","; if($search) { $url = $url.$search; } ?> <title>Next Page</title> <link><?php echo $url;?></link> <annotation>Pagina următoare</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/filme/php/themoviesbest.php
PHP
gpl3
7,267
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $page = $_GET["page"]; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text align="left" offsetXPC="6" offsetYPC="15" widthPC="100" heightPC="4" fontSize="16" backgroundColor="10:105:150" foregroundColor="100:200:255"> Press 2 for download, 3 for download manager </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="55" offsetYPC="22.5" widthPC="40" heightPC="5" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> Description </text> <text align="justify" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=27.5 widthPC=40 heightPC=40 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <text redraw="yes" align="center" offsetXPC="55" offsetYPC="70" widthPC="40" heightPC="5" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> Keywords </text> <text align="justify" redraw="yes" lines="3" fontSize=17 offsetXPC=55 offsetYPC=75 widthPC=40 heightPC=15 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(key); key;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(titlu); titlu;</script> </text> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { annotation = getItemInfo(idx, "annotation"); titlu = getItemInfo(idx, "title"); key = getItemInfo(idx, "keyword"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } if (userInput == "two" || userInput == "2") { showIdle(); url=getItemInfo(getFocusItemIndex(),"download"); movie=getUrl(url); cancelIdle(); topUrl = "http://127.0.0.1/cgi-bin/scripts/util/download.cgi?link=" + movie + ";name=" + getItemInfo(getFocusItemIndex(),"name"); dlok = loadXMLFile(topUrl); "true"; } if (userInput == "three" || userInput == "3") { jumpToLink("destination"); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <destination> <link>http://127.0.0.1/cgi-bin/scripts/util/level.php </link> </destination> <channel> <title>www.archive.org - Movies and Films</title> <menu>main menu</menu> <?php $link="http://www.archive.org/search.php?query=collection%3Amoviesandfilms&sort=-avg_rating%3B-num_reviews&page=".$page; //$html = file_get_contents($link); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $link); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 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'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); $html = curl_exec($ch); curl_close($ch); if($page > 1) { ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?page=".($page-1); ?> <title>Previous Page</title> <link><?php echo $url;?></link> <annotation>Previous Page</annotation> <image>image/left.jpg</image> <mediaDisplay name="threePartsView"/> </item> <?php } ?> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $host = "http://127.0.0.1/cgi-bin"; $image = "image/movies.png"; $html = file_get_contents($link); $videos = explode('<tr class="hitRow">', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1=explode('href="',$video); $t2=explode('"',$t1[1]); $link="http://www.archive.org".$t2[0]; $t3=explode(">",$t1[1]); $t4=explode("<",$t3[1]); $title=$t4[0]; $t1=explode("<br/>",$video); $t2=explode('Keywords:',$t1[1]); $description=$t2[0]; $description = preg_replace("/(<\/?)(\w+)([^>]*>)/e","",$description); $key=str_between($video,"Keywords:","Downloads:"); $key = preg_replace("/(<\/?)(\w+)([^>]*>)/e","",$key); $key=trim($key); if ($link <> "") { $link = $host.'/scripts/filme/php/archive_link.php?file='.$link; $name = preg_replace('/[^A-Za-z0-9_]/','_',$title).".mp4"; echo ' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); url="'.$link.'"; movie=getUrl(url); cancelIdle(); storagePath = getStoragePath("tmp"); storagePath_stream = storagePath + "stream.dat"; streamArray = null; streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, movie); streamArray = pushBackStringArray(streamArray, movie); streamArray = pushBackStringArray(streamArray, video/x-flv); streamArray = pushBackStringArray(streamArray, "'.$title.'"); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file:///usr/local/etc/www/cgi-bin/scripts/util/videoRenderer.rss"); </script> </onClick> <download>'.$link.'</download> <name>'.$name.'</name> <image>'.$image.'</image> <annotation>'.$description.'</annotation> <keyword>'.$key.'</keyword> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?page=".($page+1); ?> <title>Next Page</title> <link><?php echo $url;?></link> <annotation>Next Page</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/filme/php/archive.php
PHP
gpl3
9,209
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $query = $_GET["file"]; $queryArr = explode(',', $query); $link = $queryArr[0]; $tit = urldecode($queryArr[1]); $html = file_get_contents($link); ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="no" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="center" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=65 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=66 offsetYPC=22.5 widthPC=20 heightPC=35> <script>print(img); img;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "14"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title><?php echo $tit; ?></title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $host = "http://127.0.0.1/cgi-bin"; $n=1; $seasons = explode('<table style="width: auto;" border="0" cellspacing="0" cellpadding="15" align="center">',$html); unset($seasons[0]); $seasons = array_values($seasons); foreach($seasons as $season) { $t1=explode('src="',$season); $t2=explode('"',$t1[1]); $img=$t2[0]; $videos = explode('class="abc"', $season); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $link = $t2[0]; $t3 = explode('>', $t1[1]); $t4 = explode('<', $t3[1]); $title1 = trim($t4[0]); $title = $n.".".$title1; if (($link <> "") && ($title1 <> "")){ $down=$tit."-".$title; $link = "http://127.0.0.1/cgi-bin/scripts/filme/php/filme_link.php?".$link.",".urlencode($down); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <image>'.$img.'</image> <annotation>'.$title1.'</annotation> <media:thumbnail url="'.$img.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } $n++; } ?> ?> </channel> </rss>
1073s
trunk/filme/php/seriale_doi10.php
PHP
gpl3
5,750
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="center" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=22.5 widthPC=30 heightPC=25> /usr/local/etc/www/cgi-bin/scripts/filme/image/desene.png </image> <idleImage> image/POPUP_LOADING_01.png </idleImage> <idleImage> image/POPUP_LOADING_02.png </idleImage> <idleImage> image/POPUP_LOADING_03.png </idleImage> <idleImage> image/POPUP_LOADING_04.png </idleImage> <idleImage> image/POPUP_LOADING_05.png </idleImage> <idleImage> image/POPUP_LOADING_06.png </idleImage> <idleImage> image/POPUP_LOADING_07.png </idleImage> <idleImage> image/POPUP_LOADING_08.png </idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>desenele-copilariei.net</title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $host = "http://127.0.0.1/cgi-bin"; /** $title="Filme"; $link="http://desenele-copilariei.net/categorie/filme"; $link = $host.'/scripts/filme/php/desenele-copilariei.php?query=1,'.$link.",".urlencode($title); echo ' <item> <title>Filme</title> <link>'.$link.'</link> <annotation>Filme</annotation> <mediaDisplay name="threePartsView"/> </item> '; $title="Povesti"; $link="http://desenele-copilariei.net/categorie/povesti-audio-si-video"; $link = $host.'/scripts/filme/php/desenele-copilariei.php?query=1,'.$link.",".urlencode($title); echo ' <item> <title>Povesti</title> <link>'.$link.'</link> <annotation>Povesti audio si video</annotation> <mediaDisplay name="threePartsView"/> </item> '; **/ $html = file_get_contents("http://desenele-copilariei.net/"); $html=str_between($html,'<h2>Desene','</ul>'); $videos = explode('<li class="cat-item', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1=explode('href="',$video); $t2=explode('"',$t1[1]); $link=$t2[0]; $t3 = explode('>', $t1[1]); $t4 = explode('<', $t3[1]); $title = $t4[0]; $t1 = explode('title="', $video); $t2 = explode('"', $t1[1]); $data = trim($t2[0]); if (strpos($data,"View all posts") !== false) { $data=$title; } $data = preg_replace("/(<\/?)([^>]*>)/e","",$data); $data = str_replace("&nbsp;","",$data); if ($link <> "") { $link = $host.'/scripts/filme/php/desenele-copilariei_o.php?query=1,'.$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$data.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/desenele-copilariei_main_o.php
PHP
gpl3
6,303
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; ?> <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"> <onEnter> setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="photoView" fontSize="16" rowCount="7" columnCount="3" sideColorBottom="10:105:150" sideColorTop="10:105:150" itemYPC="25" itemXPC="5" itemGapXPC="1" itemGapYPC="1" rollItems="yes" drawItemText="yes" itemOffsetXPC="5" itemImageWidthPC="0.1" itemImageHeightPC="0.1" imageBorderPC="1.5" forceFocusOnItem="yes" itemCornerRounding="yes" sideTopHeightPC=20 bottomYPC=80 sliding=yes showHeader=no showDefaultInfo=no idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="85" widthPC="100" heightPC="10" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { annotation = getItemInfo(idx, "title"); } </script> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -21; if(idx &gt;= itemSize) idx = itemSize-1; } else { idx -= 21; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <channel> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $query = $_GET["file"]; if($query) { $queryArr = explode(',', $query); $link = $queryArr[0]; $tit = urldecode($queryArr[1]); } $tit= str_replace("\'","'",$tit); echo ' <title>'.$tit.'</title> '; $html = file_get_contents($link); /** $html1 = str_between($html,"ista episoadelor",'<div style="clear: both;">'); if ($html1 == "") { $html1 = str_between($html,'<div class="post-wrapper">','<div id="commentwrap">'); } **/ $html1 = str_between($html,'<span class="post-title">','<div style="clear: both;">'); $n=1; $seasons = explode('<table',$html1); unset($seasons[0]); $seasons = array_values($seasons); foreach($seasons as $season) { $img = str_between($season,'src="','"'); $img = str_replace(' ','%20',$img); $videos = explode('<a', $season); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $link = $t2[0]; $t1 = explode('">', $video); $t2 = explode('<', $t1[1]); $title1 = trim($t2[0]); $title = $n.".".$title1; $title2 =$tit."-".$n.".".$title1; if (($link <> "") && ($title1 <> "")){ $link = "http://127.0.0.1/cgi-bin/scripts/filme/php/serialepe_link.php?file=".$link.",".urlencode($title2); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <media:thumbnail url="'.$img.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } $n++; } ?> </channel> </rss>
1073s
trunk/filme/php/serialepe.php
PHP
gpl3
4,341
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="center" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=22.5 widthPC=30 heightPC=25> <script>print(img); img;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>www.seriale-filme.info</title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $host = "http://127.0.0.1/cgi-bin"; $html = file_get_contents("http://www.seriale-filme.info/tv-shows"); $videos = explode('<div class="post">', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1=explode('href="',$video); $t2=explode('"',$t1[1]); $link=$t2[0]; $t1 = explode('src="', $video); $t2 = explode('"', $t1[1]); $image = $t2[0]; $t1 = explode('"bookmark">', $video); $t2 = explode('<', $t1[1]); $title = trim($t2[0]); $title=str_replace("\'","'",$title); if ($link <> "") { $link = $host.'/scripts/filme/php/seriale-filme_info.php?file='.$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <image>'.$image.'</image> <annotation>'.$title.'</annotation> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/seriale-filme_info_main.php
PHP
gpl3
5,512
#!/usr/local/bin/Resource/www/cgi-bin/php <?php $query = $_GET["file"]; if($query) { $queryArr = explode(',', $query); $link = $queryArr[0]; $tit = urldecode($queryArr[1]); } $html = file_get_contents($link); $image = "http://www.990.ro/".str_between($html,"<img src='","'"); ?> <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="55" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="55" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text align="left" offsetXPC="6" offsetYPC="15" widthPC="50" heightPC="4" fontSize="16" backgroundColor="10:105:150" foregroundColor="100:200:255"> Apăsaţi 1 sau 2 pentru salt +- 100 </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> Folosiţi PREV şi NEXT ca PageUp şi PageDown </text> <image offsetXPC=71 offsetYPC=30 widthPC=20 heightPC=40><?php echo $image; ?></image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); majorContext = getPageInfo("majorContext"); print("*** majorContext=",majorContext); print("*** userInput=",userInput); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } else if(userInput == "one" || userInput == "1") { idx = Integer(getFocusItemIndex()); idx -= -100; if(idx &gt;= itemCount) idx = itemCount-1; print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } else if(userInput == "two" || userInput == "2") { idx = Integer(getFocusItemIndex()); idx -= 100; if(idx &lt; 0) idx = 0; print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title><?php echo $tit; ?></title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } //http://www.990.ro/seriale2-10140-10393-Hell-on-wheels--online-Pilot-download.html //http://www.990.ro/player-seriale-10140-10393-Hell-on-wheels--online-Pilot-.html $html = str_between($html,"<table border='0' cellpadding='0' cellspacing='0' width='100%'>","</table>"); $videos = explode("<tr>", $html); unset($videos[0]); $videos = array_values($videos); $n=0; foreach($videos as $video) { $t1 = explode("a href='", $video); $t2 = explode("'", $t1[1]); $link = $t2[0]; $t3 = explode(">",$t1[1]); $t4 = explode("<",$t3[1]); $title1 = $t4[0]; $link = str_replace("download","",$link); $link = str_replace("seriale2","player-seriale",$link); //$link = str_replace(",","*",$link); //http://www.990.ro/player-seriale-88-7216-Stargate-Atlantis-Poarta-stelara-Atlantis-online-Rising-.html //http://www.990.ro/player-seriale-redirect-serial.php?id=88&idul=7216&v=1 //http://www.990.ro/player-seriale-redirect-serial.php?id=88&idul=7217&v=1 //$link = ltrim($link,"player-seriale-"); $t1=explode("-",$link); $id=$t1[0]; $idul=$t1[1]; //$link="player-seriale-redirect-serial.php?id=".$id."@idul=".$idul."@v=1"; if ($id <> "") { $link = "http://www.990.ro/".$link; $title = str_between($video,"<td>","</td>")." - ".$title1; $titdown=$tit."-".$title; $titdown=str_replace(",","-",$titdown); $link = 'http://127.0.0.1/cgi-bin/scripts/filme/php/filme_link.php?'.urlencode($link).",".urlencode($titdown); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <media:thumbnail url="'.$image.'" /> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/990_seriale.php
PHP
gpl3
7,227
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="50" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="50" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=35 widthPC=30 heightPC=30> image/movies.png </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>www.filmelive.net - categorii</title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $html = file_get_contents("http://www.filmelive.net/"); $image = "image/movies.png"; echo ' <item> <title>Filme noi</title> <link>'.$host.'/scripts/filme/php/filmelive.php?query=,http://www.filmelive.net</link> <annotation>Filme noi</annotation> <mediaDisplay name="threePartsView"/> </item> '; $html=str_between($html,'<li class="current-cat">','</ul>'); $videos = explode('cat-item-', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $link = $t2[0]; $t1 = explode('title="', $video); $t2 = explode('>', $t1[1]); $t3 = explode('<',$t2[1]); $title = $t3[0]; if ($link <> "") { $link = $host."/scripts/filme/php/filmelive.php?query=,".$link; echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/filmelive_main.php
PHP
gpl3
5,560
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="50" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="50" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=35 widthPC=30 heightPC=30> image/movies.png </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>filmeonline.org - categorii</title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } echo ' <item> <title>Filme noi</title> <link>'.$host.'/scripts/filme/php/filmeonline.php?query=,http://www.filmeonline.org/</link> <annotation>Filme noi</annotation> <mediaDisplay name="threePartsView"/> </item> '; $host = "http://127.0.0.1/cgi-bin"; $html = file_get_contents("http://www.filmeonline.org/"); $html1=str_between($html,"Genuri de filme","</table>"); $videos = explode('<td', $html1); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="',$video); $t2 = explode('"',$t1[1]); $link = trim($t2[0])."/"; if (strpos($link,"http") === false) { $link="http://www.filmeonline.org".$link."/"; } $link = $host."/scripts/filme/php/filmeonline.php?query=,".$link; $t3 = explode(">",$t1[1]); $t4 = explode("<",$t3[1]); $title = trim($t4[0]); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } //=========================================================== $html=str_between($html,'Filme A-Z</a>','<div class="year">'); $videos = explode('<a', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="',$video); $t2 = explode('"',$t1[1]); $link = trim($t2[0])."/"; if (strpos($link,"http") === false) { $link="http://www.filmeonline.org".$link."/"; } $link = $host."/scripts/filme/php/filmeonline.php?query=,".$link; $t3 = explode(">",$t1[1]); $t4 = explode("<",$t3[1]); $title = "Filme incepand cu litera...".trim($t4[0]); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } ?> </channel> </rss>
1073s
trunk/filme/php/filmeonline_main.php
PHP
gpl3
6,315
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $link = $queryArr[0]; $tit = urldecode($queryArr[1]); $tit = str_replace("\\","",$tit); } $html = file_get_contents($link); $t1=explode('<div id="postcontent">',$html); $t2=explode('src="',$t1[1]); $t3=explode('"',$t2[1]); $image=$t3[0]; $t4=explode("<p>",$t1[1]); $t5=explode("</p>",$t4[1]); $descriere = $t5[0]; $descriere = preg_replace("/(<\/?)(\w+)([^>]*>)/e","",$descriere); $descriere = str_replace("&nbsp;","",$descriere); ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="25" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="25" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text align="left" offsetXPC="6" offsetYPC="15" widthPC="50" heightPC="4" fontSize="16" backgroundColor="10:105:150" foregroundColor="100:200:255"> Apăsaţi 1 sau 2 pentru salt +- 100 </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="justify" redraw="yes" lines="10" fontSize=17 offsetXPC=35 offsetYPC=55 widthPC=60 heightPC=45 backgroundColor=0:0:0 foregroundColor=200:200:200> <?php echo $descriere; ?> </text> <image redraw="yes" offsetXPC=51 offsetYPC=22.5 widthPC=25 heightPC=30> <?php echo $image; ?> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } else if(userInput == "one" || userInput == "1") { idx = Integer(getFocusItemIndex()); idx -= -100; if(idx &gt;= itemCount) idx = itemCount-1; print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } else if(userInput == "two" || userInput == "2") { idx = Integer(getFocusItemIndex()); idx -= 100; if(idx &lt; 0) idx = 0; print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title><?php echo $tit; ?></title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $html = str_between($html,'<div id="postcontent">','<h3>Ultimele episoade</h3>'); $videos = explode('<a href="', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $video=str_replace("<strong>","",$video); $video=str_replace("</strong>","",$video); // link $v1 = explode('"', $video); $link = $v1[0]; // titlu $v3 = explode('>',$v1[1]); $v4 = explode('<',$v3[1]); $titlu = trim($v4[0]); if(($titlu <> "") && (strpos($link,"episodul") !==false)) { $link = "http://127.0.0.1/cgi-bin/scripts/filme/php/filme_link.php?".$link.",".urlencode($title); echo' <item> <title>'.$titlu.'</title> <link>'.$link.'</link> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/serialulmeu.php
PHP
gpl3
6,645
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="justify" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=61 offsetYPC=22.5 widthPC=25 heightPC=30> <script>print(img); img;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "14"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>xvidonline.org</title> <menu>main menu</menu> <?php $host = "http://127.0.0.1/cgi-bin"; function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $page = $_GET["query"]; //http://xvidonline.org/page/2/ if($page) { $html = file_get_contents("http://xvidonline.org/page/".$page."/"); } else { $page = 1; $html = file_get_contents("http://xvidonline.org/"); } if($page > 1) { ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page-1); ?> <title>Previous Page</title> <link><?php echo $url;?></link> <annotation>Pagina anterioară</annotation> <image>image/left.jpg</image> <mediaDisplay name="threePartsView"/> </item> <?php } ?> <?php $videos = explode('div class="oneblog_titlearea"', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { // link $v1 = explode('href="', $video); $v2 = explode('"', $v1[1]); $link = $v2[0]; // titlu $v3 = explode('>',$v1[1]); $v4 = explode('<',$v3[1]); $titlu = $v4[0]; // imagine $v1 = explode('src="', $video); $v2 = explode('"', $v1[1]); $image = $v2[0]; // descriere $v1 = explode('<p>', $video); $v2 = explode('</p>', $v1[1]); $descriere = $v2[0]; $descriere = preg_replace("/(<\/?)(\w+)([^>]*>)/e","",$descriere); $descriere = str_replace("&nbsp;","",$descriere); if (strlen($descriere)>=300) { $descriere = substr($descriere,0,300); $descriere = substr($descriere,0,-strlen(strrchr($descriere," ")))."..."; } if($link!="") { $link = "http://127.0.0.1/cgi-bin/scripts/filme/php/filme_link.php?".$link.",".urlencode($titlu); echo' <item> <title>'.$titlu.'</title> <link>'.$link.'</link> <annotation>'.$descriere.'</annotation> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page+1); ?> <title>Next Page</title> <link><?php echo $url;?></link> <annotation>Pagina următoare</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/filme/php/xvidonline.php
PHP
gpl3
6,656
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="justify" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=66 offsetYPC=22.5 widthPC=15 heightPC=30> <script>print(img); img;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>www.filmelive.net</title> <menu>main menu</menu> <?php $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $page = $queryArr[0]; $search = $queryArr[1]; } //http://www.filmelive.net/page/3 if($page) { $html = file_get_contents($search."/page/".$page.""); } else { $page = 1; $html = file_get_contents($search."/"); } if($page > 1) { ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page-1).","; if($search) { $url = $url.$search; } ?> <title>Previous Page</title> <link><?php echo $url;?></link> <annotation>Pagina anterioară</annotation> <image>image/left.jpg</image> <mediaDisplay name="threePartsView"/> </item> <?php } ?> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $image = "image/movies.png"; $videos = explode('class="oneblog"', $html); //class="oneblog" unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); //$t3 = explode('=',$t2[0]); $link = $t2[0]; $t3 = explode('src="', $video); $t4 = explode('"', $t3[1]); $image = $t4[0]; //$t1 = explode('title="', $video); //$t2 = explode('"', $t1[1]); $t3 = explode(">",$t1[1]); $t4 = explode("<",$t3[1]); $title = $t4[0]; $title=str_replace("online","",$title); $title=str_replace("subtitrat","",$title); $title=str_replace("gratis","",$title); $title=str_replace("-","",$title); $title=trim($title); $title=preg_replace("/onlin(.*)|sub(.*)|seri(.*)|film(\w+)|noi/si","",$title); $title=trim(str_replace("&nbsp;","",$title)); // descriere $v1 = explode('<p>', $video); $v2 = explode('</p>', $v1[1]); $descriere = $v2[0]; $descriere = preg_replace("/(<\/?)(\w+)([^>]*>)/e","",$descriere); $descriere = str_replace("<","",$descriere); if ($link <> "") { $link = 'http://127.0.0.1/cgi-bin/scripts/filme/php/filme_link.php?'.$link.','.urlencode($title); echo' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$descriere.'</annotation> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page+1).","; if($search) { $url = $url.$search; } ?> <title>Next Page</title> <link><?php echo $url;?></link> <annotation>Pagina următoare</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/filme/php/filmelive.php
PHP
gpl3
7,026
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $query = $_GET["query"]; if($query) { $queryArr = explode('@', $query); $link = urldecode($queryArr[0]); $tit = urldecode($queryArr[1]); $tit=str_replace("\\'","'",$tit); } $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $link); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 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'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_REFERER, "http://www.kinox.to/"); curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt'); $html = curl_exec($ch); curl_close($ch); $descriere = str_between($html,'<div class="Descriptore">','</div>'); $descriere = preg_replace("/(<\/?)(\w+)([^>]*>)/e"," ",$descriere); $descriere = str_replace("&nbsp;","",$descriere); $t0=explode('<div class="Grahpics">',$html); $t1=explode('src="',$t0[1]); $t2=explode('?',$t1[1]); $image=$t2[0]; $imdb = ""; $durata=str_between($html,'<span class="Runtime">','</li>'); $durata = trim(preg_replace("/(<\/?)(\w+)([^>]*>)/e","",$durata)); $durata="Length: ".str_replace("&nbsp;","",$durata); $premiera = ""; $cat=str_between($html,'<span class="Genre">','</li>'); $cat = trim(preg_replace("/(<\/?)(\w+)([^>]*>)/e","",$cat)); $cat = str_replace("&nbsp;","",$cat); $regia=str_between($html,'<span class="Director">','</li>'); $regia ="Regie: ".trim(preg_replace("/(<\/?)(\w+)([^>]*>)/e"," ",$regia)); $actor=""; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="25" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="25" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text redraw="yes" align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <?php echo $tit; ?> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="left" offsetXPC="52" offsetYPC="22.5" widthPC="43" heightPC="5" fontSize="17" backgroundColor="0:0:0" foregroundColor="200:200:200"> <?php echo $cat; ?> </text> <text redraw="yes" align="left" offsetXPC="52" offsetYPC="28" widthPC="43" heightPC="5" fontSize="17" backgroundColor="0:0:0" foregroundColor="200:200:200"> <?php echo $regia; ?> </text> <text redraw="yes" align="left" offsetXPC="52" offsetYPC="33.5" widthPC="43" heightPC="5" fontSize="17" backgroundColor="0:0:0" foregroundColor="200:200:200"> <?php echo $actor; ?> </text> <text redraw="yes" align="left" offsetXPC="52" offsetYPC="39" widthPC="43" heightPC="5" fontSize="17" backgroundColor="0:0:0" foregroundColor="200:200:200"> <?php echo $durata; ?> </text> <text redraw="yes" align="left" offsetXPC="52" offsetYPC="44.5" widthPC="43" heightPC="5" fontSize="17" backgroundColor="0:0:0" foregroundColor="200:200:200"> <?php echo $imdb; ?> </text> <text redraw="yes" align="left" offsetXPC="52" offsetYPC="50" widthPC="43" heightPC="5" fontSize="17" backgroundColor="0:0:0" foregroundColor="200:200:200"> <?php echo $premiera; ?> </text> <text align="justify" redraw="yes" lines="10" fontSize=17 offsetXPC=35 offsetYPC=57 widthPC=60 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <?php echo $descriere; ?> </text> <image redraw="yes" offsetXPC=35 offsetYPC=22.5 widthPC=15 heightPC=30> <?php echo $image; ?> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "14"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title><?php echo $tit; ?></title> <menu>main menu</menu> <?php echo ' <item> <title>Servers:</title> <mediaDisplay name="threePartsView"/> </item> '; $videos = explode('li id="Hoster', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1=explode('rel="',$video); $t2=explode('"',$t1[1]); $link="http://kinox.to/aGET/Mirror/".$t2[0]; $link=str_replace("&amp;","&",$link); $title=str_between($video,'<div class="Named">','</div>'); $link = 'http://127.0.0.1/cgi-bin/scripts/filme/php/kinox_link.php?file='.urlencode($link).'@'.urlencode($tit); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } ?> </channel> </rss>
1073s
trunk/filme/php/kinox.php
PHP
gpl3
7,914
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="justify" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=66 offsetYPC=22.5 widthPC=15 heightPC=30> <script>print(img); img;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>onlinemoca.ro</title> <menu>main menu</menu> <?php $host = "http://127.0.0.1/cgi-bin"; function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $page = $queryArr[0]; $search = $queryArr[1]; } //http://www.onlinemoca.com/page/2/ if($page) { $html = file_get_contents($search."page/".$page."/"); } else { $page = 1; $html = file_get_contents($search); } if($page > 1) { ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page-1).","; if($search) { $url = $url.$search; } ?> <title>Previous Page</title> <link><?php echo $url;?></link> <annotation>Pagina anterioară</annotation> <image>image/left.jpg</image> <mediaDisplay name="threePartsView"/> </item> <?php } ?> <?php $videos = explode('id="post-', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { // link $v1 = explode('href="', $video); $v2 = explode('"', $v1[1]); $link = $v2[0]; if (strpos($link,"link") !== false) { $l=explode("link=",$link); $link=$l[1]; } // titlu $v3 = explode('>',$v1[1]); $v4 = explode('<',$v3[1]); $titlu = $v4[0]; // imagine $v1 = explode('src="', $video); $v2 = explode('"', $v1[1]); $image = $v2[0]; // descriere $v1 = explode('<p>', $video); $v2 = explode('</p>', $v1[1]); $descriere = $v2[0]; $descriere = preg_replace("/(<\/?)(\w+)([^>]*>)/e","",$descriere); $descriere = str_replace("&nbsp;","",$descriere); if (strlen($descriere)>=300) { $descriere = substr($descriere,0,300); $descriere = substr($descriere,0,-strlen(strrchr($descriere," ")))."..."; } if($link!="") { //$link = "http://127.0.0.1/cgi-bin/scripts/filme/php/onlinemoca_link.php?file=".$link.",".urlencode($titlu); $link = "http://127.0.0.1/cgi-bin/scripts/filme/php/filme_link.php?".$link.",".urlencode($titlu); echo' <item> <title>'.$titlu.'</title> <link>'.$link.'</link> <annotation>'.$descriere.'</annotation> <image>'.$image.'</image> <media:thumbnail url="image/movies.png" /> <mediaDisplay name="threePartsView"/> </item> '; } } ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page+1).","; if($search) { $url = $url.$search; } ?> <title>Next Page</title> <link><?php echo $url;?></link> <annotation>Pagina următoare</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/filme/php/onlinemoca.php
PHP
gpl3
7,005
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text align="left" offsetXPC="6" offsetYPC="15" widthPC="100" heightPC="4" fontSize="16" backgroundColor="10:105:150" foregroundColor="100:200:255"> Apăsaţi 2 pentru download, 3 pentru Download Manager </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="center" redraw="yes" lines="8" fontSize=17 offsetXPC=55 offsetYPC=58 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <text redraw="yes" align="center" offsetXPC="60" offsetYPC="52" widthPC="30" heightPC="5" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(durata); durata;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=25 widthPC=30 heightPC=25> <script>print(img); img;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { durata = getItemInfo(idx, "durata"); annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); ret="true"; } if (userInput == "two" || userInput == "2") { showIdle(); url="<?php echo $host; ?>" + "/scripts/filme/php/jurnaltv_link.php?file=" + getItemInfo(getFocusItemIndex(),"download"); movie=getUrl(url); cancelIdle(); topUrl = "http://127.0.0.1/cgi-bin/scripts/util/download.cgi?link=" + movie + ";name=" + getItemInfo(getFocusItemIndex(),"name"); dlok = loadXMLFile(topUrl); ret="true"; } if (userInput == "three" || userInput == "3") { jumpToLink("destination"); ret="true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <destination> <link>http://127.0.0.1/cgi-bin/scripts/util/level.php </link> </destination> <channel> <?php $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $page = $queryArr[0]; $search = $queryArr[1]; $tit=urldecode($queryArr[2]); } echo "<title>".$tit."</title>"; $link = $search."/page".$page; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $link); curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $html = curl_exec($ch); curl_close($ch); if($page > 1) { ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page-1).","; if($search) { $url = $url.$search.",".urlencode($tit); } ?> <title>Previous Page</title> <link><?php echo $url;?></link> <annotation>Pagina anterioară</annotation> <image>image/left.jpg</image> <mediaDisplay name="threePartsView"/> </item> <?php } ?> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $videos = explode('table cellpadding=0 cellspacing=0 border=0 width="126"', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[2]); $link = $t2[0]; $t1 = explode('src="', $video); $t2 = explode('"', $t1[1]); $image = $t2[0]; $title = str_between($video,'<span class="mvtitle">','</span>'); $descriere = str_between($video,'<td class="vdescr">','</td>'); $durata = str_between($video,'<td class="normal">','</td>'); $name = preg_replace('/[^A-Za-z0-9_]/','_',$title).".flv"; echo ' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); url="'.$host.'/scripts/filme/php/jurnaltv_link.php?file='.$link.'"; movie=getUrl(url); cancelIdle(); playItemUrl(movie,10); </script> </onClick> <download>'.$link.'</download> <name>'.$name.'</name> <annotation>'.$descriere.'</annotation> <durata>'.$durata.'</durata> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> </item> '; } ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page+1).","; if($search) { $url = $url.$search.",".urlencode($tit); } ?> <title>Next Page</title> <link><?php echo $url;?></link> <annotation>Pagina următoare</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/filme/php/jurnaltv.php
PHP
gpl3
7,910
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="center" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=65 offsetYPC=22.5 widthPC=20 heightPC=20> <script>print(img); img;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>mega-stream.to</title> <menu>main menu</menu> <?php $link="http://www.mega-stream.to/index.php?DownAction=last"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $link); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 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'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookies.txt'); curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt'); $html = curl_exec($ch); curl_close($ch); function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $videos = explode('href="?DownAction', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('"', $video); $link = "http://www.mega-stream.to/index.php?DownAction".$t1[0]; $t3 = explode(">",$t1[1]); $t4 = explode("<",$t3[1]); $title = trim($t4[0]); $t1=explode("<td>",$video); $t2=explode("<",$t1[3]); $data=$t2[0]; $t2=explode('src="',$t1[4]); $t3=explode('"',$t2[1]); $image="http://www.mega-stream.to/".$t3[0]; $link = 'http://127.0.0.1/cgi-bin/scripts/filme/php/mega-stream1.php?file='.urlencode($link).",".urlencode($title); echo ' <item> <link>'.$link.'</link> <title>'.$title.'</title> <annotation>'.$data.'</annotation> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item>'; } ?> </channel> </rss>
1073s
trunk/filme/php/mega-stream.php
PHP
gpl3
5,991
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="50" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="50" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <!--<image offsetXPC=5 offsetYPC=2 widthPC=20 heightPC=16> <script>channelImage;</script> </image>--> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=35 widthPC=30 heightPC=30> <script>channelImage;</script> </image> <idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_01.png </idleImage> <idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_02.png </idleImage> <idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_03.png </idleImage> <idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_04.png </idleImage> <idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_05.png </idleImage> <idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_06.png </idleImage> <idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_07.png </idleImage> <idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_08.png </idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "title"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageWidthPC="10" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <script> channelImage = "image/movies.png"; </script> <channel> <title>serialulmeu.ro - episoade noi</title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $html = file_get_contents("http://www.serialulmeu.ro/"); $html = str_between($html,"<h3>Ultimele episoade</h3>","</ul>"); $videos = explode('<li', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $link = $t2[0]; $t1 = explode('title="',$video); $t2 = explode('"',$t1[1]); $title = $t2[0]; $link = "http://127.0.0.1/cgi-bin/scripts/filme/php/filme_link.php?".$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <annotation>'.$title.'</annotation> <link>'.$link.'</link> <media:thumbnail url="image/movies.png" /> </item> '; } ?> </channel> </rss>
1073s
trunk/filme/php/serialulmeu_noi.php
PHP
gpl3
5,625
#!/usr/local/bin/Resource/www/cgi-bin/php <?php $link = $_GET["file"]; $html = file_get_contents($link); $videos = explode('download', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1=explode('"',$video); $link1="http://www.archive.org/download".$t1[0]; $rest = substr($link1, -3); if ($rest=="mp4") break; } if ($link== "") { foreach($videos as $video) { $t1=explode('"',$video); $link1="http://www.archive.org/download".$t1[0]; $rest = substr($link1, -3); if ($rest=="avi") break; } } if ($link== "") { foreach($videos as $video) { $t1=explode('"',$video); $link1="http://www.archive.org/download".$t1[0]; $rest = substr($link1, -3); if ($rest=="mkv") break; } } if ($link== "") { foreach($videos as $video) { $t1=explode('"',$video); $link1="http://www.archive.org/download".$t1[0]; $rest = substr($link1, -3); if ($rest=="MP4") break; } } print $link1; ?>
1073s
trunk/filme/php/archive_link.php
PHP
gpl3
936
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="50" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="50" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=35 widthPC=30 heightPC=30> image/movies.png </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>watchcartoononline.com</title> <menu>main menu</menu> <?php $title="Dubbed anime"; $link="http://www.watchcartoononline.com/dubbed-anime-list"; $link = $host."/scripts/filme/php/watchcartoononline_main.php?query=".$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; $title="Cartoon"; $link="http://www.watchcartoononline.com/cartoon-list"; $link = $host."/scripts/filme/php/watchcartoononline_main.php?query=".$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; $title="Subbed anime"; $link="http://www.watchcartoononline.com/subbed-anime-list"; $link = $host."/scripts/filme/php/watchcartoononline_main.php?query=".$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; ?> </channel> </rss>
1073s
trunk/filme/php/watchcartoononline_main1.php
PHP
gpl3
5,368
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="40" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="40" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <image redraw="yes" offsetXPC=52 offsetYPC=25 widthPC=20 heightPC=40> <script>print(img); img;</script> </image> <text redraw="yes" align="left" offsetXPC="52" offsetYPC="70" widthPC="43" heightPC="5" fontSize="17" backgroundColor="0:0:0" foregroundColor="200:200:200"> <script>print(premiera); premiera;</script> </text> <text redraw="yes" align="left" offsetXPC="52" offsetYPC="75" widthPC="43" heightPC="5" fontSize="17" backgroundColor="0:0:0" foregroundColor="200:200:200"> <script>print(gen); gen;</script> </text> <text redraw="yes" align="left" offsetXPC="52" lines="2" offsetYPC="80" widthPC="43" heightPC="10" fontSize="17" backgroundColor="0:0:0" foregroundColor="200:200:200"> <script>print(actori); actori;</script> </text> <idleImage> image/POPUP_LOADING_01.png </idleImage> <idleImage> image/POPUP_LOADING_02.png </idleImage> <idleImage> image/POPUP_LOADING_03.png </idleImage> <idleImage> image/POPUP_LOADING_04.png </idleImage> <idleImage> image/POPUP_LOADING_05.png </idleImage> <idleImage> image/POPUP_LOADING_06.png </idleImage> <idleImage> image/POPUP_LOADING_07.png </idleImage> <idleImage> image/POPUP_LOADING_08.png </idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "title"); img = getItemInfo(idx,"image"); premiera = getItemInfo(idx,"premiera"); gen = getItemInfo(idx,"gen"); actori = getItemInfo(idx,"actori"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>westernmania.net</title> <menu>main menu</menu> <?php //http://www.westernmania.net $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $link = $_GET["file"]; if($link) { $link=urldecode($link); //http://www.westernmania.net/search?updated-max=2011-10-20T11%3A38%3A00%2B02%3A00&max-results=7 //http://www.westernmania.net/search?updated-max=2011-10-20T11:38:00+02:00&max-results=7 $p1=explode("?",$link); $part2=str_replace(":","%3A",$p1[1]); $part2=str_replace("+","%2B",$part2); $link=$p1[0]."?".$part2; $html = file_get_contents($link); $t1=explode("a class='blog-pager-newer-link",$html); $t2=explode("href='",$t1[1]); $t3=explode("'",$t2[1]); $prev_link=urlencode($t3[0]); $t1=explode("a class='blog-pager-older-link",$html); $t2=explode("href='",$t1[1]); $t3=explode("'",$t2[1]); $next_link=urlencode($t3[0]); $url=$sThisFile."?file=".$prev_link; if ($prev_link <> "") { echo ' <item> <title>Previous Page</title> <link>'.$url.'</link> <annotation>Pagina anterioară</annotation> <image>image/left.jpg</image> <mediaDisplay name="threePartsView"/> </item> '; } } else { $html = file_get_contents("http://www.westernmania.net"); $t1=explode("a class='blog-pager-older-link",$html); $t2=explode("href='",$t1[1]); $t3=explode("'",$t2[1]); $next_link=urlencode($t3[0]); } function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $videos = explode('post-title entry-title', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode("href='", $video); $t2 = explode("'", $t1[1]); $link_film = $t2[0]; $t3=explode(">",$t1[1]); $t4=explode("<",$t3[1]); $title=$t4[0]; $t1 = explode('src="', $video); $t2 = explode('"', $t1[1]); $image = $t2[0]; $t1=explode("Premiera",$video); $t2=explode("<",$t1[1]); $premiera = "Premiera:".$t2[0]; $t1=explode("Gen",$video); $t2=explode("<",$t1[1]); $gen="Gen:".$t2[0]; $t1=explode("Actori",$video); $t2=explode("<",$t1[1]); $actori="Actori:".$t2[0]; $link_film = 'http://127.0.0.1/cgi-bin/scripts/filme/php/filme_link.php?'.$link_film.','.urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link_film.'</link> <premiera>'.$premiera.'</premiera> <gen>'.$gen.'</gen>; <actori>'.$actori.'</actori> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } $url=$sThisFile."?file=".$next_link; echo ' <item> <title>Next Page</title> <link>'.$url.'</link> <annotation>Pagina următoare</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> '; ?> </channel> </rss>
1073s
trunk/filme/php/westernmania.php
PHP
gpl3
7,777
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $host = "http://127.0.0.1/cgi-bin"; $query = $_GET["file"]; if($query) { $queryArr = explode(',', $query); $link = urldecode($queryArr[0]); $pg_tit = urldecode($queryArr[1]); } $cookie="D://vplay_c.txt"; $cookie="/tmp/vplay_c.txt"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $link); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 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'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie); $html = curl_exec($ch); curl_close($ch); $t1=explode('<div class="coll_poster"',$html); $img=str_between($t1[1],"image:url(",")"); $description=str_between($t1[1],"<p>","</p>"); ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="20" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="20" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <!--<image offsetXPC=5 offsetYPC=2 widthPC=20 heightPC=16> <script>channelImage;</script> </image>--> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="left" redraw="yes" lines="12" fontSize=17 offsetXPC=30 offsetYPC=45 widthPC=65 heightPC=55 backgroundColor=0:0:0 foregroundColor=200:200:200> <?php echo $description; ?> </text> <image redraw="yes" offsetXPC=53 offsetYPC=22.5 widthPC=30 heightPC=20> <?php echo $img; ?> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <script> channelImage = "/usr/local/etc/www/cgi-bin/scripts/filme/image/series.png"; </script> <channel> <title><?echo $pg_tit; ?></title> <menu>main menu</menu> <?php $html=str_between($html,'<ul id="tabs-ul">','</ul>'); $videos = explode("<li", $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1=explode('href="',$video); $t2=explode('"',$t1[1]); $link="http://vplay.ro".$t2[0]; $title=str_between($video,'<span>','</span>'); $t1=explode('src="',$video); $t2=explode('"',$t1[1]); $image=$t2[0]; $s=$pg_tit."-".$title; $link = $host."/scripts/filme/php/vplay.php?file=".urlencode($link).",".urlencode($s); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } ?> </channel> </rss>
1073s
trunk/filme/php/vplay_sez.php
PHP
gpl3
6,161
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $host = "http://127.0.0.1/cgi-bin"; $query = $_GET["file"]; if($query) { $queryArr = explode(',', $query); $link = $queryArr[0]; $pg_tit = urldecode($queryArr[1]); } $html = file_get_contents($link); $t1=explode("<div id='serial_description'>",$html); $t2=explode("src='",$t1[1]); $t3=explode("'",$t2[1]); $img="http://serialepenet.ro/".$t3[0]; $img=str_replace(" ","%20",$img); $annotation=str_between($t1[1],"'serial_description_text'>","</span>"); $t=str_between($html,"<title>","</title>"); $t=explode("serial",$t); $t=trim($t[0]); if ($t <> "") { $pg_tit = $t; } ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="20" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="20" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <!--<image offsetXPC=5 offsetYPC=2 widthPC=20 heightPC=16> <script>channelImage;</script> </image>--> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="left" redraw="yes" lines="10" fontSize=17 offsetXPC=30 offsetYPC=55 widthPC=65 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <?php echo $annotation; ?> </text> <image redraw="yes" offsetXPC=45 offsetYPC=22.5 widthPC=30 heightPC=25> <?php echo $img; ?> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <script> channelImage = "/usr/local/etc/www/cgi-bin/scripts/filme/image/series.png"; </script> <channel> <title><?echo $pg_tit; ?></title> <menu>main menu</menu> <?php $videos = explode("<div class='bloc_sezoane'>", $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1=explode('href="',$video); $t2=explode('"',$t1[1]); $link="http://serialepenet.ro/".$t2[0]; $t3=explode("class='serial_title'>",$video); $t4=explode("<",$t3[1]); $title=$t4[0]; $s=$pg_tit."-".$title; $link = $host."/scripts/filme/php/serialepenet_s.php?file=".$link.",".urlencode($s); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> </item> '; } ?> </channel> </rss>
1073s
trunk/filme/php/serialepenet.php
PHP
gpl3
5,799
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $search = $queryArr[0]; $tit = urldecode($queryArr[1]); } $l="http://kinox.to/"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $l); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 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'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_REFERER, "http://kinox.to/"); //curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookies.txt'); curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt'); $html = curl_exec($ch); curl_close($ch); $t1=explode('<div class="Opt leftOpt Headlne">',$html); $m1=$t1[$search]; $tit=str_between($m1,"<h1>","</h1>"); ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="50" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="50" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=65 offsetYPC=22.5 widthPC=20 heightPC=20> <script>print(img); img;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "14"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title><?php echo $tit; ?></title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $videos = explode('<tr class="', $m1); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1=explode('href="',$video); $t2=explode('"',$t1[1]); $link="http://www.kinox.to".$t2[0]; $t3=explode(">",$t1[1]); $t4=explode("<",$t3[1]); $title=$t4[0]; $title2=str_between($video,'<span class="EpisodeDescr">','</span>'); $title=$title.$title2; $t1=explode('src="',$video); $t2=explode('"',$t1[1]); $flag="http://www.kinox.to".$t2[0]; if (strpos($video,'parentalfreedom LIST') !==false) { $a1=explode("parentalfreedom LIST",$video); $a2=explode('"',$a1[1]); $ep=$a2[0]; $epl=explode("_",$ep); for ($i=0;$i<count($epl);$i++) { $title3=$title." Episode ".$epl[$i]; $link3=$link."e".$epl[$i]; $link1 = $host."/scripts/filme/php/kinox.php?query=".urlencode($link3)."@".urlencode($title3); echo ' <item> <title>'.$title3.'</title> <link>'.$link1.'</link> <annotation>'.$title3.'</annotation> <image>'.$flag.'</image> <mediaDisplay name="threePartsView"/> </item> '; } } else { $link1 = $host."/scripts/filme/php/kinox.php?query=".urlencode($link)."@".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link1.'</link> <annotation>'.$title.'</annotation> <image>'.$flag.'</image> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/kinox_cat.php
PHP
gpl3
6,880
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=35 widthPC=30 heightPC=30> image/movies.png </image> <idleImage> image/POPUP_LOADING_01.png </idleImage> <idleImage> image/POPUP_LOADING_02.png </idleImage> <idleImage> image/POPUP_LOADING_03.png </idleImage> <idleImage> image/POPUP_LOADING_04.png </idleImage> <idleImage> image/POPUP_LOADING_05.png </idleImage> <idleImage> image/POPUP_LOADING_06.png </idleImage> <idleImage> image/POPUP_LOADING_07.png </idleImage> <idleImage> image/POPUP_LOADING_08.png </idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>cinemaromanesc - Filme româneşti</title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $html = file_get_contents("http://cinemaromanesc.blogspot.com/"); $html=str_between($html,"<h2>Catalog filme romanesti</h2>","</ul>"); $image = "image/movies.png"; $videos = explode("<li", $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode("href='", $video); $t2 = explode("'", $t1[1]); $link = $t2[0]; $t2 = explode('>', $t1[1]); $t3 = explode('<',$t2[1]); $title = $t3[0]; if ($link <> "") { $link = "http://127.0.0.1/cgi-bin/scripts/filme/php/filme_link.php?".$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$title.'</annotation> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/cinemaromanesc.php
PHP
gpl3
5,383
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $host = "http://127.0.0.1/cgi-bin"; $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $link = $queryArr[0]; $tit = urldecode($queryArr[1]); } $html = file_get_contents($link); $t1=explode('div class="post-',$html); $t2=explode('img src="',$t1[2]); $t3=explode('"',$t2[1]); $image=$t3[0]; //$t1=explode('<div class="the_content" align="justify">',$html); //$t2=str_between($t1[1],"<p>","</p>"); $t2=explode("<p>",$html); $t3=explode("<",$t2[1]); $t2=$t3[0]; $data = preg_replace("/(<\/?)([^>]*>)/e","",$t2); ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text align="left" offsetXPC="6" offsetYPC="15" widthPC="50" heightPC="4" fontSize="16" backgroundColor="10:105:150" foregroundColor="100:200:255"> Apăsaţi 1 sau 2 pentru salt +- 100 </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="justify" redraw="yes" lines="12" fontSize=16 offsetXPC=55 offsetYPC=45 widthPC=40 heightPC=52 backgroundColor=0:0:0 foregroundColor=200:200:200> <?php echo $data; ?> </text> <image redraw="yes" offsetXPC=60 offsetYPC=25 widthPC=30 heightPC=20> <?php echo $image; ?> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "14"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } else if(userInput == "one" || userInput == "1") { idx = Integer(getFocusItemIndex()); idx -= -100; if(idx &gt;= itemCount) idx = itemCount-1; print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } else if(userInput == "two" || userInput == "2") { idx = Integer(getFocusItemIndex()); idx -= 100; if(idx &lt; 0) idx = 0; print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title><?php echo $tit; ?></title> <menu>main menu</menu> <?php $t1=explode("Cuvinte cheie",$html); $html=$t1[0]; preg_match_all('/S\d{2}E\d{2}/',$html,$r); $v=$r[0]; for ($i=0;$i<count($v)-1;$i++) { //$vid=str_between($html,$v[$i],"</table>"); $x=explode($v[$i],$html); $x1=explode($v[$i+1],$x[1]); $vid=$x1[0]; $videos=explode('<div class="hosts"',$vid); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1=explode('href="',$video); $t2=explode('"',$t1[1]); $t3=explode("http",$t2[0]); $link="http".$t3[2]; $t1=explode('td class="',$video); $t2=explode('"',$t1[1]); $server=$t2[0]; $title=str_replace("<br />","",$v[$i])." - Server - ".$server; $link = $host."/scripts/filme/php/filme_link.php?".$link.",".urlencode($tit." ".$title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <media:thumbnail url="'.$image.'" /> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } } //last $x=explode($v[count($v)-1],$html); $vid=$x[1]; $videos=explode('<div class="hosts"',$vid); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1=explode('href="',$video); $t2=explode('"',$t1[1]); $t3=explode("http",$t2[0]); $link="http".$t3[2]; $t1=explode('td class="',$video); $t2=explode('"',$t1[1]); $server=$t2[0]; $title=str_replace("<br />","",$v[$i])." - Server - ".$server; $link = $host."/scripts/filme/php/filme_link.php?".$link.",".urlencode($tit." ".$title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <media:thumbnail url="'.$image.'" /> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } ?> </channel> </rss>
1073s
trunk/filme/php/filmeonlines.php
PHP
gpl3
7,478
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="justify" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=56 offsetYPC=22.5 widthPC=35 heightPC=30> <script>print(img); img;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "14"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>filmeonline.org</title> <menu>main menu</menu> <?php $host = "http://127.0.0.1/cgi-bin"; function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $page = $queryArr[0]; $search = $queryArr[1]; } //http://www.filmeonline.org/page/2/ //http://www.filmeonline.org/category/filme-movies/filme-noi/page/2/ if($page) { $html = file_get_contents($search."page/".$page."/"); } else { $page = 1; $html = file_get_contents($search); } if($page > 1) { ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page-1).","; if($search) { $url = $url.$search; } ?> <title>Previous Page</title> <link><?php echo $url;?></link> <annotation>Pagina anterioară</annotation> <image>image/left.jpg</image> <mediaDisplay name="threePartsView"/> </item> <?php } ?> <?php //$videos = explode('div class="oneblog_titlearea"', $html); $videos=explode('div class="post-',$html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { // link $v1 = explode('href="', $video); $v2 = explode('"', $v1[1]); $link = $v2[0]; // titlu $v3 = explode('>',$v1[1]); $v4 = explode('<',$v3[1]); $titlu = $v4[0]; // imagine $v1 = explode('src="', $video); $v2 = explode('"', $v1[1]); $image = $v2[0]; // descriere $v1 = explode('<p>', $video); $v2 = explode('</p>', $v1[1]); $descriere = $v2[0]; $descriere = preg_replace("/(<\/?)(\w+)([^>]*>)/e","",$descriere); $descriere = str_replace("&nbsp;","",$descriere); if (strlen($descriere)>=300) { $descriere = substr($descriere,0,300); $descriere = substr($descriere,0,-strlen(strrchr($descriere," ")))."..."; } if($link!="") { $link = "http://127.0.0.1/cgi-bin/scripts/filme/php/filmeonline_link.php?file=".$link.",".urlencode($titlu); echo' <item> <title>'.$titlu.'</title> <link>'.$link.'</link> <annotation>'.$descriere.'</annotation> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page+1).","; if($search) { $url = $url.$search; } ?> <title>Next Page</title> <link><?php echo $url;?></link> <annotation>Pagina următoare</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/filme/php/filmeonline.php
PHP
gpl3
6,951
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="35" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="35" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="center" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=22.5 widthPC=30 heightPC=25> <script>print(img); img;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "14"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>Cele mai urmărite de tine</title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $host = "http://127.0.0.1/cgi-bin"; $link="http://vplay.ro/coll/"; $cookie="D://vplay_c.txt"; $cookie="/tmp/vplay_c.txt"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $link); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch,CURLOPT_REFERER,"http://vplay.ro/coll/"); 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'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie); $html = curl_exec($ch); curl_close($ch); $html1 = str_between($html,"rite de tine</h2>","</ul>"); $videos = explode('<li>', $html1); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $link = "http://vplay.ro".$t2[0]; $image=str_between($video,"image:url(",")"); $t3 = explode('title="', $t1[1]); $t4 = explode('"', $t3[1]); $title = trim($t4[0]); $description = str_between($video,'<span class="s_e">','</span>'); if ($link <> "") { $link = $host."/scripts/filme/php/vplay_sez.php?file=".urlencode($link).",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$description.'</annotation> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/vplay_main1.php
PHP
gpl3
5,973
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="30" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="30" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="center" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=25 widthPC=30 heightPC=20> <script>print(image); image;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { image = getItemInfo(idx, "image"); annotation = getItemInfo(idx, "annotation"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>iplay</title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } //necesita inregistrare pe site //seenow.txt are o singura linie de forma //username|pass $filename = "/usr/local/etc/dvdplayer/iplay.txt"; $cookie="D://iplay.txt"; $cookie="/tmp/iplay.txt"; if (file_exists($filename)) { $handle = fopen($filename, "r"); $c = fread($handle, filesize($filename)); fclose($handle); $a=explode("|",$c); $a1=str_replace("?","@",$a[0]); $user=urlencode($a1); $pass=trim($a[1]); if (!file_exists($cookie)) { $l="http://www.iplay.ro/login.php"; $post="take_login=1&returnto=%2F&username=".$user."&password=".$pass; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $l); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 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'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch,CURLOPT_REFERER,"Referer: http://www.iplay.ro/login.php?returnto=%2F"); curl_setopt ($ch, CURLOPT_POST, 1); curl_setopt ($ch, CURLOPT_POSTFIELDS, $post); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie); $html = curl_exec($ch); curl_close($ch); } } $link="http://www.iplay.ro/video/collections.php"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $link); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 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'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie); $html = curl_exec($ch); curl_close($ch); $videos = explode('<li>', $html); $n=0; unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1=explode('href="',$video); $t2=explode('"',$t1[1]); $link=$t2[0]; $t1=explode('src="',$video); $t2=explode('"',$t1[1]); $image=$t2[0]; $t1=explode('span class="',$video); $t2=explode('>',$t1[1]); $t3=explode('<',$t2[1]); $title1=$t3[0]; $t2=explode('>',$t1[2]); $t3=explode('<',$t2[1]); $title2=$t3[0]; $title=$title1." - ".$title2; $link = 'http://127.0.0.1/cgi-bin/scripts/filme/php/iplay_s.php?file='.$link.','.urlencode($title1); echo ' <item> <title>'.$title1.'</title> <link>'.$link.'</link> <annotation>'.$title.'</annotation> <image>'.$image.'</image> <annotation>'.$title.'</annotation> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; $n++; } if ($n == 0) { $link = "/usr/local/etc/www/cgi-bin/scripts/filme/php/iplay.rss"; $description="Pentru a accesa acest site trebuie să aveţi un cont pe iplay.ro. Completaţi userul şi parola în acest formular şi apoi apăsaţi Return, Return după care accesaţi din nou această pagină."; echo ' <item> <title>Logare</title> <link>'.$link.'</link> <annotation>'.$description.'</annotation> <mediaDisplay name="onePartView" /> </item> '; } ?> </channel> </rss>
1073s
trunk/filme/php/iplay_main.php
PHP
gpl3
7,547
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $search = $queryArr[0]; $tit=urldecode($queryArr[1]); } ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="50" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="50" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=35 widthPC=30 heightPC=30> image/movies.png </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "14"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title><?php echo $tit; ?></title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $host = "http://127.0.0.1/cgi-bin"; $html = file_get_contents($search); $html=str_between($html,'<div class="ddmcc">','</div>'); $videos = explode('<li>', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="',$video); $t2 = explode('"',$t1[1]); $link = trim($t2[0]); $t3 = explode(">",$t1[1]); $t4 = explode("<",$t3[1]); $titlu = trim($t4[0]); $link = $host."/scripts/filme/php/watchcartoononline.php?query=1,".$link.",".urlencode($titlu); if ($titlu <> "") { echo ' <item> <title>'.$titlu.'</title> <link>'.$link.'</link> <annotation>'.$titlu.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/watchcartoononline_main.php
PHP
gpl3
5,387
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="center" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=65 offsetYPC=22.5 widthPC=20 heightPC=20> <script>print(img); img;</script> </image> <text align="center" redraw="yes" offsetXPC="55" offsetYPC="45" widthPC="40" heightPC="5" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(flag); flag;</script> </text> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); flag = getItemInfo(idx,"flag"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "14"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>Latest updates</title> <menu>main menu</menu> <?php $query = $_GET["file"]; $link="http://www.movie2k.to/".urldecode($query); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $link); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 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'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookies.txt'); curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt'); $html = curl_exec($ch); curl_close($ch); function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $html = str_between($html,'<TABLE id="tablemoviesindex">','</TABLE>'); $videos = explode('<TR', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $link = $t2[0]; if (strpos($link,"http") ===false) { $link="http://www.movie2k.to/".$link; } $t3 = explode(">",$t1[1]); $t4 = explode("<",$t3[1]); $title = trim($t4[0]); $data=str_between($video,'<TD id="tdmovies" width="154">',"</TD>"); $data = preg_replace("/(<\/?)([^>]*>)/e","",$data); if ($data <> "") { $data="Date added: ".trim($data); } else { $data=""; } for ($i=1;$i<10;$i++) { $t1=explode('src="',$video); $t2=explode('"',$t1[$i]); $image=$t2[0]; if (preg_match("/flag|us|ger/i",$image)) break; } //$image = utf8_encode($image); $flag=substr(strrchr($image,"/"),1); $link = 'http://127.0.0.1/cgi-bin/scripts/filme/php/movie2k.php?query='.$link.",".urlencode($title); echo ' <item> <link>'.$link.'</link> <title>'.$title.'</title> <annotation>'.$data.'</annotation> <flag>'.$flag.'</flag> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item>'; } ?> </channel> </rss>
1073s
trunk/filme/php/movie2k_cat1.php
PHP
gpl3
6,660
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $query = $_GET["file"]; $queryArr = explode(',', $query); $link = $queryArr[0]; $tit = urldecode($queryArr[1]); $html = file_get_contents($link); $t1=explode('<div class="featured">',$html); $t2=explode('src="',$t1[1]); $t3=explode('"',$t2[1]); $img=$t3[0]; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="no" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="center" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=22.5 widthPC=30 heightPC=25> <?php echo $img; ?> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { annotation = getItemInfo(idx, "annotation"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title><?php echo $tit; ?></title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $host = "http://127.0.0.1/cgi-bin"; $videos = explode('li class="post-', $html); unset($videos[0]); $videos = array_reverse($videos); foreach($videos as $video) { $t1=explode('href="',$video); $t2=explode('"',$t1[1]); $link=$t2[0]; $t3=explode('rel="bookmark">',$video); $t4=explode("<",$t3[1]); $title=$tit." - ".trim($t4[0]); $t1 = explode('src="', $video); $t2 = explode('"', $t1[1]); $image = $t2[0]; $data = $title; if ($link <> "") { $down = $title; $link = 'http://127.0.0.1/cgi-bin/scripts/filme/php/filme_link.php?'.$link.','.urlencode($down); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$data.'</annotation> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/serialetvonline.php
PHP
gpl3
5,582
#!/usr/local/bin/Resource/www/cgi-bin/php <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $link = $_GET["file"]; $html = file_get_contents($link); $link = "http://www.filmekmagyarul.com".str_between($html, '<source src="', '"'); print $link; ?>
1073s
trunk/filme/php/filmekmagyarul_link.php
PHP
gpl3
436
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=66 offsetYPC=30 widthPC=20 heightPC=40> <script>print(img); img;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>DolceTv - Filme Gratis</title> <menu>main menu</menu> <?php $page = $_GET["page"]; if ($page == 1) { $l="http://www.dolcetv.ro/filme?c=&f=1&ajaxrequest=1"; } else { $l="http://www.dolcetv.ro/filme-pagina-".$page."?c=&f=1&ajaxrequest=1"; } if($page > 1) { ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?page=".($page-1); ?> <title>Previous Page</title> <link><?php echo $url;?></link> <annotation>Pagina anterioară</annotation> <image>image/left.jpg</image> <mediaDisplay name="threePartsView"/> </item> <?php } ?> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $html = file_get_contents($l); if (strpos($html,"thumbwide") === false) { $new_file="D://dolce.gz"; $new_file="/tmp/dolce.gz"; $fh = fopen($new_file, 'w'); fwrite($fh, $html); fclose($fh); $zd = gzopen($new_file, "r"); $html = gzread($zd, filesize($new_file)); gzclose($zd); } $html=str_replace("\\","",$html); $videos = explode('<li class="thumb thumbwide">', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $link = $t2[0]; $link = "http://www.dolcetv.ro".str_replace("film-","film2-",$link); $t1 = explode('src="', $video); $t2 = explode('"', $t1[1]); $image = $t2[0]; $title = str_between($video,'thumb_title">','<'); $v=str_replace("u015e","S",$title); $v=str_replace("u015f","s",$v); $v=str_replace("u0163","t",$v); $v=str_replace("u0162","T",$v); $v=str_replace("u0103","a",$v); $v=str_replace("u0102","A",$v); $v=str_replace("u00a0"," ",$v); $title=str_replace("u00e2","a",$v); $gratis = str_between($video,'thumb_free">','<'); //echo $gratis; if (($gratis == "Gratuit") && ($title <> "")) { $f = "/usr/local/bin/home_menu"; if (file_exists($f)) { echo' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); url1=getURL("http://127.0.0.1/cgi-bin/scripts/util/dolce_xml.php?file='.urlencode($link).'"); url="http://127.0.0.1/cgi-bin/scripts/util/translate.cgi?stream,," + url1; cancelIdle(); storagePath = getStoragePath("tmp"); storagePath_stream = storagePath + "stream.dat"; streamArray = null; streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, video/mp4); streamArray = pushBackStringArray(streamArray, "'.$title.'"); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file:///usr/local/etc/www/cgi-bin/scripts/util/videoRenderer2.rss"); </script> </onClick> <image>'.$image.'</image> </item> '; } else { echo' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); url1=getURL("http://127.0.0.1/cgi-bin/scripts/util/dolce_xml.php?file='.urlencode($link).'"); url="http://127.0.0.1/cgi-bin/scripts/util/translate.cgi?stream,," + url1; cancelIdle(); storagePath = getStoragePath("tmp"); storagePath_stream = storagePath + "stream.dat"; streamArray = null; streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, video/mp4); streamArray = pushBackStringArray(streamArray, "'.$title.'"); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file:///usr/local/etc/www/cgi-bin/scripts/util/videoRenderer1.rss"); </script> </onClick> <image>'.$image.'</image> </item> '; } } } ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?page=".($page+1); ?> <title>Next Page</title> <link><?php echo $url;?></link> <annotation>Pagina următoare</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/filme/php/dolce_filme.php
PHP
gpl3
8,726
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $page = $queryArr[0]; $search = $queryArr[1]; $tit = urldecode($queryArr[2]); } $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="center" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=65 offsetYPC=22.5 widthPC=20 heightPC=20> <script>print(img); img;</script> </image> <text align="center" redraw="yes" offsetXPC="55" offsetYPC="45" widthPC="40" heightPC="5" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(flag); flag;</script> </text> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); flag = getItemInfo(idx,"flag"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "14"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <searchLink> <link> <script>"<?php echo $host."/scripts/filme/php/movie2k_cat.php?query="; ?>" + urlEncode(keyword) + ",<?php echo $search.",".urlencode($tit);?>";</script> </link> </searchLink> <channel> <title><?php echo $tit; ?></title> <menu>main menu</menu> <?php //http://www.movie2k.to/movies-genre-4-3.html $link="http://www.movie2k.to/movies-genre-".$search."-".$page.".html"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $link); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 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'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookies.txt'); curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt'); $html = curl_exec($ch); curl_close($ch); $t1=explode('<div id="boxgrey">',$html); $totpage=count($t1); echo ' <item> <title>Jump to page (1 of '.$totpage.')</title> <onClick> keyword = getInput(); if (keyword != null) { jumpToLink("searchLink"); } </onClick> </item> '; if($page > 1) { ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page-1).","; if($search) { $url = $url.$search.",".urlencode($tit); } ?> <title>Previous Page</title> <link><?php echo $url;?></link> <annotation>Previous Page</annotation> <image>image/left.jpg</image> <mediaDisplay name="threePartsView"/> </item> <?php } ?> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $html = str_between($html,'<TABLE id="tablemoviesindex">','</TABLE>'); $videos = explode('<TR', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $link = $t2[0]; if (strpos($link,"http") ===false) { $link="http://www.movie2k.to/".$link; } $t3 = explode(">",$t1[1]); $t4 = explode("<",$t3[1]); $title = trim($t4[0]); $data=str_between($video,'<TD id="tdmovies" width="154">',"</TD>"); $data = preg_replace("/(<\/?)([^>]*>)/e","",$data); if ($data <> "") { $data="Date added: ".trim($data); } else { $data=""; } for ($i=1;$i<10;$i++) { $t1=explode('src="',$video); $t2=explode('"',$t1[$i]); $image=$t2[0]; if (preg_match("/flag|us|ger/i",$image)) break; } $flag=substr(strrchr($image,"/"),1); $link = 'http://127.0.0.1/cgi-bin/scripts/filme/php/movie2k.php?query='.$link.",".urlencode($title); echo ' <item> <link>'.$link.'</link> <title>'.$title.'</title> <annotation>'.$data.'</annotation> <flag>'.$flag.'</flag> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item>'; } ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page+1).","; if($search) { $url = $url.$search.",".urlencode($tit); } ?> <title>Next Page</title> <link><?php echo $url;?></link> <annotation>Next Page</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/filme/php/movie2k_cat.php
PHP
gpl3
8,041
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $page = $queryArr[0]; $id = $queryArr[1]; $tit=urldecode($queryArr[2]); } ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=66 offsetYPC=30 widthPC=20 heightPC=40> <script>print(img); img;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title><?php echo $tit; ?></title> <menu>main menu</menu> <?php $link="http://loads7.com/index.php?page=movie&do=category&category_id=".$id."&order=&view=thumb&p=".$page; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $link); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 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'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); //curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookies.txt'); //curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt'); $html = curl_exec($ch); curl_close($ch); if($page > 1) { ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page-1).",".$id.",".urlencode($tit); ?> <title>Previous Page</title> <link><?php echo $url;?></link> <annotation>Previous Page</annotation> <image>image/left.jpg</image> <mediaDisplay name="threePartsView"/> </item> <?php } ?> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $videos = explode('td bordercolor="#C0C0C0"', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $link = "http://loads7.com/".$t2[0]; //$link=str_replace("+"," ",$link); $t1 = explode('src="', $video); $t2 = explode('"', $t1[1]); $image = "http://loads7.com/".$t2[0]; $title = str_between($video,"<b>","</b>"); $title=str_replace(",", " ",$title); $link = 'http://127.0.0.1/cgi-bin/scripts/filme/php/loads71.php?file='.$link.','.urlencode($title).",".urlencode($image); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$title.'</annotation> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page+1).",".$id.",".urlencode($tit); ?> <title>Next Page</title> <link><?php echo $url;?></link> <annotation>Next Page</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/filme/php/loads7.php
PHP
gpl3
6,849
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="justify" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=40 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=66 offsetYPC=22.5 widthPC=15 heightPC=30> <script>print(img); img;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>filmeonlinenoi.com</title> <menu>main menu</menu> <?php $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $page = $queryArr[0]; $search = $queryArr[1]; } //http://filmeonlinenoi.com/category/filme-online/page/2/ if($page) { $html = file_get_contents($search."page/".$page."/"); } else { $page = 1; $html = file_get_contents($search); } if($page > 1) { ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page-1).","; if($search) { $url = $url.$search; } ?> <title>Previous Page</title> <link><?php echo $url;?></link> <annotation>Pagina anterioară</annotation> <image>image/left.jpg</image> <mediaDisplay name="threePartsView"/> </item> <?php } ?> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $image = "image/movies.png"; $videos = explode('<div id="post-', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $link = $t2[0]; $t1 = explode(' src="', $video); $t2 = explode('"', $t1[1]); $image = $t2[0]; $t1 = explode('title="', $video); $t2 = explode('"', $t1[1]); $t3 = explode(">",$t2[1]); $t4 = explode("<",$t3[1]); $title = $t4[0]; // descriere $v1 = explode('<p>', $video); $v2 = explode('</p>', $v1[1]); $descriere = $v2[0]; $descriere = preg_replace("/(<\/?)(\w+)([^>]*>)/e","",$descriere); if (($link <> "") && ($link <> "http://filmeonlinenoi.com/") && ($title <> "")) { $link = 'http://127.0.0.1/cgi-bin/scripts/filme/php/filme_link.php?'.$link.','.urlencode($title); echo' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$descriere.'</annotation> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page+1).","; if($search) { $url = $url.$search; } ?> <title>Next Page</title> <link><?php echo $url;?></link> <annotation>Pagina următoare</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/filmeonlinenoi.php.svn-base
PHP
gpl3
6,691
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $query = $_GET["file"]; $queryArr = explode(',', $query); $link = $queryArr[0]; $tit = urldecode($queryArr[1]); $html = file_get_contents($link); $t1=explode("Adaugat in categoria",$html); $t2=explode('src="',$t1[1]); $t3=explode('"',$t2[1]); $img=$t3[0]; $t2=explode("</div>",$t1[1]); $t3=explode("<br />",$t2[1]); $desc=trim($t3[0]); if ($desc == "") { $desc=trim($t3[1]); } if ($desc == "") { $desc=trim($t3[2]); } $desc = preg_replace("/(<\/?)([^>]*>)/e","",$desc); ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text align="left" offsetXPC="6" offsetYPC="15" widthPC="50" heightPC="4" fontSize="16" backgroundColor="10:105:150" foregroundColor="100:200:255"> Apăsaţi 1 sau 2 pentru salt +- 100 </text> <text redraw="no" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="center" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <?php echo $desc; ?> </text> <image redraw="yes" offsetXPC=60 offsetYPC=22.5 widthPC=30 heightPC=25> <?php echo $img; ?> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { annotation = getItemInfo(idx, "annotation"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } else if(userInput == "one" || userInput == "1") { idx = Integer(getFocusItemIndex()); idx -= -100; if(idx &gt;= itemCount) idx = itemCount-1; print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } else if(userInput == "two" || userInput == "2") { idx = Integer(getFocusItemIndex()); idx -= 100; if(idx &lt; 0) idx = 0; print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title><?php echo $tit; ?></title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $host = "http://127.0.0.1/cgi-bin"; $videos = explode('<li style="', $html); unset($videos[0]); $videos = array_values($videos); //$videos = array_reverse($videos); foreach($videos as $video) { $t1=explode('href="',$video); $t2=explode('"',$t1[1]); $link=$t2[0]; $t3 = explode('>', $t1[1]); $t4 = explode('<', $t3[1]); $title = $t4[0]; if ($link <> "") { $link = 'http://127.0.0.1/cgi-bin/scripts/filme/php/filme_link.php?'.$link.','.urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation></annotation> <media:thumbnail url="'.$img.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/serialecoreene.php.svn-base
PHP
gpl3
6,335
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $host = "http://127.0.0.1/cgi-bin"; $query = $_GET["file"]; if($query) { $queryArr = explode(',', $query); $filelink = $queryArr[0]; $pg_tit = urldecode($queryArr[1]); $pg = preg_replace('/[^A-Za-z0-9_]/','_',$pg_tit); } //play movie if (file_exists("/tmp/usbmounts/sda1/download")) { $dir = "/tmp/usbmounts/sda1/download/"; $dir_log = "/tmp/usbmounts/sda1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdb1/download")) { $dir = "/tmp/usbmounts/sdb1/download/"; $dir_log = "/tmp/usbmounts/sdb1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdc1/download")) { $dir = "/tmp/usbmounts/sdc1/download/"; $dir_log = "/tmp/usbmounts/sdc1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sda2/download")) { $dir = "/tmp/usbmounts/sda2/download/"; $dir_log = "/tmp/usbmounts/sda2/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdb2/download")) { $dir = "/tmp/usbmounts/sdb2/download/"; $dir_log = "/tmp/usbmounts/sdb2/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdc2/download")) { $dir = "/tmp/usbmounts/sdc2/download/"; $dir = "/tmp/usbmounts/sdc2/download/log/"; } elseif (file_exists("/tmp/hdd/volumes/HDD1/download")) { $dir = "/tmp/hdd/volumes/HDD1/download/"; $dir_log = "/tmp/hdd/root/log/"; } else { $dir = ""; $dir_log = ""; } // end ?> <rss version="2.0"> <onEnter> setRefreshTime(1); first_time=1; ntest = 0; ref = 1; </onEnter> <onExit> setRefreshTime(-1); </onExit> <onRefresh> if(first_time == 1) { setRefreshTime(-1); itemCount = getPageInfo("itemCount"); first_time=0; } else if (do_down == 1) { ntest = ntest + 1; if (ntest &gt; 95 &amp;&amp; ntest &lt; 100 &amp;&amp; ref == 1) { showIdle(); info_serial = "wait..."; ref = 0; postMessage("edit"); cancelIdle(); } else if (ntest &gt; 100) { topUrl = "http://127.0.0.1/cgi-bin/scripts/util/info_down.php?file=" + log_file + ",f"; info_serial = getUrl(topUrl); ntest = 0; ref = 1; } } else if (info_serial == "Ready") { do_down = 0; setRefreshTime(-1); } </onRefresh> <mediaDisplay name="threePartsView" itemBackgroundColor="0:0:0" backgroundColor="0:0:0" sideLeftWidthPC="0" sideRightWidthPC="0" sideColorRight="0:0:0" itemImageXPC="5" itemXPC="20" itemYPC="20" itemWidthPC="70" capWidthPC="70" unFocusFontColor="101:101:101" focusFontColor="255:255:255" showHeader="no" showDefaultInfo="yes" bottomYPC="90" infoYPC="100" infoXPC="0" popupXPC = "40" popupYPC = "55" popupWidthPC = "22.3" popupHeightPC = "5.5" popupFontSize = "13" popupBorderColor="28:35:51" popupForegroundColor="255:255:255" popupBackgroundColor="28:35:51" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" fontSize="16" foregroundColor="200:200:200" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { info_serial = getItemInfo(idx, "info_serial"); } getItemInfo(idx, "title"); </script> </text> </itemDisplay> <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="18" fontSize="24" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text align="left" offsetXPC="6" offsetYPC="15" widthPC="100" heightPC="4" fontSize="16" backgroundColor="10:105:150" foregroundColor="100:200:255"> Apăsaţi 1 pentru Download Manager, 2 pentru download </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(info_serial); info_serial;</script> </text> <onUserInput> userInput = currentUserInput(); ret = "false"; if (userInput == "display" || userInput == "DISPLAY") { log_file="<?php echo $dir_log; ?>" + getItemInfo(getFocusItemIndex(),"name") + ".mp4.log"; topUrl = "http://127.0.0.1/cgi-bin/scripts/util/info_down.php?file=" + log_file + ",f"; info_serial = getUrl(topUrl); redrawDisplay("yes"); setRefreshTime(100); ret = "false"; } else if( userInput == "one" || userInput == "1") { jumpToLink("destination"); ret="true"; } else if(userInput == "two" || userInput == "2") { showIdle(); setRefreshTime(100); do_down=1; file_name= "<?php echo $dir; ?>" + getItemInfo(getFocusItemIndex(),"name") + ".srt"; log_file="<?php echo $dir_log; ?>" + getItemInfo(getFocusItemIndex(),"name") + ".srt.log"; topUrl = "http://127.0.0.1/cgi-bin/scripts/util/download.cgi?link=" + getItemInfo(getFocusItemIndex(),"subtitrare") + ";name=" + getItemInfo(getFocusItemIndex(),"name") + ".srt"; dummy = getUrl(topUrl); log_file="<?php echo $dir_log; ?>" + getItemInfo(getFocusItemIndex(),"name") + ".mp4.log"; topUrl = "http://127.0.0.1/cgi-bin/scripts/util/download.cgi?link=" + getItemInfo(getFocusItemIndex(),"download") + ";name=" + getItemInfo(getFocusItemIndex(),"name") + ".mp4"; dummy = getUrl(topUrl); cancelIdle(); ret="true"; } else if (userInput == "right" || userInput == "left" || userInput == "R" || userInput == "L" || userInput == "enter" || userInput == "ENTR") { setRefreshTime(-1); do_down=0; ret="false"; } ret; </onUserInput> </mediaDisplay> <destination> <link>http://127.0.0.1/cgi-bin/scripts/util/level.php </link> </destination> <channel> <title><?echo $pg_tit; ?></title> <menu>main menu</menu> <?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $filelink); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 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'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_COOKIEFILE, "/tmp/cookie.txt"); $html = curl_exec($ch); curl_close($ch); /* $videos = explode('flash', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('ile=', $video); $t2 = explode('&', $t1[1]); $t3 = explode("'",$t2[0]); $link = urldecode($t3[0]); if (strpos($link,"wp-content") !==false) { $t2=explode("&",$t1[2]); $t3=explode("'",$t2[0]); $link = urldecode($t3[0]); } */ $link = str_between($html,"&file=","&"); $link = str_replace("s2.serialepe.net","s3.serialepe.net",$link); $srt = str_between($html,'captions.file=','&'); //$t1=explode('"',$srt1); //$srt = $t1[0]; $srt = str_replace("s2.serialepe.net","s3.serialepe.net",$srt); if ($link <> "") { $server = str_between($link,"http://","/"); $title = $server." - ".substr(strrchr($link,"/"),1); $titledownload = $pg; $ext="flv"; // for sdk4.... with seek $title="Play with seek - SDK4"; echo' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); url="'.$link.'"; cancelIdle(); storagePath = getStoragePath("tmp"); storagePath_stream = storagePath + "stream.dat"; streamArray = null; streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, video/mp4); streamArray = pushBackStringArray(streamArray, "'.$pg_tit.'"); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file:///usr/local/etc/www/cgi-bin/scripts/util/videoRenderer.rss"); </script> </onClick> <download>'.$link.'</download> <name>'.$titledownload.'</name> <subtitrare>'.$srt.'</subtitrare> <info_serial>'.$info.'</info_serial> </item> '; // cu subtitrare $title="Play cu subtitrare"; $f = "/usr/local/bin/home_menu"; if (file_exists($f)) { echo' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); dummy=getURL("http://127.0.0.1/cgi-bin/scripts/util/srt_xml.php?file='.urlencode($srt).'"); url="'.$link.'"; cancelIdle(); storagePath = getStoragePath("tmp"); storagePath_stream = storagePath + "stream.dat"; streamArray = null; streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, video/mp4); streamArray = pushBackStringArray(streamArray, "'.$pg_tit.'"); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file:///usr/local/etc/www/cgi-bin/scripts/util/videoRenderer2.rss"); </script> </onClick> <download>'.$link.'</download> <name>'.$titledownload.'</name> <subtitrare>'.$srt.'</subtitrare> <info_serial>'.$info.'</info_serial> </item> '; } else { echo' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); dummy=getURL("http://127.0.0.1/cgi-bin/scripts/util/srt_xml.php?file='.urlencode($srt).'"); url="'.$link.'"; cancelIdle(); storagePath = getStoragePath("tmp"); storagePath_stream = storagePath + "stream.dat"; streamArray = null; streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, video/mp4); streamArray = pushBackStringArray(streamArray, "'.$pg_tit.'"); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file:///usr/local/etc/www/cgi-bin/scripts/util/videoRenderer1.rss"); </script> </onClick> <download>'.$link.'</download> <name>'.$titledownload.'</name> <subtitrare>'.$srt.'</subtitrare> <info_serial>'.$info.'</info_serial> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/serialepe_link.php.svn-base
PHP
gpl3
10,960
#!/usr/local/bin/Resource/www/cgi-bin/php <?php error_reporting(0); $filelink=$_ENV["QUERY_STRING"]; //$filelink = $_GET["file"]; //$filelink="http://www.seriale.filmesubtitrate.info/2011/08/against-wall-sezon-1-ep-1-pilot-serial.html"; $t1=explode(",",$filelink); $filelink = urldecode($t1[0]); $filelink = str_replace("*",",",$filelink); $filelink = str_replace("@","&",$filelink); //seriale.subtitrate.info $pg = urldecode($t1[1]); if ($pg == "") { $pg_title = "Link"; } else { $pg_title = $pg; $pg = preg_replace('/[^A-Za-z0-9_]/','_',$pg); } $titledownload=$pg; $onlinemoca=$t1[2]; //play movie if (file_exists("/tmp/usbmounts/sda1/download")) { $dir = "/tmp/usbmounts/sda1/download/"; $dir_log = "/tmp/usbmounts/sda1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdb1/download")) { $dir = "/tmp/usbmounts/sdb1/download/"; $dir_log = "/tmp/usbmounts/sdb1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdc1/download")) { $dir = "/tmp/usbmounts/sdc1/download/"; $dir_log = "/tmp/usbmounts/sdc1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sda2/download")) { $dir = "/tmp/usbmounts/sda2/download/"; $dir_log = "/tmp/usbmounts/sda2/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdb2/download")) { $dir = "/tmp/usbmounts/sdb2/download/"; $dir_log = "/tmp/usbmounts/sdb2/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdc2/download")) { $dir = "/tmp/usbmounts/sdc2/download/"; $dir = "/tmp/usbmounts/sdc2/download/log/"; } elseif (file_exists("/tmp/hdd/volumes/HDD1/download")) { $dir = "/tmp/hdd/volumes/HDD1/download/"; $dir_log = "/tmp/hdd/root/log/"; } else { $dir = ""; $dir_log = ""; } // end ?> <?php echo "<?xml version='1.0' ?>"; ?> <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"> <onEnter> storagePath = getStoragePath("tmp"); storagePath_stream = storagePath + "stream.dat"; storagePath_playlist = storagePath + "playlist.dat"; setRefreshTime(1); first_time=1; </onEnter> <onExit> setRefreshTime(-1); </onExit> <onRefresh> if(first_time == 1) { setRefreshTime(-1); itemCount = getPageInfo("itemCount"); first_time=0; } else if (do_down == 1) { topUrl = "http://127.0.0.1/cgi-bin/scripts/util/info_down.php?file=" + log_file + ",f"; info_serial = getUrl(topUrl); } </onRefresh> <mediaDisplay name="threePartsView" itemBackgroundColor="0:0:0" backgroundColor="0:0:0" sideLeftWidthPC="0" sideRightWidthPC="0" sideColorRight="0:0:0" itemImageXPC="5" itemXPC="20" itemYPC="20" itemWidthPC="70" capWidthPC="70" unFocusFontColor="101:101:101" focusFontColor="255:255:255" showHeader="no" showDefaultInfo="yes" bottomYPC="90" infoYPC="100" infoXPC="0" popupXPC = "40" popupYPC = "55" popupWidthPC = "22.3" popupHeightPC = "5.5" popupFontSize = "13" popupBorderColor="28:35:51" popupForegroundColor="255:255:255" popupBackgroundColor="28:35:51" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="18" fontSize="24" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text align="left" offsetXPC="6" offsetYPC="15" widthPC="100" heightPC="4" fontSize="16" backgroundColor="10:105:150" foregroundColor="100:200:255"> Apăsaţi 1 pentru Download Manager, 2 pentru download, 3 pentru vizionare download, 4 verificare link </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(info_serial); info_serial;</script> </text> <onUserInput> userInput = currentUserInput(); ret = "false"; if(userInput == "two" || userInput == "2") { tip=getItemInfo(getFocusItemIndex(),"tip"); showIdle(); if (tip == "1") { url = getItemInfo(getFocusItemIndex(),"download"); movie=getUrl(url); info_serial="link:" + movie; topUrl = "http://127.0.0.1/cgi-bin/scripts/util/download.cgi?link=" + movie + ";name=" + getItemInfo(getFocusItemIndex(),"name"); } else if (tip == "2") { topUrl = "http://127.0.0.1/cgi-bin/scripts/util/download.cgi?link=" + getItemInfo(getFocusItemIndex(),"download") + ";name=" + getItemInfo(getFocusItemIndex(),"name"); } dummy = getUrl(topUrl); cancelIdle(); do_down=1; file_name= getItemInfo(getFocusItemIndex(),"title"); log_file="<?php echo $dir_log; ?>" + getItemInfo(getFocusItemIndex(),"name") + ".log"; setRefreshTime(10000); ret="true"; } else if (userInput == "three" || userInput == "3") { url="<?php echo $dir; ?>" + getItemInfo(getFocusItemIndex(),"name"); playItemurl(url,10); ret="true"; } else if(userInput == "four" || userInput == "4") { showIdle(); url = getItemInfo(getFocusItemIndex(),"download"); info_serial="link:" + url; redrawdisplay(); tip=getItemInfo(getFocusItemIndex(),"tip"); if (tip == "1") { movie=getUrl(url); info_serial="movie:" + movie; } cancelIdle(); redrawdisplay(); ret="true"; } else if (userInput == "one" || userInput == "1") { jumpToLink("destination"); ret="true"; } else { info_serial=" "; setRefreshTime(-1); do_down=0; ret="false"; } ret; </onUserInput> </mediaDisplay> <destination> <link>http://127.0.0.1/cgi-bin/scripts/util/level.php </link> </destination> <channel> <?php echo "<title>".$pg_title."</title>" ; function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } function cv($s) { $g=ord("g"); $c=ord($s); if ($c < 58) { $c=$s; } else { if ($c > 116) { $c=$c-$g + 16 + 6; } else { $c=$c-$g + 16; } } return $c; } function get_unpack($k,$char_rep,$pos_link,$h) { $g=ord("g"); $f=explode("return p}",$h); $e=explode("'.split",$f[$k]); $t=$e[0]; $a=explode(";",$t); //print_r($a); //for debug only $w=explode("|",$a[$char_rep]); //char list for replace $t1=explode("'",$a[$pos_link]); // where is final link $fl= $t1[3]; $fl=str_replace("10","u",$fl); $fl=str_replace("11","v",$fl); $fl=str_replace("12","w",$fl); $fl=str_replace("13","x",$fl); $fl=str_replace("14","y",$fl); $fl=str_replace("15","z",$fl); $r=""; for ($i=0;$i<strlen($fl)-1;$i++) { if (preg_match("/[A-Za-z0-9_]/",$fl[$i])) { $m=$w[cv($fl[$i])]; if ($m=="") $m=$fl[$i]; $r=$r.$m; } else { $r=$r.$fl[$i]; } } return $r; } function cv1($s) { $g=ord("g"); $c=ord($s); if ($c < 58) { $c=$s; } else { if ($c > 140) { //never $c=$c-$g + 16 + 6; } else { $c=$c-$g + 16; } } return $c; } function get_unpack1($k,$char_rep,$pos_link,$h) { $g=ord("g"); $f=explode("return p}",$h); $e=explode("'.split",$f[$k]); $t=$e[0]; $a=explode(";",$t); //print_r($a); //for debug only $w=explode("|",$a[$char_rep]); //char list for replace $t1=explode("'",$a[$pos_link]); // where is final link $fl= $t1[3]; $fl=str_replace("10","u",$fl); $fl=str_replace("11","v",$fl); $fl=str_replace("12","w",$fl); $fl=str_replace("13","x",$fl); $fl=str_replace("14","y",$fl); $fl=str_replace("15","z",$fl); $r=""; for ($i=0;$i<strlen($fl)-1;$i++) { if (preg_match("/[A-Za-z0-9_]/",$fl[$i])) { $m=$w[cv1($fl[$i])]; if ($m=="") $m=$fl[$i]; $r=$r.$m; } else { $r=$r.$fl[$i]; } } return $r; } /**####################################**/ /** Here we start.......**/ $last_link = ""; //if (strpos($filelink,"onlinemoca") === false) { if (strpos($filelink,"filmeonlinesubtitrate") !== false) { $post="pageviewnr=1"; $ch = curl_init($filelink); 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'); curl_setopt($ch,CURLOPT_REFERER,$filelink); //curl_setopt ($ch, CURLOPT_POST, 1); //curl_setopt ($ch, CURLOPT_POSTFIELDS, $post); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL curl_setopt($ch, CURLOPT_HEADER, true); $html = curl_exec($ch); curl_close ($ch); //$l = str_between($html,"Link: <",">;"); //echo $l; //Link: <http://www.filmeonlinesubtitrate.tv/?p=5382>; rel=shortlink //$AgetHeaders = @get_headers($filelink); //echo $AgetHeaders; } elseif (strpos($filelink,"990.ro") !== false) { $link1 = str_replace("download","",$filelink); $link1 = str_replace("seriale2","player-seriale",$link1); $ch = curl_init($link1); 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'); curl_setopt($ch,CURLOPT_REFERER,$filelink); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL $html = curl_exec($ch); curl_close ($ch); $filelink=$link1; } else { $html = file_get_contents($filelink); } $mysrt=str_between($html,"captions.file=","&"); /**################ All links ################**/ if(preg_match_all("/(http\b.*?)(\"|\')+/i",$html,$matches)) { $links=$matches[1]; } $s="/adf\.ly|vidxden\.c|divxden\.c|vidbux\.c|movreel\.c|videoweed\.(c|e)|novamov\.(c|e)|vk\.com"; $s=$s."|movshare\.net|youtube\.c|flvz\.com|rapidmov\.net|putlocker\.com|mixturevideo\.com|"; $s=$s."peteava\.ro\/embed|peteava\.ro\/id|content\.peteava\.ro|divxstage\.net|divxstage\.eu"; $s=$s."|vimeo\.com|googleplayer\.swf|filebox\.ro\/get_video|vkontakte\.ru|megavideo\.com|videobam\.com"; $s=$s."|fastupload\.ro|fastupload\.rol\.ro|video\.rol\.ro|zetshare\.net\/embed|ufliq\.com|stagero\.eu|ovfile\.com"; $s=$s."|trilulilu|proplayer\/playlist-controller.php|viki\.com/i"; for ($i=0;$i<count($links);$i++) { $cur_link=$links[$i]; if (preg_match($s,$cur_link)) { if ($cur_link <> $last_link) { if (!preg_match("/facebook|twitter|img\.youtube/",$cur_link)) { $t1=explode("proxy.link=",$cur_link); //filmeonline.org if ($t1[1] <> "") { $cur_link=$t1[1]; } $link="http://127.0.0.1/cgi-bin/scripts/filme/php/link.php?file=".urlencode($cur_link); if (strpos($cur_link,"adf.ly") !==false) { //onlinemoca $a1=explode($cur_link,$html); $a2=explode('alt="',$a1[1]); $a3=explode('"',$a2[1]); $server=$a3[0]; } else { $server = str_between($cur_link,"http://","/"); } $last_link=$cur_link; if (strpos($link,"megavideo") !==false) { $mega="yes"; //Set cookie } if (strpos($cur_link,"google") !==false) { $t1=explode("docid=",$cur_link); $t2=explode("&",$t1[1]); $docid=$t2[0]; $mysrt_google="http://video.google.com/videotranscript?frame=c&docid=".$docid."&hl=ro&type=track&name=ro&lang=ro"; } if (strpos($cur_link,"viki.com") !==false) { preg_match('/(viki\.com\/player\/medias\/)([\w\-]+)/', $cur_link, $match); $viki_id = $match[2]; } $title=$server. " - With seek - SDK4"; echo' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); movie="'.$link.'"; url=getUrl(movie); cancelIdle(); streamArray = null; streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, video/x-flv); streamArray = pushBackStringArray(streamArray, "'.$pg_title.'"); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file:///usr/local/etc/www/cgi-bin/scripts/util/videoRenderer.rss"); </script> </onClick> <download>'.$link.'</download> <tip>1</tip> <name>'.$titledownload.'.flv</name> </item> '; if (($mysrt <> "") || ($mysrt_google <> "") || ($viki_id <> "")){ $f = "/usr/local/bin/home_menu"; if (file_exists($f)) { echo' <item> <title>Play cu subtitrare</title> <onClick> <script> showIdle(); '; if ($mysrt_google <> "") { echo ' dummy=getURL("http://127.0.0.1/cgi-bin/scripts/util/google_xml.php?file='.urlencode($mysrt_google).'");'; } else if ($viki_id <> "") { echo ' dummy=getURL("http://127.0.0.1/cgi-bin/scripts/util/viki_xml.php?file='.$viki_id.'");'; } else { echo ' dummy=getURL("http://127.0.0.1/cgi-bin/scripts/util/srt_xml.php?file='.urlencode($mysrt).'");'; } echo ' movie="'.$link.'"; url=getUrl(movie); cancelIdle(); storagePath = getStoragePath("tmp"); storagePath_stream = storagePath + "stream.dat"; streamArray = null; streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, video/mp4); streamArray = pushBackStringArray(streamArray, "'.$pg_title.'"); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file:///usr/local/etc/www/cgi-bin/scripts/util/videoRenderer2.rss"); </script> </onClick> <download>'.$link.'</download> <tip>1</tip> <name>'.$titledownload.'.flv</name> </item> '; } else { echo' <item> <title>Play cu subtitrare</title> <onClick> <script> showIdle(); '; if ($mysrt_google <> "") { echo ' dummy=getURL("http://127.0.0.1/cgi-bin/scripts/util/google_xml.php?file='.urlencode($mysrt_google).'");'; } else if ($viki_id <> "") { echo ' dummy=getURL("http://127.0.0.1/cgi-bin/scripts/util/viki_xml.php?file='.$viki_id.'");'; } else { echo ' dummy=getURL("http://127.0.0.1/cgi-bin/scripts/util/srt_xml.php?file='.urlencode($mysrt).'");'; } echo ' movie="'.$link.'"; url=getUrl(movie); cancelIdle(); storagePath = getStoragePath("tmp"); storagePath_stream = storagePath + "stream.dat"; streamArray = null; streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, video/mp4); streamArray = pushBackStringArray(streamArray, "'.$pg_title.'"); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file:///usr/local/etc/www/cgi-bin/scripts/util/videoRenderer1.rss"); </script> </onClick> <download>'.$link.'</download> <tip>1</tip> <name>'.$titledownload.'.flv</name> </item> '; } } } } } } /**################ special links ##############**/ if (preg_match_all('/<(iframe\b|object\b)[^>]+src\s?=\s?([\'|\"])(.*?)(\"|\')+/is', $html, $matches)) { $links=$matches[3]; } $link=""; $srt=""; $tip=""; for ($i=0;$i<count($links);$i++) { $cur_link=$links[$i]; if (strpos($cur_link,"rofilm.info") !==false) { $baza = file_get_contents($cur_link); $t1=explode('value="file=',$baza); $t2=explode("&",$t1[1]); $link = $t2[0]; if ($link=="") { $t1=explode("value='file=",$baza); $t2=explode("&",$t1[1]); $link=$t2[0]; } if ($link == "") { $link1=str_between($baza,'proxy.link=','"'); $tip="1"; $link2="http://127.0.0.1/cgi-bin/scripts/filme/php/link.php?file=".urlencode($link1); $server = str_between($link1,"http://","/"); $title=$server. " - With seek - SDK4"; if ($link1 <> "") { echo' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); movie="'.$link2.'"; url=getUrl(movie); cancelIdle(); streamArray = null; streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, video/x-flv); streamArray = pushBackStringArray(streamArray, "'.$pg_title.'"); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file:///usr/local/etc/www/cgi-bin/scripts/util/videoRenderer.rss"); </script> </onClick> <download>'.$link2.'</download> <tip>1</tip> <name>'.$titledownload.'.flv</name> </item> '; } } $t1=explode('captions.file=',$baza); $t2=explode("&",$t1[1]); $srt=$t2[0]; $srt = str_replace(" ","%20",$srt); } elseif (strpos($cur_link,"serialetvonline.info") !==false) { if (strpos($cur_link,"gettvguide2.php") === false) { $baza = file_get_contents($cur_link); $link = str_between($baza,'"flashvars" value="file=','&'); $t1=explode('captions.file=',$baza); $t2=explode("&",$t1[1]); $srt=$t2[0]; $srt = str_replace(" ","%20",$srt); } } elseif (strpos($cur_link,"rosharing.info") !==false){ $baza = file_get_contents($cur_link); $srt=get_unpack1(2,13,10,$baza); $link=get_unpack1(2,13,4,$baza); $srt = str_replace(" ","%20",$srt); } elseif (strpos($cur_link,"1roshare.info") !==false){ $baza = file_get_contents($cur_link); $srt=get_unpack(2,13,10,$baza); //http://roshare.info/u2/roshare/8v7d8dey8zix.srt //http://s1.roshare.info/files/0/8fyh1ncsck0bw9/video.flv //http://s5.roshare.info:182/files/5/1qgs4bsp8xnti1/video.flv $link=get_unpack(2,13,4,$baza); $srt = str_replace(" ","%20",$srt); } elseif (strpos($cur_link,"rosharing.com") !==false) { $baza = file_get_contents($cur_link); $link = str_between($baza,'value="file=','&'); $t1=explode('captions.file=',$baza); $t2=explode("&",$t1[1]); $srt=$t2[0]; $srt = str_replace(" ","%20",$srt); } else { $link=""; $srt=""; } // if ($link <> $last_link) { if ($link <> "") { $server = str_between($link,"http://","/"); $title=$server. " - With seek - SDK4"; echo' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); url="'.$link.'"; cancelIdle(); streamArray = null; streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, video/x-flv); streamArray = pushBackStringArray(streamArray, "'.$pg_title.'"); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file:///usr/local/etc/www/cgi-bin/scripts/util/videoRenderer.rss"); </script> </onClick> <download>'.$link.'</download> <tip>2</tip> <name>'.$titledownload.'.flv</name> </item> '; } if (($srt <> "") && (strpos($srt,".srt") !==false)) { echo ' <item> <title>Subtitrare</title> <download>'.$srt.'</download> <tip>2</tip> <name>'.$titledownload.'.srt</name> </item> '; } $last_link = $link; // } } /**################ flash... mediafile,file.....############**/ $videos = explode('flash', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('ile=', $video); $t2 = explode('&', $t1[1]); $t3 = explode("'",$t2[0]); $link = urldecode($t3[0]); if (strpos($video,"proxy.link") !== false) { //www.seriale-filme.info ,filmeonline.org $link=str_between($video,'proxy.link=','"'); } if (($link <> "") && strcmp($link,$lastlink)) { if (strpos($link, 'http://') !== false){ $titledownload = $pg; $title=str_between($link,"http://","/"); $ext=".flv"; $lastlink = $link; if (!preg_match($s,$link)) { //exclud link-urile care trebuie "preparate", astea trebuie sa fie in prima analiza! // for sdk4.... with seek $title=$title. " - With seek - SDK4"; echo' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); url="'.$link.'"; cancelIdle(); streamArray = null; streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, video/x-flv); streamArray = pushBackStringArray(streamArray, "'.$pg_title.'"); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file:///usr/local/etc/www/cgi-bin/scripts/util/videoRenderer.rss"); </script> </onClick> <download>'.$link.'</download> <tip>2</tip> <name>'.$titledownload.'.'.$ext.'</name> </item> '; } $srt1 = str_between($video,'captions.file=','&'); $t1=explode('"',$srt1); $srt = $t1[0]; if (strpos($srt,"http") === false) { ////www.veziserialeonline.info,www.seriale-filme.info $s1=explode("/",$filelink); $s=$s1[2]; $srt="http://".$s.$srt; } $pct = substr($srt, -4, 1); if (($srt <> "") && ($pct == ".") && (strpos($srt,".srt") !==false) && (strpos($srt,"000.srt") === false) ) { echo ' <item> <title>Subtitrare</title> <download>'.$srt.'</download> <tip>2</tip> <name>'.$titledownload.'.srt</name> </item> '; } } } } //foreach if ($mega=="yes") { echo ' <item> <title>Set megavideo premium account</title> <link>/usr/local/etc/www/cgi-bin/scripts/filme/php/megavideo.rss</link> <mediaDisplay name="onePartView" /> </item> '; } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/filme_link.php.svn-base
PHP
gpl3
23,470
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $search = $queryArr[0]; $tit = urldecode($queryArr[1]); } ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text align="left" offsetXPC="6" offsetYPC="15" widthPC="100" heightPC="4" fontSize="16" backgroundColor="10:105:150" foregroundColor="100:200:255"> Apăsaţi 2 pentru download, 3 pentru Download Manager </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="center" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=22.5 widthPC=30 heightPC=25> <script>print(img); img;</script> </image> <idleImage> image/POPUP_LOADING_01.png </idleImage> <idleImage> image/POPUP_LOADING_02.png </idleImage> <idleImage> image/POPUP_LOADING_03.png </idleImage> <idleImage> image/POPUP_LOADING_04.png </idleImage> <idleImage> image/POPUP_LOADING_05.png </idleImage> <idleImage> image/POPUP_LOADING_06.png </idleImage> <idleImage> image/POPUP_LOADING_07.png </idleImage> <idleImage> image/POPUP_LOADING_08.png </idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } if (userInput == "two" || userInput == "2") { showIdle(); url=getItemInfo(getFocusItemIndex(),"download"); movie=getUrl(url); cancelIdle(); topUrl = "http://127.0.0.1/cgi-bin/scripts/util/download.cgi?link=" + movie + ";name=" + getItemInfo(getFocusItemIndex(),"name"); dlok = loadXMLFile(topUrl); "true"; } if (userInput == "three" || userInput == "3") { jumpToLink("destination"); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <destination> <link>http://127.0.0.1/cgi-bin/scripts/util/level.php </link> </destination> <channel> <title><?php echo $tit; ?></title> <menu>main menu</menu> <?php $html = file_get_contents($search); function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $videos = explode('div class="hoverTop clearfix">', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[2]); $link = "http://www.filmekmagyarul.com".$t2[0]; $t1 = explode('src="', $video); $t2 = explode('"', $t1[2]); $image = "http://www.filmekmagyarul.com".$t2[0]; $t1 = explode('title="', $video); $t2 = explode('"', $t1[2]); $title = htmlspecialchars_decode($t2[0]); $link = $host.'/scripts/filme/php/filmekmagyarul_link.php?file='.$link; $data = str_between($video,'<p>','</p>'); $name = preg_replace('/[^A-Za-z0-9_]/','_',$title).".flv"; echo ' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); url="'.$link.'"; movie=getUrl(url); cancelIdle(); storagePath = getStoragePath("tmp"); storagePath_stream = storagePath + "stream.dat"; streamArray = null; streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, movie); streamArray = pushBackStringArray(streamArray, movie); streamArray = pushBackStringArray(streamArray, video/x-flv); streamArray = pushBackStringArray(streamArray, "'.$title.'"); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file:///usr/local/etc/www/cgi-bin/scripts/util/videoRenderer.rss"); </script> </onClick> <download>'.$link.'</download> <name>'.$name.'</name> <image>'.$image.'</image> <annotation>'.$data.'</annotation> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page+1).","; if($search) { $url = $url.$search; } ?> <title>Next Page</title> <link><?php echo $url;?></link> <annotation>Pagina următoare</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/filmekmagyarul.php.svn-base
PHP
gpl3
7,633
#!/usr/local/bin/Resource/www/cgi-bin/php <?php error_reporting(0); $filelink = $_GET["file"]; $t1=explode(",",$filelink); $filelink = urldecode($t1[0]); $filelink = str_replace("*",",",$filelink); $filelink = str_replace("@","&",$filelink); //seriale.subtitrate.info $pg = urldecode($t1[1]); if ($pg == "") { $pg_title = "Link"; } else { $pg_title = $pg; $pg = preg_replace('/[^A-Za-z0-9_]/','_',$pg); } $titledownload=$pg; //play movie if (file_exists("/tmp/usbmounts/sda1/download")) { $dir = "/tmp/usbmounts/sda1/download/"; $dir_log = "/tmp/usbmounts/sda1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdb1/download")) { $dir = "/tmp/usbmounts/sdb1/download/"; $dir_log = "/tmp/usbmounts/sdb1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdc1/download")) { $dir = "/tmp/usbmounts/sdc1/download/"; $dir_log = "/tmp/usbmounts/sdc1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sda2/download")) { $dir = "/tmp/usbmounts/sda2/download/"; $dir_log = "/tmp/usbmounts/sda2/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdb2/download")) { $dir = "/tmp/usbmounts/sdb2/download/"; $dir_log = "/tmp/usbmounts/sdb2/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdc2/download")) { $dir = "/tmp/usbmounts/sdc2/download/"; $dir = "/tmp/usbmounts/sdc2/download/log/"; } elseif (file_exists("/tmp/hdd/volumes/HDD1/download")) { $dir = "/tmp/hdd/volumes/HDD1/download/"; $dir_log = "/tmp/hdd/root/log/"; } else { $dir = ""; $dir_log = ""; } // end ?> <?php echo "<?xml version='1.0' ?>"; ?> <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"> <onEnter> storagePath = getStoragePath("tmp"); storagePath_stream = storagePath + "stream.dat"; storagePath_playlist = storagePath + "playlist.dat"; setRefreshTime(1); first_time=1; </onEnter> <onExit> setRefreshTime(-1); </onExit> <onRefresh> if(first_time == 1) { setRefreshTime(-1); itemCount = getPageInfo("itemCount"); first_time=0; } else if (do_down == 1) { topUrl = "http://127.0.0.1/cgi-bin/scripts/util/info_down.php?file=" + log_file + ",f"; info_serial = getUrl(topUrl); } </onRefresh> <mediaDisplay name="threePartsView" itemBackgroundColor="0:0:0" backgroundColor="0:0:0" sideLeftWidthPC="0" sideRightWidthPC="0" sideColorRight="0:0:0" itemImageXPC="5" itemXPC="20" itemYPC="20" itemWidthPC="70" capWidthPC="70" unFocusFontColor="101:101:101" focusFontColor="255:255:255" showHeader="no" showDefaultInfo="yes" bottomYPC="90" infoYPC="100" infoXPC="0" popupXPC = "40" popupYPC = "55" popupWidthPC = "22.3" popupHeightPC = "5.5" popupFontSize = "13" popupBorderColor="28:35:51" popupForegroundColor="255:255:255" popupBackgroundColor="28:35:51" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="18" fontSize="24" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text align="left" offsetXPC="6" offsetYPC="15" widthPC="100" heightPC="4" fontSize="16" backgroundColor="10:105:150" foregroundColor="100:200:255"> Press: 1 for download manager, 2 for download </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(info_serial); info_serial;</script> </text> <onUserInput> userInput = currentUserInput(); ret = "false"; if(userInput == "two" || userInput == "2") { tip=getItemInfo(getFocusItemIndex(),"tip"); showIdle(); if (tip == "1") { url = getItemInfo(getFocusItemIndex(),"download"); movie=getUrl(url); info_serial="link:" + movie; topUrl = "http://127.0.0.1/cgi-bin/scripts/util/download.cgi?link=" + movie + ";name=" + getItemInfo(getFocusItemIndex(),"name"); } else if (tip == "2") { topUrl = "http://127.0.0.1/cgi-bin/scripts/util/download.cgi?link=" + getItemInfo(getFocusItemIndex(),"download") + ";name=" + getItemInfo(getFocusItemIndex(),"name"); } dummy = getUrl(topUrl); cancelIdle(); do_down=1; file_name= getItemInfo(getFocusItemIndex(),"title"); log_file="<?php echo $dir_log; ?>" + getItemInfo(getFocusItemIndex(),"name") + ".log"; setRefreshTime(10000); ret="true"; } else if (userInput == "three" || userInput == "3") { url="<?php echo $dir; ?>" + getItemInfo(getFocusItemIndex(),"name"); playItemurl(url,10); ret="true"; } else if(userInput == "four" || userInput == "4") { showIdle(); url = getItemInfo(getFocusItemIndex(),"download"); info_serial="link:" + url; redrawdisplay(); tip=getItemInfo(getFocusItemIndex(),"tip"); if (tip == "1") { movie=getUrl(url); info_serial="movie:" + movie; } cancelIdle(); redrawdisplay(); ret="true"; } else if (userInput == "one" || userInput == "1") { jumpToLink("destination"); ret="true"; } else { info_serial=" "; setRefreshTime(-1); do_down=0; ret="false"; } ret; </onUserInput> </mediaDisplay> <destination> <link>http://127.0.0.1/cgi-bin/scripts/util/level.php </link> </destination> <channel> <?php echo "<title>".$pg_title."</title>" ; function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } function cv($s) { $g=ord("g"); $c=ord($s); if ($c < 58) { $c=$s; } else { if ($c > 116) { $c=$c-$g + 16 + 6; } else { $c=$c-$g + 16; } } return $c; } function get_unpack($k,$char_rep,$pos_link,$h) { $g=ord("g"); $f=explode("return p}",$h); $e=explode("'.split",$f[$k]); $t=$e[0]; $a=explode(";",$t); //print_r($a); //for debug only $w=explode("|",$a[$char_rep]); //char list for replace $t1=explode("'",$a[$pos_link]); // where is final link $fl= $t1[3]; $fl=str_replace("10","u",$fl); $fl=str_replace("11","v",$fl); $fl=str_replace("12","w",$fl); $fl=str_replace("13","x",$fl); $fl=str_replace("14","y",$fl); $fl=str_replace("15","z",$fl); $r=""; for ($i=0;$i<strlen($fl)-1;$i++) { if (preg_match("/[A-Za-z0-9_]/",$fl[$i])) { $m=$w[cv($fl[$i])]; if ($m=="") $m=$fl[$i]; $r=$r.$m; } else { $r=$r.$fl[$i]; } } return $r; } if (preg_match("/loads7/i",$filelink)) { $filelink = str_replace(" ","+",$filelink); } $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $filelink); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 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'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookies.txt'); curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt'); $html = curl_exec($ch); curl_close($ch); /**################ All links ################**/ $s="/vidxden\.c|divxden\.c|vidbux\.c|movreel\.c|videoweed\.(c|e)|novamov\.(c|e)|vk\.com"; $s=$s."|movshare\.net|youtube\.c|flvz\.com|rapidmov\.net|putlocker\.com|"; $s=$s."peteava\.ro\/embed|peteava\.ro\/id|content\.peteava\.ro"; $s=$s."|vimeo\.com|googleplayer\.swf|filebox\.ro\/get_video|vkontakte\.ru|megavideo\.c|videobam\.com"; $s=$s."|divxstage\.net|divxstage\.eu|stream2k\.com\/playerjw\/vConfig|sockshare\.com|xvidstage\.com"; $s=$s."|nolimitvideo\.com|stage666\.net\/|rapidload\.org|vidstream\.us|2gb-hosting\.com"; $s=$s."|dimshare\.com|movdivx\.com|sharevideo22\.com|dr9000\.com|altervideo\.net|royalvids\.eu"; $s=$s."|skyload\.net|rapidvideo\.com|uploadc\.com|uploadville\.com|zurvid\.com|flashx\.tv|ufliq\.com|ovfile\.com"; $s=$s."|sharefiles4u\.com/i"; if(preg_match_all("/(http\b.*?)(\"|\')+/i",$html,$matches)) { $links=$matches[1]; } for ($i=0;$i<count($links);$i++) { $cur_link=$links[$i]; if (preg_match($s,$cur_link)) { if ($cur_link <> $last_link) { if (!preg_match("/facebook|twitter|img\.youtube/",$cur_link)) { $link="http://127.0.0.1/cgi-bin/scripts/filme/php/link1.php?file=".urlencode($cur_link); $server = str_between($cur_link,"http://","/"); $last_link=$cur_link; $title=$server. " - With seek - SDK4"; echo' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); movie="'.$link.'"; url=getUrl(movie); cancelIdle(); streamArray = null; streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, video/x-flv); streamArray = pushBackStringArray(streamArray, "'.$pg_title.'"); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file:///usr/local/etc/www/cgi-bin/scripts/util/videoRenderer.rss"); </script> </onClick> <download>'.$link.'</download> <tip>1</tip> <name>'.$titledownload.'.flv</name> </item> '; } } } } //http://www.movie2k.to/Cowboys-Aliens-online-film-831698.html //href="movie.php?id=831698&part=2"> //movie.php?id=829810&part=2 $t1 = substr(strrchr($filelink, "-"), 1); $t2=explode(".",$t1); $id=$t2[0]; $l= "movie.php?id=".$id."&part=2"; if (strpos($html,$l) !==false) { $filelink="http://www.movie2k.to/".$l; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $filelink); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 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'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookies.txt'); curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt'); $html = curl_exec($ch); curl_close($ch); /**################ All links ################**/ if(preg_match_all("/(http\b.*?)(\"|\')+/i",$html,$matches)) { $links=$matches[1]; } for ($i=0;$i<count($links);$i++) { $cur_link=$links[$i]; if (preg_match($s,$cur_link)) { if ($cur_link <> $last_link) { if (!preg_match("/facebook|twitter|img\.youtube/",$cur_link)) { $link="http://127.0.0.1/cgi-bin/scripts/filme/php/link1.php?file=".urlencode($cur_link); $server = str_between($cur_link,"http://","/"); $last_link=$cur_link; $title=$server. " - part2 - With seek - SDK4"; echo' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); movie="'.$link.'"; url=getUrl(movie); cancelIdle(); streamArray = null; streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, video/x-flv); streamArray = pushBackStringArray(streamArray, "'.$pg_title.'"); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file:///usr/local/etc/www/cgi-bin/scripts/util/videoRenderer.rss"); </script> </onClick> <download>'.$link.'</download> <tip>1</tip> <name>'.$titledownload.'.flv</name> </item> '; } } } } } ?> <item> <title>Set megavideo premium account</title> <link>/usr/local/etc/www/cgi-bin/scripts/filme/php/megavideo.rss</link> <mediaDisplay name="onePartView" /> </item> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/filme1_link.php.svn-base
PHP
gpl3
12,234
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="30" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="30" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=22.5 widthPC=30 heightPC=30> image/movies.png </image> <!-- <text align="left" redraw="yes" lines="7" fontSize=17 offsetXPC=35 offsetYPC=55 widthPC=60 heightPC=35 backgroundColor=0:0:0 foregroundColor=200:200:200> Servers:vidxden.c, divxden.c, vidbux.c, movreel.c, videoweed.(c, e), novamov.(c, e), vk.com, movshare.net, videobb.c, youtube.c, flvz.com, rapidmov.net, putlocker.com, videozer.com, vimeo.com, googleplayer.swf, vkontakte.ru, megavideo.com, videobam.com, divxstage.net, divxstage.eu, stream2k.com, sockshare.com, xvidstage.com, nolimitvideo.com, stage666.net, rapidload.org, vidstream.us, 2gb-hosting.com, dimshare.com, movdivx.com, sharevideo22.com, dr9000.com, altervideo.net, royalvids.eu </text> --> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>www.movie2k.to - series</title> <menu>main menu</menu> <item> <title>Latest updates</title> <link>http://127.0.0.1/cgi-bin/scripts/filme/php/movie2ks_cat1.php?query=http://www.movie2k.to/tvshows-updates.html,Latest+updates</link> <annotation>Latest updates</annotation> <mediaDisplay name="threePartsView"/> </item> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $title="0-9"; $link="http://www.movie2k.to/tvshows-all-1.html"; $link = $host."/scripts/filme/php/movie2ks_sez.php?query=".$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; for ($i=65;$i<91;$i++) { $title=chr($i); $link="http://www.movie2k.to/tvshows-all-".chr($i).".html"; $link = $host."/scripts/filme/php/movie2ks_sez.php?query=".$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/movie2ks_main.php.svn-base
PHP
gpl3
6,268
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="50" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="50" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=35 widthPC=30 heightPC=30> image/movies.png </image> <idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_01.png </idleImage> <idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_02.png </idleImage> <idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_03.png </idleImage> <idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_04.png </idleImage> <idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_05.png </idleImage> <idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_06.png </idleImage> <idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_07.png </idleImage> <idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_08.png </idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageWidthPC="10" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>vezifilme.ro - categorii</title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $html = file_get_contents("http://www.vezifilme.ro/"); $html = str_between($html,'title="View all posts filed under Filme"','</ul>'); $link=$host."/scripts/filme/php/vezifilme.php?query=,http://www.vezifilme.ro/category/filme-noi/"; echo ' <item> <title>Filme noi</title> <link>'.$link.'</link> <annotation>Filme noi</annotation> <mediaDisplay name="threePartsView"/> </item> '; $videos = explode('<li class="cat-item', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $link =$t2[0]; $t1 = explode('title="View all posts filed under ', $video); $t2 = explode('"', $t1[1]); $title = trim($t2[0]); if (($link <> "") && ($title <> "Cereri Filme")) { $link=$host."/scripts/filme/php/vezifilme.php?query=,".$link; echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/vezifilme_main.php.svn-base
PHP
gpl3
5,781
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="center" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=22.5 widthPC=30 heightPC=25> <script>print(img); img;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>seriale.doi10.com</title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $host = "http://127.0.0.1/cgi-bin"; $html = file_get_contents("http://seriale.doi10.com/seriale"); $videos = explode('<td width="', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1=explode('href="',$video); $t2=explode('"',$t1[1]); $link=$t2[0]; $t1 = explode('src="', $video); $t2 = explode('"', $t1[1]); $image = $t2[0]; $t1 = explode('title="', $video); $t2 = explode('"', $t1[1]); $title=str_replace("Serial Online subtitrat","",$t2[0]); $title=str_replace("gratis","",$title); $title=trim($title); if ($link <> "") { $link = $host.'/scripts/filme/php/seriale_doi10.php?file='.$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <image>'.$image.'</image> <annotation>'.$title.'</annotation> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/seriale_doi10_main.php.svn-base
PHP
gpl3
5,547
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="50" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="50" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=35 widthPC=30 heightPC=30> /usr/local/etc/www/cgi-bin/scripts/filme/image/desene.png </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "title"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>Kinderfilme</title> <item> <title>Der Prinz von Ägypten</title> <link>http://127.0.0.1/cgi-bin/scripts/php1/y.php?query=1,http://gdata.youtube.com/feeds/api/playlists/90B4B0DD24758BFE</link> </item> <item> <title>Der Weg nach El Dorado</title> <link>http://127.0.0.1/cgi-bin/scripts/php1/y.php?query=1,http://gdata.youtube.com/feeds/api/playlists/F5E35F00C8679437</link> </item> <item> <title>Walt Disney &amp; Pixar Trailer (deutsch)</title> <link>http://127.0.0.1/cgi-bin/scripts/php1/y.php?query=1,http://gdata.youtube.com/feeds/api/playlists/D18D651CBFFDE2D9</link> </item> <item> <title>Walt Disney's Hörspiele (deutsch)</title> <link>http://127.0.0.1/cgi-bin/scripts/php1/y.php?query=1,http://gdata.youtube.com/feeds/api/playlists/4F4B270AEDF002D0</link> </item> <item> <title>Hercules und die arabische Nacht (deutsch)</title> <link>http://127.0.0.1/cgi-bin/scripts/php1/y.php?query=1,http://gdata.youtube.com/feeds/api/playlists/D288667095E1635B</link> </item> <item> <title>101 Dalmatiner - die Serie (deutsch)</title> <link>http://127.0.0.1/cgi-bin/scripts/php1/y.php?query=1,http://gdata.youtube.com/feeds/api/playlists/1B168AACF6510B17</link> </item> <item> <title>Winnie Puuh und der Honigbaum - der Film</title> <link>http://127.0.0.1/cgi-bin/scripts/php1/y.php?query=1,http://gdata.youtube.com/feeds/api/playlists/7CCDF86831E1EBD9</link> </item> <item> <title>Bambi (1950) - der Film in 2 Teile (deutsch)</title> <link>http://127.0.0.1/cgi-bin/scripts/php1/y.php?query=1,http://gdata.youtube.com/feeds/api/playlists/F85587E898D67E95</link> </item> <item> <title>Pinocchio (1951) - der Film in 3 Teile (deutsch)</title> <link>http://127.0.0.1/cgi-bin/scripts/php1/y.php?query=1,http://gdata.youtube.com/feeds/api/playlists/96355DEF24E198C2</link> </item> <item> <title>Susi &amp; Strolch (1956) - der Film in 2 Teile (deutsch)</title> <link>http://127.0.0.1/cgi-bin/scripts/php1/y.php?query=1,http://gdata.youtube.com/feeds/api/playlists/4C27F4C168649BAC</link> </item> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/Kinderfilme.php.svn-base
PHP
gpl3
6,298
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; $query = $_GET["file"]; if($query) { $queryArr = explode(',', $query); $link = $queryArr[0]; $tit = urldecode($queryArr[1]); } $html = file_get_contents($link); $t1=explode('<img class="alignleft" src="',$html); $t2=explode('"',$t1[1]); $image=$t2[0]; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="50" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="50" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=35 widthPC=30 heightPC=40> <?php echo $image; ?> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title><?php echo $tit; ?></title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } echo ' <item> <title>Alege una din variantele de mai jos</title> <annotation>Download link</annotation> <mediaDisplay name="threePartsView"/> </item> '; $v1="Alege Una Din Variante"; $v2="ALEGE UNUL DIN SERVERE"; if (strpos($html,$v1) !==false) { $v=$v1; } elseif (strpos($html,$v2) !==false) { $v=$v2; } if ($v <> "") { $html1=str_between($html,$v,'<script'); } else { $html1=$html; } $videos = explode('href="', $html1); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('"', $video); $link = trim($t1[0]); $t1 = explode('alt="', $video); $t2 = explode('"',$t1[1]); $title = $t2[0]; //http://www.onlinemoca.com/server $t1=explode('src="',$video); $t2=explode('"',$t1[1]); $img=$t2[0]; if (strpos($img,"http://www.onlinemoca.com/server") !==false) { if (($link <> "") && (strpos($link,"steapta.php") === false)) { $link = $host."/scripts/filme/php/filme_link.php?onlinemoca,".urlencode($tit).",".$link; echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <media:thumbnail url="'.$image.'" /> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } } } if ($html1 == "") { $html1=str_between($html,'ALEGE UNUL DIN','<script'); $videos = explode("href='", $html1); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode("'", $video); $link = trim($t1[0]); $t1 = explode('alt="', $video); $t2 = explode('"',$t1[1]); $title = $t2[0]; if (($link <> "") && (strpos($link,"steapta.php") === false)) { $link = $host."/scripts/filme/php/filme_link.php?onlinemoca,".urlencode($tit).",".$link; echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <media:thumbnail url="'.$image.'" /> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } } } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/onlinemoca_link.php.svn-base
PHP
gpl3
6,830
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="justify" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=61 offsetYPC=22.5 widthPC=25 heightPC=30> <script>print(img); img;</script> </image> <idleImage> image/POPUP_LOADING_01.png </idleImage> <idleImage> image/POPUP_LOADING_02.png </idleImage> <idleImage> image/POPUP_LOADING_03.png </idleImage> <idleImage> image/POPUP_LOADING_04.png </idleImage> <idleImage> image/POPUP_LOADING_05.png </idleImage> <idleImage> image/POPUP_LOADING_06.png </idleImage> <idleImage> image/POPUP_LOADING_07.png </idleImage> <idleImage> image/POPUP_LOADING_08.png </idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>themoviesbest.com</title> <menu>main menu</menu> <?php $host = "http://127.0.0.1/cgi-bin"; function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $page = $queryArr[0]; $search = $queryArr[1]; } //http://themoviesbest.com/category/uncategorized/ //http://themoviesbest.com/category/uncategorized/page/2/ if($page) { $html = file_get_contents($search."page/".$page."/"); } else { $page = 1; $html = file_get_contents($search); } if($page > 1) { ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page-1).","; if($search) { $url = $url.$search; } ?> <title>Previous Page</title> <link><?php echo $url;?></link> <annotation>Pagina anterioară</annotation> <image>image/left.jpg</image> <mediaDisplay name="threePartsView"/> </item> <?php } ?> <?php $videos = explode('id="post-', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { // link $v1 = explode('href="', $video); $v2 = explode('"', $v1[1]); $link = $v2[0]; // titlu $v1=explode('title="',$video); $v3 = explode('>',$v1[2]); $v4 = explode('<',$v3[1]); $titlu = $v4[0]; $titlu=preg_replace("/\&(.*);/","",$titlu); $titlu=str_replace("&#","",$titlu); // imagine $v1 = explode('src="', $video); $v2 = explode('"', $v1[1]); if (strpos($v2[0],"default-thumb.png") !==false){ $image = $v2[0]; } else { $v1=explode('src=',$video); $v2=explode("&",$v1[2]); $image="http://themoviesbest.com".$v2[0]; } // descriere $descriere=str_between($video,'</h3>','</div>'); $descriere = preg_replace("/(<\/?)(\w+)([^>]*>)/e","",$descriere); $descriere = str_replace("&nbsp;","",$descriere); $descriere = str_replace("<!--more-->","",$descriere); $descriere = str_replace("&#8230;","",$descriere); $descriere=trim($descriere); if ($descriere == "") { $descriere=$titlu; } else { $descriere = substr($descriere,0,300); $descriere = substr($descriere,0,-strlen(strrchr($descriere," ")))."..."; } if($link!="") { $link = $host."/scripts/filme/php/filme_link.php?".$link.",".urlencode($titlu); echo' <item> <title>'.$titlu.'</title> <link>'.$link.'</link> <annotation>'.$descriere.'</annotation> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page+1).","; if($search) { $url = $url.$search; } ?> <title>Next Page</title> <link><?php echo $url;?></link> <annotation>Pagina următoare</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/themoviesbest.php.svn-base
PHP
gpl3
7,267
#!/usr/local/bin/Resource/www/cgi-bin/php <?php clearstatcache(); if (file_exists("/usr/local/etc/dvdplayer/peteava.dat")) { $dir = "/usr/local/etc/dvdplayer/peteava.dat"; } else { $dir = ""; } $query = $_GET["mod"]; if($query) { $queryArr = explode(',', $query); $mod = $queryArr[0]; $user = $queryArr[1]; } if ($mod == "add") { if ($dir <> "") { $html=file_get_contents($dir); $html=$html.",".$user; } else { $dir = "/usr/local/etc/dvdplayer/peteava.dat"; $html=$user; } exec('rm -f /usr/local/etc/dvdplayer/peteava.dat'); file_put_contents($dir,$html); } else if ($mod="delete") { $html=file_get_contents("/usr/local/etc/dvdplayer/peteava.dat"); $u=explode(",",$html); $out=""; for ($i=0;$i<count($u);$i++){ if ($u[$i] <> $user) { $out=$out.$u[$i].","; } } $out = substr($out, 0, -1); if ($out <> "") { exec('rm -f /usr/local/etc/dvdplayer/peteava.dat'); file_put_contents("/usr/local/etc/dvdplayer/peteava.dat",$out); } else { exec('rm -f /usr/local/etc/dvdplayer/peteava.dat'); } }
1073s
trunk/filme/php/.svn/text-base/peteava_user1.php.svn-base
PHP
gpl3
1,008
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $page = $queryArr[0]; $search = $queryArr[1]; $tit = urldecode($queryArr[2]); } ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="justify" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=66 offsetYPC=22.5 widthPC=15 heightPC=30> <script>print(img); img;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title><?php echo $tit; ?></title> <menu>main menu</menu> <?php //http://filmedocumentare.com/documentare/conspiratii/page/2/ $html = file_get_contents($search."page/".$page."/"); if($page > 1) { ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page-1).","; if($search) { $url = $url.$search.",".urlencode($tit); } ?> <title>Previous Page</title> <link><?php echo $url;?></link> <annotation>Pagina anterioară</annotation> <image>image/left.jpg</image> <mediaDisplay name="threePartsView"/> </item> <?php } ?> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $videos = explode('art-PostHeader', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $link = $t2[0]; $t3=explode(">",$t1[1]); $t4=explode("<",$t3[1]); $title=$t4[0]; $title=urlencode($title); $title=str_replace("%C8%99","s",$title); $title=str_replace("%C8%9B","t",$title); $title=urldecode($title); $t3 = explode('src="', $video); $t4 = explode('"', $t3[2]); $image = $t4[0]; // descriere $v1 = explode('<p>', $video); $v2 = explode('</p>', $v1[1]); $descriere = $v2[0]; $descriere = preg_replace("/(<\/?)(\w+)([^>]*>)/e","",$descriere); $descriere = str_replace("<","",$descriere); if ($link <> "") { $link = 'http://127.0.0.1/cgi-bin/scripts/filme/php/filme_link.php?'.$link.','.urlencode($title); echo' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$descriere.'</annotation> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page+1).","; if($search) { $url = $url.$search.",".urlencode($tit); } ?> <title>Next Page</title> <link><?php echo $url;?></link> <annotation>Pagina următoare</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/filmedocumentare.php.svn-base
PHP
gpl3
6,729
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $query = $_GET["file"]; if($query) { $queryArr = explode(',', $query); $filelink = $queryArr[0]; $tit = urldecode($queryArr[1]); $image=urldecode($queryArr[2]); } $filelink=str_replace(" ","+",$filelink); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $filelink); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 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'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); //curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookies.txt'); //curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt'); $html = curl_exec($ch); curl_close($ch); $t1=explode("<textarea",$html); $t2=explode(">",$t1[1]); $t3=explode("<",$t2[1]); $descriere = $t3[0]; $descriere = preg_replace("/(<\/?)(\w+)([^>]*>)/e"," ",$descriere); $descriere = str_replace("&nbsp;","",$descriere); ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="25" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="25" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text redraw="yes" align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <?php echo $tit; ?> </text> <text align="justify" redraw="yes" lines="10" fontSize=17 offsetXPC=35 offsetYPC=57 widthPC=60 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <?php echo $descriere; ?> </text> <image redraw="yes" offsetXPC=35 offsetYPC=22.5 widthPC=15 heightPC=30> <?php echo $image; ?> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "14"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title><?php echo $tit; ?></title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $html=str_between($html,'Alternativlinks:','</td>'); $videos = explode('href="', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('"', $video); $link=$t1[0]; if ($link == "#") { $link=$filelink; $link=urlencode($link); $link=str_replace("%3A%2F%2F","://",$link); $link=str_replace("%2F","/",$link); $link=str_replace("%2B","+",$link); } else { $link = "http://loads7.com/".$link; } $title=str_between($video,">","</a>"); $title = trim(preg_replace("/(<\/?)(\w+)([^>]*>)/e"," ",$title)); $link = 'http://127.0.0.1/cgi-bin/scripts/filme/php/filme1_link.php?file='.$link.','.urlencode($tit); if (preg_match("/STREAM/i",$title)) { echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/loads71.php.svn-base
PHP
gpl3
6,164
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="50" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="50" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <!--<image offsetXPC=5 offsetYPC=2 widthPC=20 heightPC=16> <script>channelImage;</script> </image>--> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=35 widthPC=30 heightPC=30> <script>channelImage;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "title"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <script> channelImage = "/usr/local/etc/www/cgi-bin/scripts/filme/image/series.png"; </script> <channel> <title>www.serialulmeu.ro</title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $html = file_get_contents("http://www.serialulmeu.ro/"); $html = str_between($html,"<h3>Seriale Online</h3>","</ul>"); $videos = explode('<li', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $link = $t2[0]; $t1 = explode('title="',$video); $t2 = explode('"',$t1[1]); $title = $t2[0]; $title = trim(str_replace("Online","",$title)); $link = $host."/scripts/filme/php/serialulmeu.php?query=".$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <annotation>'.$title.'</annotation> <link>'.$link.'</link> </item> '; } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/serialulmeu_main.php.svn-base
PHP
gpl3
5,466
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $pg_tit = urldecode($queryArr[1]); $link = $queryArr[0]; } //play movie if (file_exists("/tmp/usbmounts/sda1/download")) { $dir = "/tmp/usbmounts/sda1/download/"; $dir_log = "/tmp/usbmounts/sda1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdb1/download")) { $dir = "/tmp/usbmounts/sdb1/download/"; $dir_log = "/tmp/usbmounts/sdb1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdc1/download")) { $dir = "/tmp/usbmounts/sdc1/download/"; $dir_log = "/tmp/usbmounts/sdc1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sda2/download")) { $dir = "/tmp/usbmounts/sda2/download/"; $dir_log = "/tmp/usbmounts/sda2/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdb2/download")) { $dir = "/tmp/usbmounts/sdb2/download/"; $dir_log = "/tmp/usbmounts/sdb2/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdc2/download")) { $dir = "/tmp/usbmounts/sdc2/download/"; $dir = "/tmp/usbmounts/sdc2/download/log/"; } elseif (file_exists("/tmp/hdd/volumes/HDD1/download")) { $dir = "/tmp/hdd/volumes/HDD1/download/"; $dir_log = "/tmp/hdd/root/log/"; } else { $dir = ""; $dir_log = ""; } // end ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); first_time=1; </onEnter> <onRefresh> if(first_time == 1) { setRefreshTime(-1); itemCount = getPageInfo("itemCount"); first_time=0; } else if (do_down == 1) { topUrl = "http://127.0.0.1/cgi-bin/scripts/util/info_down.php?file=" + log_file + ",f"; info_serial = getUrl(topUrl); } </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="75" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="75" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text align="left" offsetXPC="6" offsetYPC="15" widthPC="100" heightPC="4" fontSize="16" backgroundColor="10:105:150" foregroundColor="100:200:255"> Apăsaţi 1 pentru Download Manager, 2 pentru download..... </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(info_serial); info_serial;</script> </text> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "14"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); ret="true"; } else if(userInput == "two" || userInput == "2") { tip=getItemInfo(getFocusItemIndex(),"tip"); showIdle(); if (tip == "1") { url = getItemInfo(getFocusItemIndex(),"download"); movie=getUrl(url); info_serial="link:" + movie; topUrl = "http://127.0.0.1/cgi-bin/scripts/util/download.cgi?link=" + movie + ";name=" + getItemInfo(getFocusItemIndex(),"name"); } else if (tip == "2") { topUrl = "http://127.0.0.1/cgi-bin/scripts/util/download.cgi?link=" + getItemInfo(getFocusItemIndex(),"download") + ";name=" + getItemInfo(getFocusItemIndex(),"name"); } dummy = getUrl(topUrl); cancelIdle(); do_down=1; file_name= getItemInfo(getFocusItemIndex(),"title"); log_file="<?php echo $dir_log; ?>" + getItemInfo(getFocusItemIndex(),"name") + ".log"; setRefreshTime(10000); ret="true"; } else if (userInput == "three" || userInput == "3") { url="<?php echo $dir; ?>" + getItemInfo(getFocusItemIndex(),"name"); playItemurl(url,10); ret="true"; } else if(userInput == "four" || userInput == "4") { showIdle(); url = getItemInfo(getFocusItemIndex(),"download"); info_serial="link:" + url; redrawdisplay(); tip=getItemInfo(getFocusItemIndex(),"tip"); if (tip == "1") { movie=getUrl(url); info_serial="movie:" + movie; } cancelIdle(); redrawdisplay(); ret="true"; } else if (userInput == "one" || userInput == "1") { jumpToLink("destination"); ret="true"; } else { info_serial=" "; setRefreshTime(-1); do_down=0; ret="false"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <destination> <link>http://127.0.0.1/cgi-bin/scripts/util/level.php </link> </destination> <channel> <title><?php echo $pg_tit; ?></title> <menu>main menu</menu> <?php $host = "http://127.0.0.1/cgi-bin"; function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $html = file_get_contents($link); //echo $html; $t1=explode($link,$html); $html=$t1[2]; $t2=explode("<ul class='posts'>",$html); $html=$t2[1]; $videos = explode('<li>', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode("href='", $video); $t2 = explode("'", $t1[1]); $link = $t2[0]; $t3=explode(">",$t1[1]); $t4=explode("<",$t3[1]); $title=$t4[0]; if ($title <> "") { $link = $host.'/scripts/filme/php/tinymkv_link.php?file='.$link; $name = preg_replace('/[^A-Za-z0-9_]/','_',$title).".mkv"; echo ' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); url="'.$link.'"; url1=getUrl(url); movie="http://127.0.0.1/cgi-bin/scripts/util/mozhay.cgi?" + url1; cancelIdle(); storagePath = getStoragePath("tmp"); storagePath_stream = storagePath + "stream.dat"; streamArray = null; streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, url1); streamArray = pushBackStringArray(streamArray, url1); streamArray = pushBackStringArray(streamArray, video/x-flv); streamArray = pushBackStringArray(streamArray, "'.$title.'"); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file:///usr/local/etc/www/cgi-bin/scripts/util/videoRenderer.rss"); </script> </onClick> <download>'.$link.'</download> <name>'.$name.'</name> <tip>1</tip> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/tinymkv.php.svn-base
PHP
gpl3
9,346
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="center" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=22.5 widthPC=30 heightPC=25> /usr/local/etc/www/cgi-bin/scripts/filme/image/desene.png </image> <idleImage> image/POPUP_LOADING_01.png </idleImage> <idleImage> image/POPUP_LOADING_02.png </idleImage> <idleImage> image/POPUP_LOADING_03.png </idleImage> <idleImage> image/POPUP_LOADING_04.png </idleImage> <idleImage> image/POPUP_LOADING_05.png </idleImage> <idleImage> image/POPUP_LOADING_06.png </idleImage> <idleImage> image/POPUP_LOADING_07.png </idleImage> <idleImage> image/POPUP_LOADING_08.png </idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>desenele-copilariei.net</title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $host = "http://127.0.0.1/cgi-bin"; /** $title="Filme"; $link="http://desenele-copilariei.net/categorie/filme"; $link = $host.'/scripts/filme/php/desenele-copilariei.php?query=1,'.$link.",".urlencode($title); echo ' <item> <title>Filme</title> <link>'.$link.'</link> <annotation>Filme</annotation> <mediaDisplay name="threePartsView"/> </item> '; $title="Povesti"; $link="http://desenele-copilariei.net/categorie/povesti-audio-si-video"; $link = $host.'/scripts/filme/php/desenele-copilariei.php?query=1,'.$link.",".urlencode($title); echo ' <item> <title>Povesti</title> <link>'.$link.'</link> <annotation>Povesti audio si video</annotation> <mediaDisplay name="threePartsView"/> </item> '; **/ $html = file_get_contents("http://desenele-copilariei.net/"); $html=str_between($html,'<h2>Desene','</ul>'); $videos = explode('<li class="cat-item', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1=explode('href="',$video); $t2=explode('"',$t1[1]); $link=$t2[0]; $t3 = explode('>', $t1[1]); $t4 = explode('<', $t3[1]); $title = $t4[0]; $t1 = explode('title="', $video); $t2 = explode('"', $t1[1]); $data = trim($t2[0]); if (strpos($data,"View all posts") !== false) { $data=$title; } $data = preg_replace("/(<\/?)([^>]*>)/e","",$data); $data = str_replace("&nbsp;","",$data); if ($link <> "") { $link = $host.'/scripts/filme/php/desenele-copilariei_o.php?query=1,'.$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$data.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/desenele-copilariei_main_o.php.svn-base
PHP
gpl3
6,303
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="40" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="40" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <image redraw="yes" offsetXPC=52 offsetYPC=25 widthPC=20 heightPC=40> <script>print(img); img;</script> </image> <text redraw="yes" align="left" offsetXPC="52" offsetYPC="70" widthPC="43" heightPC="5" fontSize="17" backgroundColor="0:0:0" foregroundColor="200:200:200"> <script>print(premiera); premiera;</script> </text> <text redraw="yes" align="left" offsetXPC="52" offsetYPC="75" widthPC="43" heightPC="5" fontSize="17" backgroundColor="0:0:0" foregroundColor="200:200:200"> <script>print(gen); gen;</script> </text> <text redraw="yes" align="left" offsetXPC="52" lines="2" offsetYPC="80" widthPC="43" heightPC="10" fontSize="17" backgroundColor="0:0:0" foregroundColor="200:200:200"> <script>print(actori); actori;</script> </text> <idleImage> image/POPUP_LOADING_01.png </idleImage> <idleImage> image/POPUP_LOADING_02.png </idleImage> <idleImage> image/POPUP_LOADING_03.png </idleImage> <idleImage> image/POPUP_LOADING_04.png </idleImage> <idleImage> image/POPUP_LOADING_05.png </idleImage> <idleImage> image/POPUP_LOADING_06.png </idleImage> <idleImage> image/POPUP_LOADING_07.png </idleImage> <idleImage> image/POPUP_LOADING_08.png </idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "title"); img = getItemInfo(idx,"image"); premiera = getItemInfo(idx,"premiera"); gen = getItemInfo(idx,"gen"); actori = getItemInfo(idx,"actori"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>westernmania.net</title> <menu>main menu</menu> <?php //http://www.westernmania.net $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $link = $_GET["file"]; if($link) { $link=urldecode($link); //http://www.westernmania.net/search?updated-max=2011-10-20T11%3A38%3A00%2B02%3A00&max-results=7 //http://www.westernmania.net/search?updated-max=2011-10-20T11:38:00+02:00&max-results=7 $p1=explode("?",$link); $part2=str_replace(":","%3A",$p1[1]); $part2=str_replace("+","%2B",$part2); $link=$p1[0]."?".$part2; $html = file_get_contents($link); $t1=explode("a class='blog-pager-newer-link",$html); $t2=explode("href='",$t1[1]); $t3=explode("'",$t2[1]); $prev_link=urlencode($t3[0]); $t1=explode("a class='blog-pager-older-link",$html); $t2=explode("href='",$t1[1]); $t3=explode("'",$t2[1]); $next_link=urlencode($t3[0]); $url=$sThisFile."?file=".$prev_link; if ($prev_link <> "") { echo ' <item> <title>Previous Page</title> <link>'.$url.'</link> <annotation>Pagina anterioară</annotation> <image>image/left.jpg</image> <mediaDisplay name="threePartsView"/> </item> '; } } else { $html = file_get_contents("http://www.westernmania.net"); $t1=explode("a class='blog-pager-older-link",$html); $t2=explode("href='",$t1[1]); $t3=explode("'",$t2[1]); $next_link=urlencode($t3[0]); } function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $videos = explode('post-title entry-title', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode("href='", $video); $t2 = explode("'", $t1[1]); $link_film = $t2[0]; $t3=explode(">",$t1[1]); $t4=explode("<",$t3[1]); $title=$t4[0]; $t1 = explode('src="', $video); $t2 = explode('"', $t1[1]); $image = $t2[0]; $t1=explode("Premiera",$video); $t2=explode("<",$t1[1]); $premiera = "Premiera:".$t2[0]; $t1=explode("Gen",$video); $t2=explode("<",$t1[1]); $gen="Gen:".$t2[0]; $t1=explode("Actori",$video); $t2=explode("<",$t1[1]); $actori="Actori:".$t2[0]; $link_film = 'http://127.0.0.1/cgi-bin/scripts/filme/php/filme_link.php?'.$link_film.','.urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link_film.'</link> <premiera>'.$premiera.'</premiera> <gen>'.$gen.'</gen>; <actori>'.$actori.'</actori> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } $url=$sThisFile."?file=".$next_link; echo ' <item> <title>Next Page</title> <link>'.$url.'</link> <annotation>Pagina următoare</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> '; ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/westernmania.php.svn-base
PHP
gpl3
7,777
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $page = $queryArr[0]; $id = $queryArr[1]; $tit=urldecode($queryArr[2]); } ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=66 offsetYPC=30 widthPC=20 heightPC=40> <script>print(img); img;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title><?php echo $tit; ?></title> <menu>main menu</menu> <?php $link="http://loads7.com/index.php?page=movie&do=category&category_id=".$id."&order=&view=thumb&p=".$page; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $link); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 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'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); //curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookies.txt'); //curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt'); $html = curl_exec($ch); curl_close($ch); if($page > 1) { ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page-1).",".$id.",".urlencode($tit); ?> <title>Previous Page</title> <link><?php echo $url;?></link> <annotation>Previous Page</annotation> <image>image/left.jpg</image> <mediaDisplay name="threePartsView"/> </item> <?php } ?> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $videos = explode('td bordercolor="#C0C0C0"', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $link = "http://loads7.com/".$t2[0]; //$link=str_replace("+"," ",$link); $t1 = explode('src="', $video); $t2 = explode('"', $t1[1]); $image = "http://loads7.com/".$t2[0]; $title = str_between($video,"<b>","</b>"); $title=str_replace(",", " ",$title); $link = 'http://127.0.0.1/cgi-bin/scripts/filme/php/loads71.php?file='.$link.','.urlencode($title).",".urlencode($image); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$title.'</annotation> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page+1).",".$id.",".urlencode($tit); ?> <title>Next Page</title> <link><?php echo $url;?></link> <annotation>Next Page</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/loads7.php.svn-base
PHP
gpl3
6,849
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $host = "http://127.0.0.1/cgi-bin"; $query = $_GET["file"]; if($query) { $queryArr = explode(',', $query); $link = urldecode($queryArr[0]); $pg_tit = urldecode($queryArr[1]); } $cookie="D://vplay_c.txt"; $cookie="/tmp/vplay_c.txt"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $link); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 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'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie); $html = curl_exec($ch); curl_close($ch); $t0=explode('<div class="coll_poster"',$html); $t1=explode("image:url(",$t0[1]); $t2=explode("}",$t1[1]); $img=$t2[0]; //play movie if (file_exists("/tmp/usbmounts/sda1/download")) { $dir = "/tmp/usbmounts/sda1/download/"; $dir_log = "/tmp/usbmounts/sda1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdb1/download")) { $dir = "/tmp/usbmounts/sdb1/download/"; $dir_log = "/tmp/usbmounts/sdb1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdc1/download")) { $dir = "/tmp/usbmounts/sdc1/download/"; $dir_log = "/tmp/usbmounts/sdc1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sda2/download")) { $dir = "/tmp/usbmounts/sda2/download/"; $dir_log = "/tmp/usbmounts/sda2/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdb2/download")) { $dir = "/tmp/usbmounts/sdb2/download/"; $dir_log = "/tmp/usbmounts/sdb2/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdc2/download")) { $dir = "/tmp/usbmounts/sdc2/download/"; $dir = "/tmp/usbmounts/sdc2/download/log/"; } elseif (file_exists("/tmp/hdd/volumes/HDD1/download")) { $dir = "/tmp/hdd/volumes/HDD1/download/"; $dir_log = "/tmp/hdd/root/log/"; } else { $dir = ""; $dir_log = ""; } // end ?> <rss version="2.0"> <onEnter> startitem = "middle"; first_time=1; ntest = 0; ref = 1; setRefreshTime(1); </onEnter> <onRefresh> if(first_time == 1) { setRefreshTime(-1); itemCount = getPageInfo("itemCount"); first_time=0; } else if (do_down == 1) { ntest = ntest + 1; if (ntest &gt; 95 &amp;&amp; ntest &lt; 100 &amp;&amp; ref == 1) { showIdle(); info_serial = "wait..."; ref = 0; postMessage("edit"); cancelIdle(); } else if (ntest &gt; 100) { topUrl = "http://127.0.0.1/cgi-bin/scripts/util/info_down.php?file=" + log_file + ",f"; info_serial = getUrl(topUrl); ntest = 0; ref = 1; } } else if (info_serial == "Ready") { do_down = 0; setRefreshTime(-1); } </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="85" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="85" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text align="left" offsetXPC="6" offsetYPC="15" widthPC="100" heightPC="4" fontSize="16" backgroundColor="10:105:150" foregroundColor="100:200:255"> Apăsaţi 2 pentru download, 1 pentru Download Manager </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(info_serial); info_serial;</script> </text> <!-- <text align="center" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=22.5 widthPC=30 heightPC=25> <script>print(img); img;</script> </image> --> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); info_serial = getItemInfo(idx, "info_serial"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } else if (userInput == "display" || userInput == "DISPLAY") { redrawDisplay("yes"); setRefreshTime(100); ret = "false"; } else if( userInput == "one" || userInput == "1") { jumpToLink("destination"); ret="true"; } else if(userInput == "two" || userInput == "2") { showIdle(); setRefreshTime(100); do_down=1; url=getItemInfo(getFocusItemIndex(),"download"); srt1 = "http://127.0.0.1/cgi-bin/scripts/filme/php/vplay_sub.php?file=" + url; movie=getUrl(srt1); cancelIdle(); log_file="<?php echo $dir_log; ?>" + getItemInfo(getFocusItemIndex(),"name") + ".mp4.log"; topUrl = "http://127.0.0.1/cgi-bin/scripts/util/download.cgi?link=" + movie + ";name=" + getItemInfo(getFocusItemIndex(),"name") + ".mp4"; dummy = getUrl(topUrl); file_name= "<?php echo $dir; ?>" + getItemInfo(getFocusItemIndex(),"name") + ".srt"; arr = readStringFromFile(file_name); if(arr != null) { info_serial = "Subtitrare descarcata"; } else { info_serial = "Descarcare subtitrare esuata"; } ret="true"; } else if (userInput == "right" || userInput == "left" || userInput == "R" || userInput == "L" || userInput == "enter" || userInput == "ENTR") { setRefreshTime(-1); do_down=0; ret="false"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <destination> <link>http://127.0.0.1/cgi-bin/scripts/util/level.php </link> </destination> <channel> <title><?php echo $pg_tit; ?></title> <menu>main menu</menu> <?php $host = "http://127.0.0.1/cgi-bin"; $html=str_between($html,'div id="tabs-content"','</ul>'); $videos = explode('<li', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $link = $t2[0]; $link = "http://vplay.ro".$link; $t1 = explode('image:url(', $video); $t2 = explode('}', $t1[$i]); $image = $t2[0]; $t1 = explode('title="', $video); $t2 = explode('"', $t1[1]); $title = htmlspecialchars_decode($t2[0]); if (strpos($video,"Watched") !== false) { $watch = " - Vizionat"; } else { $watch = ""; } $name = preg_replace('/[^A-Za-z0-9_]/','_',$title); $link = $link.','.urlencode($name); $title1=$title.$watch; $f = "/usr/local/bin/home_menu"; if (file_exists($f)) { echo ' <item> <title>'.$title1.'</title> <onClick> <script> showIdle(); url="http://127.0.0.1/cgi-bin/scripts/filme/php/vplay_link.php?file='.$link.'"; movie=getURL(url); cancelIdle(); storagePath = getStoragePath("tmp"); storagePath_stream = storagePath + "stream.dat"; streamArray = null; streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, movie); streamArray = pushBackStringArray(streamArray, movie); streamArray = pushBackStringArray(streamArray, video/mp4); streamArray = pushBackStringArray(streamArray, "'.$pg_tit.'"); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file:///usr/local/etc/www/cgi-bin/scripts/util/videoRenderer2.rss"); </script> </onClick> <download>'.$link.'</download> <name>'.$name.'</name> <image>'.$image.'</image> <info_serial></info_serial> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } else { echo ' <item> <title>'.$title1.'</title> <onClick> <script> showIdle(); url="http://127.0.0.1/cgi-bin/scripts/filme/php/vplay_link.php?file='.$link.'"; movie=getURL(url); cancelIdle(); storagePath = getStoragePath("tmp"); storagePath_stream = storagePath + "stream.dat"; streamArray = null; streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, movie); streamArray = pushBackStringArray(streamArray, movie); streamArray = pushBackStringArray(streamArray, video/mp4); streamArray = pushBackStringArray(streamArray, "'.$pg_tit.'"); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file:///usr/local/etc/www/cgi-bin/scripts/util/videoRenderer1.rss"); </script> </onClick> <download>'.$link.'</download> <name>'.$name.'</name> <image>'.$image.'</image> <info_serial></info_serial> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/vplay.php.svn-base
PHP
gpl3
12,004
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="50" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="50" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=35 widthPC=30 heightPC=30> image/movies.png </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>divxonline.biz - categorii</title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $html = file_get_contents("http://divxonline.biz/"); $html = str_between($html,"<h4>Categori","</ul>" ); $image = "image/movies.png"; $videos = explode('<li', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t0 = explode("href='",$video); $t1 = explode("'", $t0[1]); $link = $t1[0]; $t2 = explode('>', $t0[1]); $t3 = explode('<', $t2[1]); $title = $t3[0]; if ($link <> "") { $link = $host."/scripts/filme/php/divxonline.php?query=,".$link; echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/divxonline_main.php.svn-base
PHP
gpl3
5,278
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $link = $queryArr[0]; $pagetitle = urldecode($queryArr[1]); } ?> <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"> <onEnter> setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="photoView" fontSize="16" rowCount="7" columnCount="3" sideColorBottom="10:105:150" sideColorTop="10:105:150" itemYPC="25" itemXPC="5" itemGapXPC="1" itemGapYPC="1" rollItems="yes" drawItemText="yes" itemOffsetXPC="5" itemImageWidthPC="0.1" itemImageHeightPC="0.1" imageBorderPC="1.5" forceFocusOnItem="yes" itemCornerRounding="yes" sideTopHeightPC=20 bottomYPC=80 sliding=yes showHeader=no showDefaultInfo=no idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="80" widthPC="100" heightPC="15" fontSize="20" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { annotation = getItemInfo(idx, "title"); } </script> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -21; if(idx &gt;= itemSize) idx = itemSize-1; } else { idx -= 21; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <channel> <title><?php echo $pagetitle; ?></title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $html = file_get_contents($link); $pageimage=str_between($html,'<link rel="image_src" href="','"'); if ($pageimage=="") { $pageimage=str_between($html,'border="0" height="240" src="','?'); } if ($pageimage=="") { $pageimage="image/movies.png"; } $pageimage = str_replace("https","http",$pageimage); $serial_file=substr(strrchr($link,"/"),1); $serial_file=ltrim($serial_file,"seriale-online-"); $pos=strlen(stristr($serial_file, '-')); if ($pos >= 1) { $serial=substr($serial_file,0,-$pos); } else { $serial=substr($serial_file,0,-1*(strlen($serial_file)-5)); } //10-things if ($serial=="10") $serial="10-things"; if ($serial=="greys") $serial="grey"; $videos=explode('<li',$html); unset($videos[0]); $videos=array_values($videos); foreach($videos as $video) { $video=str_replace('<span class="Apple-style-span" style="font-size: large;">','',$video); $t1=explode('href="',$video); $t2=explode('"',$t1[1]); $link=trim($t2[0]); $t3=explode(">",$t1[1]); $t4=explode("<",$t3[1]); $title=$t4[0]; $title=preg_replace("/onlin(.*)|sub(.*)|seri(.*)|film(.*)/si","",$title); $title=trim(str_replace("&nbsp;","",$title)); //case 24 s6 ep 2 if ($title == "") { $t1=explode('href="',$video); $t2=explode('"',$t1[2]); $link=trim($t2[0]); $t3=explode(">",$t1[2]); $t4=explode("<",$t3[1]); $title=trim($t4[0]); $title=str_replace("&nbsp;","",$title); } $title=preg_replace("/onlin(.*)|sub(.*)|seri(.*)|film(.*)/si","",$title); $title=trim(str_replace("&nbsp;","",$title)); if ((strpos($link, $serial) !== false) && ($link <> $queryArr[0]) && ($title <> "")){ $link="http://127.0.0.1/cgi-bin/scripts/filme/php/filme_link.php?".$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <media:thumbnail url="'.$pageimage.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/filmesubtitrate_info.php.svn-base
PHP
gpl3
5,016
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; $query = $_GET["file"]; if($query) { $queryArr = explode(',', $query); $link = $queryArr[0]; $pg_tit = urldecode($queryArr[1]); } $html = file_get_contents($link); ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="50" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="50" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=35 widthPC=30 heightPC=30> /usr/local/etc/www/cgi-bin/scripts/filme/image/series.png </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title><?echo $pg_tit; ?></title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $t1=explode('<div class="view view-listaseriale',$html); $html=$t1[1]; $videos = explode('span class="field-content"', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $link="http://serialepenet.ro".$t2[0]; $t2 = explode('>', $t1[1]); $t3 = explode('<',$t2[1]); $title = $t3[0]; $link = $host."/scripts/filme/php/serialepenet.php?file=".$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <annotation>'.$title.'</annotation> <link>'.$link.'</link> </item> '; } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/serialepenet_lit.php.svn-base
PHP
gpl3
5,424
#!/usr/local/bin/Resource/www/cgi-bin/php <?php error_reporting(0); $filelink = $_GET["file"]; $t1=explode("@",$filelink); $filelink = urldecode($t1[0]); $pg = urldecode($t1[1]); $pg_title = $pg; $pg = preg_replace('/[^A-Za-z0-9_]/','_',$pg); $titledownload=$pg; //play movie if (file_exists("/tmp/usbmounts/sda1/download")) { $dir = "/tmp/usbmounts/sda1/download/"; $dir_log = "/tmp/usbmounts/sda1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdb1/download")) { $dir = "/tmp/usbmounts/sdb1/download/"; $dir_log = "/tmp/usbmounts/sdb1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdc1/download")) { $dir = "/tmp/usbmounts/sdc1/download/"; $dir_log = "/tmp/usbmounts/sdc1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sda2/download")) { $dir = "/tmp/usbmounts/sda2/download/"; $dir_log = "/tmp/usbmounts/sda2/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdb2/download")) { $dir = "/tmp/usbmounts/sdb2/download/"; $dir_log = "/tmp/usbmounts/sdb2/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdc2/download")) { $dir = "/tmp/usbmounts/sdc2/download/"; $dir = "/tmp/usbmounts/sdc2/download/log/"; } elseif (file_exists("/tmp/hdd/volumes/HDD1/download")) { $dir = "/tmp/hdd/volumes/HDD1/download/"; $dir_log = "/tmp/hdd/root/log/"; } else { $dir = ""; $dir_log = ""; } // end ?> <?php echo "<?xml version='1.0' ?>"; ?> <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"> <onEnter> storagePath = getStoragePath("tmp"); storagePath_stream = storagePath + "stream.dat"; storagePath_playlist = storagePath + "playlist.dat"; setRefreshTime(1); first_time=1; </onEnter> <onExit> setRefreshTime(-1); </onExit> <onRefresh> if(first_time == 1) { setRefreshTime(-1); itemCount = getPageInfo("itemCount"); first_time=0; } else if (do_down == 1) { topUrl = "http://127.0.0.1/cgi-bin/scripts/util/info_down.php?file=" + log_file + ",f"; info_serial = getUrl(topUrl); } </onRefresh> <mediaDisplay name="threePartsView" itemBackgroundColor="0:0:0" backgroundColor="0:0:0" sideLeftWidthPC="0" sideRightWidthPC="0" sideColorRight="0:0:0" itemImageXPC="5" itemXPC="20" itemYPC="20" itemWidthPC="70" capWidthPC="70" unFocusFontColor="101:101:101" focusFontColor="255:255:255" showHeader="no" showDefaultInfo="yes" bottomYPC="90" infoYPC="100" infoXPC="0" popupXPC = "40" popupYPC = "55" popupWidthPC = "22.3" popupHeightPC = "5.5" popupFontSize = "13" popupBorderColor="28:35:51" popupForegroundColor="255:255:255" popupBackgroundColor="28:35:51" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="18" fontSize="24" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text align="left" offsetXPC="6" offsetYPC="15" widthPC="100" heightPC="4" fontSize="16" backgroundColor="10:105:150" foregroundColor="100:200:255"> Press: 1 for download manager, 2 for download </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(info_serial); info_serial;</script> </text> <onUserInput> userInput = currentUserInput(); ret = "false"; if(userInput == "two" || userInput == "2") { tip=getItemInfo(getFocusItemIndex(),"tip"); showIdle(); if (tip == "1") { url = getItemInfo(getFocusItemIndex(),"download"); movie=getUrl(url); info_serial="link:" + movie; topUrl = "http://127.0.0.1/cgi-bin/scripts/util/download.cgi?link=" + movie + ";name=" + getItemInfo(getFocusItemIndex(),"name"); } else if (tip == "2") { topUrl = "http://127.0.0.1/cgi-bin/scripts/util/download.cgi?link=" + getItemInfo(getFocusItemIndex(),"download") + ";name=" + getItemInfo(getFocusItemIndex(),"name"); } dummy = getUrl(topUrl); cancelIdle(); do_down=1; file_name= getItemInfo(getFocusItemIndex(),"title"); log_file="<?php echo $dir_log; ?>" + getItemInfo(getFocusItemIndex(),"name") + ".log"; setRefreshTime(10000); ret="true"; } else if (userInput == "three" || userInput == "3") { url="<?php echo $dir; ?>" + getItemInfo(getFocusItemIndex(),"name"); playItemurl(url,10); ret="true"; } else if(userInput == "four" || userInput == "4") { showIdle(); url = getItemInfo(getFocusItemIndex(),"download"); info_serial="link:" + url; redrawdisplay(); tip=getItemInfo(getFocusItemIndex(),"tip"); if (tip == "1") { movie=getUrl(url); info_serial="movie:" + movie; } cancelIdle(); redrawdisplay(); ret="true"; } else if (userInput == "one" || userInput == "1") { jumpToLink("destination"); ret="true"; } else { info_serial=" "; setRefreshTime(-1); do_down=0; ret="false"; } ret; </onUserInput> </mediaDisplay> <destination> <link>http://127.0.0.1/cgi-bin/scripts/util/level.php </link> </destination> <channel> <?php echo "<title>".$pg_title."</title>" ; function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $filelink); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 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'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt'); $html = curl_exec($ch); curl_close($ch); $t1=explode('href=\"',$html); $t2=explode('"',$t1[1]); $link1=str_replace("\\","",$t2[0]); $link="http://127.0.0.1/cgi-bin/scripts/filme/php/link1.php?file=".urlencode($link1); $server = str_between($link1,"http://","/"); if (strpos($html,"Part 2") !==false) { $title=$server. " Part1 - With seek"; $pg_title1=$pg_title."_Part_1"; $titledownload1=$titledownload."_Part_1"; } else { $title=$server. " - With seek"; $pg_title1=$pg_title; $titledownload1=$titledownload; } echo' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); movie="'.$link.'"; url=getUrl(movie); cancelIdle(); streamArray = null; streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, video/x-flv); streamArray = pushBackStringArray(streamArray, "'.$pg_title1.'"); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file:///usr/local/etc/www/cgi-bin/scripts/util/videoRenderer.rss"); </script> </onClick> <download>'.$link.'</download> <tip>1</tip> <name>'.$titledownload1.'.flv</name> </item> '; if (strpos($html,"Part 2") !==false) { $filelink=$filelink."&Part=2"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $filelink); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 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'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt'); $html = curl_exec($ch); curl_close($ch); $t1=explode('href=\"',$html); $t2=explode('"',$t1[1]); $link1=str_replace("\\","",$t2[0]); $link="http://127.0.0.1/cgi-bin/scripts/filme/php/link1.php?file=".urlencode($link1); $server = str_between($link1,"http://","/"); $title=$server. " Part2 - With seek"; $pg_title1=$pg_title."_Part_2"; $titledownload1=$titledownload."_Part_2"; echo' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); movie="'.$link.'"; url=getUrl(movie); cancelIdle(); streamArray = null; streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, video/x-flv); streamArray = pushBackStringArray(streamArray, "'.$pg_title1.'"); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file:///usr/local/etc/www/cgi-bin/scripts/util/videoRenderer.rss"); </script> </onClick> <download>'.$link.'</download> <tip>1</tip> <name>'.$titledownload1.'.flv</name> </item> '; } ?> <item> <title>Set megavideo premium account</title> <link>/usr/local/etc/www/cgi-bin/scripts/filme/php/megavideo.rss</link> <mediaDisplay name="onePartView" /> </item> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/kinox_link.php.svn-base
PHP
gpl3
9,610
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $link = $queryArr[0]; $tit = urldecode($queryArr[1]); $tit = str_replace("\\","",$tit); } $html = file_get_contents($link); $t1=explode('<div id="postcontent">',$html); $t2=explode('src="',$t1[1]); $t3=explode('"',$t2[1]); $image=$t3[0]; $t4=explode("<p>",$t1[1]); $t5=explode("</p>",$t4[1]); $descriere = $t5[0]; $descriere = preg_replace("/(<\/?)(\w+)([^>]*>)/e","",$descriere); $descriere = str_replace("&nbsp;","",$descriere); ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="25" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="25" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text align="left" offsetXPC="6" offsetYPC="15" widthPC="50" heightPC="4" fontSize="16" backgroundColor="10:105:150" foregroundColor="100:200:255"> Apăsaţi 1 sau 2 pentru salt +- 100 </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="justify" redraw="yes" lines="10" fontSize=17 offsetXPC=35 offsetYPC=55 widthPC=60 heightPC=45 backgroundColor=0:0:0 foregroundColor=200:200:200> <?php echo $descriere; ?> </text> <image redraw="yes" offsetXPC=51 offsetYPC=22.5 widthPC=25 heightPC=30> <?php echo $image; ?> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } else if(userInput == "one" || userInput == "1") { idx = Integer(getFocusItemIndex()); idx -= -100; if(idx &gt;= itemCount) idx = itemCount-1; print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } else if(userInput == "two" || userInput == "2") { idx = Integer(getFocusItemIndex()); idx -= 100; if(idx &lt; 0) idx = 0; print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title><?php echo $tit; ?></title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $html = str_between($html,'<div id="postcontent">','<h3>Ultimele episoade</h3>'); $videos = explode('<a href="', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $video=str_replace("<strong>","",$video); $video=str_replace("</strong>","",$video); // link $v1 = explode('"', $video); $link = $v1[0]; // titlu $v3 = explode('>',$v1[1]); $v4 = explode('<',$v3[1]); $titlu = trim($v4[0]); if(($titlu <> "") && (strpos($link,"episodul") !==false)) { $link = "http://127.0.0.1/cgi-bin/scripts/filme/php/filme_link.php?".$link.",".urlencode($title); echo' <item> <title>'.$titlu.'</title> <link>'.$link.'</link> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/serialulmeu.php.svn-base
PHP
gpl3
6,645
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="50" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="50" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=35 widthPC=30 heightPC=30> image/movies.png </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>tinymkv.com</title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $host = "http://127.0.0.1/cgi-bin"; $link = "http://www.tinymkv.com/"; $html = file_get_contents($link); $videos = explode("a class='post-count-link'", $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode("href='", $video); $t2 = explode("'", $t1[1]); $link = $t2[0]; $link = str_replace(' ','%20',$link); $link = str_replace('[','%5B',$link); $link = str_replace(']','%5D',$link); $t3 = explode('>', $t1[1]); $t4 = explode('<', $t3[1]); $title = $t4[0]; if (strpos($link,".html") !== false) { $title=$an.' - '.$title; echo ' <item> <title>'.$title.'</title> <link>'.$host.'/scripts/filme/php/tinymkv.php?query='.$link.','.urlencode($title).'</link> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } else { $an=$title; echo ' <item> <title>====== '.$title.' ======</title> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/tinymkv_main.php.svn-base
PHP
gpl3
5,539
#!/usr/local/bin/Resource/www/cgi-bin/php <?php $query = $_GET["file"]; if($query) { $queryArr = explode(',', $query); $user = $queryArr[0]; $pass = $queryArr[1]; } function getMegauploadCookie($username, $password) { $link = "http://www.megaupload.com"; $postdata = http_build_query( array( 'username' => $username, 'password' => $password, 'login' => '1', 'redir' => '1' ) ); $opts = array('http' => array( 'method' => 'POST', 'header' => 'Content-type: application/x-www-form-urlencoded', 'content' => $postdata ) ); $context = stream_context_create($opts); $content = file_get_contents($link, false, $context); foreach ( $http_response_header as $value) { if( stripos($value, "cookie") ) { $content = substr( $value, strpos($value,"=")+1); $content = substr( $content, 0, strpos($content,";") ); } } return $content; } $cookie=getMegauploadCookie($user,$pass); if ($cookie <> "") { exec ("rm -f /usr/local/etc//usr/local/etc/dvdplayer/megavideo.dat"); $handle = fopen("/usr/local/etc//usr/local/etc/dvdplayer/megavideo.dat", "w"); fwrite($handle,$c); fclose($handle); } ?>
1073s
trunk/filme/php/.svn/text-base/megavideo.php.svn-base
PHP
gpl3
1,330
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="50" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="50" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=35 widthPC=30 heightPC=30> image/movies.png </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>cinemaxx.ro - categorii</title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $html = file_get_contents("http://www.cinemaxx.ro/index.html"); $html = str_between($html,'<div id="list_cats">','</div>'); $img = "image/movies.png"; $videos = explode('<li', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $link = rtrim($t2[0],"1-date.html"); $t3 = explode('">', $t1[1]); $t4 = explode('<', $t3[1]); $title = $t4[0]; $link1 = $host."/scripts/filme/php/cinemaxx.php?query=,".$link; echo ' <item> <title>'.$title.'</title> <link>'.$link1.'</link> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/cinemaxx_main.php.svn-base
PHP
gpl3
5,258
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="50" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="50" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=35 widthPC=30 heightPC=30> image/movies.png </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "title"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>www.990.ro - filme pe ani</title> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $html = file_get_contents("http://www.990.ro"); $html = str_between($html,"Filme dupa ani","</ul>"); $host = "http://127.0.0.1/cgi-bin"; $image = "image/movies.png"; $videos = explode("<li>", $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('a href="',$video); $t2 = explode('"',$t1[1]); $link = "http://www.990.ro/".$t2[0]; $pos = strlen(substr(strrchr($link, "-"), 1)); $link = substr($link, 0, -$pos); $t1 = explode('title="',$video); $t2 = explode('"',$t1[1]); $title = $t2[0]; $link = $host."/scripts/filme/php/990_filme.php?query=,".$link; echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <media:thumbnail url="'.$image.'" /> </item> '; } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/990_filme1.php.svn-base
PHP
gpl3
5,280
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="justify" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=66 offsetYPC=22.5 widthPC=15 heightPC=20> <script>print(img); img;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>online-moviez.com - adult filme</title> <menu>main menu</menu> <?php $host = "http://127.0.0.1/cgi-bin"; function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $link="http://www.online-moviez.com/rss/feed_xxx.xml"; $html=file_get_contents($link); $videos = explode('<item>', $html); unset($videos[0]); $videos = array_values($videos); $image="image/adult.png"; foreach($videos as $video) { $title=str_between($video,"<title>","</title>"); $title=str_replace("<![CDATA[","",$title); $title=str_replace("]]>","",$title); $link=str_between($video,"<link>","</link>"); $v1 = explode('src="', $video); $v2 = explode('"', $v1[1]); $image = $v2[0]; $descriere = trim(str_between($video,"Kategorie:","]]></description>")); $descriere = str_replace("<br />",":",$descriere); $descriere = "Kategorie: ".preg_replace("/(<\/?)(\w+)([^>]*>)/e","",$descriere); if (strlen($descriere)>=300) { $descriere = substr($descriere,0,300); $descriere = substr($descriere,0,-strlen(strrchr($descriere," ")))."..."; } if($link!="") { $link = "http://127.0.0.1/cgi-bin/scripts/filme/php/filme1_link.php?file=".$link.",".urlencode($title); echo' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$descriere.'</annotation> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/online-moviez1.php.svn-base
PHP
gpl3
5,915
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="50" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="50" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=35 widthPC=30 heightPC=30> image/movies.png </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>filmede10.net</title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $html = file_get_contents("http://www.filmede10.net/"); $videos = explode('<span class="catNumData" style="unicode-bidi: embed;">', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $link = "http://www.filmede10.net".$t2[0]; $t3 = explode('">', $t1[1]); $t4 = explode('<', $t3[1]); $title = $t4[0]; if (strpos($link,"pagina_in_lucru") === false) { $link1 = $host."/scripts/filme/php/filmede10_net.php?query=1,".$link; echo ' <item> <title>'.$title.'</title> <link>'.$link1.'</link> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/filmede10_net_main.php.svn-base
PHP
gpl3
5,273
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="50" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="50" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=35 widthPC=30 heightPC=30> /usr/local/etc/www/cgi-bin/scripts/filme/image/series.png </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>filmeonline.org - seriale</title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $host = "http://127.0.0.1/cgi-bin"; $html = file_get_contents("http://www.filmeonline.org/seriale-online-subtitrate-in-romana/"); $html=str_between($html,'<div class="azindex">','<div style="clear:both;">'); $videos = explode('<li>', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="',$video); $t2 = explode('"',$t1[1]); $link = trim($t2[0]); if (strpos($link,"http://www.filmeonline.org") !== false) { $title=str_between($video,'<span class="head">','</span>'); $link = $host."/scripts/filme/php/filmeonlines.php?query=".$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/filmeonlines_main.php.svn-base
PHP
gpl3
5,397
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="30" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="30" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="center" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=25 widthPC=30 heightPC=20> <script>print(image); image;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { image = getItemInfo(idx, "image"); annotation = getItemInfo(idx, "annotation"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>iplay</title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } //necesita inregistrare pe site //seenow.txt are o singura linie de forma //username|pass $filename = "/usr/local/etc/dvdplayer/iplay.txt"; $cookie="D://iplay.txt"; $cookie="/tmp/iplay.txt"; if (file_exists($filename)) { $handle = fopen($filename, "r"); $c = fread($handle, filesize($filename)); fclose($handle); $a=explode("|",$c); $a1=str_replace("?","@",$a[0]); $user=urlencode($a1); $pass=trim($a[1]); if (!file_exists($cookie)) { $l="http://www.iplay.ro/login.php"; $post="take_login=1&returnto=%2F&username=".$user."&password=".$pass; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $l); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 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'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch,CURLOPT_REFERER,"Referer: http://www.iplay.ro/login.php?returnto=%2F"); curl_setopt ($ch, CURLOPT_POST, 1); curl_setopt ($ch, CURLOPT_POSTFIELDS, $post); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie); $html = curl_exec($ch); curl_close($ch); } } $link="http://www.iplay.ro/video/collections.php"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $link); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 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'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie); $html = curl_exec($ch); curl_close($ch); $videos = explode('<li>', $html); $n=0; unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1=explode('href="',$video); $t2=explode('"',$t1[1]); $link=$t2[0]; $t1=explode('src="',$video); $t2=explode('"',$t1[1]); $image=$t2[0]; $t1=explode('span class="',$video); $t2=explode('>',$t1[1]); $t3=explode('<',$t2[1]); $title1=$t3[0]; $t2=explode('>',$t1[2]); $t3=explode('<',$t2[1]); $title2=$t3[0]; $title=$title1." - ".$title2; $link = 'http://127.0.0.1/cgi-bin/scripts/filme/php/iplay_s.php?file='.$link.','.urlencode($title1); echo ' <item> <title>'.$title1.'</title> <link>'.$link.'</link> <annotation>'.$title.'</annotation> <image>'.$image.'</image> <annotation>'.$title.'</annotation> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; $n++; } if ($n == 0) { $link = "/usr/local/etc/www/cgi-bin/scripts/filme/php/iplay.rss"; $description="Pentru a accesa acest site trebuie să aveţi un cont pe iplay.ro. Completaţi userul şi parola în acest formular şi apoi apăsaţi Return, Return după care accesaţi din nou această pagină."; echo ' <item> <title>Logare</title> <link>'.$link.'</link> <annotation>'.$description.'</annotation> <mediaDisplay name="onePartView" /> </item> '; } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/iplay_main.php.svn-base
PHP
gpl3
7,547
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="50" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="50" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=66 offsetYPC=35 widthPC=20 heightPC=40> <script>print(img); img;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "title"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>www.990.ro - seriale</title> <menu>main menu</menu> <?php $html = file_get_contents("http://www.990.ro/seriale.html"); $host = "http://127.0.0.1/cgi-bin"; $videos = explode("<td width='35%' rowspan='2'>", $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('<a href="', $video); $t2 = explode('"', $t1[1]); $link = $t2[0]; $link = trim("http://www.990.ro/".$link); $t3 = explode('title="',$video); $t4 = explode('"',$t3[1]); $title = trim($t4[0]); $t1 = explode('src="', $video); $t2 = explode('"', $t1[1]); $image = "http://www.990.ro/".$t2[0]; $link = $host."/scripts/filme/php/990_seriale.php?file=".$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> </item> '; } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/990_seriale_main.php.svn-base
PHP
gpl3
5,235
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $query = $_GET["file"]; $queryArr = explode(',', $query); $link = $queryArr[0]; $tit = urldecode($queryArr[1]); $html = file_get_contents($link); $t1=explode('<div class="featured">',$html); $t2=explode('src="',$t1[1]); $t3=explode('"',$t2[1]); $img=$t3[0]; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text align="left" offsetXPC="6" offsetYPC="15" widthPC="50" heightPC="4" fontSize="16" backgroundColor="10:105:150" foregroundColor="100:200:255"> Apăsaţi 1 sau 2 pentru salt +- 100 </text> <text redraw="no" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="center" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=22.5 widthPC=30 heightPC=25> <?php echo $img; ?> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { annotation = getItemInfo(idx, "annotation"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } else if(userInput == "one" || userInput == "1") { idx = Integer(getFocusItemIndex()); idx -= -100; if(idx &gt;= itemCount) idx = itemCount-1; print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } else if(userInput == "two" || userInput == "2") { idx = Integer(getFocusItemIndex()); idx -= 100; if(idx &lt; 0) idx = 0; print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title><?php echo $tit; ?></title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $host = "http://127.0.0.1/cgi-bin"; $videos = explode('<li class="post-', $html); unset($videos[0]); //$videos = array_values($videos); $videos = array_reverse($videos); foreach($videos as $video) { $t1=explode('href="',$video); $t2=explode('"',$t1[1]); $link=$t2[0]; $t1 = explode('src="', $video); $t2 = explode('"', $t1[1]); $image = $t2[0]; $title = trim(str_between($video,'rel="bookmark">','</a>')); $data = trim(str_between($video,'<div class="entry-summary" style="height:150px;">','</div>')); $data = preg_replace("/(<\/?)([^>]*>)/e","",$data); $data = str_replace("&#351;","s",$data); $data = str_replace("&#259;","a",$data); $data = str_replace("&#355;","t",$data); $data = trim(str_replace("&nbsp;","",$data)); $data = htmlentities($data); $data = str_replace("&ordm;","s",$data); $data = str_replace("&Ordm;","S",$data); $data = str_replace("&thorn;","t",$data); $data = str_replace("&Thorn;","T",$data); $data = str_replace("&icirc;","i",$data); $data = str_replace("&Icirc;","I",$data); $data = str_replace("&atilde;","a",$data); $data = str_replace("&Atilde;","I",$data); $data = str_replace("&acirc;","a",$data); $data = str_replace("&Acirc;","A",$data); if (($data == "") || ($data == "Vizionare Placuta")) { $data = $title; } if ($link <> "") { $down = $tit." ".$title; $link = 'http://127.0.0.1/cgi-bin/scripts/filme/php/filme_link.php?'.$link.','.urlencode($down); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$data.'</annotation> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/veziserialeonline.php.svn-base
PHP
gpl3
7,198
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="30" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="30" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="center" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=25 widthPC=30 heightPC=25> <script>print(image); image;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { image = getItemInfo(idx, "image"); annotation = getItemInfo(idx, "annotation"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>seenow</title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } //necesita inregistrare pe site //seenow.txt are o singura linie de forma //username|pass $filename = "/usr/local/etc/dvdplayer/seenow.txt"; $cookie="D://seenow.txt"; $cookie="/tmp/seenow.txt"; if (file_exists($filename)) { $handle = fopen($filename, "r"); $c = fread($handle, filesize($filename)); fclose($handle); $a=explode("|",$c); $a1=str_replace("?","@",$a[0]); $user=urlencode($a1); $pass=trim($a[1]); if (!file_exists($cookie)) { $l="http://www.seenow.ro/login"; $post="email=".$user."&password=".$pass."&submitlogin=Login&remember_me=0"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $l); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 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'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt ($ch, CURLOPT_POST, 1); curl_setopt ($ch, CURLOPT_POSTFIELDS, $post); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie); $html = curl_exec($ch); curl_close($ch); $t1=explode('<div class="floatL user">',$html); $t2=explode('class="floatL',$t1[1]); $t3=explode('>',$t2[1]); $t4=explode('<',$t3[1]); $this_user=trim($t4[0]); $t5=explode('>',$t2[2]); $t6=explode('<',$t5[1]); $credit=trim($t6[0]); } else { $link="http://www.seenow.ro/"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $link); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 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'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie); $html = curl_exec($ch); curl_close($ch); $t1=explode('<div class="floatL user">',$html); $t2=explode('class="floatL',$t1[1]); $t3=explode('>',$t2[1]); $t4=explode('<',$t3[1]); $this_user=trim($t4[0]); $t5=explode('>',$t2[2]); $t6=explode('<',$t5[1]); $credit=trim($t6[0]); } } else { $link="http://www.seenow.ro/"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $link); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 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'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie); $html = curl_exec($ch); curl_close($ch); $t1=explode('<div class="floatL user">',$html); $t2=explode('class="floatL',$t1[1]); $t3=explode('>',$t2[1]); $t4=explode('<',$t3[1]); $this_user=trim($t4[0]); $t5=explode('>',$t2[2]); $t6=explode('<',$t5[1]); $credit=trim($t6[0]); } $t1=explode("var items =",$html); $t2=explode("</div>",$t1[1]); $html=$t2[0]; //echo $html; $videos = explode('a class="floatL', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1=explode('href="',$video); $t2=explode('"',$t1[1]); $t3="http://www.seenow.ro".$t2[0]; //http://localhost/documentare-pagina-1 $t4=explode("pagina",$t3); $link=$t4[0]."pagina-"; $t1=explode('src="',$video); $t2=explode('"',$t1[1]); $image=$t2[0]; $t1=explode('span class="',$video); $t2=explode('>',$t1[1]); $t3=explode('<',$t2[1]); $title=$t3[0]; $link = 'http://127.0.0.1/cgi-bin/scripts/filme/php/seenow.php?file=1,'.$link.','.urlencode($title); if (strpos($title,"Canale") === false) { echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$title.'</annotation> <image>'.$image.'</image> <annotation>'.$title.'</annotation> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } if ($this_user=="Guest") { $link = "/usr/local/etc/www/cgi-bin/scripts/filme/php/seenow.rss"; $description="Pentru a accesa acest site trebuie să aveţi un cont pe seenow.ro. Completaţi userul şi parola în acest formular şi apoi apăsaţi Return, Return după care accesaţi din nou această pagină. Folositi ? pentru @ in caz ca nu aveti aceasta tasta."; echo ' <item> <title>Logare</title> <link>'.$link.'</link> <annotation>'.$description.'</annotation> <mediaDisplay name="onePartView" /> </item> '; } else { echo ' <item> <title>'.$this_user.'</title> <annotation>'.$credit.'</annotation> </item> '; } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/seenow_main.php.svn-base
PHP
gpl3
8,922
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $host = "http://127.0.0.1/cgi-bin"; $query = $_GET["file"]; if($query) { $queryArr = explode(',', $query); $link = $queryArr[0]; $pg_tit = urldecode($queryArr[1]); } $html = file_get_contents($link); ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="30" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="30" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <!--<image offsetXPC=5 offsetYPC=2 widthPC=20 heightPC=16> <script>channelImage;</script> </image>--> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="center" redraw="yes" lines="10" fontSize=17 offsetXPC=40 offsetYPC=55 widthPC=55 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=53 offsetYPC=22.5 widthPC=30 heightPC=30> <script>print(img); img;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <script> channelImage = "/usr/local/etc/www/cgi-bin/scripts/filme/image/series.png"; </script> <channel> <title><?echo $pg_tit; ?></title> <menu>main menu</menu> <?php $videos = explode("<div class='bloc_episoade'>", $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1=explode('href="',$video); $t2=explode('"',$t1[1]); $link="http://serialepenet.ro".$t2[0]; $t3=explode("class='serial_title'>",$video); $t4=explode("<",$t3[1]); $title=$t4[0]; $t1=explode('src="',$video); $t2=explode('"',$t1[1]); $image=$t2[0]; $s=$pg_tit."-".$title; $link = $host."/scripts/filme/php/serialepenet_l.php?file=".$link.",".urlencode($s); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$s.'</annotation> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/serialepenet_s.php.svn-base
PHP
gpl3
5,792
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="center" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=22.5 widthPC=30 heightPC=25> <script>print(img); img;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>www.serialetvonline.info</title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $host = "http://127.0.0.1/cgi-bin"; $html = file_get_contents("http://www.serialetvonline.info/tv-shows"); //http://serialetvonline.info/tv-shows //$videos = explode('<div class="box">', $html); $videos = explode('li class="post-', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1=explode('href="',$video); $t2=explode('"',$t1[1]); $link=$t2[0]; $t3=explode('title="',$video); $t4=explode('"',$t3[1]); $title=trim($t4[0]); $t1 = explode('src="', $video); $t2 = explode('"', $t1[1]); $image = $t2[0]; $data = trim(str_between($video,'<div class="entry-summary" style="height:150px;">','</div>')); $data = preg_replace("/(<\/?)([^>]*>)/e","",$data); $data = str_replace("&#351;","s",$data); $data = str_replace("&#259;","a",$data); $data = str_replace("&#355;","t",$data); $data = trim(str_replace("&nbsp;","",$data)); $data = htmlentities($data); $data = str_replace("&ordm;","s",$data); $data = str_replace("&Ordm;","S",$data); $data = str_replace("&thorn;","t",$data); $data = str_replace("&Thorn;","T",$data); $data = str_replace("&icirc;","i",$data); $data = str_replace("&Icirc;","I",$data); $data = str_replace("&atilde;","a",$data); $data = str_replace("&Atilde;","I",$data); $data = str_replace("&acirc;","a",$data); $data = str_replace("&Acirc;","A",$data); if ($link <> "") { $link = $host.'/scripts/filme/php/serialetvonline.php?file='.$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <image>'.$image.'</image> <annotation>'.$data.'</annotation> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/serialetvonline_main.php.svn-base
PHP
gpl3
6,388
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="photoView" fontSize="16" rowCount="8" columnCount="3" sideTopHeightPC="0" sideBottomHeightPC="0" sideColorBottom="10:105:150" sideColorTop="10:105:150" centerXPC="5" centerYPC="25" centerHeightPC="65" itemGapXPC="1" itemGapYPC="1" rollItems="yes" drawItemText="yes" itemImageWidthPC="0.1" itemImageHeightPC="0.1" imageBorderPC="1.5" forceFocusOnItem="yes" itemCornerRounding="yes" sliding=yes showHeader=no showDefaultInfo=no idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <!--<image offsetXPC=5 offsetYPC=2 widthPC=20 heightPC=16> <script>channelImage;</script> </image>--> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { annotation = getItemInfo(idx, "title"); } </script> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -24; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 24; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <script> channelImage = "/usr/local/etc/www/cgi-bin/scripts/filme/image/series.png"; </script> <channel> <title>serialepenet.ro</title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } // Pe Litere $html = file_get_contents("http://serialepenet.ro/lista_seriale"); $videos = explode('views-summary views-summary-unformatted', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1=explode('href="',$video); $t2=explode('"',$t1[1]); $link="http://serialepenet.ro".$t2[0]; $t3=explode(">",$t1[1]); $t4=explode("<",$t3[1]); $title="Litera: ".$t4[0]; $link = $host."/scripts/filme/php/serialepenet_lit.php?file=".$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <annotation>'.$title.'</annotation> <link>'.$link.'</link> </item> '; } // // Categorie $t1=explode('<h3>Categorii</h3>',$html); $html=$t1[1]; $videos = explode('<span class="field-content">', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1=explode('href="',$video); $t2=explode('"',$t1[1]); $link="http://serialepenet.ro".$t2[0]; $t3=explode(">",$t1[1]); $t4=explode("<",$t3[1]); $title=$t4[0]; $link = $host."/scripts/filme/php/serialepenet_cat.php?file=".$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <annotation>'.$title.'</annotation> <link>'.$link.'</link> </item> '; } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/serialepenet_main.php.svn-base
PHP
gpl3
5,130
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $query = $_GET["query"]; $tit=$tit=urldecode($query); $search = str_replace(" ","+",$tit); ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="35" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="35" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="center" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=22.5 widthPC=30 heightPC=25> <script>print(img); img;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "14"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title><?php echo $tit; ?></title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $host = "http://127.0.0.1/cgi-bin"; $link="http://vplay.ro/coll/?s=".$search; $cookie="D://vplay_c.txt"; $cookie="/tmp/vplay_c.txt"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $link); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 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'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie); $html = curl_exec($ch); curl_close($ch); $html1 = str_between($html,"<h2>Colec","</ul>"); $videos = explode('<li>', $html1); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $link = "http://vplay.ro".$t2[0]; $image=str_between($video,"image:url(",")"); $t3 = explode('title="', $t1[1]); $t4 = explode('"', $t3[1]); $title = trim($t4[0]); $description = str_between($video,'<span class="s_e">','</span>'); if ($link <> "") { $link = $host."/scripts/filme/php/vplay_sez.php?file=".urlencode($link).",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$description.'</annotation> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/vplay_search.php.svn-base
PHP
gpl3
6,000
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="50" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="50" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=35 widthPC=30 heightPC=30> image/movies.png </image> <idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_01.png </idleImage> <idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_02.png </idleImage> <idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_03.png </idleImage> <idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_04.png </idleImage> <idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_05.png </idleImage> <idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_06.png </idleImage> <idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_07.png </idleImage> <idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_08.png </idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageWidthPC="10" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>Filme româneşti - categorii</title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $host = "http://127.0.0.1/cgi-bin"; $html = file_get_contents("http://filmele-copilariei.blogspot.com/"); $img = "image/movies.png"; $videos = explode("<a dir='ltr'", $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode("href='",$video); $t2 = explode("'",$t1[1]); $link = trim($t2[0]); $link = str_replace(' ','%20',$link); $t3 = explode(">",$t1[1]); $t4 = explode("<",$t3[1]); $title = $t4[0]; $link = $host."/scripts/filme/php/filmele-copilariei.php?query=,".$link; echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$title.'</annotation> </item> '; } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/filmele-copilariei_main.php.svn-base
PHP
gpl3
5,415
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=66 offsetYPC=30 widthPC=20 heightPC=40> <script>print(img); img;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>filmehd.net</title> <menu>main menu</menu> <?php $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $page = $queryArr[0]; $search = $queryArr[1]; } if($page) { $html = file_get_contents($search."/page/".$page); } else { $page = 1; $html = file_get_contents($search."/page/".$page); } if($page > 1) { ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page-1).","; if($search) { $url = $url.$search; } ?> <title>Previous Page</title> <link><?php echo $url;?></link> <annotation>Pagina anterioară</annotation> <image>image/left.jpg</image> <mediaDisplay name="threePartsView"/> </item> <?php } ?> <?php $html=urlencode($html); $videos = explode('d%3D%22post', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href%3D%22', $video); $t2 = explode("%22", $t1[1]); $link = urldecode($t2[0]); $link = str_replace(' ','%20',$link); $link = str_replace('[','%5B',$link); $link = str_replace(']','%5D',$link); $t1 = explode('src%3D%22', $video); $t2 = explode('%22', $t1[1]); $image = urldecode($t2[0]); $t1 = explode('title%3D%22', $video); $t2 = explode('%22', $t1[1]); $t2=urldecode($t2[0]); $t3 = explode("&#8211;",$t2); $title = str_replace("– Filme online gratis subtitrate in romana","",$t3[0]); $title = str_replace("– Filme online gratis subtitratate in romana","",$title); $title = str_replace("– Filme online gratis subititrate in romana","",$title); $title = trim($title); $title=preg_replace("/online|subtitrat(e*)|film(e*)|vezi(.*)(:)|gratis/si","",$title); $title=trim(str_replace("&nbsp;","",$title)); $pos = strpos($image, '.jpg'); if (($pos !== false) && ($title <> "")){ $link = 'http://127.0.0.1/cgi-bin/scripts/filme/php/filme_link.php?'.$link.','.urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$title.'</annotation> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page+1).","; if($search) { $url = $url.$search; } ?> <title>Next Page</title> <link><?php echo $url;?></link> <annotation>Pagina următoare</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/filmehd.php.svn-base
PHP
gpl3
6,754
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $cat = $queryArr[0]; $tit = urldecode($queryArr[1]); } $link = $cat; $html = file_get_contents($link); ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="50" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="50" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <!--<image offsetXPC=5 offsetYPC=2 widthPC=20 heightPC=16> <script>channelImage;</script> </image>--> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=35 widthPC=30 heightPC=30> <script>channelImage;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "title"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <script> <?php //$t1 = explode('<div id="descriere_serial">',$html); $t1=explode('href="#seasons"',$html); $t2 = explode('src="',$t1[1]); $t3 = explode('"',$t2[1]); $img1=str_replace(" ","%20",$t3[0]); echo 'channelImage = "'.$img1.'"'; ?> </script> <channel> <title><?php echo $tit; ?></title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } //http://www.serialeonline.tv/category/californication/ //hhttp://www.serialeonline.tv/category/californication/sezonul-1-californication/ $html1 = str_between($html,'<div style="background-color: #1c1f29; font-size: 16px; text-align: center;">','</div>'); if ($html1 == "") { $html1 = str_between($html,'<div id="seasons">','</div>'); } $videos = explode('href="', $html1); unset($videos[0]); $videos = array_values($videos); $n=0; foreach($videos as $video) { $t1 = explode('"', $video); //$t2 = explode('"', $t1[1]); //echo $t1[0]; $link = $host."/scripts/filme/php/serialeonline.php?query=1,".$t1[0].",".urlencode($tit); $t3 = explode(">",$video); $t4 = explode("<",$t3[1]); $title = trim($t4[0]); if ($title <> "") { echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> </item> '; $n++; } } if ($n == 0) { $link = $host."/scripts/filme/php/serialeonline.php?query=1,".$cat.",".urlencode($tit); $title = "Incomplet"; echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> </item> '; } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/serialeonline_sez.php.svn-base
PHP
gpl3
6,215
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="50" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="50" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=66 offsetYPC=35 widthPC=20 heightPC=40> <script>print(img); img;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "title"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>www.990.ro - special</title> <menu>main menu</menu> <?php $html = file_get_contents("http://www.990.ro/special.html"); $host = "http://127.0.0.1/cgi-bin"; $videos = explode("<td width='35%' rowspan='2'>", $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('<a href="', $video); $t2 = explode('"', $t1[1]); $link = $t2[0]; $link = trim("http://www.990.ro/".$link); $t3 = explode('title="',$video); $t4 = explode('"',$t3[1]); $title = trim($t4[0]); $t1 = explode('src="', $video); $t2 = explode('"', $t1[1]); $image = "http://www.990.ro/".$t2[0]; $link = $host."/scripts/filme/php/990_seriale.php?file=".$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> </item> '; } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/990_special_main.php.svn-base
PHP
gpl3
5,237
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="justify" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=56 offsetYPC=22.5 widthPC=35 heightPC=30> <script>print(img); img;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "14"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>filmeonline.org</title> <menu>main menu</menu> <?php $host = "http://127.0.0.1/cgi-bin"; function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $page = $queryArr[0]; $search = $queryArr[1]; } //http://www.filmeonline.org/page/2/ //http://www.filmeonline.org/category/filme-movies/filme-noi/page/2/ if($page) { $html = file_get_contents($search."page/".$page."/"); } else { $page = 1; $html = file_get_contents($search); } if($page > 1) { ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page-1).","; if($search) { $url = $url.$search; } ?> <title>Previous Page</title> <link><?php echo $url;?></link> <annotation>Pagina anterioară</annotation> <image>image/left.jpg</image> <mediaDisplay name="threePartsView"/> </item> <?php } ?> <?php //$videos = explode('div class="oneblog_titlearea"', $html); $videos=explode('div class="post-',$html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { // link $v1 = explode('href="', $video); $v2 = explode('"', $v1[1]); $link = $v2[0]; // titlu $v3 = explode('>',$v1[1]); $v4 = explode('<',$v3[1]); $titlu = $v4[0]; // imagine $v1 = explode('src="', $video); $v2 = explode('"', $v1[1]); $image = $v2[0]; // descriere $v1 = explode('<p>', $video); $v2 = explode('</p>', $v1[1]); $descriere = $v2[0]; $descriere = preg_replace("/(<\/?)(\w+)([^>]*>)/e","",$descriere); $descriere = str_replace("&nbsp;","",$descriere); if (strlen($descriere)>=300) { $descriere = substr($descriere,0,300); $descriere = substr($descriere,0,-strlen(strrchr($descriere," ")))."..."; } if($link!="") { $link = "http://127.0.0.1/cgi-bin/scripts/filme/php/filmeonline_link.php?file=".$link.",".urlencode($titlu); echo' <item> <title>'.$titlu.'</title> <link>'.$link.'</link> <annotation>'.$descriere.'</annotation> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page+1).","; if($search) { $url = $url.$search; } ?> <title>Next Page</title> <link><?php echo $url;?></link> <annotation>Pagina următoare</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/filmeonline.php.svn-base
PHP
gpl3
6,951
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $host = "http://127.0.0.1/cgi-bin"; $query = $_GET["file"]; if($query) { $queryArr = explode(',', $query); $link = $queryArr[0]; $tit = urldecode($queryArr[1]); } $html = file_get_contents($link); $t1=explode('div class="post-',$html); $image=str_between($t1[2],'img src="','"'); ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=55 offsetYPC=35 widthPC=35 heightPC=30> <?php echo $image; ?> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title><?php echo $tit; ?></title> <menu>main menu</menu> <?php echo ' <item> <title>Alege una din variantele de mai jos</title> <annotation>Download link</annotation> <mediaDisplay name="threePartsView"/> </item> '; //$html=str_between($html,'table id="variante"','div class="shr-bookmarks'); //http://www.filmeonline.org/watch $videos = explode('href="', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('"', $video); //http://adf.ly/402271/http://www.filmeonline.org/watch/p3VYMr3xs1KGdd/?y3bkcirnu0le $t2=explode("http",$t1[0]); if ($t2[2] <> "") { $link = "http".$t2[2]; $link=""; //dublura } else { $link = "http".$t2[1]; } $t1 = explode('title="', $video); $t2 = explode('"',$t1[1]); $title = $t2[0]; if (strpos($title,"-") !== false) { $t=explode("-",$title); $title=trim($t[1]); } if ($link <> "") { if (strpos($link,"http://www.filmeonline.org/watch") !==false) { $link = $host."/scripts/filme/php/filme_link.php?".$link.",".urlencode($tit); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <media:thumbnail url="'.$image.'" /> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } } } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/filmeonline_link.php.svn-base
PHP
gpl3
6,103
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="center" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=22.5 widthPC=30 heightPC=25> <script>print(img); img;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>www.veziserialeonline.info</title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $host = "http://127.0.0.1/cgi-bin"; $html = file_get_contents("http://www.veziserialeonline.info/tv-shows"); $videos = explode('<li class="post-', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1=explode('href="',$video); $t2=explode('"',$t1[1]); $link=$t2[0]; $t1 = explode('src="', $video); $t2 = explode('"', $t1[1]); $image = $t2[0]; $t1 = explode('title="', $video); $t2 = explode('"', $t1[1]); $title = trim($t2[0]); //$data = trim(str_between($video,'<div class="entry-summary" style="height:150px;">','</div>')); //$data = preg_replace("/(<\/?)([^>]*>)/e","",$data); //$data = str_replace("&nbsp;","",$data); //$data = utf_ecodode($data); //$data=htmlentities($data, ENT_QUOTES, "UTF-8"); //$data=html_entity_decode(utf8_decode($data),ENT_QUOTES, "UTF-8"); $data=$title; if ($link <> "") { $link = $host.'/scripts/filme/php/veziserialeonline.php?file='.$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <image>'.$image.'</image> <annotation>'.$data.'</annotation> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/veziserialeonline_main.php.svn-base
PHP
gpl3
5,857
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="justify" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=66 offsetYPC=22.5 widthPC=15 heightPC=30> <script>print(img); img;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>divxonline.biz</title> <menu>main menu</menu> <?php $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $page = $queryArr[0]; $search = $queryArr[1]; } //http://divxonline.biz/actiune/page/2/ if($page) { $html = file_get_contents($search."/page/".$page."/"); } else { $page = 1; $html = file_get_contents($search); } if($page > 1) { ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page-1).","; if($search) { $url = $url.$search; } ?> <title>Previous Page</title> <link><?php echo $url;?></link> <annotation>Pagina anterioară</annotation> <image>image/left.jpg</image> <mediaDisplay name="threePartsView"/> </item> <?php } ?> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $image = "image/movies.png"; $videos = explode('<div class="base shortstory">', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $link = $t2[0]; $t3 = explode(">",$t1[1]); $t4 = explode("<",$t3[1]); $title = $t4[0]; $t1 = explode('src="', $video); $t2 = explode('"', $t1[1]); $image = $t2[0]; // descriere $v1 = explode('<div class="movie-description dpad">', $video); $v2 = explode('</div>', $v1[1]); $descriere = $v2[0]; $descriere = preg_replace("/(<\/?)([^>]*>)/e","",$descriere); //$descriere = preg_replace("/(<\/?)(\w+)([^>]*>)/e","",$descriere); $descriere = str_replace("<","",$descriere); $descriere = substr($descriere,0,300); $descriere = substr($descriere,0,-strlen(strrchr($descriere," ")))."..."; if ($link <> "") { $link = 'http://127.0.0.1/cgi-bin/scripts/filme/php/filme_link.php?'.$link.','.urlencode($title); echo' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$descriere.'</annotation> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page+1).","; if($search) { $url = $url.$search; } ?> <title>Next Page</title> <link><?php echo $url;?></link> <annotation>Pagina următoare</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/divxonline.php.svn-base
PHP
gpl3
6,822
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="50" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="50" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=35 widthPC=30 heightPC=30> image/movies.png </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>watchcartoononline.com</title> <menu>main menu</menu> <?php $title="Dubbed anime"; $link="http://www.watchcartoononline.com/dubbed-anime-list"; $link = $host."/scripts/filme/php/watchcartoononline_main.php?query=".$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; $title="Cartoon"; $link="http://www.watchcartoononline.com/cartoon-list"; $link = $host."/scripts/filme/php/watchcartoononline_main.php?query=".$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; $title="Subbed anime"; $link="http://www.watchcartoononline.com/subbed-anime-list"; $link = $host."/scripts/filme/php/watchcartoononline_main.php?query=".$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/watchcartoononline_main1.php.svn-base
PHP
gpl3
5,368
#!/usr/local/bin/Resource/www/cgi-bin/php <?php error_reporting(0); $filelink = $_GET["file"]; $filelink=urldecode($filelink); if (strpos($filelink,"adf.ly") !==false) { $h1=file_get_contents($filelink); $filelink=str_between($h1,"var url = '","'"); } function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } function str_prep($string){ $string = str_replace(' ','%20',$string); $string = str_replace('[','%5B',$string); $string = str_replace(']','%5D',$string); $string = str_replace('%3A',':',$string); $string = str_replace('%2F','/',$string); $string = str_replace('#038;','',$string); $string = str_replace('&amp;','&',$string); return $string; } //peteava function r() { $i=mt_rand(4096,0xffff); $j=mt_rand(4096,0xffff); return dechex($i).dechex($j); } function zeroFill($a,$b) { if ($a >= 0) { return bindec(decbin($a>>$b)); //simply right shift for positive number } $bin = decbin($a>>$b); $bin = substr($bin, $b); // zero fill on the left side $o = bindec($bin); return $o; } function crunch($arg1,$arg2) { $local4 = strlen($arg2); while ($local5 < $local4) { $local3 = ord(substr($arg2,$local5)); $arg1=$arg1^$local3; $local3=$local3%32; $arg1 = ((($arg1 << $local3) & 0xFFFFFFFF) | zeroFill($arg1,(32 - $local3))); $local5++; } return $arg1; } function peteava($movie) { $seedfile=file_get_contents("http://content.peteava.ro/seed/seed.txt"); $t1=explode("=",$seedfile); $seed=$t1[1]; if ($seed == "") { return ""; } $r=r(); $s = hexdec($seed); $local3 = crunch($s,$movie); $local3 = crunch($local3,"0"); $local3 = crunch($local3,$r); return strtolower(dechex($local3)).$r; } /** end peteava **/ function cv($s) { $g=ord("g"); $c=ord($s); if ($c < 58) { $c=$s; } else { $c=$c-$g + 16; } return $c; } function get_unpack($k,$char_rep,$pos_link,$h) { $g=ord("g"); $f=explode("return p}",$h); $e=explode("'.split",$f[$k]); $t=$e[0]; $a=explode(";",$t); //print_r($a); //for debug only $w=explode("|",$a[$char_rep]); //char list for replace //print_r($w); $t1=explode("'",$a[$pos_link]); // where is final link $fl= $t1[3]; $s1=explode("/",$fl); $r=""; for ($i=0;$i<strlen($fl)-1;$i++) { if (preg_match("/[A-Za-z0-9_]/",$fl[$i])) { $m=$w[cv($fl[$i])]; if ($m=="") $m=$fl[$i]; $r=$r.$m; } else { $r=$r.$fl[$i]; } } return $r; } function cv4($s) { $g=ord("g"); $c=ord($s); if ($c < 58) { //91 $c=$s; } elseif (($c>57) && ($c<123)) { //2gb $c=$c-$g + 16; } elseif ($c> 122) { $c=$c - 123 + 36; } return $c; } function get_unpack4($k,$char_rep,$pos_link,$h) { $g=ord("g"); $f=explode("return p}",$h); $e=explode("'.split",$f[$k]); $t=$e[0]; $a=explode(";",$t); //print_r($a); //for debug only $w=explode("|",$a[$char_rep]); //char list for replace //print_r ($w); $t1=explode("'",$a[$pos_link]); // where is final link $fl= $t1[3]; $fl=str_replace("10",chr(123),$fl); $fl=str_replace("11",chr(124),$fl); $fl=str_replace("12",chr(125),$fl); $fl=str_replace("13",chr(126),$fl); $fl=str_replace("14",chr(127),$fl); $fl=str_replace("15",chr(128),$fl); $r=""; for ($i=0;$i<strlen($fl)-1;$i++) { $m=$w[cv4($fl[$i])]; if ($m=="") $m=$fl[$i]; $r=$r.$m; } return $r; } function rapidmov($string) { //http://www1-45-37.rapidmov.net/cgi-bin/dl.cgi/xqawnjsw4l2yogppfwyu7nysssq6s62b7ee3v6crve/video.flv $h = file_get_contents($string); $g=ord("g"); $f=explode("return p}",$h); $e=explode("'.split",$f[1]); $t=$e[0]; $a=explode(";",$t); $w=explode("|",$a[9]); $t1=explode("'",$a[4]); $fl= $t1[3]; $s1=explode("/",$fl); $r=""; for ($i=0;$i<strlen($fl)-1;$i++) { if (preg_match("/[A-Za-z0-9_]/",$fl[$i])) { $r=$r.$w[cv($fl[$i])]; } else { $r=$r.$fl[$i]; } } return $r; } //if (!preg_match_all('/\{"d":(false|true),"l":"([^"]+)","u":"([^"]+)"/i', $page, $st)) function videobb($l) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $l); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 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'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookies.txt'); curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt'); $page = curl_exec($ch); curl_close($ch); //preg_match_all('/\{"d":(false|true),"l":"([^"]+)","u":"([^"]+)"\}/i', $page, $st); preg_match_all('/\{"d":(false|true),"l":"([^"]+)","u":"([^"]+)"/i', $page, $st); $stream = array(); for ($i = 0; $i < count($st[0]); $i++) { $stream[$st[2][$i]] = array(($st[1][$i] == "true" ? true : false), base64_decode($st[3][$i])); } if (count($stream) > 1) { foreach ($stream as $st => $da) { if ($da[0] == true) { $fl=$da[1]; } else { $fl=$da[1]; // ????? } } } else { $qs = array_rand($stream); $fl = $stream[$qs][1]; } return $fl; } function vk($string) { if (strpos($string,"video_ext.php") === false) { $h = file_get_contents($string); $t1=explode("nvar vars",$h); $l=$t1[1]; $uid=str_between($l,'\"uid\":\"','\"'); $host=str_between($l,'"host\":\"','\"'); $host=str_replace("\\/","/",$host); $host=str_replace("\\/","/",$host); $host=str_replace("\/","/",$host); $vtag=str_between($l,'"vtag\":\"','\"'); $r=$host."u".$uid."/video/".$vtag.".360.mp4"; } else { $baza = file_get_contents($string); $host = str_between($baza,"var video_host = '","'"); $uid = str_between($baza,"var video_uid = '","'"); $vtag = str_between($baza,"var video_vtag = '","'"); $hd = str_between($baza,"var video_max_hd = '","'"); $r = $host."u".$uid."/video/".$vtag.".360.mp4"; if ($hd == "0") { $r = $host."u".$uid."/video/".$vtag.".240.mp4"; } } return $r; } function youtube($file) { if(preg_match('/youtube\.com\/(v\/|watch\?v=|embed\/)([\w\-]+)/', $file, $match)) {; $l ="http://www.youtube.com/watch?v=".$match[2]; $r=file_get_contents("http://127.0.0.1/cgi-bin/scripts/util/yt.php?file=".$l); } return $r; } function flvz($string) { if (strpos($string,"embed") === false) { $string=str_replace("video","embed",$string); } $h = file_get_contents($string); $r = str_between($h,'"url": "','"'); return $r; } function putlocker($string) { //http://www.putlocker.com/embed/067DF715716F10C5 //http://www.putlocker.com/file/067DF715716F10C5 $string=str_replace("file","embed",$string); $id=substr(strrchr($string,"/"),1); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $string); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookies.txt'); curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt'); $h = curl_exec($ch); curl_close($ch); $t1=explode('form method="post"',$h); $t2=explode('value="',$t1[1]); $t3=explode('"',$t2[1]); $hash=$t3[0]; $post="hash=".$hash."&confirm=Close+Ad+and+Watch+as+Free+User"; //hash=fe41ab2306be4d45&confirm=Close+Ad+and+Watch+as+Free+User $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $string); curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt'); curl_setopt ($ch, CURLOPT_POST, 1); curl_setopt ($ch, CURLOPT_POSTFIELDS, $post); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); $h = curl_exec($ch); curl_close($ch); $id=str_between($h,"playlist: '","'"); //$url="http://www.putlocker.com/get_file.php?embed_stream=".$id; ///get_file.php?embed_stream=MDY3REY3MTU3MTZGMTBDNStlNTY1Y2EwNDcyZjYwZjUy if (strpos($string,"putlocker") !==false) { $url="http://www.putlocker.com".$id; } elseif (strpos($string,"sockshare") !== false) { $url="http://www.sockshare.com".$id; } $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $h = curl_exec($ch); curl_close($ch); $t1=explode('media:content url="',$h); $t2=explode('"',$t1[2]); $r = $t2[0]; return $r; } function megavideo($string) { if (preg_match('/(v=)([A-Za-z0-9_]+)/', $string, $m)) { $id=$m[2]; } elseif (preg_match('/(v\/)([A-Za-z0-9_]+)/', $string, $m)) { $file = get_headers($string); foreach ($file as $key => $value) { if (strstr($value,"location")) { $url = ltrim($value,"location: "); $id = substr(strrchr($url, '='),1); } // end if } // end foreach } elseif (preg_match('/(d=)([A-Za-z0-9_]+)/', $string, $m)) { $h=file_get_contents($string); $id=str_between($h,'flashvars.v = "','"'); } return $id; } //***************Here we start************************************** $filelink=str_prep($filelink); if ((strpos($filelink,"vidxden") !==false) || (strpos($filelink,"divxden") !==false)) { if (strpos($filelink,"embed") === false) { $t=explode("/",$filelink); $id= $t[3]; $filelink=$t[0]."/".$t[1]."/".$t[2]."/"."embed-".$id."-width-653-height-362.html"; } $h = file_get_contents($filelink); $link=get_unpack(1,11,5,$h); } elseif (strpos($filelink,"vidbux") !==false) { if (strpos($filelink,"embed") === false) { $t=explode("/",$filelink); $id= $t[3]; $filelink=$t[0]."/".$t[1]."/".$t[2]."/"."embed-".$id."-width-653-height-362.html"; } $h = file_get_contents($filelink); $link=get_unpack(1,8,4,$h); } elseif (strpos($filelink,'movreel') !==false) { preg_match('/movreel\.com\/(embed\/)?+([\w\-]+)/', $filelink, $m); $id=$m[2]; $filelink = "http://movreel.com/embed/".$id; $h = file_get_contents($filelink); $link=str_between($h,'<param name="src" value="','"'); } elseif (strpos($filelink,'videoweed') !==false) { if (strpos($filelink,"embed") !== false) { preg_match('/(v=)([A-Za-z0-9_]+)/', $filelink, $m); $id=$m[2]; $s=explode("/",$filelink); $filelink="http://".$s[2]."/embed.php?v=".$id."&amp;width=900&amp;height=600"; } $h = file_get_contents($filelink); $f = str_between($h,'flashvars.file="','"'); $k = str_between($h,'flashvars.filekey="','"'); $l="http://www.videoweed.es/api/player.api.php?user=undefined&codes=undefined&pass=undefined&file=".$f."&key=".$k; //$l=str_replace("&","&amp;",$l); $h=file_get_contents($l); $link=str_between($h,"url=","&"); } elseif (strpos($filelink,'novamov') !==false) { if (strpos($filelink,"embed") !== false) { preg_match('/(v=)([A-Za-z0-9_]+)/', $filelink, $m); $id=$m[2]; $s=explode("/",$filelink); //http://embed.novamov.com/embed.php?width=728&height=400&v=yi18gc4a62gsu&px=1 $filelink="http://".$s[2]."/embed.php?v=".$id."&amp;width=600&amp;height=480"; } $h=file_get_contents($filelink); $file=str_between($h,'flashvars.file="','"'); $filekey=str_between($h,'flashvars.filekey="','"'); $l="http://www.novamov.com/api/player.api.php?user=undefined&file=".$file."&pass=undefined&key=".urlencode($filekey); $h=file_get_contents($l); $link=str_between($h,"url=","&"); } elseif (strpos($filelink, 'videobb.com') !== false) { $id=substr(strrchr($filelink,"/"),1); $l="http://www.sheepser.com/vb23.php?s1=".$id; $h=file_get_contents($l); $t1=explode('url="',$h); $t2=explode('"',$t1[1]); $link=$t2[0]; if (strpos($link,"videobb") === false) { $filelink="http://www.videobb.com/player_control/settings.php?v=".$id; $link=videobb($filelink); } } elseif (strpos($filelink, 'videozer.com') !== false) { $id=substr(strrchr($filelink,"/"),1); $l="http://www.sheepser.com/vz23.php?s1=".$id; $h=file_get_contents($l); $t1=explode('url="',$h); $t2=explode('"',$t1[1]); $link=$t2[0]; if (strpos($link,"videozer") === false) { $filelink="http://www.videozer.com/player_control/settings.php?v=".$id; $link=videobb($filelink); } } elseif ((strpos($filelink, 'vk.com') !== false) || (strpos($filelink, 'vkontakte.ru') !== false)) { $link=vk($filelink); } elseif (strpos($filelink, 'movshare') !== false){ preg_match('/(v=)([A-Za-z0-9_]+)/', $filelink, $m); $id=$m[2]; if ($id == "") { if (strpos($filelink,"?") !==false) { $a=explode("?",$filelink); $rest = substr($a[0], 0, -1); $id= substr(strrchr($rest,"/"),1); } else { $id = substr(strrchr($filelink,"/"),1); } } $filelink = "http://embed.movshare.net/embed.php?v=".$id; $baza = file_get_contents($filelink); $key=str_between($baza,'flashvars.filekey="','"'); if ($key <> "") { $l="http://www.movshare.net/api/player.api.php?user=undefined&codes=undefined&key="; $l=$l.urlencode($key)."&pass=undefined&file=".$id; $b=file_get_contents($l); $link=str_between($b,"url=","&"); } else { $link = str_between($baza,'file="','"'); if ($link == "") { $link=str_between($baza,'name="src" value="','"'); } if ($link == "") { $link=str_between($baza,'src" value="','"'); } } } elseif (strpos($filelink, 'youtube') !== false){ $link=youtube($filelink); } elseif (strpos($filelink, 'flvz.com') !== false){ $link=flvz($filelink); } elseif (strpos($filelink, 'rapidmov.net') !== false){ //$link=rapidmov($filelink); $h = file_get_contents($filelink); $link=get_unpack4(1,16,4,$h); } elseif (strpos($filelink, 'putlocker.com') !== false){ $link=putlocker($filelink); } elseif (strpos($filelink, 'peteava.ro/embed') !== false) { preg_match('/(video\/)([A-Za-z0-9_]+)/', $filelink, $m); $id=$m[2]; $filelink = "http://www.peteava.ro/embed/video/".$id; $h = file_get_contents($filelink); $id = str_between($h,"hd_file=","&"); if ($id == "") { $id = str_between($h,"stream.php&file=","&"); } if ($id <> $last_peteava) { $last_peteava=$id; $token = peteava($id); $link = "http://content.peteava.ro/video/".$id."?start=0&token=".$token; } } elseif (strpos($filelink, 'peteava.ro/id') !== false) { $h = file_get_contents($filelink); $id = str_between($h,"hd_file=","&"); if ($id == "") { $id = str_between($h,"stream.php&file=","&"); } if ($id <> $last_peteava) { $last_peteava=$id; $token = peteava($id); $link = "http://content.peteava.ro/video/".$id."?start=0&token=".$token; } } elseif (strpos($filelink, 'content.peteava.ro') !== false) { $id = str_between($h,"hd_file=","&"); if ($id == "") { $id = str_between($filelink,"stream.php&file=","&"); } $p=strpos($id,"."); //cinemaxx.ro $id1= substr($id,0, $p); $id2=substr($id,$p,4); $id= $id1.$id2; if ($id <> $last_peteava) { $last_peteava=$id; $token = peteava($id); $link = "http://content.peteava.ro/video/".$id."?start=0&token=".$token; } } elseif (strpos($filelink,'vimeo.com') !==false){ //http://player.vimeo.com/video/16275866 if (strpos($filelink,"player.vimeo.com") !==false) { $id=substr(strrchr($filelink,"/"),1); $link="http://127.0.0.1/cgi-bin/translate?stream,,http://vimeo.com/".$id; } else { $link="http://127.0.0.1/cgi-bin/translate?stream,,".$filelink; } } elseif (strpos($filelink, 'googleplayer.swf') !== false) { $t1 = explode("docid=", $filelink); $t2 = explode("&",$t1[1]); $link = "http://127.0.0.1/cgi-bin/translate?stream,,http://video.google.com/videoplay?docid=".$t2[0]; } elseif (strpos($filelink, 'filebox.ro/get_video') !== false) { $s = str_between($filelink,"videoserver","."); $f = str_between($filelink,"key=","&"); $link = "http://static.filebox.ro/filme/".$s."/".$f.".flv"; } elseif (strpos($filelink, 'megavideo.com') !== false) { $link="http://127.0.0.1/cgi-bin/scripts/php1/mv.cgi?v=".megavideo($filelink); } elseif (strpos($filelink, 'videobam.com/widget') !== false) { //http://videobam.com/widget/Xykqy/3" $h = file_get_contents($filelink); $link=str_between($h,',"url":"','"'); $link=str_replace("\\","",$link); } elseif (strpos($filelink, 'video.rol.ro') !== false) { //http://video.rol.ro/embed/js/55307.js //http://video.rol.ro/embed/iframe/56071 //http://video.rol.ro/trollhunter-2010-www-onlinemoca-com-55307.htm if (strpos($filelink,"embed") !==false) { $r1 = substr(strrchr($filelink, "/"), 1); $l= "http://video.rol.ro/embed/js/".$r1.".js"; } else { $r1 = substr(strrchr($filelink, "-"), 1); $r2=explode(".",$r1); $l= "http://video.rol.ro/embed/js/".$r2[0].".js"; } $h = file_get_contents($l); $link=str_between($h,"file': '","'"); } elseif (strpos($filelink, 'divxstage.net') !== false) { //divxstage.net/video/canc73f7kgvbt $h = file_get_contents($filelink); $link=str_between($h,'param name="src" value="','"'); if ($link == "") { $link=str_between($h,'addVariable("file","','"'); } } elseif (strpos($filelink, 'divxstage.eu') !== false) { //http://www.divxstage.eu/video/oisekelygcrnb //http://www.divxstage.eu/api/player.api.php?key=78%2E96%2E189%2E71%2D0158d8005886f55b17aa976b4b596404&user=undefined&codes=undefined&pass=undefined&file=0nm6yadbatt77 $h = file_get_contents($filelink); $p1=str_between($h,'flashvars.filekey="','"'); $p2=str_between($h,'flashvars.file="','"'); if ($p1 == "") { $link=str_between($h,'param name="src" value="','"'); if ($link == "") { $link=str_between($h,'addVariable("file","','"'); } } else { $l1="http://www.divxstage.eu/api/player.api.php?key=".urlencode($p1)."&user=undefined&codes=undefined&pass=undefined&file=".$p2; $h = file_get_contents($l1); $link=str_between($h,"url=","&"); } } elseif ((strpos($filelink, 'fastupload.rol.ro') !== false) || (strpos($filelink, 'fastupload.ro') !== false)) { $h = file_get_contents($filelink); $link=str_between($h,"file': '","'"); } elseif (strpos($filelink, 'zetshare.net') !== false) { $h = file_get_contents($filelink); $link=str_between($h,"'file', '","'"); } elseif (strpos($filelink, 'ufliq.com') !== false) { $h = file_get_contents($filelink); $link=str_between($h,"url: '","'"); if ($link == "") { $link=get_unpack4(1,14,6,$h); } } elseif (strpos($filelink, 'stagero.eu') !== false) { //http://www.stagero.eu/api/player.api.php?codes=1&key=78%2E96%2E189%2E71%2D43400f4737713449ec249d9baf1e16f9&pass=undefined&user=undefined&file=pq34kgvq7gn26 $h = file_get_contents($filelink); $p1=str_between($h,'flashvars.filekey="','"'); $p2=str_between($h,'flashvars.file="','"'); $l1="http://www.stagero.eu/api/player.api.php?codes=1&key=".urlencode($p1)."&pass=undefined&user=undefined&file=".$p2; $h = file_get_contents($l1); $link=str_between($h,"url=","&"); } elseif (strpos($filelink, 'mixturevideo.com') !== false) { $h = file_get_contents($filelink); $p1=str_between($h,"file=","&"); $p2=str_between($h,"streamer=",'"'); $link=$p2."&file=".$p1; } elseif (strpos($filelink, 'ovfile.com') !== false) { $h = file_get_contents($filelink); $link=get_unpack4(2,12,5,$h); if (strpos($link,"http") === false) { $link=get_unpack4(2,16,5,$h); } } elseif (strpos($filelink, 'trilulilu') !== false) { $h = file_get_contents($filelink); if (strpos($filelink,"embed") === false) { $userid = str_between($h, 'userid":"', '"'); $hash = str_between($h, 'hash":"', '"'); $server = str_between($h, 'server":"', '"'); } else { $userid = str_between($h, 'userid=', '&'); $hash = str_between($h, 'hash=', '&'); $server = str_between($h, 'server=', '"'); } $link1="http://fs".$server.".trilulilu.ro/stream.php?type=video&amp;source=site&amp;hash=".$hash."&amp;username=".$userid."&amp;key=ministhebest"; $link = $link1."&amp;format=mp4-720p"; $AgetHeaders = @get_headers($link); if (!preg_match("|200|", $AgetHeaders[0])) { $link = $link1."&amp;format=mp4-360p"; $AgetHeaders = @get_headers($link); if (!preg_match("|200|", $AgetHeaders[0])) { $link = $link1."&amp;format=flv-vp6"; $AgetHeaders = @get_headers($link); if (!preg_match("|200|", $AgetHeaders[0])) { $link=""; } } } } elseif (strpos($filelink, 'filmedocumentare.com') !==false) { $h = file_get_contents($filelink); $link=trim(str_between($h,"<location>","</location>")); } elseif (strpos($filelink, 'xvidstage.com') !== false) { //http://xvidstage.com/zwvh3et6vugo //http://xvidstage.com/cgi-bin/dl.cgi/igribijb5hnkqetnfyplgdzywdxney3aiufdbxrwn4/video.avi //http://s2.xvidstage.com:182/d/uquig3k7gii5uaadri5e7kkogbfsqnhv4oxwpqvhx556wkcrvrzq636z/video.flv //http://xvidstage.com/embed-26kpbe5apbem.html if (strpos($filelink,"embed") !== false) { $h = file_get_contents($filelink); } else { $id = substr(strrchr($filelink, "/"), 1); $filelink = "http://xvidstage.com/embed-".$id.".html"; $h = file_get_contents($filelink); } $link=get_unpack4(2,9,5,$h); } elseif (strpos($filelink, 'viki.com') !==false) { preg_match('/(viki\.com\/player\/medias\/)([\w\-]+)/', $filelink, $match); $viki_id = $match[2]; $l1="http://www.viki.com/player/medias/".$viki_id."/info.json?rtmp=true&source=embed&embedding_uri=www.viki.com"; $h=file_get_contents($l1); if (strpos($h,"rtmp") === false) { $new_file="D://dolce.gz"; $new_file="/tmp/dolce.gz"; $fh = fopen($new_file, 'w'); fwrite($fh, $html); fclose($fh); $zd = gzopen($new_file, "r"); $h = gzread($zd, filesize($new_file)); gzclose($zd); } $rtmp=str_between($h,'"uri":"','"'); //rtmp://fms.354a.edgecastcdn.net/00354A/videos/encoded/Heartstrings/mp4:131448_Heartstrings_001_480p.mp4" $t1=explode("/",$rtmp); $y=$t1[7]; $a=$t1[3]."/".$t1[4]."/".$t1[5]."/".$t1[6]; $rtmp=$t1[0]."//".$t1[2]."/".$a; $link = "http://127.0.0.1/cgi-bin/scripts/util/translate1.cgi?stream,Rtmp-options:-a%20".$a."%20-y%20".$y."%20-W%20http://a3.vikiassets.com/swfs/vikiplayer.swf%20-p%20http://www.viki.com,".$rtmp; } print $link; ?>
1073s
trunk/filme/php/.svn/text-base/link.php.svn-base
PHP
gpl3
22,058
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $host = "http://127.0.0.1/cgi-bin"; $query = $_GET["file"]; if($query) { $queryArr = explode(',', $query); $link = $queryArr[0]; $pg_tit = urldecode($queryArr[1]); } $html = file_get_contents($link); $t1=explode("<div id='serial_description'>",$html); $t2=explode("src='",$t1[1]); $t3=explode("'",$t2[1]); $img="http://serialepenet.ro/".$t3[0]; $img=str_replace(" ","%20",$img); $annotation=str_between($t1[1],"'serial_description_text'>","</span>"); $t=str_between($html,"<title>","</title>"); $t=explode("serial",$t); $t=trim($t[0]); if ($t <> "") { $pg_tit = $t; } ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="20" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="20" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <!--<image offsetXPC=5 offsetYPC=2 widthPC=20 heightPC=16> <script>channelImage;</script> </image>--> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="left" redraw="yes" lines="10" fontSize=17 offsetXPC=30 offsetYPC=55 widthPC=65 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <?php echo $annotation; ?> </text> <image redraw="yes" offsetXPC=45 offsetYPC=22.5 widthPC=30 heightPC=25> <?php echo $img; ?> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <script> channelImage = "/usr/local/etc/www/cgi-bin/scripts/filme/image/series.png"; </script> <channel> <title><?echo $pg_tit; ?></title> <menu>main menu</menu> <?php $videos = explode("<div class='bloc_sezoane'>", $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1=explode('href="',$video); $t2=explode('"',$t1[1]); $link="http://serialepenet.ro/".$t2[0]; $t3=explode("class='serial_title'>",$video); $t4=explode("<",$t3[1]); $title=$t4[0]; $s=$pg_tit."-".$title; $link = $host."/scripts/filme/php/serialepenet_s.php?file=".$link.",".urlencode($s); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> </item> '; } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/serialepenet.php.svn-base
PHP
gpl3
5,799
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="40" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="40" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="justify" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>filmedocumentare</title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $html = file_get_contents("http://filmedocumentare.com/"); $html=str_between($html,'Canale de filme','</table>'); $videos = explode('href="', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('"', $video); $link = $t1[0]; $t1 = explode('title="', $video); $t4 = explode('"',$t1[1]); $annotation=$t4[0]; $t2 = explode('>', $t1[1]); $t3 = explode('<',$t2[1]); $title = $t3[0]; $title=html_entity_decode($title,ENT_QUOTES, "UTF-8"); $title=htmlentities($title, ENT_QUOTES, "UTF-8"); $title=urlencode($title); $title=str_replace("%C8%99","s",$title); $title=str_replace("%C8%9B","t",$title); $title=urldecode($title); if ($link <> "") { $link = $host."/scripts/filme/php/filmedocumentare.php?query=1,".$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$annotation.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/filmedocumentare_main.php.svn-base
PHP
gpl3
5,518
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $query = $_GET["file"]; if($query) { $queryArr = explode(',', $query); $page = $queryArr[0]; $search = $queryArr[1]; $tit= urldecode($queryArr[2]); } ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=66 offsetYPC=30 widthPC=20 heightPC=40> <script>print(img); img;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title><?php echo $tit; ?></title> <menu>main menu</menu> <?php if($page > 1) { ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?file=".($page-1).",".$search.",".urlencode($tit); ?> <title>Previous Page</title> <link><?php echo $url;?></link> <annotation>Pagina anterioară</annotation> <image>image/left.jpg</image> <mediaDisplay name="threePartsView"/> </item> <?php } ?> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $cookie="D://seenow.txt"; $cookie="/tmp/seenow.txt"; $l=$search.$page; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $l); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 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'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie); $html = curl_exec($ch); curl_close($ch); $videos = explode('<div class="ic_container">', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $link = "http://www.seenow.ro".$t2[0]; $t1 = explode('src="', $video); $t2 = explode('"', $t1[1]); $image = $t2[0]; $title = str_between($video,'<span>','</span>'); $v=str_replace("u015e","S",$title); $v=str_replace("u015f","s",$v); $v=str_replace("u0163","t",$v); $v=str_replace("u0162","T",$v); $v=str_replace("u0103","a",$v); $v=str_replace("u0102","A",$v); $v=str_replace("u00a0"," ",$v); $title=str_replace("u00e2","a",$v); //echo $gratis; if (($title <> "") && ($title <> "Oferta Seenow")) { $f = "/usr/local/bin/home_menu"; if (file_exists($f)) { echo' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); url1=getURL("http://127.0.0.1/cgi-bin/scripts/util/seenow_xml.php?file='.urlencode($link).'"); url="http://127.0.0.1/cgi-bin/scripts/util/translate.cgi?stream," + url1; cancelIdle(); storagePath = getStoragePath("tmp"); storagePath_stream = storagePath + "stream.dat"; streamArray = null; streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, video/mp4); streamArray = pushBackStringArray(streamArray, "'.$title.'"); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file:///usr/local/etc/www/cgi-bin/scripts/util/videoRenderer2.rss"); </script> </onClick> <image>'.$image.'</image> </item> '; } else { echo' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); url1=getURL("http://127.0.0.1/cgi-bin/scripts/util/seenow_xml.php?file='.urlencode($link).'"); url="http://127.0.0.1/cgi-bin/scripts/util/translate.cgi?stream," + url1; cancelIdle(); storagePath = getStoragePath("tmp"); storagePath_stream = storagePath + "stream.dat"; streamArray = null; streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, video/mp4); streamArray = pushBackStringArray(streamArray, "'.$title.'"); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file:///usr/local/etc/www/cgi-bin/scripts/util/videoRenderer1.rss"); </script> </onClick> <image>'.$image.'</image> </item> '; } } } ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?file=".($page+1).",".$search.",".urlencode($tit); ?> <title>Next Page</title> <link><?php echo $url;?></link> <annotation>Pagina următoare</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/seenow.php.svn-base
PHP
gpl3
8,808
#!/usr/local/bin/Resource/www/cgi-bin/php <?php $query = $_GET["file"]; if($query) { $queryArr = explode(',', $query); $link = $queryArr[0]; $tit = urldecode($queryArr[1]); } $html = file_get_contents($link); $image = "http://www.990.ro/".str_between($html,"<img src='","'"); ?> <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="55" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="55" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text align="left" offsetXPC="6" offsetYPC="15" widthPC="50" heightPC="4" fontSize="16" backgroundColor="10:105:150" foregroundColor="100:200:255"> Apăsaţi 1 sau 2 pentru salt +- 100 </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> Folosiţi PREV şi NEXT ca PageUp şi PageDown </text> <image offsetXPC=71 offsetYPC=30 widthPC=20 heightPC=40><?php echo $image; ?></image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); majorContext = getPageInfo("majorContext"); print("*** majorContext=",majorContext); print("*** userInput=",userInput); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } else if(userInput == "one" || userInput == "1") { idx = Integer(getFocusItemIndex()); idx -= -100; if(idx &gt;= itemCount) idx = itemCount-1; print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } else if(userInput == "two" || userInput == "2") { idx = Integer(getFocusItemIndex()); idx -= 100; if(idx &lt; 0) idx = 0; print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title><?php echo $tit; ?></title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } //http://www.990.ro/seriale2-10140-10393-Hell-on-wheels--online-Pilot-download.html //http://www.990.ro/player-seriale-10140-10393-Hell-on-wheels--online-Pilot-.html $html = str_between($html,"<table border='0' cellpadding='0' cellspacing='0' width='100%'>","</table>"); $videos = explode("<tr>", $html); unset($videos[0]); $videos = array_values($videos); $n=0; foreach($videos as $video) { $t1 = explode("a href='", $video); $t2 = explode("'", $t1[1]); $link = $t2[0]; $t3 = explode(">",$t1[1]); $t4 = explode("<",$t3[1]); $title1 = $t4[0]; $link = str_replace("download","",$link); $link = str_replace("seriale2","player-seriale",$link); //$link = str_replace(",","*",$link); //http://www.990.ro/player-seriale-88-7216-Stargate-Atlantis-Poarta-stelara-Atlantis-online-Rising-.html //http://www.990.ro/player-seriale-redirect-serial.php?id=88&idul=7216&v=1 //http://www.990.ro/player-seriale-redirect-serial.php?id=88&idul=7217&v=1 //$link = ltrim($link,"player-seriale-"); $t1=explode("-",$link); $id=$t1[0]; $idul=$t1[1]; //$link="player-seriale-redirect-serial.php?id=".$id."@idul=".$idul."@v=1"; if ($id <> "") { $link = "http://www.990.ro/".$link; $title = str_between($video,"<td>","</td>")." - ".$title1; $titdown=$tit."-".$title; $titdown=str_replace(",","-",$titdown); $link = 'http://127.0.0.1/cgi-bin/scripts/filme/php/filme_link.php?'.urlencode($link).",".urlencode($titdown); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <media:thumbnail url="'.$image.'" /> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/990_seriale.php.svn-base
PHP
gpl3
7,227
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $page = $queryArr[0]; $search = $queryArr[1]; $tit=urldecode($queryArr[2]); } ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="35" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="35" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="center" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=22.5 widthPC=30 heightPC=25> <script>print(img); img;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "14"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title><?php echo $tit; ?></title> <menu>main menu</menu> <?php if($page) { $link=$search.$page; } else { $page = 1; $link = $search; } if($page > 1) { ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page-1); if($search) { $url = $url.$search.",".urlencode($tit); } ?> <title>Pagina anterioară</title> <link><?php echo $url;?></link> <annotation>Pagina anterioară</annotation> <image>image/left.jpg</image> <mediaDisplay name="threePartsView"/> </item> <?php } ?> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $host = "http://127.0.0.1/cgi-bin"; $cookie="D://vplay_c.txt"; $cookie="/tmp/vplay_c.txt"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $link); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 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'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie); $html = curl_exec($ch); curl_close($ch); $html = str_between($html,"<h2>Colec","</ul>"); $videos = explode('<li>', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $link = "http://vplay.ro".$t2[0]; $image=str_between($video,"image:url(",")"); $t3 = explode('title="', $t1[1]); $t4 = explode('"', $t3[1]); $title = trim($t4[0]); $description = str_between($video,'<span class="s_e">','</span>'); if ($link <> "") { $link = $host."/scripts/filme/php/vplay_sez.php?file=".urlencode($link).",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$description.'</annotation> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page+1).","; if($search) { $url = $url.$search.",".urlencode($tit); } ?> <title>Pagina următoare</title> <link><?php echo $url;?></link> <annotation>Pagina următoare</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/vplay_main.php.svn-base
PHP
gpl3
6,863
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="50" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="50" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=35 widthPC=30 heightPC=30> image/movies.png </image> <idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_01.png </idleImage> <idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_02.png </idleImage> <idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_03.png </idleImage> <idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_04.png </idleImage> <idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_05.png </idleImage> <idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_06.png </idleImage> <idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_07.png </idleImage> <idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_08.png </idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageWidthPC="10" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>filmeonlinenoi.com - categorii</title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $html = file_get_contents("http://filmeonlinenoi.com"); $img = "image/movies.png"; $videos = explode('li class="cat-item', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="',$video); $t2 = explode('"',$t1[1]); $link = trim($t2[0]); $t1 = explode('"title">',$video); $t2 = explode("<",$t1[1]); $title = $t2[0]; $link = $host."/scripts/filme/php/filmeonlinenoi.php?query=,".$link; echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/filmeonlinenoi_main.php.svn-base
PHP
gpl3
5,373
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $page = $queryArr[0]; $search = $queryArr[1]; $tit=urldecode($queryArr[2]); } ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text align="left" offsetXPC="6" offsetYPC="15" widthPC="100" heightPC="4" fontSize="16" backgroundColor="10:105:150" foregroundColor="100:200:255"> Apăsaţi 2 pentru download, 3 pentru Download Manager </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="center" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=22.5 widthPC=30 heightPC=25> <script>print(img); img;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } if (userInput == "two" || userInput == "2") { showIdle(); url=getItemInfo(getFocusItemIndex(),"download"); movie=getUrl(url); cancelIdle(); topUrl = "http://127.0.0.1/cgi-bin/scripts/util/download.cgi?link=" + movie + ";name=" + getItemInfo(getFocusItemIndex(),"name"); dlok = loadXMLFile(topUrl); "true"; } if (userInput == "three" || userInput == "3") { jumpToLink("destination"); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <destination> <link>http://127.0.0.1/cgi-bin/scripts/util/level.php </link> </destination> <channel> <title><?php echo $tit; ?></title> <menu>main menu</menu> <?php $host = "http://127.0.0.1/cgi-bin"; $html = file_get_contents($search.$page); if($page > 1) { ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page-1).","; if($search) { $url = $url.$search.",".urlencode($tit); } ?> <title>Previous Page</title> <link><?php echo $url;?></link> <annotation>Pagina anterioară</annotation> <image>image/left.jpg</image> <mediaDisplay name="threePartsView"/> </item> <?php } ?> <?php $videos = explode('<div class="materialItemContainer"', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('<a href="', $video); $t2 = explode('"', $t1[2]); $link = $t2[0]; $link = str_replace(' ','%20',$link); $link = str_replace('[','%5B',$link); $link = str_replace(']','%5D',$link); $link = "http://www.peteava.ro".$link; for ($i=1;$i<6;$i++) { $t1 = explode('src="', $video); $t2 = explode('"', $t1[$i]); $image = $t2[0]; if (strpos($image,"pixel.gif") === false) break; } $t1 = explode('"infoContainer">',$video); $t2 = explode('<',$t1[1]); $data = "Durata: ".$t2[0]; $t1 = explode('class="materialTitle">', $video); $t2 = explode('<', $t1[1]); $title = htmlspecialchars_decode($t2[0]); $link = $host.'/scripts/filme/php/peteava_link.php?file='.$link.','.urlencode($title); $name = preg_replace('/[^A-Za-z0-9_]/','_',$title).".flv"; $f = "/usr/local/bin/home_menu"; if (file_exists($f)) { echo ' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); url="'.$link.'"; movie=getURL(url); cancelIdle(); storagePath = getStoragePath("tmp"); storagePath_stream = storagePath + "stream.dat"; streamArray = null; streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, movie); streamArray = pushBackStringArray(streamArray, movie); streamArray = pushBackStringArray(streamArray, video/mp4); streamArray = pushBackStringArray(streamArray, "'.$pg_tit.'"); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file:///usr/local/etc/www/cgi-bin/scripts/util/videoRenderer2.rss"); </script> </onClick> <download>'.$link.'</download> <name>'.$name.'</name> <image>'.$image.'</image> <annotation>'.$data.'</annotation> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } else { echo ' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); url="'.$link.'"; movie=getURL(url); cancelIdle(); storagePath = getStoragePath("tmp"); storagePath_stream = storagePath + "stream.dat"; streamArray = null; streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, movie); streamArray = pushBackStringArray(streamArray, movie); streamArray = pushBackStringArray(streamArray, video/mp4); streamArray = pushBackStringArray(streamArray, "'.$pg_tit.'"); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file:///usr/local/etc/www/cgi-bin/scripts/util/videoRenderer1.rss"); </script> </onClick> <download>'.$link.'</download> <name>'.$name.'</name> <image>'.$image.'</image> <annotation>'.$data.'</annotation> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page+1).","; if($search) { $url = $url.$search.",".urlencode($tit); } ?> <title>Next Page</title> <link><?php echo $url;?></link> <annotation>Pagina următoare</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/peteava.php.svn-base
PHP
gpl3
9,305
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $page = $_GET["page"]; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text align="left" offsetXPC="6" offsetYPC="15" widthPC="100" heightPC="4" fontSize="16" backgroundColor="10:105:150" foregroundColor="100:200:255"> Press 2 for download, 3 for download manager </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="55" offsetYPC="22.5" widthPC="40" heightPC="5" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> Description </text> <text align="justify" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=27.5 widthPC=40 heightPC=40 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <text redraw="yes" align="center" offsetXPC="55" offsetYPC="70" widthPC="40" heightPC="5" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> Keywords </text> <text align="justify" redraw="yes" lines="3" fontSize=17 offsetXPC=55 offsetYPC=75 widthPC=40 heightPC=15 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(key); key;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(titlu); titlu;</script> </text> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { annotation = getItemInfo(idx, "annotation"); titlu = getItemInfo(idx, "title"); key = getItemInfo(idx, "keyword"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } if (userInput == "two" || userInput == "2") { showIdle(); url=getItemInfo(getFocusItemIndex(),"download"); movie=getUrl(url); cancelIdle(); topUrl = "http://127.0.0.1/cgi-bin/scripts/util/download.cgi?link=" + movie + ";name=" + getItemInfo(getFocusItemIndex(),"name"); dlok = loadXMLFile(topUrl); "true"; } if (userInput == "three" || userInput == "3") { jumpToLink("destination"); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <destination> <link>http://127.0.0.1/cgi-bin/scripts/util/level.php </link> </destination> <channel> <title>www.archive.org - Movies and Films</title> <menu>main menu</menu> <?php $link="http://www.archive.org/search.php?query=collection%3Amoviesandfilms&sort=-avg_rating%3B-num_reviews&page=".$page; //$html = file_get_contents($link); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $link); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 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'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); $html = curl_exec($ch); curl_close($ch); if($page > 1) { ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?page=".($page-1); ?> <title>Previous Page</title> <link><?php echo $url;?></link> <annotation>Previous Page</annotation> <image>image/left.jpg</image> <mediaDisplay name="threePartsView"/> </item> <?php } ?> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $host = "http://127.0.0.1/cgi-bin"; $image = "image/movies.png"; $html = file_get_contents($link); $videos = explode('<tr class="hitRow">', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1=explode('href="',$video); $t2=explode('"',$t1[1]); $link="http://www.archive.org".$t2[0]; $t3=explode(">",$t1[1]); $t4=explode("<",$t3[1]); $title=$t4[0]; $t1=explode("<br/>",$video); $t2=explode('Keywords:',$t1[1]); $description=$t2[0]; $description = preg_replace("/(<\/?)(\w+)([^>]*>)/e","",$description); $key=str_between($video,"Keywords:","Downloads:"); $key = preg_replace("/(<\/?)(\w+)([^>]*>)/e","",$key); $key=trim($key); if ($link <> "") { $link = $host.'/scripts/filme/php/archive_link.php?file='.$link; $name = preg_replace('/[^A-Za-z0-9_]/','_',$title).".mp4"; echo ' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); url="'.$link.'"; movie=getUrl(url); cancelIdle(); storagePath = getStoragePath("tmp"); storagePath_stream = storagePath + "stream.dat"; streamArray = null; streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, movie); streamArray = pushBackStringArray(streamArray, movie); streamArray = pushBackStringArray(streamArray, video/x-flv); streamArray = pushBackStringArray(streamArray, "'.$title.'"); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file:///usr/local/etc/www/cgi-bin/scripts/util/videoRenderer.rss"); </script> </onClick> <download>'.$link.'</download> <name>'.$name.'</name> <image>'.$image.'</image> <annotation>'.$description.'</annotation> <keyword>'.$key.'</keyword> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?page=".($page+1); ?> <title>Next Page</title> <link><?php echo $url;?></link> <annotation>Next Page</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/archive.php.svn-base
PHP
gpl3
9,209
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="justify" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=66 offsetYPC=22.5 widthPC=15 heightPC=30> <script>print(img); img;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>www.filmelive.net</title> <menu>main menu</menu> <?php $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $page = $queryArr[0]; $search = $queryArr[1]; } //http://www.filmelive.net/page/3 if($page) { $html = file_get_contents($search."/page/".$page.""); } else { $page = 1; $html = file_get_contents($search."/"); } if($page > 1) { ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page-1).","; if($search) { $url = $url.$search; } ?> <title>Previous Page</title> <link><?php echo $url;?></link> <annotation>Pagina anterioară</annotation> <image>image/left.jpg</image> <mediaDisplay name="threePartsView"/> </item> <?php } ?> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $image = "image/movies.png"; $videos = explode('class="oneblog"', $html); //class="oneblog" unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); //$t3 = explode('=',$t2[0]); $link = $t2[0]; $t3 = explode('src="', $video); $t4 = explode('"', $t3[1]); $image = $t4[0]; //$t1 = explode('title="', $video); //$t2 = explode('"', $t1[1]); $t3 = explode(">",$t1[1]); $t4 = explode("<",$t3[1]); $title = $t4[0]; $title=str_replace("online","",$title); $title=str_replace("subtitrat","",$title); $title=str_replace("gratis","",$title); $title=str_replace("-","",$title); $title=trim($title); $title=preg_replace("/onlin(.*)|sub(.*)|seri(.*)|film(\w+)|noi/si","",$title); $title=trim(str_replace("&nbsp;","",$title)); // descriere $v1 = explode('<p>', $video); $v2 = explode('</p>', $v1[1]); $descriere = $v2[0]; $descriere = preg_replace("/(<\/?)(\w+)([^>]*>)/e","",$descriere); $descriere = str_replace("<","",$descriere); if ($link <> "") { $link = 'http://127.0.0.1/cgi-bin/scripts/filme/php/filme_link.php?'.$link.','.urlencode($title); echo' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$descriere.'</annotation> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page+1).","; if($search) { $url = $url.$search; } ?> <title>Next Page</title> <link><?php echo $url;?></link> <annotation>Pagina următoare</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/filmelive.php.svn-base
PHP
gpl3
7,026
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="center" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=68 offsetYPC=22.5 widthPC=15 heightPC=30> <script>print(img); img;</script> </image> <idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_01.png </idleImage> <idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_02.png </idleImage> <idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_03.png </idleImage> <idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_04.png </idleImage> <idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_05.png </idleImage> <idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_06.png </idleImage> <idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_07.png </idleImage> <idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_08.png </idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> <item_template> <mediaDisplay name="threePartsView" idleImageWidthPC="10" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>filmeonline24.com</title> <menu>main menu</menu> <?php $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $page = $queryArr[0]; $search = $queryArr[1]; } if($page) { $html = file_get_contents($search."page/".$page."/"); } else { $page = 1; $html = file_get_contents($search); } if($page > 1) { ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page-1).","; if($search) { $url = $url.$search; } ?> <title>Previous Page</title> <link><?php echo $url;?></link> <annotation>Pagina anterioară</annotation> <image>image/left.jpg</image> <mediaDisplay name="threePartsView"/> </item> <?php } ?> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $html = str_between($html,'<div id="slider">','<!--End Slider-->'); $videos = explode('<div', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('<a href="', $video); $t2 = explode('"', $t1[1]); $link = $t2[0]; $link = str_replace(' ','%20',$link); $link = str_replace('[','%5B',$link); $link = str_replace(']','%5D',$link); $t1 = explode(' src="', $video); $t2 = explode('"', $t1[1]); $image = $t2[0]; //$t1 = explode('title="', $video); //$t2 = explode('"', $t1[1]); $title=str_between($video,"strong&gt;","&lt;/strong"); $title = str_replace("Vizioneaza Filmul","",$title); $title = str_replace("online Gratis","",$title); $title = str_replace("Vizionare Filmul","",$title); $title = str_replace("Online Gratis","",$title); $title = str_replace("Vizoneaza","",$title); $title = str_replace("filmul","",$title); $title = trim($title); // descriere $v1 = explode('<p>', $video); $v2 = explode('</p>', $v1[1]); /** $descriere = $v2[0]; $descriere = preg_replace("/(<\/?)(\w+)([^>]*>)/e","",$descriere); $descriere = str_replace("Server 1","",$descriere); $descriere = str_replace("Server 2","",$descriere); $descriere = str_replace("Server 3","",$descriere); $descriere = str_replace("&#8211; inchideti fereastra de publicitate","",$descriere);// $descriere = trim($descriere); if ($descriere == "") { $descriere = $title; } **/ $descriere = $title; $pos = strpos($image, '.jpg'); if ($pos !== false) { $link = 'http://127.0.0.1/cgi-bin/scripts/filme/php/filme_link.php?'.$link.','.urlencode($title); echo' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$descriere.'</annotation> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page+1).","; if($search) { $url = $url.$search; } ?> <title>Next Page</title> <link><?php echo $url;?></link> <annotation>Pagina următoare</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/filmeonline24.php.svn-base
PHP
gpl3
7,593
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="35" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="35" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="justify" redraw="yes" lines="18" fontSize=17 offsetXPC=45 offsetYPC=25 widthPC=50 heightPC=72 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { annotation = getItemInfo(idx, "annotation"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "14"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>SerialePe.Net</title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $host = "http://127.0.0.1/cgi-bin"; //necesita inregistrare pe site //serialepe.txt are o singura linie de forma //username@pass $filename = "/usr/local/etc/dvdplayer/serialepe.txt"; $handle = fopen($filename, "r"); $c = fread($handle, filesize($filename)); fclose($handle); $a=explode("@",$c); $user=$a[0]; $pass=trim($a[1]); $post="log=".$user."&pwd=".$pass."&rememberme=forever&wp-submit=Log+In&redirect_to=http%3A%2F%2Fwww.serialepe.net%2Fwp-admin%2F&testcookie=1"; $l="http://www.serialepe.net/wp-login.php"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $l); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 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'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt ($ch, CURLOPT_POST, 1); curl_setopt ($ch, CURLOPT_POSTFIELDS, $post); curl_setopt($ch, CURLOPT_COOKIEJAR, "/tmp/cookie.txt"); curl_setopt($ch, CURLOPT_COOKIEFILE, "/tmp/cookie.txt"); $html = curl_exec($ch); curl_close($ch); //$html = file_get_contents("http://www.serialepe.net/"); //$html = str_between($html,"<h2 class='title'>Seriale Online</h2>","</ul>"); $videos = explode('<li class="cat-item cat-item', $html); unset($videos[0]); $videos = array_values($videos); $img = "image/movies.png"; $n=0; foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $link = $t2[0]; $t3 = explode('">', $t1[1]); $t4 = explode('<', $t3[1]); $title = trim($t4[0]); $t1 = explode('title="',$video); $t2= explode('"',$t1[1]); $description = $t2[0]; if (strpos($description,"all posts filed") !== false) { $description=$title; } if ($link <> "") { $link = $host."/scripts/filme/php/serialepe.php?file=".$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$description.'</annotation> <media:thumbnail url="'.$img.'" /> <mediaDisplay name="photoView"/> </item> '; $n++; } } if ($n==0) { $link = "/usr/local/etc/www/cgi-bin/scripts/filme/php/serialepe.rss"; $description="Pentru a accesa acest site trebuie să aveţi un cont pe serialepe.net (este gratis). Completaţi userul şi parola în acest formular şi apoi apăsaţi Return, Return după care accesaţi din nou această pagină. Dacă userul şi parola sunt corecte veţi putea vedea lista serialelor."; echo ' <item> <title>Logare</title> <link>'.$link.'</link> <annotation>'.$description.'</annotation> <media:thumbnail url="'.$img.'" /> <mediaDisplay name="onePartView" /> </item> '; } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/serialepe_main.php.svn-base
PHP
gpl3
7,019
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; $query = $_GET["file"]; if($query) { $queryArr = explode(',', $query); $link = $queryArr[0]; $pg_tit = urldecode($queryArr[1]); } $html = file_get_contents($link); ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="50" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="50" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=35 widthPC=30 heightPC=30> <script>print(img); img;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); "true"; } redrawDisplay(); ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title><?echo $pg_tit; ?></title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $videos = explode("<div class='bloc_seriale'>", $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $link="http://serialepenet.ro/".$t2[0]; $t1=explode('src="',$video); $t2=explode('"',$t1[1]); $image="http://serialepenet.ro/".$t2[0]; $t1 = explode("serial_title'>", $t1[1]); $t3 = explode('<',$t1[1]); $title = $t3[0]; $link = $host."/scripts/filme/php/serialepenet.php?file=".$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <annotation>'.$title.'</annotation> <image>'.$image.'</image> <link>'.$link.'</link> </item> '; } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/serialepenet_cat.php.svn-base
PHP
gpl3
5,528
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="justify" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=66 offsetYPC=22.5 widthPC=15 heightPC=20> <script>print(img); img;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>online-moviez.com</title> <menu>main menu</menu> <?php $host = "http://127.0.0.1/cgi-bin"; function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $link="http://www.online-moviez.com/rss/feed_film.xml"; $html=file_get_contents($link); $image="image/movies.png"; $videos = explode('<item>', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $title=str_between($video,"<title>","</title>"); $title=str_replace("<![CDATA[","",$title); $title=str_replace("]]>","",$title); $link=str_between($video,"<link>","</link>"); $v1 = explode('src="', $video); $v2 = explode('"', $v1[1]); $image = $v2[0]; $descriere = trim(str_between($video,"Kategorie:","</description>")); $descriere = str_replace("<br />",":",$descriere); $descriere = "Kategorie: ".preg_replace("/(<\/?)(\w+)([^>]*>)/e","",$descriere); if (strlen($descriere)>=300) { $descriere = substr($descriere,0,300); $descriere = substr($descriere,0,-strlen(strrchr($descriere," ")))."..."; } if($link!="") { $link = "http://127.0.0.1/cgi-bin/scripts/filme/php/filme1_link.php?file=".$link.",".urlencode($title); echo' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$descriere.'</annotation> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/online-moviez.php.svn-base
PHP
gpl3
5,901
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="50" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="50" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=35 widthPC=30 heightPC=30> image/movies.png </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>filme-online-gratis.com - categorii</title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $html = file_get_contents("http://filme-online-gratis.com/blog"); $videos = explode('li class="cat-item cat-item', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $link =$t2[0]; $t1 = explode('title="', $video); $t2 = explode('"', $t1[1]); $title = $t2[0]; $title = trim(str_replace('View all posts filed under','',$title)); $link=$host."/scripts/filme/php/filme-online-gratis.php?query=,".$link; echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } ?> </channel> </rss>
1073s
trunk/filme/php/.svn/text-base/filme-online-gratis_main.php.svn-base
PHP
gpl3
5,277