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=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/online-moviez.php
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" > <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/vezifilme_main.php
PHP
gpl3
5,781
#!/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]); $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> ntest = 0; ref = 1; first_time=1; setRefreshTime(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") { redrawDisplay("yes"); setRefreshTime(100); ret = "false"; } else if( userInput == "one" || userInput == "1") { jumpToLink("destination"); ret="true"; } else if(userInput == "two" || userInput == "2") { showIdle(); do_down=1; file_name= getItemInfo(getFocusItemIndex(),"title"); log_file="<?php echo $dir_log; ?>" + getItemInfo(getFocusItemIndex(),"name") + ".mp4.log"; setRefreshTime(100); topUrl = "http://127.0.0.1/cgi-bin/scripts/util/xml_srt1.php?file=" + getItemInfo(getFocusItemIndex(),"subtitrare") + "," + getItemInfo(getFocusItemIndex(),"name"); info_serial = getUrl(topUrl); 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 $pass = trim(file_get_contents("/usr/local/etc/dvdplayer/serialepe1.txt")); //cod=asbghtyi&activare=Activeaza $post = "cod=".$pass."&activare=Activeaza"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $link); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_REFERER, $link); curl_setopt ($ch, CURLOPT_POST, 1); curl_setopt ($ch, CURLOPT_POSTFIELDS, $post); 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_COOKIEJAR, '/tmp/cookies.txt'); curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt'); $html = curl_exec($ch); curl_close($ch); $t1=explode("Urmareste online serialul",$html); $t2=explode("<",$t1[1]); $info=trim($t2[0]); /* $html=urldecode(str_between($html,"document.write(unescape('","+unescape")); $t1=explode('src="',$html); $t2=explode("'",$t1[1]); $part1=$t2[0]; $part2=$t2[2]; $l=$part1.$part2; */ $t1=explode('iframe src="',$html); $t2=explode('"',$t1[1]); $l=$t2[0]; $l=str_replace("&amp;","&",$l); if ($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_COOKIEJAR, '/tmp/cookies.txt'); curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt'); $html = curl_exec($ch); curl_close($ch); $t1=explode("file=",$html); $t2=explode("&",$t1[1]); $link=$t2[0]; $t1=explode("file=",$html); $t2=explode("&",$t1[2]); $srt=$t2[0]; } else { $link=""; } if ($link <> "") { $server = str_between($link,"http://","/"); $title = $server." - ".substr(strrchr($link,"/"),1); $titledownload = $pg; $ext="mp4"; $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/xml_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/xml_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> '; } /* $pct = substr($srt, -4, 1); if (($srt <> "") && ($pct == ".") && (strpos($srt,".xml") !==false)) { echo ' <item> <title>Subtitrare</title> <download>'.$srt.'</download> <name>'.$titledownload.'.xml</name> <info_serial>Descarcă subtitrarea (cu tasta 2) şi aşteaptă până apare "Ready"</info_serial> </item> '; } */ } // utils echo ' <item> <title>Setare parolă - abonament</title> <onClick> <script> keyword = getInput(); if (keyword != null) { storagePath = "/usr/local/etc/dvdplayer/serialepe1.txt"; arr = null; arr = pushBackStringArray(arr, keyword); writeStringToFile(storagePath, arr); } </script> </onClick> <info_serial>Necesită abonament pe serialepenet.ro!</info_serial> </item> '; /* echo ' <item> <title>Conversie subtitrare (xml-srt) - după download subtitrare</title> <onClick> <script> showIdle(); topUrl = "http://127.0.0.1/cgi-bin/scripts/util/xml_srt.php"; dummy = getUrl(topUrl); cancelIdle(); </script> </onClick> <info_serial>Conversie la toate subtitrările din format xml în format srt</info_serial> </item> '; $link = "http://127.0.0.1/cgi-bin/scripts/util/util1.cgi"; echo ' <item> <title>Stop download (numai pentru metoda săgeată dreapta-download)</title> <link>'.$link.'</link> <enclosure type="text/txt" url="'.$link.'"/> <info_serial>Stop download (numai pentru metoda săgeată dreapta-download)</info_serial> </item> '; */ ?> </channel> </rss>
1073s
trunk/filme/php/serialepenet_l.php
PHP
gpl3
11,652
#!/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="80" widthPC="100" heightPC="15" fontSize="25" 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>filmesubtitrate.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); } function str_title($string){ $pos=strlen(stristr($string, 'serial')); if ($pos == 0) { $pos=strlen(stristr($string, 'online')); } if ($pos <> 0) { $string=substr($string,0,-$pos); } $string=str_replace("&nbsp;","",$string); $string=str_replace("-","",$string); $string=str_replace("Subtitrat","",$string); $string=trim($string); return $string; } $host = "http://127.0.0.1/cgi-bin"; //http://www.filmesubtitrate.info/seriale-online-subtitrate-in-romana //http://www.seriale.filmesubtitrate.info/p/seriale-online-subtitrate-in-romana.html // $html = file_get_contents("http://www.seriale.filmesubtitrate.info/p/seriale-online-subtitrate-in-romana.html"); $html = str_between($html,'Seriale Noi Adaugate<','magazin'); $videos=explode('href="',$html); unset($videos[0]); $videos=array_values($videos); foreach($videos as $video) { $t1=explode('"',$video); $link=trim($t1[0]); $t3=explode(">",$video); $t4=explode("<",$t3[1]); $title=$t4[0]; $title=preg_replace("/onlin(.*)|sub(.*)|seri(.*)|film(.*)/si","",$title); $title=trim(str_replace("&nbsp;","",$title)); $link = $host."/scripts/filme/php/filmesubtitrate_info.php?query=".$link.",".urlencode($title); if (($title <> "") && (strpos($link,"html") !==false)) { echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/filmesubtitrate_info_main.php
PHP
gpl3
4,358
#!/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/seenow.php
PHP
gpl3
8,808
#!/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]); } ?> <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) "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 $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]); $title=urlencode($title); $title=str_replace("%09","",$title); $title=str_replace("%2C","",$title); $title=str_replace("++","",$title); $title=urldecode($title); $data=str_between($video,'<TD id="tdmovies" width="175">',"</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; } $link = 'http://127.0.0.1/cgi-bin/scripts/filme/php/movie2ks_cat2.php?query='.$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/movie2ks_sez.php
PHP
gpl3
6,552
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; //play movie if (file_exists("/tmp/usbmounts/sda1/download")) { $dir = "/tmp/usbmounts/sda1/download/"; } elseif (file_exists("/tmp/usbmounts/sdb1/download")) { $dir = "/tmp/usbmounts/sdb1/download/"; } elseif (file_exists("/tmp/usbmounts/sdc1/download")) { $dir = "/tmp/usbmounts/sdc1/download/"; } elseif (file_exists("/tmp/usbmounts/sda2/download")) { $dir = "/tmp/usbmounts/sda2/download/"; } elseif (file_exists("/tmp/usbmounts/sdb2/download")) { $dir = "/tmp/usbmounts/sdb2/download/"; } elseif (file_exists("/tmp/usbmounts/sdc2/download")) { $dir = "/tmp/usbmounts/sdc2/download/"; } elseif (file_exists("/tmp/hdd/volumes/HDD1/download")) { $dir = "/tmp/hdd/volumes/HDD1/download/"; } else { $dir = ""; } // end ?> <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 1 pentru Download Manager, 2 pentru download, 3 pentru vizionare 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 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 == "one" || userInput == "1") { jumpToLink("destination"); } else if(userInput == "two" || userInput == "2") { showIdle(); topUrl = "http://127.0.0.1/cgi-bin/scripts/util/download.cgi?link=" + getItemInfo(getFocusItemIndex(),"download") + ";name=" + getItemInfo(getFocusItemIndex(),"name"); dummy = getUrl(topUrl); cancelIdle(); } else if(userInput == "three" || userInput == "3") { url="<?php echo $dir; ?>" + getItemInfo(getFocusItemIndex(),"name"); playItemurl(url,10); } else 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> <destination> <link>http://127.0.0.1/cgi-bin/scripts/util/level.php </link> </destination> <channel> <title>Desene Animate</title> <menu>main menu</menu> <?php $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $page = $queryArr[0]; $search = $queryArr[1]; $search = str_replace(".html","",$search); } //http://www.jocuricubarbie.info/desene_animate/tom-si-jerry-2.html if($page) { if($search) { $html = file_get_contents($search."-".$page.".html"); } else { $html = file_get_contents($search."-".$page.".html"); } } else { $page = 1; if($search) { $html = file_get_contents($search.".html"); } else { $html = file_get_contents($search.".html"); } } 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); } $videos = explode('<div class="game_container_game_window">', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $link =$t2[0]; $link=substr(strrchr($link,"/"),1); $link="http://109.163.227.84/jocuricubarbie.info/cartoon/".str_replace(".html",".flv",$link); //http://93.114.41.132/jocuricubarbie.info/cartoon/tom-si-jerry-povestea-spargatorului-de-nuci.flv //http://109.163.227.84/jocuricubarbie.info/cartoon/tom-si-jerry-povestea-spargatorului-de-nuci.flv $t1 = explode('src="', $video); $t2 = explode('"', $t1[1]); $image = "http://www.jocuricubarbie.info".$t2[0]; $t1 = explode('title="', $video); $t2 = explode('"', $t1[1]); $title = $t2[0]; $titledownload = preg_replace('/[^A-Za-z0-9_]/','_',$title); $ext=".flv"; 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, "'.$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>'.$titledownload.'.'.$ext.'</name> <image>'.$image.'</image> </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/jocuricubarbie.php
PHP
gpl3
9,341
#!/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/filme-online-gratis_main.php
PHP
gpl3
5,277
#!/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]); $tit = urldecode($queryArr[1]); } $html = file_get_contents($link); $t1=explode('a target="_blank"',$html); $t2=explode('src="',$t1[1]); $t3=explode('"',$t2[1]); $image=$t3[0]; if (strpos($image,"http") === false) { $image="http://www.mega-stream.to/".$image; } $description=""; ?> <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 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 align="justify" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <?php echo $description; ?> </text> <image redraw="yes" offsetXPC=66 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) { 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"; } 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 echo ' <item> <title>Servers</title> <mediaDisplay name="threePartsView"/> </item> '; if(preg_match_all("/(http\b.*?)(\"|\')+/i",$html,$matches)) { $links=$matches[1]; } $s="/vidxden\.c|divxden\.c|vidbux\.c|movreel\.c|videoweed\.(c|e)|novamov\.(c|e)|vk\.com"; $s=$s."|movshare\.net|videobb\.c|youtube\.c|flvz\.com|rapidmov\.net|putlocker\.com|"; $s=$s."videozer\.com|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/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)) { $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; $name = preg_replace('/[^A-Za-z0-9_]/','_',$tit).".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, "'.$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>'.$name.'</name> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } } } $videos = explode('megavideo/?v=', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1=explode('"',$video); $id=$t1[0]; $link="http://www.megavideo.com/?v=".$id; $link="http://127.0.0.1/cgi-bin/scripts/filme/php/link1.php?file=".urlencode($link); $title="www.megavideo.com"; $name = preg_replace('/[^A-Za-z0-9_]/','_',$tit).".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, "'.$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>'.$name.'</name> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } ?> </channel> </rss>
1073s
trunk/filme/php/mega-stream1.php
PHP
gpl3
9,523
#!/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 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" 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>serialeonline - seriale</title> <menu>main menu</menu> <item> <title>Episoade adăugate recent</title> <link><?php echo $host; ?>/scripts/filme/php/serialeonline_noi.php</link> </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); } $html = file_get_contents("http://www.serialeonline.tv/"); $videos = explode('cat-item cat-item', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $t3 = explode(">",$t1[1]); $t4 = explode("<",$t3[1]); $title = $t4[0]; $link = $host."/scripts/filme/php/serialeonline_sez.php?query=".$t2[0].",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> </item> '; } ?> </channel> </rss>
1073s
trunk/filme/php/serialeonline_main.php
PHP
gpl3
5,736
#!/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>loads7.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://loads7.com/"); $videos = explode('a class="LeftMenu"', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t0=explode('id=',$video); $t1 = explode('"',$t0[1]); $id=$t1[0]; $t2=explode(">",$t0[1]); $t3=explode("<",$t2[1]); $title=trim($t3[0]); $link = $host."/scripts/filme/php/loads7.php?query=1,".$id.",".urlencode($title); if (!preg_match("/Serien|WATCH ALL MOVIES/",$title)) { echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/loads7_main.php
PHP
gpl3
5,226
#!/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/990_filme1.php
PHP
gpl3
5,280
#!/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> /usr/local/etc/www/cgi-bin/scripts/clip/image/vplay.jpg </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> <searchLink> <link> <script>"<?php echo $host."/scripts/filme/php/vplay_search.php?query="; ?>" + urlEncode(keyword);</script> </link> </searchLink> <channel> <title>vplay - 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); } //necesita inregistrare pe site //vplay.txt are o singura linie de forma //username@pass $filename = "/usr/local/etc/dvdplayer/vplay.txt"; $cookie="D://vplay_c.txt"; $cookie="/tmp/vplay_c.txt"; if (file_exists($filename)) { $handle = fopen($filename, "r"); $c = fread($handle, filesize($filename)); fclose($handle); $a=explode("@",$c); $user=$a[0]; $pass=trim($a[1]); if (!file_exists($cookie)) { $l="http://vplay.ro/in"; $post="usr_vplay=".$user."&pwd=".$pass."&rbm=1"; $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://vplay.ro/login/"); 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://vplay.ro/coll/"; $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>"); if ($html1 <> "") { echo ' <item> <title>Cele mai urmărite de tine</title> <link>'.$host.'/scripts/filme/php/vplay_main1.php</link> <annotation>Cele mai urmărite de tine</annotation> <mediaDisplay name="threePartsView"/> </item> '; echo ' <item> <title>Căutare serial</title> <annotation>Căutare serial</annotation> <onClick> keyword = getInput(); if (keyword != null) { jumpToLink("searchLink"); } </onClick> </item> '; } $videos = explode('option value="', $html); unset($videos[0]); $videos = array_values($videos); $n=0; foreach($videos as $video) { $t1=explode('"',$video); $l=$t1[0]; if ($l == "") $link="http://vplay.ro/coll/"; else $link="http://vplay.ro/coll/g/".$l."/"; $t1=explode(">",$video); $t2=explode("<",$t1[1]); $title=$t2[0]; if ($title=="-----") $title="Toate"; $n++; echo ' <item> <title>'.$title.'</title> <link>'.$host.'/scripts/filme/php/vplay_main.php?query=1,'.$link.','.urlencode($title).'</link> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } if ($n==0) { $link = "/usr/local/etc/www/cgi-bin/scripts/filme/php/vplay.rss"; $description="Pentru a accesa acest site trebuie să aveţi un cont pe vplay.ro (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 vedea lista serialelor."; echo ' <item> <title>Logare</title> <link>'.$link.'</link> <annotation>'.$description.'</annotation> <mediaDisplay name="onePartView" /> </item> '; } ?> </channel> </rss>
1073s
trunk/filme/php/vplay_main_main.php
PHP
gpl3
7,928
#!/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 coreene</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"; $image="image/movies.png"; $html = file_get_contents("http://www.serialecoreene.com/"); $html=str_between($html,'Seriale Coreene:','</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]; $t3 = explode('>', $t1[1]); $t2 = explode('<', $t3[1]); $title = trim($t2[0]); $data=$title; if ($link <> "") { $link = $host.'/scripts/filme/php/serialecoreene.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/serialecoreene_main.php
PHP
gpl3
5,435
#!/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/veziserialeonline.php
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="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>Onlinemoca - 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://www.onlinemoca.com/category/filme-online"); $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]); if (strpos($link,"http") === false) { $link="http://www.onlinemoca.com".$link; } $link = $host."/scripts/filme/php/onlinemoca.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> '; } ?> </channel> </rss>
1073s
trunk/filme/php/onlinemoca_main.php
PHP
gpl3
5,291
#!/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/online-moviez1.php
PHP
gpl3
5,915
#!/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/filmesubtitrate_info.php
PHP
gpl3
5,016
#!/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>www.990.ro</title> <menu>main menu</menu> <?php $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $page = $queryArr[0]; $search = $queryArr[1]; } //http://www.990.ro/toate-filmele-pagina-1.html if($page) { if($search) { $html = file_get_contents($search.$page.".html"); } else { $html = file_get_contents("http://www.990.ro/toate-filmele-pagina-".$page.".html"); } } else { $page = 1; if($search) { $html = file_get_contents($search.$page.".html"); } else { $html = file_get_contents("http://www.990.ro/toate-filmele-pagina-1.html"); } } 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("<td width='35%' rowspan='2'>", $html); unset($videos[0]); $videos = array_values($videos); //mai vedem, 3 variante..... foreach($videos as $video) { $t1 = explode('<a href="', $video); $t2 = explode('"', $t1[1]); $link = $t2[0]; $link = str_replace("-download","",$link); $link = str_replace("filme","player-filme",$link); $link = ltrim($link,"player-filme"); $t1=explode("-",$link); $id=$t1[0]; $link="player-filme-redirect-film.php?id=".$id."@v=1"; $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="player-filme-redirect-film.php?id=".$id."@v=1"; $link = trim("http://www.990.ro/".$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.'(v1)</annotation> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; /** //Momentan doar un server.... $link1="http://www.990.ro/player-filme-redirect-film.php?id=".$id."&amp1;v=2"; $AgetHeaders = @get_headers($link1); if (preg_match("|200|", $AgetHeaders[0])) { $link="player-filme-redirect-film.php?id=".$id."@v=2"; $link = trim("http://www.990.ro/".$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.'(v2)</annotation> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } $link1="http://www.990.ro/player-filme-redirect-film.php?id=".$id."&amp1;v=3"; $AgetHeaders = @get_headers($link1); if (preg_match("|200|", $AgetHeaders[0])) { $link="player-filme-redirect-film.php?id=".$id."@v=3"; $link = trim("http://www.990.ro/".$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.'(v3)</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/990_filme.php
PHP
gpl3
8,191
#!/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); } $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='","'"); $html = str_between($html,"<table border='0' cellpadding='0' cellspacing='0' width='100%'>","</table>"); ?> <?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="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 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"; } 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 $videos = explode("<tr>", $html); unset($videos[0]); $videos = array_values($videos); 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("desene-animate2","player-desene",$link); if ($link <> "") { $link = "http://www.990.ro/".$link; $title = str_between($video,"<td>","</td>")." - ".$title1; $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="'.$image.'" /> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/990_desene.php
PHP
gpl3
5,745
#!/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>serialeonline.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); } $host = "http://127.0.0.1/cgi-bin"; $html = file_get_contents("http://serialeonline.ro/index.php/tv-shows"); $videos = explode('sectiontableentry', $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://serialeonline.ro".$link; } $t3 = explode(">",$t1[1]); $t4 = explode("<",$t3[1]); $title = trim($t4[0]); $link = $host."/scripts/filme/php/serialeonlinero.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/serialeonlinero_main.php
PHP
gpl3
5,349
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; ?> <?php $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $page = $queryArr[0]; $search = $queryArr[1]; $image = $queryArr[3]; $image = str_replace(" ","%20",$image); $search = str_replace(" ","%20",$search); $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=61 offsetYPC=30 widthPC=30 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><?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."?query=".($page-1).","; if($search) { $url = $url.$search.",".urlencode($tit).",".$image; } ?> <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); } //http://deseneanimate.tv/view.php?serial=101%20Dalmatieni&episode=2 //http://deseneanimate.tv/view.php?serial=Chuggington&episode=2 for ($i = 1; $i <= 10; $i++) { $episod = ($page-1)*10 + $i; $title = $tit." Episodul ".$episod; $link = $search."&episode=".$episod; //$link = str_replace(" ","%20",$link); $link = "http://127.0.0.1/cgi-bin/scripts/filme/php/filme_link.php?".urlencode($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.",".urlencode($tit).",".$image; } ?> <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/deseneanimate.php
PHP
gpl3
6,300
#!/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]); } ?> <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><?php echo $tit; ?></title> <menu>main menu</menu> <?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_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]); $title=urlencode($title); $title=str_replace("%09","",$title); $title=str_replace("%2C","",$title); $title=str_replace("++","",$title); $title=urldecode($title); $data=str_between($video,'<TD id="tdmovies" width="175">',"</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; } $link = 'http://127.0.0.1/cgi-bin/scripts/filme/php/movie2ks_cat1.php?query='.$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/movie2ks_cat2.php
PHP
gpl3
6,552
#!/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/filmeonlinenoi.php
PHP
gpl3
6,691
#!/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]; $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_COOKIEJAR, '/tmp/cookies.txt'); curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt'); $html = curl_exec($ch); curl_close($ch); $t=explode('<div style="float:left">',$html); $part=$t[1]; //echo $part; $descriere = str_between($part,'<div class="moviedescription">','</div>'); $descriere = preg_replace("/(<\/?)(\w+)([^>]*>)/e"," ",$descriere); $descriere = str_replace("&nbsp;","",$descriere); $t1=explode('src="',$part); $t2=explode('"',$t1[1]); $image=$t2[0]; $t1=explode("IMDB Rating:",$part); $t2=explode(">",$t1[1]); $t3=explode("<",$t2[1]); $imdb = "IMDB Rating: ".$t3[0]; if (strpos($part,"Length") !==false) { $t1=explode('Length:',$part); } else { $t1=explode('nge:',$part); } $t2=explode('|',$t1[1]); $durata=$t2[0]; $durata = trim(preg_replace("/(<\/?)(\w+)([^>]*>)/e","",$durata)); $durata="Length: ".str_replace("&nbsp;","",$durata); if (strpos($part,"Year") !==false) { $t1=explode("Year:",$part); } else { $t1=explode("Jahr:",$part); } $t2=explode("<",$t1[1]); $premiera = $t2[0]; $premiera = "Year: ".trim(preg_replace("/(<\/?)(\w+)([^>]*>)/e"," ",$premiera)); $t1=explode("Genre:",$part); $t2=explode("|",$t1[1]); $cat=$t2[0]; $cat = trim(preg_replace("/(<\/?)(\w+)([^>]*>)/e","",$cat)); $cat = str_replace("&nbsp;","",$cat); $cat = str_replace(" ","",$cat); $t1=explode("Regie:",$part); $t2=explode(">",$t1[1]); $t3=explode("<",$t2[1]); $regia=$t3[0]; $regia ="Regie: ".trim(preg_replace("/(<\/?)(\w+)([^>]*>)/e"," ",$regia)); $t1=explode("Actors:",$part); $t2=explode("<BR>",$t1[1]); $actor=$t2[0]; if ($actor == "") { $t1=explode("Schauspieler:",$part); $t2=explode("<BR>",$t1[1]); $actor=$t2[0]; } $actor = "Actors: ".trim(preg_replace("/(<\/?)(\w+)([^>]*>)/e"," ",$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 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 id="tablemoviesindex2"', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $link = "http://www.movie2k.to/".$t2[0]; $t1 = explode('src="', $video); $t2 = explode('>', $t1[1]); $t3=explode('<',$t2[1]); $title = $t3[0]; $title="Server: ".trim(str_replace("&nbsp;","",$title)); $link = 'http://127.0.0.1/cgi-bin/scripts/filme/php/filme1_link.php?file='.$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/movie2ks.php
PHP
gpl3
8,659
#!/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.filmekmagyarul.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); } $html = file_get_contents("http://www.filmekmagyarul.com/videos"); echo ' <item> <title>All</title> <link>http://127.0.0.1/cgi-bin/scripts/filme/php/filmekmagyarul.php?query=http://www.filmekmagyarul.com/videos,All</link> <annotation>All</annotation> <mediaDisplay name="threePartsView"/> </item> '; $html=str_between($html,"Categories","</ul>"); $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 = "http://www.filmekmagyarul.com".$t2[0]; $t3 = explode('">', $t1[1]); $t4 = explode('<', $t3[1]); $title = $t4[0]; $link1 = $host."/scripts/filme/php/filmekmagyarul.php?query=".$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link1.'</link> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } ?> </channel> </rss>
1073s
trunk/filme/php/filmekmagyarul_main.php
PHP
gpl3
5,518
#!/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>www.filmeonlinehd.in</title> <menu>main menu</menu> <?php $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $page = $queryArr[0]; $search = $queryArr[1]; } if ($page==1) { $html = file_get_contents("http://www.filmeonlinehd.in"); } else { $html = file_get_contents("http://www.filmeonlinehd.in/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 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 class="slides">','</ul>'); $videos = explode('<h2 class="post-title">', $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 = $t2[0]; $d = str_between($video,'<p>','</p>'); $t1=explode("<br />",$d); $descriere = $t1[6]; $descriere = preg_replace("/(<\/?)(\w+)([^>]*>)/e"," ",$descriere); $descriere = str_replace("&nbsp;","",$descriere); $descriere = trim($descriere); $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/filmeonlinehd.php
PHP
gpl3
6,676
#!/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/serialulmeu_main.php
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); $page = $queryArr[0]; $search = 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>Cautare:<?php echo $search; ?></title> <menu>main menu</menu> <?php $host = "http://127.0.0.1/cgi-bin"; $search = str_replace(' ','%20',$search); //http://www.peteava.ro/cauta/video/funny%20clips/pagina/1 //http://www.peteava.ro/cauta/video/red/pagina/2/calitate/toate/grupare/toate/perioada/oricand/sectiuni/toate/sorteaza//directie/ $link = "http://www.peteava.ro/cauta/video/".$search."/pagina/".$page."/calitate/toate/grupare/toate/perioada/oricand/sectiuni/toate/sorteaza//directie/"; //echo $link; $link = "http://www.peteava.ro/cauta/video/".$search."/pagina/".$page; $html = file_get_contents($link); 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="playListAdded"', $html); $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('title="', $video); $t2 = explode('"', $t1[2]); $title = htmlspecialchars_decode($t2[0]); $link = $host.'/scripts/filme/php/peteava_link.php?file='.$link; $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; } ?> <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/peteava_search.php
PHP
gpl3
9,630
#!/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/filmeonline24.php
PHP
gpl3
7,593
#!/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/movie2ks_main.php
PHP
gpl3
6,268
#!/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/vplay_search.php
PHP
gpl3
6,000
#!/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]; $tit = urldecode($queryArr[1]); } $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); $t=explode('<div style="float:left">',$html); $part=$t[1]; //echo $part; $descriere = str_between($part,'<div class="moviedescription">','</div>'); $descriere = preg_replace("/(<\/?)(\w+)([^>]*>)/e"," ",$descriere); $descriere = str_replace("&nbsp;","",$descriere); $t1=explode('src="',$part); $t2=explode('"',$t1[1]); $image=$t2[0]; $t1=explode("IMDB Rating:",$part); $t2=explode(">",$t1[1]); $t3=explode("<",$t2[1]); $imdb = "IMDB Rating: ".$t3[0]; $t1=explode('Length:',$part); $t2=explode('|',$t1[1]); $durata=$t2[0]; $durata = trim(preg_replace("/(<\/?)(\w+)([^>]*>)/e","",$durata)); $durata="Length: ".str_replace("&nbsp;","",$durata); $t1=explode("Year:",$part); $t2=explode("<",$t1[1]); $premiera = $t2[0]; $premiera = "Year: ".trim(preg_replace("/(<\/?)(\w+)([^>]*>)/e"," ",$premiera)); $t1=explode("Genre:",$part); $t2=explode("|",$t1[1]); $cat=$t2[0]; $cat = trim(preg_replace("/(<\/?)(\w+)([^>]*>)/e","",$cat)); $cat = str_replace("&nbsp;","",$cat); $cat = str_replace(" ","",$cat); $t1=explode("Regie:",$part); $t2=explode(">",$t1[1]); $t3=explode("<",$t2[1]); $regia=$t3[0]; $regia ="Regie: ".trim(preg_replace("/(<\/?)(\w+)([^>]*>)/e"," ",$regia)); $t1=explode("Actors:",$part); $t2=explode("<BR>",$t1[1]); $actor=$t2[0]; if ($actor == "") { $t1=explode("Schauspieler:",$part); $t2=explode("<BR>",$t1[1]); $actor=$t2[0]; } $actor = "Actors: ".trim(preg_replace("/(<\/?)(\w+)([^>]*>)/e"," ",$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 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 id="tablemoviesindex2">', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $link = "http://www.movie2k.to/".$t2[0]; $t1 = explode('src="', $video); $t2 = explode('>', $t1[1]); $t3=explode('<',$t2[1]); $title = $t3[0]; $title="Server: ".trim(str_replace("&nbsp;","",$title)); $link = 'http://127.0.0.1/cgi-bin/scripts/filme/php/filme1_link.php?file='.$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/movie2k.php
PHP
gpl3
8,471
#!/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/Kinderfilme.php
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"; ?> <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>serialeonline.tv - 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.serialeonline.tv/"); $html = str_between($html,"recent-posts-3","</ul>"); $videos = explode('<li', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $t3 = explode(">",$t1[1]); $t4 = explode("<",$t3[1]); $title = $t4[0]; $link = "http://127.0.0.1/cgi-bin/scripts/filme/php/filme_link.php?".$t2[0].",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/filme/image/series.png" /> </item> '; } ?> </channel> </rss>
1073s
trunk/filme/php/serialeonline_noi.php
PHP
gpl3
5,450
#!/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/cinemaxx_main.php
PHP
gpl3
5,258
#!/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]; } ?> <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 $search; ?></title> <menu>main menu</menu> <?php $host = "http://127.0.0.1/cgi-bin"; $html = file_get_contents("http://www.peteava.ro/".$search."/video/".$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 //<div class="video_item"> //$videos = explode('"mat_details_container">', $html); $videos = explode('<div class="video_item">', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { 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('class="duration">',$video); $t2 = explode('<',$t1[1]); $data = "Durata: ".$t2[0]; $t0=explode('class="mat_details_container"',$video); $t1 = explode('href="', $t0[1]); $t2 = explode('"', $t1[1]); $link = $t2[0]; $link = str_replace(' ','%20',$link); $link = str_replace('[','%5B',$link); $link = str_replace(']','%5D',$link); $link = "http://www.peteava.ro".$link; $t1 = explode('title="', $t0[1]); $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).".mp4"; $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; } ?> <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/peteava_user.php
PHP
gpl3
9,380
#!/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/loads71.php
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> <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> http://www.jocuricubarbie.info/imagini/menu/jocuri-barbie-desene-animate-over.jpg </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>Desene animate</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.jocuricubarbie.info/desene_animate.html"); echo ' <item> <title>Povesti</title> <link>'.$host.'/scripts/filme/php/jocuricubarbie_p.php</link> <annotation>Povesti... (audio)</annotation> <mediaDisplay name="threePartsView"/> </item> '; $html = str_between($html,'<ul class="Box">','</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 = $t2[0]; $t1 = explode('title="', $video); $t2 = explode('"', $t1[1]); $title = $t2[0]; if ($link <> "") { $link = $host."/scripts/filme/php/jocuricubarbie.php?query=,".$link; echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/jocuricubarbie_main.php
PHP
gpl3
5,517
#!/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"; $html = file_get_contents("http://desene-animate.info/"); $videos = explode('<span class="text-gri">', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1=explode('href="',$video); $t2=explode('"',$t1[1]); $link="http://desene-animate.info/".$t2[0]; $t3 = explode('>', $t1[1]); $t4 = explode('<', $t3[1]); $title = $t4[0]; if ($link <> "") { $link = $host.'/scripts/filme/php/desenele-copilariei.php?query=1,'.$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/desenele-copilariei_main.php
PHP
gpl3
5,318
#!/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=60 offsetYPC=22.5 widthPC=30 heightPC=25> <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> </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>tvcinema.info</title> <menu>main menu</menu> <?php $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $page = $queryArr[0]; $search = $queryArr[1]; } //http://tvcinema.info/tv-shows/2 if($page) { $html = file_get_contents("http://tvcinema.info/tv-shows/".$page); } else { $page = 1; $html = file_get_contents("http://tvcinema.info/tv-shows/1"); } 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); } $host = "http://127.0.0.1/cgi-bin"; $videos = explode('<h2><a href', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1=explode('="',$video); $t2=explode('"',$t1[1]); $link=$t2[0]; $t3 = explode('>', $t1[1]); $t4 = explode('<', $t3[1]); $title = trim($t4[0]); $t1 = explode('src=', $video); $t2 = explode('&', $t1[2]); $image = $t2[0]; $data = trim(str_between($video,'<p>','</p>')); $data = preg_replace("/(<\/?)([^>]*>)/e","",$data); $data = str_replace("&nbsp;","",$data); $data = str_replace(">","",$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/tvcinema.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> '; } } ?> <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/tvcinema_main.php
PHP
gpl3
7,282
#!/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/peteava_user1.php
PHP
gpl3
1,008
#!/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=61 offsetYPC=30 widthPC=30 heightPC=50> <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>filmede10.net</title> <menu>main menu</menu> <?php $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $page = $queryArr[0]; $search = $queryArr[1]; } $html = file_get_contents($search."-".$page."-2"); 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); } $videos = explode('<table style="border: 0px solid rgb(60, 70, 80)', $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('span style="color: rgb(0, 0, 0);">', $video); $t2 = explode('<', $t1[1]); $title = trim($t2[0]); $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/filmede10_net.php
PHP
gpl3
6,299
#!/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/serialepe_main.php
PHP
gpl3
7,019
#!/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=61 offsetYPC=30 widthPC=30 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>deseneanimate.tv</title> <menu>main menu</menu> <?php $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $page = $queryArr[0]; $search = $queryArr[1]; } //http://deseneanimate.tv/category.php?c=desene-in-limba-romana#main_navigation //http://deseneanimate.tv/category.php?c=desene-in-limba-romana&p=2#main_navigation //http://deseneanimate.tv/category.php?c=desene-in-limba-romana&p=2#main_navigation if ($page==1) { $html = file_get_contents("http://deseneanimate.tv/category.php?c=desene-in-limba-romana#main_navigation"); } else { $html = file_get_contents("http://deseneanimate.tv/category.php?c=desene-in-limba-romana&p=".$page."#main_navigation"); } 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 class="categorybigtitle">','<div id="butoane">'); $videos = explode('href="', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('"', $video); $link = "http://deseneanimate.tv/".$t1[0]; $t1 = explode(' src="', $video); $t2 = explode('"', $t1[1]); $image=$t2[0]; //$t3=explode("./thumbs_category",$t2[0]); //$image = "http://deseneanimate.tv/thumbs_category/".$t3[1]; $image = str_replace(" ","%20",$image); $title = str_between($video,'<span class="categorytitle">','</span>'); $link = 'http://127.0.0.1/cgi-bin/scripts/filme/php/deseneanimate.php?query=1,'.$link.','.urlencode($title).",".$image; if ($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/deseneanimate_main.php
PHP
gpl3
6,907
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; ?> <rss version="2.0"> <!-- # # http://code.google.com/media-translate/ # Copyright (C) 2010 Serge A. Timchenko # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # --> <script> translate_base_url = "http://127.0.0.1/cgi-bin/translate?"; cgiconf = readStringFromFile("/usr/local/etc/translate/etc/cgi.conf"); if(cgiconf != null) { value = getStringArrayAt(cgiconf, 0); if(value != null &amp;&amp; value != "") { translate_base_url = value; print("cgi.conf=",value); } } storagePath = getStoragePath("tmp"); storagePath_stream = storagePath + "stream.dat"; error_info = ""; </script> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); middleItem = Integer(itemCount / 2); if(startitem == "middle") setFocusItemIndex(middleItem); else if(startitem == "right") setFocusItemIndex(middleItem); redrawDisplay(); </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="48" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="48" 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="14" fontSize=14 offsetXPC=55 offsetYPC=25 widthPC=40 heightPC=60 backgroundColor=10:80:120 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <text align="center" redraw="yes" offsetXPC=55 offsetYPC=85 widthPC=40 heightPC=5 fontSize=13 backgroundColor=10:80:120 foregroundColor=0:0:0> <script>print(location); location;</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"); if(annotation == "" || annotation == null) annotation = getItemInfo(idx, "stream_genre"); } 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(); ret = "true"; } if(userInput == "enter" || userInput == "ENTR") { showIdle(); focus = getFocusItemIndex(); request_title = getItemInfo(focus, "title"); request_url = getItemInfo(focus, "location"); request_options = getItemInfo(focus, "options"); stream_url = getItemInfo(focus, "stream_url"); stream_title = getItemInfo(focus, "stream_title"); stream_type = getItemInfo(focus, "stream_type"); stream_protocol = getItemInfo(focus, "stream_protocol"); stream_soft = getItemInfo(focus, "stream_soft"); stream_class = getItemInfo(focus, "stream_class"); stream_server = getItemInfo(focus, "stream_server"); stream_status_url = ""; stream_current_song = ""; stream_genre = getItemInfo(focus, "stream_genre"); stream_bitrate = getItemInfo(focus, "stream_bitrate"); if(stream_class == "" || stream_class == null) stream_class = "unknown"; if(stream_url == "" || stream_url == null) stream_url = request_url; if(stream_server != "" &amp;&amp; stream_server != null) stream_status_url = translate_base_url + "status," + urlEncode(stream_server) + "," + urlEncode(stream_url); if(stream_title == "" || stream_title == null) stream_title = request_title; if(stream_url != "" &amp;&amp; stream_url != null) { if(stream_protocol == "file" || (stream_protocol == "http" &amp;&amp; stream_soft != "shoutcast")) { url = stream_url; } else { if(stream_type != null &amp;&amp; stream_type != "") { request_options = "Content-type:"+stream_type+";"+request_options; } url = translate_base_url + "stream," + request_options + "," + urlEncode(stream_url); } executeScript(stream_class+"Dispatcher"); } cancelIdle(); 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> <videoDispatcher> streamArray = null; streamArray = pushBackStringArray(streamArray, request_url); streamArray = pushBackStringArray(streamArray, request_options); streamArray = pushBackStringArray(streamArray, stream_url); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, stream_type); streamArray = pushBackStringArray(streamArray, stream_title); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file://../etc/translate/rss/xspf/videoRenderer.rss"); </videoDispatcher> <audioDispatcher> streamArray = null; streamArray = pushBackStringArray(streamArray, request_url); streamArray = pushBackStringArray(streamArray, request_options); streamArray = pushBackStringArray(streamArray, stream_url); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, stream_type); streamArray = pushBackStringArray(streamArray, stream_status_url); streamArray = pushBackStringArray(streamArray, stream_current_song); streamArray = pushBackStringArray(streamArray, stream_genre); streamArray = pushBackStringArray(streamArray, stream_bitrate); streamArray = pushBackStringArray(streamArray, stream_title); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file://../etc/translate/rss/xspf/audioRenderer.rss"); </audioDispatcher> <playlistDispatcher> streamArray = null; streamArray = pushBackStringArray(streamArray, stream_url); streamArray = pushBackStringArray(streamArray, stream_url); streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, "playlist"); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_playlist, streamArray); doModalRss("rss_file://../etc/translate/rss/xspf/xspfBrowser.rss"); </playlistDispatcher> <rssDispatcher> streamArray = null; streamArray = pushBackStringArray(streamArray, stream_url); streamArray = pushBackStringArray(streamArray, stream_url); streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, ""); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file://../etc/translate/rss/xspf/rss_mediaFeed.rss"); </rssDispatcher> <unknownDispatcher> info_url = translate_base_url + "info," + request_options + "," + urlEncode(request_url); error_info = ""; res = loadXMLFile(info_url); if (res != null) { error = getXMLElementCount("info","error"); if(error != 0) { value = getXMLText("info","error"); if(value != null) { error_info = value; } } else { value = getXMLAttribute("info","stream","url"); if(value != null) stream_url = value; value = getXMLAttribute("info","stream","type"); if(value != null) stream_type = value; value = getXMLAttribute("info","stream","class"); if(value != null) stream_class = value; value = getXMLAttribute("info","stream","protocol"); if(value != null) stream_protocol = value; value = getXMLAttribute("info","stream","server"); if(value != null) stream_soft = value; stream_status_url = ""; value = getXMLAttribute("info","stream","server_url"); if(value != null) { stream_server_url = value; if((stream_soft == "icecast" || stream_soft == "shoutcast") &amp;&amp; stream_server_url!="") { stream_status_url = translate_base_url+"status,"+urlEncode(stream_server_url)+","+urlEncode(stream_url); } } value = getXMLText("info","status","stream-title"); if(value != null) stream_title = value; stream_current_song = ""; value = getXMLText("info","status","current-song"); if(value != null) stream_current_song = value; value = getXMLText("info","status","stream-genre"); if(value != null) stream_genre = value; value = getXMLText("info","status","stream-bitrate"); if(value != null) stream_bitrate = value; options = ""; if(stream_type != "") options = "Content-type:"+stream_type; if(options == "") options = stream_options; else options = options + ";" + stream_options; stream_translate_url = translate_base_url + "stream," + options + "," + urlEncode(stream_url); url = null; if(stream_class == "video" || stream_class == "audio") { if(stream_protocol == "file" || (stream_protocol == "http" &amp;&amp; stream_soft != "shoutcast")) url = stream_url; else url = stream_translate_url; } else { url = stream_url; } if(url != null) { if(stream_class == "audio" || stream_class == "video" || stream_class == "playlist" || stream_class == "rss") { executeScript(stream_class+"Dispatcher"); } else { error_info = "Unsupported media type: " + stream_type; } } else { error_info = "Empty stream url!"; } } } else { error_info = "CGI translate module failed!"; } print("error_info=",error_info); </unknownDispatcher> <script> channelImage = ""; </script><channel> <title>Povesti...</title> <item> <location>http://www.jocuricubarbie.info</location> <title>Capra cu trei iezi - Ion Creanga</title> <stream_url>http://109.163.227.84/jocuricubarbie.info/povesti/capra-cu-trei-iezi.mp3</stream_url> <stream_class>audio</stream_class> <annotation>A fost odata o capra care avea trei iezi</annotation> <stream_genre>Povesti</stream_genre> </item> <item> <location>http://www.jocuricubarbie.info</location> <title>Danila Prepeleac - Ion Creanga</title> <stream_url>http://109.163.227.84/jocuricubarbie.info/povesti/danila-prepeleac.mp3</stream_url> <stream_class>audio</stream_class> <annotation>Povestea lui Danila Prepeleac scrisa de Ion Creanga, asculta aceasta poveste in format audio</annotation> <stream_genre>Povesti</stream_genre> </item> <item> <location>http://www.jocuricubarbie.info</location> <title>Capitan la 15 ani</title> <stream_url>http://109.163.227.84/jocuricubarbie.info/povesti/capitan-la-15-ani.mp3</stream_url> <stream_class>audio</stream_class> <annotation>In ziua de 2 februarie 1873, cam asa incepe aceasta poveste</annotation> <stream_genre>Povesti</stream_genre> </item> <item> <location>http://www.jocuricubarbie.info</location> <title>Cantaretul din Rin - lectura</title> <stream_url>http://109.163.227.84/jocuricubarbie.info/povesti/cantaretul-din-rin-lectura.mp3</stream_url> <stream_class>audio</stream_class> <annotation>Trei frati, tuti trei flacai stateau odata la o carciuma dintr-un oras de pe valea raului</annotation> <stream_genre>Povesti</stream_genre> </item> <item> <location>http://www.jocuricubarbie.info</location> <title>Bucle de aur</title> <stream_url>http://109.163.227.84/jocuricubarbie.info/povesti/bucle-de-aur.mp3</stream_url> <stream_class>audio</stream_class> <annotation>A fost odata indepartata tara a Norvegiei un oras pe nume Roro</annotation> <stream_genre>Povesti</stream_genre> </item> <item> <location>http://www.jocuricubarbie.info</location> <title>Harap Alb - partea 2</title> <stream_url>http://109.163.227.84/jocuricubarbie.info/povesti/harap-alb-partea-2.mp3</stream_url> <stream_class>audio</stream_class> <annotation>Continuarea partii 1 din povestea lui Harap Alb</annotation> <stream_genre>Povesti</stream_genre> </item> <item> <location>http://www.jocuricubarbie.info</location> <title>Harap Alb - partea 1</title> <stream_url>http://109.163.227.84/jocuricubarbie.info/povesti/harap-alb-partea-1.mp3</stream_url> <stream_class>audio</stream_class> <annotation>Era odata intr-o tara un crai, care avea trei feciori</annotation> <stream_genre>Povesti</stream_genre> </item> <item> <location>http://www.jocuricubarbie.info</location> <title>Bobocel uratel 2</title> <stream_url>http://109.163.227.84/jocuricubarbie.info/povesti/bobocel-uratel-2.mp3</stream_url> <stream_class>audio</stream_class> <annotation>Partea a doua din povestea bobocel uratel 2</annotation> <stream_genre>Povesti</stream_genre> </item> <item> <location>http://www.jocuricubarbie.info</location> <title>Bobocel uratel 1</title> <stream_url>http://109.163.227.84/jocuricubarbie.info/povesti/bobocel-uratel-1.mp3</stream_url> <stream_class>audio</stream_class> <annotation>Odata trecut miezul veri, tot fanul fusese strans in capita</annotation> <stream_genre>Povesti</stream_genre> </item> <item> <location>http://www.jocuricubarbie.info</location> <title>Blestemul privighetorii</title> <stream_url>http://109.163.227.84/jocuricubarbie.info/povesti/blestemul-privighetorii.mp3</stream_url> <stream_class>audio</stream_class> <annotation>Fetita cea rea, iar bine fetita cea rea</annotation> <stream_genre>Povesti</stream_genre> </item> <item> <location>http://www.jocuricubarbie.info</location> <title>Balaurul din varful stancii</title> <stream_url>http://109.163.227.84/jocuricubarbie.info/povesti/balaurul-din-varful-stancii.mp3</stream_url> <stream_class>audio</stream_class> <annotation>Balaurul din varful stancii, legenda poloneza</annotation> <stream_genre>Povesti</stream_genre> </item> <item> <location>http://www.jocuricubarbie.info</location> <title>Aventurile lui Popey Marinarul</title> <stream_url>http://109.163.227.84/jocuricubarbie.info/povesti/aventurile-lui-popey-marinarul.mp3</stream_url> <stream_class>audio</stream_class> <annotation>Atentiune ridicati ancora, porniti motoarele</annotation> <stream_genre>Povesti</stream_genre> </item> <item> <location>http://www.jocuricubarbie.info</location> <title>Aventurile lui Cippolino 2</title> <stream_url>http://109.163.227.84/jocuricubarbie.info/povesti/aventurile-lui-cippolino-2.mp3</stream_url> <stream_class>audio</stream_class> <annotation>Partea a doua a aventurilor glumetului Cippolino</annotation> <stream_genre>Povesti</stream_genre> </item> <item> <location>http://www.jocuricubarbie.info</location> <title>Aventurile lui Cippolino 1</title> <stream_url>http://109.163.227.84/jocuricubarbie.info/povesti/aventurile-lui-cippolino-1.mp3</stream_url> <stream_class>audio</stream_class> <annotation>Sunt glumetul Cippolino si intr-un sat eu am crescut</annotation> <stream_genre>Povesti</stream_genre> </item> <item> <location>http://www.jocuricubarbie.info</location> <title>Amnarul - dramatizare</title> <stream_url>http://109.163.227.84/jocuricubarbie.info/povesti/amnarul-dramatizare.mp3</stream_url> <stream_class>audio</stream_class> <annotation>In ziua aceea de vara nu se mai auzea nici o toba</annotation> <stream_genre>Povesti</stream_genre> </item> <item> <location>http://www.jocuricubarbie.info</location> <title>Amintiri din copilarie</title> <stream_url>http://109.163.227.84/jocuricubarbie.info/povesti/amintiri-din-copilarie.mp3</stream_url> <stream_class>audio</stream_class> <annotation>Nu stiu altii cum sunt, dar eu cand ma gandesc la locul nasteri mele, la casa parinteasca din Humulesti</annotation> <stream_genre>Povesti</stream_genre> </item> <item> <location>http://www.jocuricubarbie.info</location> <title>Alice in tara minunilor</title> <stream_url>http://109.163.227.84/jocuricubarbie.info/povesti/alice-in-tara-minunilor.mp3</stream_url> <stream_class>audio</stream_class> <annotation>Eu sunt o fetita, ma cheama Alice si unchiul meu o carte a scris</annotation> <stream_genre>Povesti</stream_genre> </item> <item> <location>http://www.jocuricubarbie.info</location> <title>Aleodor imparat</title> <stream_url>http://109.163.227.84/jocuricubarbie.info/povesti/aleodor-imparat.mp3</stream_url> <stream_class>audio</stream_class> <annotation>A fost odata ca niciodata, a fost odata un imparat</annotation> <stream_genre>Povesti</stream_genre> </item> <item> <location>http://www.jocuricubarbie.info</location> <title>20 de mii de leghe sub mari</title> <stream_url>http://109.163.227.84/jocuricubarbie.info/povesti/20-de-mii-de-leghe-sub-mari.mp3</stream_url> <stream_class>audio</stream_class> <annotation>20 de mii de leghe sub mari, adaptare radio-fonica de Gelu Naum dupa romanul lui Joules Vernes</annotation> <stream_genre>Povesti</stream_genre> </item> <item> <location>http://www.jocuricubarbie.info</location> <title>Lupul alb si ciubotelele rosii</title> <stream_url>http://109.163.227.84/jocuricubarbie.info/povesti/lupul-alb-si-ciubotelele-rosii.mp3</stream_url> <stream_class>audio</stream_class> <annotation>Eee se zice ca ar fi fost odata, o doamna foarte foarte bogata care avea doi baieti</annotation> <stream_genre>Povesti</stream_genre> </item> <item> <location>http://www.jocuricubarbie.info</location> <title>Fata mosului cea cuminte</title> <stream_url>http://109.163.227.84/jocuricubarbie.info/povesti/fata-mosului-cea-cuminte.mp3</stream_url> <stream_class>audio</stream_class> <annotation>Crii crii, crii crii bun gasit dragi prieteni, eu sunt greierasul</annotation> <stream_genre>Povesti</stream_genre> </item> <item> <location>http://www.jocuricubarbie.info</location> <title>Fat frumos din lacrima</title> <stream_url>http://109.163.227.84/jocuricubarbie.info/povesti/fat-frumos-din-lacrima.mp3</stream_url> <stream_class>audio</stream_class> <annotation>Dramatizare de Mircea Stefanescu dupa basmul de Mihai Eminescu</annotation> <stream_genre>Povesti</stream_genre> </item> <item> <location>http://www.jocuricubarbie.info</location> <title>Alba ca zapada si cei sapte pitici</title> <stream_url>http://109.163.227.84/jocuricubarbie.info/povesti/alba-ca-zapada-si-cei-sapte-pitici.mp3</stream_url> <stream_class>audio</stream_class> <annotation>E o poveste veche, veche de demult si cea mai frumoasa dintre cate ascult</annotation> <stream_genre>Povesti</stream_genre> </item> <item> <location>http://www.jocuricubarbie.info</location> <title>Casuta din padure</title> <stream_url>http://109.163.227.84/jocuricubarbie.info/povesti/casuta-din-padure.mp3</stream_url> <stream_class>audio</stream_class> <annotation>A fost odata un taietor de lemne tare nevoias</annotation> <stream_genre>Povesti</stream_genre> </item> <item> <location>http://www.jocuricubarbie.info</location> <title>Ali Baba si cei 40 de hoti</title> <stream_url>http://109.163.227.84/jocuricubarbie.info/povesti/ali-baba-si-cei-40-de-hoti.mp3</stream_url> <stream_class>audio</stream_class> <annotation>Povestea lui Ali Baba si a celor 40 de hoti este una hazlie si plina de intamplari</annotation> <stream_genre>Povesti</stream_genre> </item> </channel> </rss>
1073s
trunk/filme/php/jocuricubarbie_p.php
PHP
gpl3
22,987
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; $tit = $_GET["query"]; $tit=urldecode($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="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> <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); } $title="0-9"; $link = $host."/scripts/filme/php/kinox_aa.php?query=1,1,".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 = $host."/scripts/filme/php/kinox_aa.php?query=1,".$title.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } ?> </channel> </rss>
1073s
trunk/filme/php/kinox_a.php
PHP
gpl3
5,216
#!/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]); } $html = file_get_contents($link); $t1=explode('img class="border"',$html); $t2=explode('src="',$t1[1]); $t3=explode('"',$t2[1]); $image="http://serialeonline.ro".$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="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=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) "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); } $videos = explode('href="', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('"', $video); $link="http://serialeonline.ro".$t1[0]; if (strpos($link,"/index.php/suport-online/mai-multe/lista-seriale") !==false) { $t2 = explode('>', $video); $t3 = explode('<',$t2[1]); $title = $t3[0]; $link = $host."/scripts/filme/php/filme_link.php?".$link.",".urlencode($tit); if ($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/serialeonlinero.php
PHP
gpl3
5,588
#!/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=65 offsetYPC=22.5 widthPC=20 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>filmeonlinegratis.ro</title> <menu>main menu</menu> <?php $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $page = $queryArr[0]; $search = $queryArr[1]; } //http://www.filmeonlinegratis.ro/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 if (strpos($html,'<div id="zv') !==false) { $videos = explode('<div id="zv', $html); } else { $videos = explode('<div class="oneblog">',$html); } unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { if (strpos($video, 'info/?') !== false) { $t1 = explode('info/?', $video); } else { $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); $t1 = explode(' src="', $video); $t2 = explode('"', $t1[1]); $image = $t2[0]; $t1 = explode('title="', $video); $t2 = explode('"', $t1[1]); $title = htmlspecialchars_decode($t2[0]); $title = str_replace("Vezi live online","",$title); $title = str_replace("cu subtitrare in limba romana","",$title); $title = str_replace("Vezi gratis filmul","",$title); $title = str_replace("online cu subtitrare","",$title); $title=str_replace(":","",$title); $title = trim($title); // descriere $v1 = explode('<p>', $video); $v2 = explode('</p>', $v1[1]); $descriere = $v2[0]; $descriere = preg_replace("/(<\/?)(\w+)([^>]*>)/e","",$descriere); if ($descriere == "") { $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/filmeonlinegratis.php
PHP
gpl3
7,021
#!/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="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=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://desenele-copilariei.net/categorie/romana/andersen-povestitorul //http://desenele-copilariei.net/categorie/romana/andersen-povestitorul/page/2 //http://adf.ly/822727/desenele-copilariei.net/http://desenele-copilariei.net/romana/batman-neinfricat-si-cutezator/se-naste-carabusul-albastru if ($page == 1) { $link = $search; } else { $link = $search."/page/".$page; } $html = file_get_contents($link); 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('<div class="postthumb">', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $t3=explode("http",$t2[0]); if ($t3[2] <> "") { $link = "http".$t3[2]; } else { $link=$t2[0]; } $t3 = explode(">",$t1[2]); $t4 = explode("<",$t3[1]); $title = $t4[0]; $t1=explode('src="',$video); $t2=explode('"',$t1[1]); $image=$t2[0]; $link = 'http://127.0.0.1/cgi-bin/scripts/filme/php/filme_link.php?'.$link.",".urlencode($title); echo ' <item> <link>'.$link.'</link> <title>'.$title.'</title> <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.",".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/desenele-copilariei_o.php
PHP
gpl3
6,686
#!/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/filme1_link.php
PHP
gpl3
12,234
#!/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); $page = $queryArr[0]; $search = $queryArr[1]; $tit=urldecode($queryArr[2]); } //http://www.watchcartoononline.com/anime/adventures-of-sonic-the-hedgehog //http://www.watchcartoononline.com/anime/adventures-of-sonic-the-hedgehog/page/2 $link=$search."/page/".$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); $t1=explode('div class="katcont">',$html); $t2=explode('src="',$t1[1]); $t3=explode('"',$t2[1]); $image=$t3[0]; $descriere=str_between($t1[1],"<p>","</p>"); $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," ")))."..."; } ?> <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> <?php echo $descriere; ?> </text> <image redraw="yes" offsetXPC=66 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) { location = getItemInfo(idx, "location"); } 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><?echo $tit; ?></title> <menu>main menu</menu> <?php $host = "http://127.0.0.1/cgi-bin"; if($page > 1) { ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page-1).",".$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 $videos = explode('td class="ilbaslik"', $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 if($link!="") { $link = "http://127.0.0.1/cgi-bin/scripts/filme/php/filme1_link.php?file=".$link.",".urlencode($titlu); echo' <item> <title>'.$titlu.'</title> <link>'.$link.'</link> <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).",".$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/watchcartoononline.php
PHP
gpl3
7,060
#!/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/990_seriale_main.php
PHP
gpl3
5,235
#!/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; } function cv1($s) { $g=ord("g"); $c=ord($s); if ($c < 58) { $c=$s; } else { if ($c > 116) { $c=$c-$g + 16 + 6; } elseif (($c>64) && ($c<70)) { //2gb $c=$c - 29; } 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; } function cv2($s) { $g=ord("g"); $c=ord($s); if ($c < 58) { $c=$s; } else { if ($c > 130) { //116 //130 - altervideo.net $c=$c-$g + 16 + 6; } elseif (($c>64) && ($c<70)) { //2gb $c=$c - 29; } else { $c=$c-$g + 16; } } return $c; } function get_unpack2($k,$char_rep,$pos_link,$h) { $g=ord("g"); $f=explode("return p}",$h); $e=explode("'.split",$f[$k]); $t=$e[0]; //echo $t; $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]; //print_r ($w); $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[cv2($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 s2g($string) { $ch = curl_init($string); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_REFERER, $string); curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL $h = curl_exec($ch); $sid=str_between($h,'"sid" value="','"'); $post="sid=".$sid."&submit=Click+Here+To+Continue"; sleep(2); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_REFERER, $string); curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL curl_setopt ($ch, CURLOPT_POST, 1); curl_setopt ($ch, CURLOPT_POSTFIELDS, $post); $h = curl_exec($ch); $url=get_unpack1(1,10,4,$h); return $url; } function uploadville($string) { $ch = curl_init($string); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_REFERER, $string); curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL $h = curl_exec($ch); $id=str_between($h,'"id" value="','"'); $fname=str_between($h,'"fname" value="','"'); $post="op=download1&usr_login=&id=".$id."&fname=".$fname."&referer=&method_free=LOAD_HERE"; //op=download1&usr_login=&id=z5g2on7obv7j&fname=Shark.Night.2011.TS.XviD-TaRiQ786.avi&referer=&method_free=LOAD_HERE curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_REFERER, $string); curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL curl_setopt ($ch, CURLOPT_POST, 1); curl_setopt ($ch, CURLOPT_POSTFIELDS, $post); $h = curl_exec($ch); //http://fs2.uploadville.com/files/2/66i4h3lg6hj0h3/video.avi //<2 1="10"0="4://7.6.3/z/8/y/b.x"/> //http://fs2.uploadville.com/files/9/zqerdhlfeo3ooy/video.avi //<2 1="10"0="4://7.6.3/z/9/y/b.x"/> $f=explode("return p}",$h); $e=explode("'.split",$f[2]); $ls=$e[0]; preg_match("/(\|)((fs)\d{1})\|/",$ls,$m); $server=$m[2]; preg_match("/(\|)([a-z0-9]{14})\|/",$ls,$m); $hash=$m[2]; // preg_match("/(\|)(182|384|364)\|/",$ls,$m); // $port=$m[2]; preg_match("/(\|)(uploadville)\|/",$ls,$m); $serv_name=$m[2]; preg_match("/(\|)(avi|flv|mp4|mkv)\|/",$ls,$m); $ext=$m[2]; $t1=explode('1="10"0="',$ls); $t2=explode('"',$t1[1]); $t3=explode("/",$t2[0]); $files=$t3[4]; $r="http://".$server.".".$serv_name.".com/files/".$files."/".$hash."/video.".$ext; return $r; } function uploadc($string) { $ch = curl_init($string); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_REFERER, $string); curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL $h = curl_exec($ch); $ipcount_val=str_between($h,'"ipcount_val" value="','"'); $id=str_between($h,'"id" value="','"'); $fname=str_between($h,'"fname" value="','"'); $post="ipcount_val=".$ipcount_val."&op=download2&usr_login=&id=".$id."&fname=".$fname."&referer=&method_free=Slow+access"; //ipcount_val=10&op=download2&usr_login=&id=a2baprw26l3m&fname=np-prophezeiung-xvid.avi&referer=&method_free=Slow+access curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_REFERER, $string); curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL curl_setopt ($ch, CURLOPT_POST, 1); curl_setopt ($ch, CURLOPT_POSTFIELDS, $post); $h = curl_exec($ch); //6://v.u.5:t/d/s/r-q-p.o $f=explode("return p}",$h); $e=explode("'.split",$f[2]); $ls=$e[0]; preg_match("/(\|)((www)\d{1})\|/",$ls,$m); $server=$m[2]; preg_match("/(\|)([a-z0-9]{56})\|/",$ls,$m); $hash=$m[2]; preg_match("/(\|)(182|384|364)\|/",$ls,$m); $port=$m[2]; preg_match("/(\|)(uploadc)\|/",$ls,$m); $serv_name=$m[2]; preg_match("/(\|)(avi|flv|mp4|mkv)\|/",$ls,$m); $ext=$m[2]; $r="http://".$server.".".$serv_name.".com:".$port."/d/".$hash."/".$fname; return $r; } function rapidload($string) { $ch = curl_init($string); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_REFERER, $string); curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL $h = curl_exec($ch); $method_premium=str_between($h,'"method_premium" value="','"'); $method_free=str_between($h,'"method_free" value="','"'); $id=str_between($h,'"id" value="','"'); $fname=str_between($h,'"fname" value="','"'); $post="op=download1&usr_login=&id=".$id."&fname=".$fname."&referer=&method_free=".$method_free; sleep(2); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_REFERER, $string); curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL curl_setopt ($ch, CURLOPT_POST, 1); curl_setopt ($ch, CURLOPT_POSTFIELDS, $post); $h = curl_exec($ch); //Enter code below: if (strpos($h,"Enter code below:") !==false) { $t1=explode('Enter code below:',$h); } else { $t1=explode('Bitte Code eingeben:',$h); } $t2=explode('</table>',$t1[1]); $p=$t2[0]; $t1=explode('position:absolute',$p); $a1=explode('padding-left:',$t1[1]); $p1=explode('px',$a1[1]); $pos1=trim($p1[0]); $v1=explode('>&#',$a1[1]); $v2=explode(';',$v1[1]); $val1=chr($v2[0]); // $a1=explode('padding-left:',$t1[2]); $p1=explode('px',$a1[1]); $pos2=trim($p1[0]); $v1=explode('>&#',$a1[1]); $v2=explode(';',$v1[1]); $val2=chr($v2[0]); // $a1=explode('padding-left:',$t1[3]); $p1=explode('px',$a1[1]); $pos3=trim($p1[0]); $v1=explode('>&#',$a1[1]); $v2=explode(';',$v1[1]); $val3=chr($v2[0]); // $a1=explode('padding-left:',$t1[4]); $p1=explode('px',$a1[1]); $pos4=trim($p1[0]); $v1=explode('>&#',$a1[1]); $v2=explode(';',$v1[1]); $val4=chr($v2[0]); // $my = array( $pos1 => $val1, $pos2 => $val2, $pos3 => $val3, $pos4 => $val4); ksort($my); $v = array_values($my); $p=$v[0].$v[1].$v[2].$v[3]; // $id=str_between($h,'name="id" value="','"'); $rand=str_between($h,'name="rand" value="','"'); sleep(10); $post="op=download2&id=".$id."&rand=".$rand."&referer=".urlencode($string)."&method_free=".$method_free."&method_premium=&code=".$p."&down_script=1"; curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,0); curl_setopt($ch, CURLOPT_REFERER, $string); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL curl_setopt ($ch, CURLOPT_POST, 1); curl_setopt ($ch, CURLOPT_POSTFIELDS, $post); $h = curl_exec($ch); curl_close ($ch); $url=get_unpack1(2,16,5,$h); return $url; } function megavideo_premium($megavideo_id) { if ($MEGA_COOKIE <> "") { //Get megavideo original link download $link = "http://www.megavideo.com/xml/player_login.php?u=". $MEGA_COOKIE . "&v=" . $megavideo_id; $content = file_get_contents($link); //Check for premium account if( strstr($content, 'type="premium"') ) { //Get direct download link $downloadurl = strstr($content, "downloadurl="); $downloadurl = substr($downloadurl, 13, strpos($downloadurl,'" ')-13 ); if($downloadurl) { $downloadurl = urldecode($downloadurl); $downloadurl = html_entity_decode($downloadurl); return $downloadurl ; } } } } function dimshare($k,$char_rep,$pos_link,$h,$fn) { $f=explode("return p}",$h); $e=explode("'.split",$f[$k]); $ls=$e[0]; preg_match("/(\|)((fs)\d{1})\|/",$ls,$m); $server=$m[2]; preg_match("/(\|)([a-z0-9]{56})\|/",$ls,$m); $hash=$m[2]; preg_match("/(\|)(182|384|364)\|/",$ls,$m); $port=$m[2]; preg_match("/(\|)(dimshare)\|/",$ls,$m); $serv_name=$m[2]; preg_match("/(\|)(avi|flv|mp4|mkv)\|/",$ls,$m); $ext=$m[2]; $r="http://".$server.".".$serv_name.".com:".$port."/d/".$hash."/video.".$ext; return $r; } function movdivx($k,$char_rep,$pos_link,$h,$fn) { $f=explode("return p}",$h); $e=explode("'.split",$f[$k]); $ls=$e[0]; preg_match("/(\|)((www)\d{1})\|/",$ls,$m); $server=$m[2]; preg_match("/(\|)([a-z0-9]{56})\|/",$ls,$m); $hash=$m[2]; preg_match("/(\|)(182|384|364)\|/",$ls,$m); $port=$m[2]; preg_match("/(\|)(movdivx)\|/",$ls,$m); $serv_name=$m[2]; preg_match("/(\|)(avi|flv|mp4|mkv)\|/",$ls,$m); $ext=$m[2]; $r="http://".$server.".".$serv_name.".com:".$port."/d/".$hash."/video.".$ext; return $r; } function vix($k,$char_rep,$pos_link,$h,$fn) { $f=explode("return p}",$h); $e=explode("'.split",$f[$k]); $ls=$e[0]; preg_match("/(\|)((s|w)\d{2})\|/",$ls,$m); $server=$m[2]; preg_match("/(\|)([a-z0-9]{45})\|/",$ls,$m); $hash=$m[2]; preg_match("/(\|)(182|384|364)\|/",$ls,$m); $port=$m[2]; preg_match("/(\|)(divxden|vidxden)\|/",$ls,$m); $serv_name=$m[2]; $r="http://".$server.".".$serv_name.".com:".$port."/d/".$hash."/".$fn; return $r; } //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 $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 rapidmov($string) { $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; } 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)) { $fname=substr(strrchr($filelink,"/"),1); $fname=str_replace(".html","",$fname); $t=explode("/",$filelink); $id= $t[3]; $post= "op=download1&usr_login=&id=".$id."&fname=".$fname."&referer=&method_free=Continue+to+Video"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $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_COOKIEJAR, '/tmp/cookies.txt'); curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt'); curl_setopt ($ch, CURLOPT_REFERER, $filelink); 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); if (strpos($h,"DivXBrowserPlugin") === false) { $link=get_unpack(1,11,5,$h); } else { $link=vix(1,12,9,$h,$fname); } } 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); $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') !== false) { if (strpos($filelink,'videobb.com') !==false) { $id=substr(strrchr($filelink,"/"),1); } else { // filmenet.ro $a1=explode("videoid=",$filelink); $a2=explode("&",$a1[1]); $id=$a2[0]; } $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); } elseif (strpos($filelink, 'putlocker.com') !== false){ $link=putlocker($filelink); } elseif (strpos($filelink, 'sockshare.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') !== false) { $f="/usr/local/etc//usr/local/etc/dvdplayer/megavideo.dat"; if (file_exists($f)) { $h=file_get_contents($f); $MEGA_COOKIE=trim($h); } else { $MEGA_COOKIE=""; } if (strpos($filelink, 'megavideo.com') !== false) { $id=megavideo($filelink); } else { // filmenet.ro $a1=explode("videoid=",$filelink); $a2=explode("&",$a1[1]); $id=$a2[0]; } if ($MEGA_COOKIE <> "") { $link=megavideo_premium($id); } else { $link="http://127.0.0.1/cgi-bin/scripts/php1/mv.cgi?v=".$id; } } 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, 'divxstage.net') !== false) { //divxstage.net/video/canc73f7kgvbt $h = file_get_contents($filelink); $link=str_between($h,'param name="src" value="','"'); } 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, '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, 'stream2k.com/playerjw/vConfig') !== false) { $h = file_get_contents($filelink); $link=trim(str_between($h,'<file>','</file>')); } elseif (strpos($filelink, 'xvidstage.com') !== false) { //http://xvidstage.com/zwvh3et6vugo //http://xvidstage.com/cgi-bin/dl.cgi/igribijb5hnkqetnfyplgdzywdxney3aiufdbxrwn4/video.avi $h = file_get_contents($filelink); preg_match("/(\|)([a-z0-9]{42})\|/",$h,$m); $hash=$m[2]; if ($hash <> "") { $link="http://xvidstage.com/cgi-bin/dl.cgi/".$hash."/video.avi"; } else { 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, 'nolimitvideo.com') !== false) { //http://www.nolimitvideo.com/embed/17ea366031f87f3aa009/new-kids-turbo $h = file_get_contents($filelink); $link=str_between($h,"file': '","'"); } elseif (strpos($filelink, 'stage666.net') !== false) { //http://stage666.net/rfl5qcrxsb3a.html //http://stage666.net/cgi-bin/dl.cgi/kylgrtsmovb2rbldug23w3o45jkdpr23gv4cxbsdjq/video.avi $h = file_get_contents($filelink); preg_match("/(\|)([a-z0-9]{42})\|/",$h,$m); $hash=$m[2]; $link="http://stage666.net/cgi-bin/dl.cgi/".$hash."/video.avi"; } elseif (strpos($filelink, 'rapidload.org') !== false) { $link=rapidload($filelink); } elseif (strpos($filelink, 'vidstream.us') !== false) { $h=file_get_contents($filelink); $link=str_between($h,"'file', '","'"); if ($link =="") { $l=str_between($h,'settingsFile: "','&'); $h=file_get_contents($l); $link=str_between($h,'videoPath value="','"'); } } elseif (strpos($filelink, '2gb-hosting.com') !== false) { $link=s2g($filelink); } elseif (strpos($filelink, 'dimshare.com') !== false) { $string=$filelink; $ch = curl_init($string); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_REFERER, $string); curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL $h = curl_exec($ch); $id=str_between($h,'"id" value="','"'); $fname=str_between($h,'"fname" value="','"'); $post="op=download1&usr_login=&id=".$id."&fname=".$fname."&referer=&method_free=LOAD_HERE"; sleep(2); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_REFERER, $string); curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL curl_setopt ($ch, CURLOPT_POST, 1); curl_setopt ($ch, CURLOPT_POSTFIELDS, $post); $h = curl_exec($ch); $link=dimshare(1,12,9,$h,$fname); } elseif (strpos($filelink, 'movdivx.com') !== false) { $string=$filelink; $ch = curl_init($string); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_REFERER, $string); curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL $h = curl_exec($ch); $id=str_between($h,'"id" value="','"'); $fname=str_between($h,'"fname" value="','"'); $post="op=download1&usr_login=&id=".$id."&fname=".$fname."&referer=&method_free=Please+wait+for+0+seconds"; sleep(5); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_REFERER, $string); curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL curl_setopt ($ch, CURLOPT_POST, 1); curl_setopt ($ch, CURLOPT_POSTFIELDS, $post); $h = curl_exec($ch); $link=movdivx(2,11,5,$h); } elseif (strpos($filelink, 'sharevideo22.com') !== false) { $string=$filelink; $ch = curl_init($string); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_REFERER, $string); curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL $h = curl_exec($ch); $id=str_between($h,'"id" value="','"'); $fname=str_between($h,'"fname" value="','"'); $rand=str_between($h,'name="rand" value="','"'); $post="op=download2&id=".$id."&rand=".$rand."&referer=&method_free=&method_premium=&down_direct=1"; sleep(2); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_REFERER, $string); curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL curl_setopt ($ch, CURLOPT_POST, 1); curl_setopt ($ch, CURLOPT_POSTFIELDS, $post); $h = curl_exec($ch); $link=get_unpack1(2,9,5,$h); } elseif (strpos($filelink, 'dr9000.com') !== false) { $h=file_get_contents($filelink); //account suspend $link=str_between($h,'name="src" value="','"'); } elseif (strpos($filelink, 'altervideo.net') !== false) { $string=$filelink; $ch = curl_init($string); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_REFERER, $string); curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookies.txt'); curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt'); $h = curl_exec($ch); $id=str_between($h,'"id" value="','"'); $fname=str_between($h,'"fname" value="','"'); $rand=str_between($h,'name="rand" value="','"'); $c=str_between($h,'type="hidden" value="','"'); $post="c=".$c."&choice=Watch+Online"; sleep(2); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_REFERER, $string); curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL curl_setopt ($ch, CURLOPT_POST, 1); curl_setopt ($ch, CURLOPT_POSTFIELDS, $post); $h = curl_exec($ch); $link=get_unpack2(1,9,4,$h); } elseif (strpos($filelink, 'royalvids.eu') !== false) { $h=file_get_contents($filelink); $link=str_between($h,'"flashvars" value="file=','&'); } elseif (strpos($filelink,'skyload.net') !== false) { //http://skyload.net/File/11f90e69ce45ef43e55650a871ae85df.flv //http://www.skyload.net/File/335c00e46e57e17ef690de605239c9dd.avi $h=file_get_contents($filelink); $link=str_between($h,"addVariable('file','","'"); if ($link=="") { $link=str_between($h,"param name='src' value='","'"); } } elseif (strpos($filelink,'rapidvideo.com') !==false) { //http://rapidvideo.com/view/tl9gewcl $h=file_get_contents($filelink); $link=str_between($h,"addVariable('file','","'"); } elseif (strpos($filelink, 'uploadc.com') !== false) { //http://www.uploadc.com/a2baprw26l3m/np-prophezeiung-xvid.avi.htm $link=uploadc($filelink); } elseif (strpos($filelink, 'uploadville.com') !== false) { //http://uploadville.com/z5g2on7obv7j $link=uploadville($filelink); } elseif (strpos($filelink, 'zurvid.com') !== false) { //http://www.zurvid.com/embed.php?id=635 $h=file_get_contents($filelink); $link=str_between($h,"file=","&"); } elseif (strpos($filelink, 'flashx.tv') !== false) { //http://flashx.tv/player/embed_player.php?vid=1394 $h=file_get_contents($filelink); $link=str_between($h,"normal_video_file = '","'"); } elseif (strpos($filelink, 'sharefiles4u.com') !== false) { //http://www.sharefiles4u.com/cwfqw29ylesp/nrx-ausgewechselt.avi //http://stage666.net/cgi-bin/dl.cgi/kylgrtsmovb2rbldug23w3o45jkdpr23gv4cxbsdjq/video.avi $h = file_get_contents($filelink); preg_match("/(\|)([a-z0-9]{42})\|/",$h,$m); $hash=$m[2]; $link="http://www.sharefiles4u.com/cgi-bin/dl.cgi/".$hash."/video.avi"; } 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, '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); } } print $link; ?>
1073s
trunk/filme/php/link1.php
PHP
gpl3
37,203
#!/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 - desene animate</title> <menu>main menu</menu> <?php $html = file_get_contents("http://www.990.ro/desene-animate.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_desene.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/990_desene_main.php
PHP
gpl3
5,250
#!/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>Documentare</title> <menu>main menu</menu> <?php $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $page = $queryArr[0]; $search = $queryArr[1]; } //http://documentare.digitalarena.ro/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]; $t3 = explode('src="', $video); $t4 = explode('"', $t3[1]); $image = $t4[0]; $t3 = explode(">",$t1[1]); $t4 = explode("<",$t3[1]); $title = $t4[0]; $title=trim($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/digitalarena.php
PHP
gpl3
6,661
#!/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="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 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> </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</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); } $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('thumb.php?src=', $video); $t2 = explode('&', $t1[1]); $image = $t2[0]; if ($image == "") { $t1 = explode('src="',$video); $t2 = explode('"', $t1[1]); $image = $t2[0]; } $image = str_replace(' ','%20',$image); $t1 = explode('title="', $video); $t2 = explode('"', $t1[1]); $title = $t2[0]; $t1 = explode('alt="',$video); $t2 = explode('"',$t1[1]); $info = trim($t2[0]); $info = str_replace("Share","",$info); $link = 'http://127.0.0.1/cgi-bin/scripts/filme/php/filme_link.php?'.$link.','.urlencode($title); echo ' <item> <link>'.$link.'</link> <title>'.$title.'</title> <annotation>'.$info.'</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/vezifilme.php
PHP
gpl3
6,765
#!/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/filmele-copilariei_main.php
PHP
gpl3
5,415
#!/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>filmeonlinegratis.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); } $host = "http://127.0.0.1/cgi-bin"; $html = file_get_contents("http://www.filmeonlinegratis.ro"); $img = "image/movies.png"; $link = $host."/scripts/filme/php/filmeonlinegratis.php?query=,http://www.filmeonlinegratis.ro"; 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 = trim($t2[0]); $t3 = explode(">",$t1[1]); $t4 = explode("<",$t3[1]); $title = $t4[0]; $link = $host."/scripts/filme/php/filmeonlinegratis.php?query=,".$link; echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } ?> </channel> </rss>
1073s
trunk/filme/php/filmeonlinegratis_main.php
PHP
gpl3
5,488
#!/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]); } ?> <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> /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"); 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><?echo $pg_tit; ?></title> <menu>main menu</menu> <?php $cookie="D://iplay.txt"; $cookie="/tmp/iplay.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); $videos = explode('span id_season="', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1=explode('"',$video); $id=$t1[0]; $t1=explode(">",$video); $t2=explode("<",$t1[1]); $sez=$t2[0]; $s=$pg_tit."-".$sez; $link = $host."/scripts/filme/php/iplay.php?file=1,".$id.",".urlencode($s); echo ' <item> <title>'.$sez.'</title> <link>'.$link.'</link> <annotation>'.$s.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } ?> </channel> </rss>
1073s
trunk/filme/php/iplay_s.php
PHP
gpl3
5,867
#!/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/vplay.php
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"; $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/onlinemoca_link.php
PHP
gpl3
6,830
#!/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 - genres</title> <menu>main menu</menu> <item> <title>Latest updates</title> <link>http://127.0.0.1/cgi-bin/scripts/filme/php/movie2k_cat1.php?file=movies-updates.html</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); } $link="http://www.movie2k.to/genres-movies.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); $html = str_between($html,'TABLE id="tablemovies"','</TABLE>' ); $image = "image/movies.png"; $videos = explode('<TR>', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t0 = explode('href="',$video); $t1 = explode('"', $t0[1]); $link = $t1[0]; $l1=explode("-",$link); $link=$l1[2]; $t2 = explode('>', $t0[1]); $t3 = explode('<', $t2[1]); $title = $t3[0]; if (($link <> "") && ($title <> "")) { $link = $host."/scripts/filme/php/movie2k_cat.php?query=1,".$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/movie2k_main.php
PHP
gpl3
6,759
#!/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" > <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> <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) { 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" 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><?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('<h2>', $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 = trim($t4[0]); $t1 = explode('src=', $video); $t2 = explode('&', $t1[2]); $image = $t2[0]; $data = trim(str_between($video,'<p>','</p>')); $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 = $title; } if (($link <> "") && (strpos($link,"season") !==false)) { $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>'.$image.'</image> <annotation>'.$data.'</annotation> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/tvcinema.php
PHP
gpl3
6,586
#!/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/serialepenet_lit.php
PHP
gpl3
5,424
#!/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="75" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="80" 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://www.serialeonline.tv/category/how-i-met-your-mother/sezonul-1-how-i-met-your-mother/page/2/ //http://www.serialeonline.tv/?cat=62&paged=1 //$link = "http://www.serialeonline.tv/?cat=".$search."&paged=".$page; if ($page == 1) { $link = $search; } else { $link = $search."page/".$page."/"; } $html = file_get_contents($link); 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); } $image = "/usr/local/etc/www/cgi-bin/scripts/filme/image/series.png"; $videos = explode('<div 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]; $t3 = explode(">",$t1[1]); $t4 = explode("<",$t3[1]); $title = $t4[0]; $link = 'http://127.0.0.1/cgi-bin/scripts/filme/php/filme_link.php?'.$link.",".urlencode($title); echo ' <item> <link>'.$link.'</link> <title>'.$title.'</title> <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.",".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/serialeonline.php
PHP
gpl3
6,585
#!/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/kinox_link.php
PHP
gpl3
9,610
#!/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>filmeromania - Filme româneşti</title> <menu>main menu</menu> <?php $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $page = $queryArr[0]; $search = $queryArr[1]; $search = str_replace(' ','%20',$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); } $html = file_get_contents("http://filmeromania.blogspot.com/"); $html=str_between($html,"<h2>Filme Romanesti online</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/filmeromania.php
PHP
gpl3
5,551
#!/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/990_special_main.php
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="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/seriale_doi10_main.php
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> 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>themoviesbest.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); } $host = "http://127.0.0.1/cgi-bin"; $html = file_get_contents("http://themoviesbest.com/"); $html=str_between($html,'Categorii</a>','Serial'); $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]); $link = $host."/scripts/filme/php/themoviesbest.php?query=,".$link; $t3 = explode(">",$t1[1]); $t4 = explode("<",$t3[1]); $title = trim($t4[0]); $title = ltrim($title,"-"); if (strpos($title,"Serial") === false) { echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/themoviesbest_main.php
PHP
gpl3
5,277
#!/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="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=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 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($search); $videos = explode("<a class='titlulink'", $html); $image="/usr/local/etc/www/cgi-bin/scripts/filme/image/desene.png"; unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $link = "http://desene-animate.info/".$t2[0]; $t3 = explode(">",$t1[1]); $t4 = explode("<",$t3[1]); $title = $t4[0]; $title = $tit." ".$title; $link = 'http://127.0.0.1/cgi-bin/scripts/filme/php/filme_link.php?'.$link.",".urlencode($title); echo ' <item> <link>'.$link.'</link> <title>'.$title.'</title> <annotation>'.$title.'</annotation> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item>'; } ?> </channel> </rss>
1073s
trunk/filme/php/desenele-copilariei.php
PHP
gpl3
5,513
#!/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>Seriale TV</title> <?php $f = "/usr/local/bin/home_menu"; if (!file_exists($f)) { echo ' <item> <title>Setări subtitrări online</title> <link>/usr/local/etc/www/cgi-bin/scripts/util/sub.rss</link> <annotation>Setări culoare, fundal, mărime pentru subtitrare</annotation> <mediaDisplay name="onePartView"/> </item> '; } else { echo ' <item> <title>Setări subtitrări online</title> <link>/usr/local/etc/www/cgi-bin/scripts/util/sub1.rss</link> <annotation>Setări culoare, fundal, mărime pentru subtitrare</annotation> <mediaDisplay name="onePartView"/> </item> '; } ?> <item> <title>serialepe.net</title> <link><?php echo $host; ?>/scripts/filme/php/serialepe_main.php</link> <annotation>http://www.serialepe.net/p/seriale-online-gratis-subtitrate.html</annotation> <mediaDisplay name="threePartsView"/> </item> <!-- <item> <title>filmesubtitrate.info</title> <link><?php echo $host; ?>/scripts/filme/php/filmesubtitrate_info_main.php</link> <annotation>http://www.seriale.filmesubtitrate.info/p/seriale-online-subtitrate-in-romana.html</annotation> <mediaDisplay name="photoView"/> </item> --> <item> <title>serialepenet (cu abonament)</title> <link><?php echo $host; ?>/scripts/filme/php/serialepenet_main.php</link> <annotation>http://serialepenet.ro/</annotation> <mediaDisplay name="photoView"/> </item> <item> <title>vplay</title> <link><?php echo $host; ?>/scripts/filme/php/vplay_main_main.php</link> <annotation>http://vplay.ro/coll</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>filmeonline - seriale</title> <link><?php echo $host; ?>/scripts/filme/php/filmeonlines_main.php</link> <annotation>http://www.filmeonline.org/seriale-online-subtitrate-in-romana/</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>veziserialeonline</title> <link><?php echo $host; ?>/scripts/filme/php/veziserialeonline_main.php</link> <annotation>http://www.veziserialeonline.info/tv-shows</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>iplay</title> <link><?php echo $host; ?>/scripts/filme/php/iplay_main.php</link> <annotation>http://iplay.ro</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>serialulmeu</title> <link><?php echo $host; ?>/scripts/filme/php/serialulmeu_main.php</link> <annotation>http://www.serialulmeu.ro/</annotation> <mediaDisplay name="threePartsView"/> </item> <!-- <item> <title>seriale.subtitrate</title> <link><?php echo $host; ?>/scripts/filme/php/seriale_subtitrate_info_l.php</link> <annotation>http://seriale.subtitrate.info/tv-shows</annotation> <mediaDisplay name="threePartsView"/> </item> --> <!-- <item> <title>cinemaro</title> <link><?php echo $host; ?>/scripts/filme/php/cinemaro_main.php</link> <annotation>http://www.cinemaro.ro</annotation> <mediaDisplay name="threePartsView"/> </item> --> <item> <title>seriale-filme</title> <link><?php echo $host; ?>/scripts/filme/php/seriale-filme_info_main.php</link> <annotation>http://www.seriale-filme.info/tv-shows</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>990</title> <link><?php echo $host; ?>/scripts/filme/990.php</link> <annotation>http://www.990.ro</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>seriale.doi10</title> <link><?php echo $host; ?>/scripts/filme/php/seriale_doi10_main.php</link> <annotation>http://seriale.doi10.com/seriale</annotation> <mediaDisplay name="threePartsView"/> </item> <!-- <item> <title>wserialetvonline</title> <link><?php echo $host; ?>/scripts/filme/php/serialetvonline_main.php</link> <annotation>http://www.serialetvonline.info/tv-shows</annotation> <mediaDisplay name="threePartsView"/> </item> --> <item> <title>serialeonline</title> <link><?php echo $host; ?>/scripts/filme/php/serialeonlinero_main.php</link> <annotation>http://serialeonline.ro/index.php/tv-shows</annotation> <mediaDisplay name="threePartsView"/> </item> <!-- <item> <title>serialeonline</title> <link><?php echo $host; ?>/scripts/filme/php/serialeonline_main.php</link> <annotation>http://www.serialeonline.tv/</annotation> <mediaDisplay name="threePartsView"/> </item> --> <item> <title>seriale coreene</title> <link><?php echo $host; ?>/scripts/filme/php/serialecoreene_main.php</link> <annotation>http://www.serialecoreene.com</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>movie2k - series</title> <link><?php echo $host; ?>/scripts/filme/php/movie2ks_main.php</link> <annotation>http://www.movie2k.to</annotation> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/filme/seriale.php
PHP
gpl3
8,868
#!/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>Seriale TV</title> <?php $f = "/usr/local/bin/home_menu"; if (!file_exists($f)) { echo ' <item> <title>Setări subtitrări online</title> <link>/usr/local/etc/www/cgi-bin/scripts/util/sub.rss</link> <annotation>Setări culoare, fundal, mărime pentru subtitrare</annotation> <mediaDisplay name="onePartView"/> </item> '; } else { echo ' <item> <title>Setări subtitrări online</title> <link>/usr/local/etc/www/cgi-bin/scripts/util/sub1.rss</link> <annotation>Setări culoare, fundal, mărime pentru subtitrare</annotation> <mediaDisplay name="onePartView"/> </item> '; } ?> <item> <title>serialepe.net</title> <link><?php echo $host; ?>/scripts/filme/php/serialepe_main.php</link> <annotation>http://www.serialepe.net/p/seriale-online-gratis-subtitrate.html</annotation> <mediaDisplay name="threePartsView"/> </item> <!-- <item> <title>filmesubtitrate.info</title> <link><?php echo $host; ?>/scripts/filme/php/filmesubtitrate_info_main.php</link> <annotation>http://www.seriale.filmesubtitrate.info/p/seriale-online-subtitrate-in-romana.html</annotation> <mediaDisplay name="photoView"/> </item> --> <item> <title>serialepenet (cu abonament)</title> <link><?php echo $host; ?>/scripts/filme/php/serialepenet_main.php</link> <annotation>http://serialepenet.ro/</annotation> <mediaDisplay name="photoView"/> </item> <item> <title>vplay</title> <link><?php echo $host; ?>/scripts/filme/php/vplay_main_main.php</link> <annotation>http://vplay.ro/coll</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>filmeonline - seriale</title> <link><?php echo $host; ?>/scripts/filme/php/filmeonlines_main.php</link> <annotation>http://www.filmeonline.org/seriale-online-subtitrate-in-romana/</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>veziserialeonline</title> <link><?php echo $host; ?>/scripts/filme/php/veziserialeonline_main.php</link> <annotation>http://www.veziserialeonline.info/tv-shows</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>iplay</title> <link><?php echo $host; ?>/scripts/filme/php/iplay_main.php</link> <annotation>http://iplay.ro</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>serialulmeu</title> <link><?php echo $host; ?>/scripts/filme/php/serialulmeu_main.php</link> <annotation>http://www.serialulmeu.ro/</annotation> <mediaDisplay name="threePartsView"/> </item> <!-- <item> <title>seriale.subtitrate</title> <link><?php echo $host; ?>/scripts/filme/php/seriale_subtitrate_info_l.php</link> <annotation>http://seriale.subtitrate.info/tv-shows</annotation> <mediaDisplay name="threePartsView"/> </item> --> <!-- <item> <title>cinemaro</title> <link><?php echo $host; ?>/scripts/filme/php/cinemaro_main.php</link> <annotation>http://www.cinemaro.ro</annotation> <mediaDisplay name="threePartsView"/> </item> --> <item> <title>seriale-filme</title> <link><?php echo $host; ?>/scripts/filme/php/seriale-filme_info_main.php</link> <annotation>http://www.seriale-filme.info/tv-shows</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>990</title> <link><?php echo $host; ?>/scripts/filme/990.php</link> <annotation>http://www.990.ro</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>seriale.doi10</title> <link><?php echo $host; ?>/scripts/filme/php/seriale_doi10_main.php</link> <annotation>http://seriale.doi10.com/seriale</annotation> <mediaDisplay name="threePartsView"/> </item> <!-- <item> <title>wserialetvonline</title> <link><?php echo $host; ?>/scripts/filme/php/serialetvonline_main.php</link> <annotation>http://www.serialetvonline.info/tv-shows</annotation> <mediaDisplay name="threePartsView"/> </item> --> <item> <title>serialeonline</title> <link><?php echo $host; ?>/scripts/filme/php/serialeonlinero_main.php</link> <annotation>http://serialeonline.ro/index.php/tv-shows</annotation> <mediaDisplay name="threePartsView"/> </item> <!-- <item> <title>serialeonline</title> <link><?php echo $host; ?>/scripts/filme/php/serialeonline_main.php</link> <annotation>http://www.serialeonline.tv/</annotation> <mediaDisplay name="threePartsView"/> </item> --> <item> <title>seriale coreene</title> <link><?php echo $host; ?>/scripts/filme/php/serialecoreene_main.php</link> <annotation>http://www.serialecoreene.com</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>movie2k - series</title> <link><?php echo $host; ?>/scripts/filme/php/movie2ks_main.php</link> <annotation>http://www.movie2k.to</annotation> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/filme/.svn/text-base/seriale.php.svn-base
PHP
gpl3
8,868
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF-8' ?>"; $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" cornerRounding=5 offsetXPC=0 offsetYPC=2 widthPC=100 heightPC=96> <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> <adultlink> <mediaDisplay name="threePartsView"/> <link> <?php echo $host; ?>/scripts/filme/php/online-moviez1.php </link> </adultlink> <adultpass> <mediaDisplay name="onePartView" /> <link> /usr/local/etc/www/cgi-bin/scripts/adult/adult.rss </link> </adultpass> <channel> <title>Filme Online</title> <item> <title>onlinemoca</title> <link>/usr/local/etc/www/cgi-bin/scripts/filme/php/onlinemoca_main.rss</link> <annotation>http://www.onlinemoca.com/</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>filmeonline</title> <link><?php echo $host; ?>/scripts/filme/php/filmeonline_main.php</link> <annotation>http://www.filmeonline.org</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>cinemaxx</title> <link><?php echo $host; ?>/scripts/filme/php/cinemaxx_main.php</link> <annotation>http://cinemaxx.ro/</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>filmeonlinegratis</title> <link><?php echo $host; ?>/scripts/filme/php/filmeonlinegratis_main.php</link> <annotation>http://www.filmeonlinegratis.ro</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>filmehd</title> <link><?php echo $host; ?>/scripts/filme/php/filmehd_main.php</link> <annotation>http://filmehd.net/</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>peţeavă</title> <link><?php echo $host; ?>/scripts/filme/peteava.php</link> <annotation>http://www.peteava.ro/</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>peţeavă - user movies</title> <link><?php echo $host; ?>/scripts/filme/peteava_user.php</link> <annotation>http://www.peteava.ro/</annotation> <mediaDisplay name="threePartsView"/> </item> <!-- <item> <title>filmeonlinenoi</title> <link><?php echo $host; ?>/scripts/filme/php/filmeonlinenoi.php?query=,http://filmeonlinenoi.com/</link> <annotation>http://filmeonlinenoi.com/</annotation> <mediaDisplay name="threePartsView"/> </item> --> <item> <title>filmelive</title> <link><?php echo $host; ?>/scripts/filme/php/filmelive_main.php</link> <annotation>http://www.filmelive.net</annotation> <mediaDisplay name="threePartsView"/> </item> <!-- <item> <title>themoviesbest</title> <link><?php echo $host; ?>/scripts/filme/php/themoviesbest_main.php</link> <annotation>http://themoviesbest.com/</annotation> <mediaDisplay name="threePartsView"/> </item> --> <item> <title>filme-online-gratis</title> <link><?php echo $host; ?>/scripts/filme/php/filme-online-gratis_main.php</link> <annotation>http://filme-online-gratis.com/blog/</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>divxonline</title> <link><?php echo $host; ?>/scripts/filme/php/divxonline_main.php</link> <annotation>http://divxonline.biz</annotation> <mediaDisplay name="threePartsView"/> </item> <!-- <item> <title>xvidonline</title> <link><?php echo $host; ?>/scripts/filme/php/xvidonline.php</link> <annotation>http://xvidonline.org/</annotation> <mediaDisplay name="threePartsView"/> </item> --> <item> <title>moviesample</title> <link><?php echo $host; ?>/scripts/filme/php/moviesample.php</link> <annotation>http://www.moviesample.net</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>filmeromania - filme româneşti</title> <link><?php echo $host; ?>/scripts/filme/php/filmeromania.php</link> <annotation>http://filmeromania.blogspot.com/</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>cinemaromanesc - filme româneşti</title> <link><?php echo $host; ?>/scripts/filme/php/cinemaromanesc.php</link> <annotation>http://cinemaromanesc.blogspot.com/</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>filmede10</title> <link><?php echo $host; ?>/scripts/filme/php/filmede10_net_main.php</link> <annotation>http://www.filmede10.net/</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>seriale-filme - movies</title> <link><?php echo $host; ?>/scripts/filme/php/seriale-filme_filme_info.php</link> <annotation>http://www.seriale-filme.info/movies</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>westernmania - filme Western</title> <link><?php echo $host; ?>/scripts/filme/php/westernmania.php</link> <annotation>http://www.westernmania.net</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>seenow (abonament) - experimental</title> <link><?php echo $host; ?>/scripts/filme/php/seenow_main.php</link> <annotation>http://www.seenow.ro</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>DolceTv - filme gratis</title> <link><?php echo $host; ?>/scripts/filme/php/dolce_filme.php?page=1</link> <annotation>http://www.dolcetv.ro/filme</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>jurnaltv - filme şi seriale documentare</title> <link><?php echo $host; ?>/scripts/filme/php/jurnaltv_main.php</link> <annotation>http://www.jurnaltv.ro</annotation> <mediaDisplay name="threePartsView"/> </item> <!-- <item> <title>documentare - filme şi seriale documentare</title> <link><?php echo $host; ?>/scripts/filme/php/documentare_main.php</link> <annotation>http://documentare.org</annotation> <mediaDisplay name="threePartsView"/> </item> --> <item> <title>documentare.digitalarena - filme şi seriale documentare</title> <link><?php echo $host; ?>/scripts/filme/php/digitalarena_main.php</link> <annotation>http://documentare.digitalarena.ro</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>filmedocumentare - filme şi seriale documentare</title> <link><?php echo $host; ?>/scripts/filme/php/filmedocumentare_main.php</link> <annotation>http://filmedocumentare.com/</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>TinyMKV - smallrip movie and series releases</title> <link><?php echo $host; ?>/scripts/filme/php/tinymkv_main.php</link> <annotation>http://www.tinymkv.com</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>filmekmagyarul</title> <link><?php echo $host; ?>/scripts/filme/php/filmekmagyarul_main.php</link> <annotation>http://www.filmekmagyarul.com/videos</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>movie2k - movies</title> <link><?php echo $host; ?>/scripts/filme/php/movie2k_main.php</link> <annotation>http://www.movie2k.to</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>loads7</title> <link><?php echo $host; ?>/scripts/filme/php/loads7_main.php</link> <annotation>http://loads7.com</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>archive - movies and films</title> <link><?php echo $host; ?>/scripts/filme/php/archive.php?page=1</link> <annotation>http://www.archive.org</annotation> <mediaDisplay name="threePartsView"/> </item> <!-- <item> <title>movfilm</title> <link><?php echo $host."/scripts/filme/php/movfilm_cat.php?query=1,http://movfilm.net/news/,neue+Filme";?></link> <annotation>http://movfilm.net</annotation> <mediaDisplay name="threePartsView"/> </item> --> <item> <title>kinox</title> <link><?php echo $host; ?>/scripts/filme/php/kinox_main.php</link> <annotation>http://www.kinox.to</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>mega-stream</title> <link><?php echo $host; ?>/scripts/filme/php/mega-stream.php</link> <annotation>http://www.mega-stream.to</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>online-moviez</title> <link><?php echo $host; ?>/scripts/filme/php/online-moviez.php</link> <annotation>http://www.online-moviez.com</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>online-moviez - Adult filme</title> <onClick> <script> optionsPath="/usr/local/etc/dvdplayer/adult.dat"; pass = readStringFromFile(optionsPath); if (pass == null) { pass="1325"; writeStringToFile(optionsPath, pass); keyword = getInput(); if (keyword != null) { if (keyword == pass) { jumpToLink("adultlink"); } else { jumpToLink("adultpass"); } } } else if (pass == "0") { jumpToLink("adultlink"); } else { keyword = getInput(); if (keyword != null) { if (keyword == pass) { jumpToLink("adultlink"); } else { jumpToLink("adultpass"); } } } </script> </onClick> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/filme/.svn/text-base/filme.php.svn-base
PHP
gpl3
12,759
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF-8' ?>"; $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, "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>Pentru copii</title> <item> <title>DeseneAnimate</title> <link><?php echo $host; ?>/scripts/filme/php/deseneanimate_main.php?query=1,</link> <annotation>http://deseneanimate.tv</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>JocuriCuBarbie</title> <link><?php echo $host; ?>/scripts/filme/php/jocuricubarbie_main.php</link> <annotation>http://www.jocuricubarbie.info/desene_animate.html</annotation> <mediaDisplay name="threePartsView"/> </item> <!-- <item> <title>desene.veziserialeonline</title> <link><?php echo $host; ?>/scripts/filme/php/desene_veziserialeonline_main.php</link> <annotation>http://desene.veziserialeonline.info/tv-shows</annotation> <mediaDisplay name="threePartsView"/> </item> --> <item> <title>desene-animate</title> <link><?php echo $host; ?>/scripts/filme/php/desenele-copilariei_main.php</link> <annotation>http://desene-animate.info/</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>desenele-copilăriei</title> <link><?php echo $host; ?>/scripts/filme/php/desenele-copilariei_main_o.php</link> <annotation>http://desenele-copilariei.net</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>990 - desene animate</title> <link><?php echo $host; ?>/scripts/filme/php/990_desene_main.php</link> <annotation>http://www.990.ro/desene-animate.html</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>Kinderfilme</title> <link><?php echo $host; ?>/scripts/filme/php/Kinderfilme.php</link> <annotation>http://youtube.com</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>watchcartoononline</title> <link><?php echo $host; ?>/scripts/filme/php/watchcartoononline_main1.php</link> <annotation>http://www.watchcartoononline.com</annotation> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/filme/.svn/text-base/desene.php.svn-base
PHP
gpl3
6,132
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF-8' ?>"; $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 - categorii</title> <menu>main menu</menu> <item> <title>Filme</title> <link><?php echo $host; ?>/scripts/filme/php/990_filme.php</link> <media:thumbnail url="image/movies.png" /> </item> <item> <title>Filme: sortare după ani</title> <link><?php echo $host; ?>/scripts/filme/php/990_filme1.php</link> <media:thumbnail url="image/movies.png" /> </item> <item> <title>Filme: sortare după gen</title> <link><?php echo $host; ?>/scripts/filme/php/990_filme2.php</link> <media:thumbnail url="image/movies.png" /> </item> <item> <title>Seriale</title> <link><?php echo $host; ?>/scripts/filme/php/990_seriale_main.php</link> <media:thumbnail url="image/movies.png" /> </item> <item> <title>Comedii vechi</title> <link><?php echo $host; ?>/scripts/filme/php/990_special_main.php</link> <media:thumbnail url="image/movies.png" /> </item> <item> <title>Desene animate</title> <link><?php echo $host; ?>/scripts/filme/php/990_desene_main.php</link> <media:thumbnail url="image/movies.png" /> </item> </channel> </rss>
1073s
trunk/filme/.svn/text-base/990.php.svn-base
PHP
gpl3
5,272
#!/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>peţeavă - categorii</title> <menu>main menu</menu> <item> <title>Căutare:</title> <link>rss_command://search</link> <search url="<?php echo $host; ?>/scripts/filme/php/peteava_search.php?query=1,%s" /> <annotation>Căutare filme</annotation> </item> <item> <title>Filme</title> <link><?php echo $host; ?>/scripts/filme/php/peteava.php?query=1,http://www.peteava.ro/browse/categoria/101/pagina/,Filme</link> <annotation>Filme</annotation> </item> <item> <title>Seriale</title> <link><?php echo $host; ?>/scripts/filme/php/peteava.php?query=1,http://www.peteava.ro/browse/categoria/104/pagina/,Seriale</link> <annotation>Seriale</annotation> </item> <item> <title>Animaţie</title> <link><?php echo $host; ?>/scripts/filme/php/peteava.php?query=1,http://www.peteava.ro/browse/categoria/102/pagina/,Animatie</link> <annotation>Animaţie</annotation> </item> <item> <title>Scurt-metraj</title> <link><?php echo $host; ?>/scripts/filme/php/peteava.php?query=1,http://www.peteava.ro/browse/categoria/103/pagina/,Scurt-metraj</link> <annotation>Scurt-metraj</annotation> </item> <item> <title>TV</title> <link><?php echo $host; ?>/scripts/filme/php/peteava.php?query=1,http://www.peteava.ro/browse/categoria/105/pagina/,TV</link> <annotation>TV</annotation> </item> <item> <title>Muzică</title> <link><?php echo $host; ?>/scripts/filme/php/peteava.php?query=1,http://www.peteava.ro/browse/categoria/100/pagina/,Muzica</link> <annotation>Muzică</annotation> </item> <item> <title>Toate</title> <link><?php echo $host; ?>/scripts/filme/php/peteava.php?query=1,http://www.peteava.ro/browse/categoria/1/pagina/,Toate</link> <annotation>Toate</annotation> </item> </channel> </rss>
1073s
trunk/filme/.svn/text-base/peteava.php.svn-base
PHP
gpl3
5,983
#!/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> <destination> <link>http://127.0.0.1/cgi-bin/scripts/filme/peteava_user.php</link> </destination> <channel> <title>peţeavă - filme utilizator</title> <menu>main menu</menu> <item> <title>Adaugă un utilizator</title> <onClick> <script> keyword = getInput(); if (keyword != null) { url="http://127.0.0.1/cgi-bin/scripts/filme/php/peteava_user1.php?mod=add," + keyword; dummy=getUrl(url); jumptolink("destination"); } </script> </onClick> </item> <item> <title>Şterge un utilizator (din lista nouă)</title> <onClick> <script> keyword = getInput(); if (keyword != null) { url="http://127.0.0.1/cgi-bin/scripts/filme/php/peteava_user1.php?mod=delete," + keyword; dummy=getUrl(url); jumptolink("destination"); } </script> </onClick> </item> <item> <title>User - moviesample</title> <link><?php echo $host; ?>/scripts/filme/php/peteava_user.php?query=1,moviesample</link> <annotation>User movies</annotation> </item> <item> <title>User - dumitrescu85</title> <link><?php echo $host; ?>/scripts/filme/php/peteava_user.php?query=1,dumitrescu85</link> <annotation>User movies</annotation> </item> <item> <title>User - peteavavip</title> <link><?php echo $host; ?>/scripts/filme/php/peteava_user.php?query=1,peteavavip</link> <annotation>User movies</annotation> </item> <item> <title>User - Fhd000</title> <link><?php echo $host; ?>/scripts/filme/php/peteava_user.php?query=1,Fhd000</link> <annotation>User movies</annotation> </item> <item> <title>User - knok_71</title> <link><?php echo $host; ?>/scripts/filme/php/peteava_user.php?query=1,knok_71</link> <annotation>User movies</annotation> </item> <item> <title>User - remat</title> <link><?php echo $host; ?>/scripts/filme/php/peteava_user.php?query=1,remat</link> <annotation>User movies</annotation> </item> <item> <title>User - desene.3xforum.ro</title> <link><?php echo $host; ?>/scripts/filme/php/peteava_user.php?query=1,desene.3xforum.ro</link> <annotation>User movies</annotation> </item> <?php if (file_exists("/usr/local/etc/dvdplayer/peteava.dat")) { $html=file_get_contents("/usr/local/etc/dvdplayer/peteava.dat"); $u=explode(",",$html); for ($i=0;$i<count($u);$i++){ $link=$host."/scripts/filme/php/peteava_user.php?query=1,".$u[$i]; echo ' <item> <title>User - '.$u[$i].'</title> <link>'.$link.'</link> <annotation>User movies</annotation> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/.svn/text-base/peteava_user.php.svn-base
PHP
gpl3
6,624
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF-8' ?>"; $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" cornerRounding=5 offsetXPC=0 offsetYPC=2 widthPC=100 heightPC=96> <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> <adultlink> <mediaDisplay name="threePartsView"/> <link> <?php echo $host; ?>/scripts/filme/php/online-moviez1.php </link> </adultlink> <adultpass> <mediaDisplay name="onePartView" /> <link> /usr/local/etc/www/cgi-bin/scripts/adult/adult.rss </link> </adultpass> <channel> <title>Filme Online</title> <item> <title>onlinemoca</title> <link>/usr/local/etc/www/cgi-bin/scripts/filme/php/onlinemoca_main.rss</link> <annotation>http://www.onlinemoca.com/</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>filmeonline</title> <link><?php echo $host; ?>/scripts/filme/php/filmeonline_main.php</link> <annotation>http://www.filmeonline.org</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>cinemaxx</title> <link><?php echo $host; ?>/scripts/filme/php/cinemaxx_main.php</link> <annotation>http://cinemaxx.ro/</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>filmeonlinegratis</title> <link><?php echo $host; ?>/scripts/filme/php/filmeonlinegratis_main.php</link> <annotation>http://www.filmeonlinegratis.ro</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>filmehd</title> <link><?php echo $host; ?>/scripts/filme/php/filmehd_main.php</link> <annotation>http://filmehd.net/</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>peţeavă</title> <link><?php echo $host; ?>/scripts/filme/peteava.php</link> <annotation>http://www.peteava.ro/</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>peţeavă - user movies</title> <link><?php echo $host; ?>/scripts/filme/peteava_user.php</link> <annotation>http://www.peteava.ro/</annotation> <mediaDisplay name="threePartsView"/> </item> <!-- <item> <title>filmeonlinenoi</title> <link><?php echo $host; ?>/scripts/filme/php/filmeonlinenoi.php?query=,http://filmeonlinenoi.com/</link> <annotation>http://filmeonlinenoi.com/</annotation> <mediaDisplay name="threePartsView"/> </item> --> <item> <title>filmelive</title> <link><?php echo $host; ?>/scripts/filme/php/filmelive_main.php</link> <annotation>http://www.filmelive.net</annotation> <mediaDisplay name="threePartsView"/> </item> <!-- <item> <title>themoviesbest</title> <link><?php echo $host; ?>/scripts/filme/php/themoviesbest_main.php</link> <annotation>http://themoviesbest.com/</annotation> <mediaDisplay name="threePartsView"/> </item> --> <item> <title>filme-online-gratis</title> <link><?php echo $host; ?>/scripts/filme/php/filme-online-gratis_main.php</link> <annotation>http://filme-online-gratis.com/blog/</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>divxonline</title> <link><?php echo $host; ?>/scripts/filme/php/divxonline_main.php</link> <annotation>http://divxonline.biz</annotation> <mediaDisplay name="threePartsView"/> </item> <!-- <item> <title>xvidonline</title> <link><?php echo $host; ?>/scripts/filme/php/xvidonline.php</link> <annotation>http://xvidonline.org/</annotation> <mediaDisplay name="threePartsView"/> </item> --> <item> <title>moviesample</title> <link><?php echo $host; ?>/scripts/filme/php/moviesample.php</link> <annotation>http://www.moviesample.net</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>filmeromania - filme româneşti</title> <link><?php echo $host; ?>/scripts/filme/php/filmeromania.php</link> <annotation>http://filmeromania.blogspot.com/</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>cinemaromanesc - filme româneşti</title> <link><?php echo $host; ?>/scripts/filme/php/cinemaromanesc.php</link> <annotation>http://cinemaromanesc.blogspot.com/</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>filmede10</title> <link><?php echo $host; ?>/scripts/filme/php/filmede10_net_main.php</link> <annotation>http://www.filmede10.net/</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>seriale-filme - movies</title> <link><?php echo $host; ?>/scripts/filme/php/seriale-filme_filme_info.php</link> <annotation>http://www.seriale-filme.info/movies</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>westernmania - filme Western</title> <link><?php echo $host; ?>/scripts/filme/php/westernmania.php</link> <annotation>http://www.westernmania.net</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>seenow (abonament) - experimental</title> <link><?php echo $host; ?>/scripts/filme/php/seenow_main.php</link> <annotation>http://www.seenow.ro</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>DolceTv - filme gratis</title> <link><?php echo $host; ?>/scripts/filme/php/dolce_filme.php?page=1</link> <annotation>http://www.dolcetv.ro/filme</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>jurnaltv - filme şi seriale documentare</title> <link><?php echo $host; ?>/scripts/filme/php/jurnaltv_main.php</link> <annotation>http://www.jurnaltv.ro</annotation> <mediaDisplay name="threePartsView"/> </item> <!-- <item> <title>documentare - filme şi seriale documentare</title> <link><?php echo $host; ?>/scripts/filme/php/documentare_main.php</link> <annotation>http://documentare.org</annotation> <mediaDisplay name="threePartsView"/> </item> --> <item> <title>documentare.digitalarena - filme şi seriale documentare</title> <link><?php echo $host; ?>/scripts/filme/php/digitalarena_main.php</link> <annotation>http://documentare.digitalarena.ro</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>filmedocumentare - filme şi seriale documentare</title> <link><?php echo $host; ?>/scripts/filme/php/filmedocumentare_main.php</link> <annotation>http://filmedocumentare.com/</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>TinyMKV - smallrip movie and series releases</title> <link><?php echo $host; ?>/scripts/filme/php/tinymkv_main.php</link> <annotation>http://www.tinymkv.com</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>filmekmagyarul</title> <link><?php echo $host; ?>/scripts/filme/php/filmekmagyarul_main.php</link> <annotation>http://www.filmekmagyarul.com/videos</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>movie2k - movies</title> <link><?php echo $host; ?>/scripts/filme/php/movie2k_main.php</link> <annotation>http://www.movie2k.to</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>loads7</title> <link><?php echo $host; ?>/scripts/filme/php/loads7_main.php</link> <annotation>http://loads7.com</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>archive - movies and films</title> <link><?php echo $host; ?>/scripts/filme/php/archive.php?page=1</link> <annotation>http://www.archive.org</annotation> <mediaDisplay name="threePartsView"/> </item> <!-- <item> <title>movfilm</title> <link><?php echo $host."/scripts/filme/php/movfilm_cat.php?query=1,http://movfilm.net/news/,neue+Filme";?></link> <annotation>http://movfilm.net</annotation> <mediaDisplay name="threePartsView"/> </item> --> <item> <title>kinox</title> <link><?php echo $host; ?>/scripts/filme/php/kinox_main.php</link> <annotation>http://www.kinox.to</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>mega-stream</title> <link><?php echo $host; ?>/scripts/filme/php/mega-stream.php</link> <annotation>http://www.mega-stream.to</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>online-moviez</title> <link><?php echo $host; ?>/scripts/filme/php/online-moviez.php</link> <annotation>http://www.online-moviez.com</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>online-moviez - Adult filme</title> <onClick> <script> optionsPath="/usr/local/etc/dvdplayer/adult.dat"; pass = readStringFromFile(optionsPath); if (pass == null) { pass="1325"; writeStringToFile(optionsPath, pass); keyword = getInput(); if (keyword != null) { if (keyword == pass) { jumpToLink("adultlink"); } else { jumpToLink("adultpass"); } } } else if (pass == "0") { jumpToLink("adultlink"); } else { keyword = getInput(); if (keyword != null) { if (keyword == pass) { jumpToLink("adultlink"); } else { jumpToLink("adultpass"); } } } </script> </onClick> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/filme/filme.php
PHP
gpl3
12,759
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF-8' ?>"; $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 - categorii</title> <menu>main menu</menu> <item> <title>Filme</title> <link><?php echo $host; ?>/scripts/filme/php/990_filme.php</link> <media:thumbnail url="image/movies.png" /> </item> <item> <title>Filme: sortare după ani</title> <link><?php echo $host; ?>/scripts/filme/php/990_filme1.php</link> <media:thumbnail url="image/movies.png" /> </item> <item> <title>Filme: sortare după gen</title> <link><?php echo $host; ?>/scripts/filme/php/990_filme2.php</link> <media:thumbnail url="image/movies.png" /> </item> <item> <title>Seriale</title> <link><?php echo $host; ?>/scripts/filme/php/990_seriale_main.php</link> <media:thumbnail url="image/movies.png" /> </item> <item> <title>Comedii vechi</title> <link><?php echo $host; ?>/scripts/filme/php/990_special_main.php</link> <media:thumbnail url="image/movies.png" /> </item> <item> <title>Desene animate</title> <link><?php echo $host; ?>/scripts/filme/php/990_desene_main.php</link> <media:thumbnail url="image/movies.png" /> </item> </channel> </rss>
1073s
trunk/filme/990.php
PHP
gpl3
5,272
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF-8' ?>"; $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, "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>Pentru copii</title> <item> <title>DeseneAnimate</title> <link><?php echo $host; ?>/scripts/filme/php/deseneanimate_main.php?query=1,</link> <annotation>http://deseneanimate.tv</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>JocuriCuBarbie</title> <link><?php echo $host; ?>/scripts/filme/php/jocuricubarbie_main.php</link> <annotation>http://www.jocuricubarbie.info/desene_animate.html</annotation> <mediaDisplay name="threePartsView"/> </item> <!-- <item> <title>desene.veziserialeonline</title> <link><?php echo $host; ?>/scripts/filme/php/desene_veziserialeonline_main.php</link> <annotation>http://desene.veziserialeonline.info/tv-shows</annotation> <mediaDisplay name="threePartsView"/> </item> --> <item> <title>desene-animate</title> <link><?php echo $host; ?>/scripts/filme/php/desenele-copilariei_main.php</link> <annotation>http://desene-animate.info/</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>desenele-copilăriei</title> <link><?php echo $host; ?>/scripts/filme/php/desenele-copilariei_main_o.php</link> <annotation>http://desenele-copilariei.net</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>990 - desene animate</title> <link><?php echo $host; ?>/scripts/filme/php/990_desene_main.php</link> <annotation>http://www.990.ro/desene-animate.html</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>Kinderfilme</title> <link><?php echo $host; ?>/scripts/filme/php/Kinderfilme.php</link> <annotation>http://youtube.com</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>watchcartoononline</title> <link><?php echo $host; ?>/scripts/filme/php/watchcartoononline_main1.php</link> <annotation>http://www.watchcartoononline.com</annotation> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/filme/desene.php
PHP
gpl3
6,132
#!/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> <destination> <link>http://127.0.0.1/cgi-bin/scripts/filme/peteava_user.php</link> </destination> <channel> <title>peţeavă - filme utilizator</title> <menu>main menu</menu> <item> <title>Adaugă un utilizator</title> <onClick> <script> keyword = getInput(); if (keyword != null) { url="http://127.0.0.1/cgi-bin/scripts/filme/php/peteava_user1.php?mod=add," + keyword; dummy=getUrl(url); jumptolink("destination"); } </script> </onClick> </item> <item> <title>Şterge un utilizator (din lista nouă)</title> <onClick> <script> keyword = getInput(); if (keyword != null) { url="http://127.0.0.1/cgi-bin/scripts/filme/php/peteava_user1.php?mod=delete," + keyword; dummy=getUrl(url); jumptolink("destination"); } </script> </onClick> </item> <item> <title>User - moviesample</title> <link><?php echo $host; ?>/scripts/filme/php/peteava_user.php?query=1,moviesample</link> <annotation>User movies</annotation> </item> <item> <title>User - dumitrescu85</title> <link><?php echo $host; ?>/scripts/filme/php/peteava_user.php?query=1,dumitrescu85</link> <annotation>User movies</annotation> </item> <item> <title>User - peteavavip</title> <link><?php echo $host; ?>/scripts/filme/php/peteava_user.php?query=1,peteavavip</link> <annotation>User movies</annotation> </item> <item> <title>User - Fhd000</title> <link><?php echo $host; ?>/scripts/filme/php/peteava_user.php?query=1,Fhd000</link> <annotation>User movies</annotation> </item> <item> <title>User - knok_71</title> <link><?php echo $host; ?>/scripts/filme/php/peteava_user.php?query=1,knok_71</link> <annotation>User movies</annotation> </item> <item> <title>User - remat</title> <link><?php echo $host; ?>/scripts/filme/php/peteava_user.php?query=1,remat</link> <annotation>User movies</annotation> </item> <item> <title>User - desene.3xforum.ro</title> <link><?php echo $host; ?>/scripts/filme/php/peteava_user.php?query=1,desene.3xforum.ro</link> <annotation>User movies</annotation> </item> <?php if (file_exists("/usr/local/etc/dvdplayer/peteava.dat")) { $html=file_get_contents("/usr/local/etc/dvdplayer/peteava.dat"); $u=explode(",",$html); for ($i=0;$i<count($u);$i++){ $link=$host."/scripts/filme/php/peteava_user.php?query=1,".$u[$i]; echo ' <item> <title>User - '.$u[$i].'</title> <link>'.$link.'</link> <annotation>User movies</annotation> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/peteava_user.php
PHP
gpl3
6,624
#!/bin/sh link=`echo "$QUERY_STRING" | sed -n 's/^.*link=\([^;]*\).*$/\1/p' | sed "s/%20/ /g"` PID=`echo "$QUERY_STRING" | sed -n 's/^.*pid=\([^;]*\).*$/\1/p' | sed "s/%20/ /g"` NAME=`echo "$QUERY_STRING" | sed -n 's/^.*name=\([^;]*\).*$/\1/p' | sed "s/%20/ /g"` GO=`echo "$QUERY_STRING" | sed -n 's/^.*go=\([^;]*\).*$/\1/p' | sed "s/%20/ /g"` if [ -d /tmp/usbmounts/sda1/download ] then loc=/tmp/usbmounts/sda1/download loclog=/tmp/usbmounts/sda1/download elif [ -d /tmp/usbmounts/sdb1/download ] then loc=/tmp/usbmounts/sdb1/download loclog=/tmp/usbmounts/sdb1/download elif [ -d /tmp/usbmounts/sdc1/download ] then loc=/tmp/usbmounts/sdc1/download loclog=/tmp/usbmounts/sdc1/download elif [ -d /tmp/usbmounts/sda2/download ] then loc=/tmp/usbmounts/sda2/download loclog=/tmp/usbmounts/sda2/download elif [ -d /tmp/usbmounts/sdb2/download ] then loc=/tmp/usbmounts/sdb2/download loclog=/tmp/usbmounts/sdb2/download elif [ -d /tmp/usbmounts/sdc2/download ] then loc=/tmp/usbmounts/sdc2/download loclog=/tmp/usbmounts/sdc2/download elif [ -d /tmp/hdd/volumes/HDD1/download ] then loc=/tmp/hdd/volumes/HDD1/download loclog=/tmp/hdd/root else loc='' loclog='' fi case $GO in "start" ) cd $loc /sbin/wget -bc -a $loclog/log/$NAME.log -O $NAME $LINK > /tmp/$NAME.pid echo "Start Download $NAME";; "stop" ) kill -9 $PID rm /tmp/$NAME.pid echo "Stop Download $NAME";; "delete" ) kill -9 $PID rm /tmp/$NAME.pid rm $loclog/log/$NAME.log echo "Sterge Download $NAME";; esac
1073s
trunk/util/manag.cgi
Shell
gpl3
1,510
#!/bin/sh # # http://code.google.com/media-translate/ # Copyright (C) 2010 Serge A. Timchenko # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # #QUERY_STRING=scan TRANSLATE=${TRANSLATE:-/usr/local/etc/translate} . $TRANSLATE/lib/common XSPFSCAN=${XSPFSCAN:-$BASEPATH/etc/xspf.scan} STARTPOINT=${STARTPOINT:-''} CACHEPATH=${CACHEPATH:-/tmp} TEMP=${TEMP:-/tmp} YOUTUBE_HD=${YOUTUBE_HD:-'yes'} VIMEO_HD=${VIMEO_HD:-'yes'} IVI_HD=${IVI_HD:-'yes'} NET_BANDWIDTH=${NET_BANDWIDTH:-} PLUGINS_DIR=$BASEPATH/plugins/ RC_OK=0 RC_FAIL=1 STREAM_TEST_TIMEOUT=15 DEFAULTFILTER="(mp3|mp2|mpga|ogg|wav|wma|wax|m4a|mp4a|avi|mpeg|mpg|mpe|wmv|wvx|wm|wmx|flv|qt|mov|asf|asx|mp4|m4v|mp4v|mpg4|xspf|m3u|pls|cue|txt|flac|jpg|jpeg|jpe|png|gif|bmp)" UDPXY_URL=${UDPXY_URL:-'http://127.0.0.1:8080'} UDPXY_URL=`echo "$UDPXY_URL" | awk '{sub(/\/$/, ""); gsub(/\//, "\\\/"); gsub(/\./, "\\\."); print}'` #RTMPGW_URL=${RTMPGW_URL:-'http://127.0.0.1:88'} RTMPGW_URL=`echo "$RTMPGW_URL" | awk '{sub(/\/$/, ""); print}'` USERAGENT="Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13" TMPFILE=$TEMP/$$.tmp [ ! -d $CACHEPATH ] && CACHEPATH=$TEMP arg_cmd=`echo "$QUERY_STRING" | awk -F, '{print $1}'` arg_opt=`echo "$QUERY_STRING" | awk -F, '{print $2}'` arg_url=`echo "$QUERY_STRING" | awk -F, '{for(i=3; i<NF; i++) printf "%s,", $(i); printf "%s", $(NF); }'` arg_url=`urldecode_s "$arg_url"` arg_opt=`urldecode_s "$arg_opt"` # http://127.0.0.1/translate[?<scan|*>] # http://127.0.0.1/translate?stream,[<option1;...optionN>],<url> # Available options: # Content-type:<content type> # HD:<yes|no> # Protocol:<mms|mmst|mmsh|http|rtsp|ftp> # Bandwidth:<bps> # Speed:<streaming speed> # http://127.0.0.1/translate?<info|status>,,<url> # http://127.0.0.1/translate?text,,<url> # http://127.0.0.1/translate?playlist,,<path to playlist> # <list> # <item> # <title></title> # <location></location> # </item> # </list> # # <info> # <stream url="" type="" server="<icecast|shoutcast|youtube|vimeo>" class="<audio|video|playlist>" protocol="" server_url="" /> # <item> # <name/><value/> # </item> # <status> # <server-status> s # <stream-status> si (Mount started: <time>) # <listener-peak> si (status: Stream is up at 96 kbps with 138 of 250 listeners (134 unique)) # <average-listener-time> s # <stream-title/> si # <content-type/> si # <stream-genre/> si # <current-song/> si # <stream-bitrate/> si (status: Stream is up at 96 kbps with 138 of 250 listeners (134 unique)) # <listeners> si (status: Stream is up at 96 kbps with 138 of 250 listeners (134 unique)) # </status> # </info> # icy_name= icy_genre= icy_br= icy_url= icy_description= ms_author= ms_title= server_type='' # icecast | shoutcast | youtube | vimeo | rutube | ivi stream_status_url='' get_opt "Content-type" stream_type=$opt check_stream_flag=yes local url_plugin='' find_protocol_plugin "'$arg_url'" url_plugin if [ -n "$url_plugin" ]; then . $PLUGINS_DIR"$url_plugin" "'$arg_url'" fi stream_url=${arg_url} out_error_info() { echo "Content-type: text/xml" echo echo "<?xml version='1.0' encoding='UTF-8'?>" echo "<info><error>$1</error><log><![CDATA[" echo "$2" echo "]]></log></info>" } get_shoutcast_item() { sed -e "s/.*$1: <\/font><\/td><td><font class=default><b>//" $TMPFILE | sed 's/<\/b>.*//' | sed 's/<.*>//g;s/&amp;/&/g;s/&nbsp;/ /g;s/&lt;/</g;s/&gt;/>/g' } get_icecast_item() { sed "1,/$1:/d" $TMPFILE | sed '/.*:$/,$d' | sed 's/\n/ /g' } print_status_item() { local s=`echo -n "$2" | awk '{gsub(/\t/," ");gsub(/\r/,"");print}' | sed 's/^[ \n]*//;s/[ \n]*$//;' | awk '{if(NR >1) printf("%s", " "); printf("%s", $0);}' | sed 's/ *$//'` [ -n "$s" ] && echo "<$1><![CDATA[`unescapeXML \"$s\"`]]></$1>" return 0 } #urldecode() #{ # echo -e "$(sed 'y/+/ /; s/%/\\x/g')" #} #urldecode() #{ # echo "$@" | sed 's/^.*$/'"`echo "$@" | sed 'y/+/ /; s/%/\\\\x/g; s/\//\\\\\//g'`"'/' #} test_stream() { $MSDL $2 --debug -o ${TMPFILE} --stream-timeout 1 --no-treat-metafile $3 2>${TMPFILE}.log & local timeout=$1 while /bin/ps | grep -q -s "^ *$! "; do let timeout=$timeout-1 if [ $timeout -le 0 ]; then kill -9 $! break fi sleep 1 done if [ $timeout -le 0 ]; then echo '!!timeout!!' >> ${TMPFILE}.log echo 'cannot establish stream' >> ${TMPFILE}.log fi cat ${TMPFILE}.log rm -f ${TMPFILE}.log rm -f ${TMPFILE} return 0 } check_av_stream() { if [ "$check_stream_flag" == "no" ]; then return 0 fi get_opt "Protocol" case $opt in mmst|mmsh|http|rtsp|ftp) msdlopt="-p $opt" ;; *) msdlopt='' esac get_opt "Bandwidth" [ -z "$opt" -a -n "$NET_BANDWIDTH" ] && opt=$NET_BANDWIDTH [ -n "$opt" ] && msdlopt="$msdlopt -b $opt" get_opt "Speed" [ -n "$opt" ] && msdlopt="$msdlopt -s $opt" buf= if echo "$arg_url" | grep -q -s "^.*://"; then # if echo "$arg_url" | grep -q -s "^ftp://"; then # protocol='ftp' # else buf=`test_stream $STREAM_TEST_TIMEOUT "$msdlopt" "$arg_url"` ms_x_wms_contentdesc=`echo "$buf" | sed -n "/^a=pgmpu:data:application\/x\-wms\-contentdesc/p" | sed -n '$p'` ms_x_wms_contentdesc=`urldecode_s "$ms_x_wms_contentdesc"` if echo $buf | grep -q -s "!!timeout!!"; then if echo "$msdlopt" | grep -q -s "\-p "; then : else buf=`test_stream $STREAM_TEST_TIMEOUT "-p mmsh $msdlopt" "$arg_url"` fi elif echo $buf | grep -q -s "invalid redirection url"; then buf=`test_stream $STREAM_TEST_TIMEOUT "-p http $msdlopt" "$arg_url"` elif echo $buf | grep -q -s "MMSH header parse error by http header parse error"; then buf=`test_stream $STREAM_TEST_TIMEOUT "-p http $msdlopt" "$arg_url"` fi if echo $buf | grep -q -s "cannot establish stream"; then reason="`echo "$buf" | sed -n '/^cannot establish stream/{g;1!p;};h'`" out_error_info "cannot establish stream ($reason)" "$buf" exit fi stream_url=`echo "$buf" | sed -n '/^url:/p' | sed -n '$p' | sed 's/ *url: *//'` protocol=`echo "$buf" | sed -n '/^download protocol:/p' | sed -n '$p' | sed 's/.*: //'` if [ "$protocol" == "rtsp - real" ]; then protocol='real' else protocol=`echo "$protocol" | awk '{print $1}'` fi redirect=`echo "$buf" | sed -n '/^redirect to/p' | sed -n '$p' | awk '{print $3}'` if [ -n "$redirect" ]; then stream_url=$redirect fi url_protocol=`echo $stream_url | sed 's/^\(.*\):\/\/.*$/\1/'` if [ "$protocol" == "mmsh" ]; then stream_url=`echo $stream_url | sed "s/^\(.*\)\(:\/\/.*\)/$protocol\2/"` fi # fi else protocol='file' fi if [ -z "$stream_type" ]; then type=`echo "$buf" | sed -n '/^[cC]ontent[ -][tT]ype/p' | sed -n '$p' | awk '{ match($0, /[ ;:]+([a-z]+\/[a-z\-]+)[ ;]*.*$/, arr); print arr[1]}'` # autodetect stream type if echo $buf | grep -qs "FINISHED"; then type=${type:-'application/octet-stream'} fi case $protocol in http|ftp|file) if [ "$protocol" == "http" ]; then if [ "$type" == "text/html" -o -z "$type" ]; then if echo "${stream_url}" | grep -q -s ".*[^a-zA-Z0-9]rss[^a-zA-Z0-9]*.*"; then type=application/xml elif echo "${stream_url}" | grep -q -s "^http://.*/\(udp\|rtp\)/[0-9\.:]*$"; then type=video/x-msvideo fi fi fi if [ -z "$type" -o "$type" == "text/plain" -o "$type" == "text/html" ]; then ext=`echo "${stream_url}" | sed 's/\./\n/g' | sed -n '$p'` case $ext in flv|FLV) type=video/x-flv ;; mp3|MP3|mp2|MP2|mpga|MPGA) type=audio/mpeg ;; wma|WMA) type=audio/x-ms-wma ;; wax|WAX) type=audio/x-ms-wax ;; wmv|WMV) type=video/x-ms-wmv ;; wvx|WVX) type=video/x-ms-wvx ;; wm|WM) type=video/x-ms-wm ;; wmx|WMX) type=video/x-ms-wmx ;; m3u|M3U) type=audio/x-mpegurl ;; pls|PLS) type=audio/x-scpls ;; cue|CUE) type=audio/x-cue ;; xspf|XSPF) type=application/xspf+xml ;; avi|AVI|mpeg|MPEG|mpg|MPG|mpe|MPE) type=video/mpeg ;; qt|QT|mov|MOV) type=video/quicktime ;; asf|ASF|asx|ASX) type=video/x-ms-asf ;; mp4|MP4|m4v|M4V) type=video/mp4 ;; wav|WAV) type=audio/wav ;; ogg|OGG) type=application/ogg ;; rss|RSS) type=application/rss+xml ;; jpg|JPG|jpe|JPE|jpeg|JPEG) type=image/jpeg ;; png|PNG) type=image/png ;; gif|GIF) type=image/gif ;; bmp|BMP) type=image/bmp ;; txt|TXT) type=text/plain ;; esac elif echo "$type" | grep -q -s "\(video/x-ssf\)"; then type=video/x-flv elif echo "$type" | grep -q -s "\(audio/\|video/\|application/xspf\|application/ogg\|image\)"; then : elif echo "$type" | grep -q -s "\(text/xml\|application/xml\|application/rss\)"; then : elif echo "$type" | grep -q -s "\(application/octet-stream\)"; then type=video/x-msvideo else out_error_info "unknown content type: \"$type\"" "$buf" exit fi get_icy_meta() { echo "$buf" | sed -n "/^$1:/p" | sed -n '$p' | sed "s/^$1://" | $TOUTF8 } icy_name=`get_icy_meta 'icy-name'` icy_name=${icy_name:-`get_icy_meta 'x-audiocast-name'`} icy_genre=`get_icy_meta 'icy-genre'` icy_genre=${icy_genre:-`get_icy_meta 'x-audiocast-genre'`} icy_br=`get_icy_meta 'icy-br'` icy_br=${icy_br:-`get_icy_meta 'x-audiocast-bitrate'`} icy_url=`get_icy_meta 'icy-url'` icy_url=${icy_url:-`get_icy_meta 'x-audiocast-url'`} icy_pub=`get_icy_meta 'icy-pub'` icy_pub=${icy_pub:-`get_icy_meta 'x-audiocast-public'`} icy_description=`get_icy_meta 'icy-description'` icy_description=${icy_description:-`get_icy_meta 'x-audiocast-description'`} icy_notice1=`get_icy_meta 'icy-notice1'` icy_notice2=`get_icy_meta 'icy-notice2'` ;; mmsh|mmst|rtsp) isvideostream=`echo "$buf" | grep "\(is video stream\|video stream detected!!!!\)"` isaudiostream=`echo "$buf" | grep "\(is audio stream\|audio stream detected!!!!\)"` if [ -n "$isvideostream" ]; then type=video/x-msvideo elif [ -n "$isaudiostream" ]; then type=audio/x-ms-wma else out_error_info "unknown stream" "$buf" exit fi ms_author=`echo "$ms_x_wms_contentdesc" | awk '/,author,/ { a=index($0, ",author,"); s=substr($0, a+8); a=index(s,","); s=substr(s, a+1); a=index(s,","); l=substr(s,0,a-1); s=substr(s,a+1,l); print s }'` ms_title=`echo "$ms_x_wms_contentdesc" | awk '/,title,/ { a=index($0, ",title,"); s=substr($0, a+7); a=index(s,","); s=substr(s, a+1); a=index(s,","); l=substr(s,0,a-1); s=substr(s,a+1,l); print s }'` ;; real) isvideostream=`echo "$buf" | grep "Video Stream \["` isaudiostream=`echo "$buf" | grep "Audio Stream \["` if [ -n "$isvideostream" ]; then type=`echo "$isvideostream" | sed 's/.*Stream \[//;s/\]//'` elif [ -n "$isaudiostream" ]; then type=`echo "$isaudiostream" | sed 's/.*Stream \[//;s/\]//'` else out_error_info "unknown stream" "$buf" exit fi ms_author=`echo "$buf" | grep "author :" | sed 's/.*author : //'` ms_title=`echo "$buf" | grep "title :" | sed 's/.*title : //'` ;; *) out_error_info "protocol not supported: \"$protocol\"" "$buf" exit ;; esac stream_type=$type fi host='' host_response='' stream_class=`echo "$stream_type" | sed 's/\/.*//'` if [ "$protocol" == "http" -a "$stream_class" == "audio" ]; then # try to define stream server type host=`echo "$buf" | sed -n '/^Host: \[/p' | sed -n '$p' | awk '{print $3}'` case $arg_cmd in info) buf=`$MSDL --debug -o /dev/null -p http --useragent "${USERAGENT}" --stream-timeout 1 "http://${host}" 2>&1` host_content_type=`echo "$buf" | sed -n '/^[Cc]ontent\-[Tt]ype:/p' | sed -n '$p'` ;; status) host_content_type='text/html' ;; *) host_content_type= ;; esac if echo "$host_content_type" | grep -qs "text\/html"; then host_response=`$MSDL -q -o ${TMPFILE} -p http --useragent "${USERAGENT}" --stream-timeout 30 "http://${host}" 2>&1` if [ -f ${TMPFILE} ]; then if grep -qsi "[^a-z]icecast[^a-z]" ${TMPFILE}; then stream_status_url="http://${host}" server_type='icecast' host_response=`cat ${TMPFILE}` elif grep -qsi "[^a-z]shoutcast[^a-z]" ${TMPFILE}; then stream_status_url="http://${host}" server_type='shoutcast' host_response=`cat ${TMPFILE}` fi fi [ "${arg_cmd}" != "info" -a "${arg_cmd}" != "status" -o -z "$server_type" ] && rm -f ${TMPFILE} fi if [ -z "$server_type" ]; then if echo "${icy_notice1} ${icy_notice2}" | grep -q -s -i "shoutcast"; then server_type='shoutcast' fi fi local is_icy=`awk -v streamurl="$stream_url" -v statusurl="icyx://${host}" ' BEGIN { match(statusurl, /^icyx:\/\/(.*):(.*)$/, arr); host_ip = arr[1]; host_port = arr[2]; match(streamurl, /^([^:]*):\/\/([^\/]*)(.*)$/, arr); host = arr[2]; path = arr[3]; if (path == "") path = "/"; HttpService = "/inet/tcp/0/" host_ip "/" host_port ORS = "\n\n" print "GET " path " HTTP/1.0" "\nHost: " host "\nAccept: */*" "\nIcy-MetaData: 1" |& HttpService ORS = "\n" RS = "\r?\n\r?\n" HttpService |& getline Header print match(Header, /icy-metaint: *([0-9]*)/, arr) close(HttpService) } '` if [ "$is_icy" != "0" ]; then stream_status_url="icyx://${host}" [ -z "$server_type" ] && server_type='icecast' fi fi } call_url_plugin() { local url_plugin= find_plugin "'$arg_url'" url_plugin if [ -z "$url_plugin" ]; then check_av_stream return $RC_OK else . $PLUGINS_DIR"$url_plugin" "'$arg_url'" fi } check_stream() { if echo "${arg_url}" | grep -q -s "^ftp:\/\/.*\/$"; then # fictional ftp browser content type stream_type=application/x-ftp-browser elif echo "${arg_url}" | grep -q -s "^\(/.*/\|/\)$"; then # fictional file browser content type stream_type=application/x-file-browser elif call_url_plugin; then : else check_av_stream fi [ "$stream_type" == "audio/x-shoutcast-stream" ] && stream_type=audio/x-scpls case $stream_type in audio/x-cue) stream_class='cue' ;; audio/x-mpegurl|application/xspf*|audio/x-scpls|*/x-ms-asf) stream_class='playlist' ;; application/ogg) stream_class='audio' ;; application/x-ftp-browser) protocol='ftp' stream_class='directory' ;; application/x-file-browser) protocol='file' stream_class='directory' ;; text/xml|application/xml|application/rss*) stream_class='rss' ;; *) stream_class=${stream_class:-`echo "$stream_type" | sed 's/\/.*//'`} ;; esac [ "$stream_class" == "playlist" ] && check_playlist return 0 } check_playlist() { get_opt "Resolve-playlist" local resolve=$opt [ "$resolve" == "0" ] && return 0; local playlist_file="$TEMP/temp.track" arg_url=$stream_url command_playlist | sed '1,2d;s/<track>/\n<track>/g;s/></>\n</g' > $playlist_file local count=`sed -n '/<track>/p' $playlist_file | sed -n '$='` if [ "$count" == "1" -o "$resolve" == "1" ]; then local buf=`awk -f getxml.awk -f getfirstitem.awk "$playlist_file" | sed '/^$/d'` local location=`echo "$buf" | sed -n '1p'` local title=`echo "$buf" | sed -n '2p'` local creator=`echo "$buf" | sed -n '3p'` if [ "$location" != "$stream_url" ]; then stream_url='' stream_type='' arg_url=$location check_stream icy_name=${icy_name:-"$title"} [ -n "$creator" ] && icy_name="$creator - $icy_name" ms_title=${ms_title:-"$title"} ms_author=${ms_author:-"$creator"} fi fi # rm -f $playlist_file return 0; } command_playlist() { echo "Content-type: text/xml" echo local playlist_file=${arg_url} local name=`echo "$arg_url" | sed 's/\//\n/g' | sed -n '$p'` local ext=`echo "$arg_url" | sed 's/\./\n/g' | sed -n '$p'` local path=`echo "$arg_url" | sed 's/\/[^\/]*$//'` if echo "${arg_url}" | grep -q -s ".*://"; then playlist_file="$TEMP/temp.playlist" rm -f $playlist_file protocol=`echo "$arg_url" | sed -e 's/:\/\/.*$//'` buf="`$MSDL --debug --useragent "${USERAGENT}" -o "$playlist_file" -p "$protocol" --no-treat-metafile "${arg_url}" 2>&1`" # type=`echo "$buf" | sed -n '/^content type/p' | sed -n '$p' | awk '{print $3}'` type=${stream_type:-`echo "$buf" | sed -n '/^[cC]ontent[ -][tT]ype/p' | sed -n '$p' | awk '{ match($0, /[ ;:]+([a-z]+\/[a-z\-]+)[ ;]*.*$/, arr); print arr[1]}'`} case $type in audio/x-cue) ext="cue" ;; audio/x-scpls|audio/x-shoutcast-stream) ext="pls" ;; audio/x-mpegurl) ext="m3u" ;; application/xspf*) ext="xspf" ;; */x-ms-asf) ext="asx" ;; esac fi case $ext in xspf|XSPF) cat "${playlist_file}" ;; m3u|M3U) if [ -f "${playlist_file}" ]; then awk -f $BASEPATH/bin/m3u2xspf -v name="$name" -v path="$path" -v ext="$ext" "${playlist_file}" else echo "<?xml version='1.0' encoding='UTF-8'?>" echo "<playlist version='1' xmlns='http://xspf.org/ns/0/'>" echo "<title><![CDATA[$playlist_file not found]]></title>" echo "</playlist>" fi ;; pls|PLS) if [ -f "${playlist_file}" ]; then awk -f $BASEPATH/bin/pls2xspf -v name="$name" -v path="$path" -v ext="$ext" "${playlist_file}" else echo "<?xml version='1.0' encoding='UTF-8'?>" echo "<playlist version='1' xmlns='http://xspf.org/ns/0/'>" echo "<title><![CDATA[$playlist_file not found]]></title>" echo "</playlist>" fi ;; cue|CUE) if [ -f "${playlist_file}" ]; then awk -f $BASEPATH/bin/cue2xspf -v path="$path" "${playlist_file}" else echo "<?xml version='1.0' encoding='UTF-8'?>" echo "<playlist version='1' xmlns='http://xspf.org/ns/0/'>" echo "<title><![CDATA[$playlist_file not found]]></title>" echo "</playlist>" fi ;; asx|ASX|asf|ASF) if [ -f "${playlist_file}" ]; then if grep -qsi "\[reference\]" ${playlist_file}; then cat "${playlist_file}" | awk '{gsub(/\t/," ");gsub(/\r/,"");sub(/^\s*/,"");sub(/\s*$/,"");print}' | awk -f $BASEPATH/bin/asf2xspf -v name="$name" -v path="$path" else cat "${playlist_file}" | awk '{gsub(/\t/," ");gsub(/\r/,"");print}' | sed 's/>[ \n]*</>\n</g;s/ *>/>/g;s/^ *//;s/ *$//' | awk -f $BASEPATH/bin/asx2xspf -v name="$name" -v path="$path" fi else echo "<?xml version='1.0' encoding='UTF-8'?>" echo "<playlist version='1' xmlns='http://xspf.org/ns/0/'>" echo "<title><![CDATA[$playlist_file not found]]></title>" echo "</playlist>" fi ;; *) echo "<?xml version='1.0' encoding='UTF-8'?>" echo "<playlist version='1' xmlns='http://xspf.org/ns/0/'>" echo "<title>Unknown playlist format</title>" echo "</playlist>" ;; esac return 0 } command_text() { check_stream echo "Content-type: text/plain" echo echo "Protocol: $protocol" echo "Type: $stream_type" echo "Stream url: $stream_url" echo "Host: $host" echo "Host response: $host_response" echo "Server type: $server_type" echo echo "$buf" echo return 0 } command_info() { if [ "$arg_cmd" == "status" ]; then check_server else check_stream fi echo "Content-type: text/xml" echo echo "<?xml version='1.0' encoding='UTF-8'?>" echo "<info>" escaped_url="`echo $stream_url | sed 's/&/&amp;/g'`" if [ "$protocol" == "http" -o "$protocol" == "mms" -o "$protocol" == "mmsh" -o "$protocol" == "rtsp" ]; then escaped_url="`echo $escaped_url | sed 's/ /%20/g'`" fi echo "<stream url=\"$escaped_url\" type=\"$stream_type\" class=\"$stream_class\" protocol=\"$protocol\" server=\"$server_type\" server_url=\"$stream_status_url\" />" case $stream_class in audio|video) echo "<status>" meta_server_status= meta_stream_status= meta_stream_bitrate= meta_stream_title= meta_stream_genre= meta_content_type= meta_listeners= meta_listener_peak= meta_average_listener_time= meta_current_song= meta_stream_description= if [ -n "$stream_status_url" -a -f "$TMPFILE" ]; then if grep -q -s -i "charset=utf-8" ${TMPFILE}; then : else $TOUTF8 <${TMPFILE} >${TMPFILE}.utf8 && mv -f ${TMPFILE}.utf8 ${TMPFILE} fi case $server_type in shoutcast) meta_server_status=`get_shoutcast_item 'Server Status'` meta_stream_status=`get_shoutcast_item 'Stream Status'` meta_stream_bitrate=`echo "$value" | sed 's/.*is up at //' | awk '{print $1}'` meta_stream_title=`get_shoutcast_item 'Stream Title'` meta_stream_genre=`get_shoutcast_item 'Stream Genre'` meta_content_type=`get_shoutcast_item 'Content Type'` meta_listeners=`echo "$value" | sed 's/.*with //' | awk '{print $1}'` meta_listener_peak=`get_shoutcast_item 'Listener Peak'` meta_average_listener_time=`get_shoutcast_item 'Average Listen Time'` meta_current_song=`get_shoutcast_item 'Current Song'` meta_stream_description='' ;; icecast) mount_point=`echo "$stream_url" | sed 's/\//\n/g' | sed -n '$p' | sed 's/ *$//'` if grep -q -s "/${mount_point}" ${TMPFILE}; then sed -e 's/<[^<>]*>/\n/g' ${TMPFILE} | sed 's/^ *//' | sed '/^ *$/d' | sed 's/&amp;/&/g;s/&nbsp;/ /g;s/&lt;/</g;s/&gt;/>/g' | sed "1,/[Mm]ount [Pp]oint.*${mount_point}/d" | sed '/[mM]ount [pP]oint/,$d' | sed '/upport icecast development/,$d' > ${TMPFILE}.$$ mv -f $TMPFILE.$$ $TMPFILE meta_server_status='' meta_stream_status=`get_icecast_item 'Mount started'` meta_stream_bitrate=`get_icecast_item 'Bitrate'` meta_stream_title=`get_icecast_item 'Stream Title'` meta_stream_genre=`get_icecast_item 'Stream Genre'` meta_content_type=`get_icecast_item 'Content Type'` meta_listeners=`get_icecast_item 'Current Listeners'` meta_listener_peak=`get_icecast_item 'Peak Listeners'` meta_average_listener_time='' meta_current_song=`get_icecast_item 'Current Song'` meta_stream_description='' fi ;; station.ru) meta_current_song=`echo "$host_response" | awk '/"Artist"/{match($0, /"Artist":"([^"]+)".*"Song":"([^"]+)"/, arr);print arr[1] " - " arr[2];}'` ;; esac fi if echo "$stream_status_url" | grep -qsi "^icyx://"; then meta_current_song=`awk -v streamurl="$stream_url" -v statusurl="$stream_status_url" ' BEGIN { match(statusurl, /^icyx:\/\/(.*):(.*)$/, arr); host_ip = arr[1]; host_port = arr[2]; match(streamurl, /^([^:]*):\/\/([^\/]*)(.*)$/, arr); host = arr[2]; path = arr[3]; if (path == "") path = "/"; HttpService = "/inet/tcp/0/" host_ip "/" host_port ORS = "\n\n" print "GET " path " HTTP/1.0" "\nHost: " host "\nAccept: */*" "\nIcy-MetaData: 1" |& HttpService ORS = "\n" RS = "\r?\n\r?\n" HttpService |& getline Header if(match(Header, /icy-metaint: *([0-9]*)/, arr)) { metaint = strtonum(arr[1]); RS = "\0" counter = 0; while(counter < metaint) { HttpService |& getline counter = counter + length($0) + 1 } if(metaint != counter + 1) { split($0, a, "\x27;"); if(match(a[1], /^.*StreamTitle=\x27(.*)/, arr)) { print arr[1]; } } } close(HttpService) } '` if echo "$meta_current_song" | $TOUTF8 -t; then meta_current_song=`echo "$meta_current_song" | $XCODE -s | $TOUTF8` fi fi case $protocol in http|rtmp) meta_stream_title=${meta_stream_title:-"$icy_name"} meta_stream_genre=${meta_stream_genre:-"$icy_genre"} meta_stream_bitrate=${meta_stream_bitrate:-"$icy_br"} meta_stream_description=${meta_stream_description:-"$icy_description"} ;; mmst|mmsh|rtsp) if [ -n "$ms_author" -a -n "$ms_title" ]; then if [ "$ms_author" != "$ms_title" ]; then meta_stream_title="$ms_title / $ms_author" else meta_stream_title="$ms_title" fi else meta_stream_title="$ms_title$ms_author" fi ;; esac if echo "$meta_stream_title" | $TOUTF8 -t; then meta_stream_title=`echo "$meta_stream_title" | $XCODE -s | $TOUTF8` fi if echo "$meta_stream_genre" | $TOUTF8 -t; then meta_stream_genre=`echo "$meta_stream_genre" | $XCODE -s | $TOUTF8` fi if echo "$meta_stream_description" | $TOUTF8 -t; then meta_stream_description=`echo "$meta_stream_description" | $XCODE -s | $TOUTF8` fi print_status_item 'server-status' "${meta_server_status}" print_status_item 'stream-status' "$meta_stream_status" print_status_item 'listener-peak' "$meta_listener_peak" print_status_item 'average-listener-time' "$meta_average_listener_time" print_status_item 'stream-title' "$meta_stream_title" print_status_item 'content-type' "$meta_content_type" print_status_item 'stream-genre' "$meta_stream_genre" print_status_item 'current-song' "$meta_current_song" print_status_item 'stream-bitrate' "$meta_stream_bitrate" print_status_item 'stream-description' "$meta_stream_description" print_status_item 'listeners' "$meta_listeners" echo "</status>" rm -f ${TMPFILE} ;; playlist) if echo "$icy_name" | $TOUTF8 -t; then icy_name=`echo "$icy_name" | $XCODE -s | $TOUTF8` fi if [ -n "$icy_name" ]; then echo "<status>" print_status_item 'stream-title' "$icy_name" echo "</status>" fi ;; esac echo "</info>" return 0 } command_scan() { echo "Content-type: text/xml" echo echo "<?xml version='1.0' encoding='UTF-8'?>" echo "<playlist version='1' xmlns='http://xspf.org/ns/0/'>" echo "<title>Playlists</title>" echo "<trackList>" if [ -f "${XSPFSCAN}" ]; then for path in `cat "${XSPFSCAN}"` do path=`echo "$path" | sed 's/\/*$//'` if [ -d "${path}" ]; then ls -1 ${path}/*.xspf ${path}/*.m3u ${path}/*.pls 2>/dev/null | awk '\ { title=a[split($0, a, "/")]; match($0, /.*\.([^.\/]+)$/, arr); ext = tolower(arr[1]); print "<track><title><![CDATA[" title "]]></title><location><![CDATA[" $0 "]]></location><meta rel=\"protocol\">file</meta><meta rel=\"ext\">" ext "</meta></track>"; } ' fi done fi echo "</trackList>" echo "</playlist>" return 0 } command_ls() { get_opt "Filter" filter=${opt:="$DEFAULTFILTER"} get_opt "Chroot" isroot=$opt echo "Content-type: text/xml" echo echo "<?xml version='1.0' encoding='UTF-8'?>" echo "<playlist version='1' xmlns='http://xspf.org/ns/0/'>" echo "<title><![CDATA[${arg_url}]]></title>" echo "<trackList>" if [ -d "${arg_url}" ]; then /bin/ls -1l "${arg_url}" 2>/dev/null | awk -v path="${arg_url}" ' function resolvesymlink(s, dirpath) { match(s, /^[^ ]+ *([^ ]+ *[^ ]+ *[^ ]+ *[^ ]+ *[^ ]+ *.+ *-> *)(.+)$/, src); current = s; currentpath = dirpath; while(current ~ /^l/) { match(current, /^[^ ]+ *([^ ]+ *[^ ]+ *[^ ]+ *[^ ]+ *[^ ]+ *.+ *-> *)(.+)$/, arr); if(arr[2] !~ /^\// ) { match(currentpath, /(.*\/)[^\/]*\/*$/, dirarr); currentpath = dirarr[1] arr[2]; } else { currentpath = arr[2]; } lscmd = "ls -1ld " currentpath " 2>/dev/null"; ERRNO = 0; lscmd |& getline current; close(lscmd); if(ERRNO != 0) return ""; } match(current, /^([^ ]+ *)[^ ]+ *[^ ]+ *[^ ]+ *[^ ]+ *[^ ]+ *(.+)$/, arr); return arr[1] src[1] currentpath; } $0 ~ /^l/ { s = resolvesymlink($0, path); if(s != "") print s; } $0 ~ /^(d|-)/ { print $0; } ' > $TMPFILE awk -v path="${arg_url}" -v isroot="$isroot" ' BEGIN { if(path !~ /\/$/) { path = path "/"; } if(isroot != "yes") { match(path, /(.*\/)[^\/]+\/$/, arr); location=arr[1]; title=".."; if(location != "") { print "<track><title><![CDATA[" title "]]></title><location><![CDATA[" location "]]></location>"; print "<meta rel=\"class\">directory</meta><meta rel=\"protocol\">file</meta></track>"; } } } $1 ~ /^d/ { match($0, /^[^ ]+ *[^ ]+ *[^ ]+ *[^ ]+ *[^ ]+ *[^ ]+ *(.+)$/, arr); title=arr[1]; if(title ~ /->/) { match(title, /^(.+) +-> +(.+)$/, arr); location=arr[2]; title=arr[1]; } else { location=path arr[1]; } if(location !~ /\/$/) { location=location "/"; } print "<track><title><![CDATA[/" title "/]]></title><location><![CDATA[" location "]]></location>"; print "<meta rel=\"class\">directory</meta><meta rel=\"protocol\">file</meta></track>"; } ' $TMPFILE awk -v path="${arg_url}" -v filter="$filter" ' BEGIN { if(path !~ /\/$/) { path = path "/"; } } $1 ~ /^-/ { match($0, /^[^ ]+ *[^ ]+ *[^ ]+ *[^ ]+ *[^ ]+ *[^ ]+ *(.+)$/, arr); title=arr[1]; if(title ~ /->/) { match(title, /^(.+) +-> +(.+)$/, arr); location=arr[2]; title=arr[1]; } else { location=path arr[1]; } match(location, /.*\.([^.\/]+)$/, arr); ext = tolower(arr[1]); if(ext ~ filter) { match(location, /^(.+):\/\//, arr); protocol = tolower(arr[1]); if(protocol == "") protocol = "file"; print "<track><title><![CDATA[" title "]]></title>"; print "<location><![CDATA[" location "]]></location>"; print "<meta rel=\"ext\">" ext "</meta><meta rel=\"protocol\">" protocol "</meta></track>"; } } ' $TMPFILE rm -f $TMPFILE fi echo "</trackList>" echo "</playlist>" return 0 } command_lsftp() { get_opt "Charset" charset=$opt get_opt "Filter" filter=${opt:="$DEFAULTFILTER"} get_opt "Chroot" isroot=$opt echo "Content-type: text/xml" echo echo "<?xml version='1.0' encoding='UTF-8'?>" echo "<playlist version='1' xmlns='http://xspf.org/ns/0/'>" echo "<title><![CDATA[${arg_url}]]></title>" echo "<trackList>" $MSDL --ftp-list -q -o $TMPFILE "${arg_url}" 2>/dev/null if [ -f $TMPFILE ]; then ICONV= [ "$charset" == "CP1251" ] && ICONV=$TOUTF8 awk -v path="${arg_url}" -v toutf8="$ICONV" -v charset="$charset" -v isroot="$isroot" ' function iconv(s) { if(toutf8 == "") return s; print s |& toutf8; close(toutf8, "to"); toutf8 |& getline line; close(toutf8); return line; } BEGIN { if(path !~ /\/$/) { path = path "/"; } if(isroot != "yes") { match(path, /^(ftp:\/\/.+\/)[^\/]+\/$/, arr); location=arr[1]; title=".."; if(location != null) { print "<track><title><![CDATA[" title "]]></title><location><![CDATA[" location "]]></location>"; if(charset != "") print "<meta rel=\"translate\">Charset:" charset "</meta>"; print "<meta rel=\"class\">directory</meta><meta rel=\"protocol\">ftp</meta></track>"; } } } $1 ~ /^d/ { match($0, /^[^ ]+ *[^ ]+ *[^ ]+ *[^ ]+ *[^ ]+ *[^ ]+ *[^ ]+ *[^ ]+ *(.+)[\n\r]+$/, arr); location=path arr[1] "/"; title=arr[1]; print "<track><title><![CDATA[/" iconv(title) "/]]></title><location><![CDATA[" location "]]></location>"; if(charset != "") print "<meta rel=\"translate\">Charset:" charset "</meta>"; print "<meta rel=\"class\">directory</meta><meta rel=\"protocol\">ftp</meta></track>"; } ' $TMPFILE awk -v path="${arg_url}" -v toutf8="$ICONV" -v filter="$filter" ' function iconv(s) { if(toutf8 == "") return s; print s |& toutf8; close(toutf8, "to"); toutf8 |& getline line; close(toutf8); return line; } BEGIN { if(path !~ /\/$/) { path = path "/"; } } $1 ~ /^-/ { match($0, /^[^ ]+ *[^ ]+ *[^ ]+ *[^ ]+ *[^ ]+ *[^ ]+ *[^ ]+ *[^ ]+ *(.+)[\n\r]+$/, arr); title=arr[1]; location=path title; match(location, /.*\.([^.\/]+)$/, arr); ext = tolower(arr[1]); if(ext ~ filter) { match(location, /^(.+):\/\//, arr); protocol = tolower(arr[1]); if(protocol == "") protocol = "file"; print "<track><title><![CDATA[" iconv(title) "]]></title>"; print "<location><![CDATA[" location "]]></location>"; print "<meta rel=\"ext\">" ext "</meta><meta rel=\"protocol\">" protocol "</meta></track>"; } } ' $TMPFILE rm -f $TMPFILE fi echo "</trackList>" echo "</playlist>" return 0 } command_random() { echo "Content-type: text/xml" echo echo "<?xml version='1.0' encoding='UTF-8'?>" echo "<randomList>" awk -v count=${arg_opt} -v start=${arg_url} ' BEGIN { srand(); r=start; seq[r]=0; print "<item>" r "</item>"; for(i=1;i<count;i++) { do { r=int(count*rand()); } while(r in seq); seq[r]=i; print "<item>" r "</item>"; } exit; } ' echo "</randomList>" return 0 } check_server() { if echo "$stream_status_url" | grep -q -s -i "^icyx://"; then stream_class='audio'; server_type='x-cast'; else host_response=`$MSDL -q -o ${TMPFILE} -p http --useragent "${USERAGENT}" --stream-timeout 30 "$stream_status_url" 2>&1` if [ -f ${TMPFILE} ]; then stream_class='audio'; if grep -q -s -i "[^a-z]icecast[^a-z]" ${TMPFILE}; then server_type='icecast' host_response=`cat ${TMPFILE}` elif grep -q -s -i "[^a-z]shoutcast[^a-z]" ${TMPFILE}; then server_type='shoutcast' host_response=`cat ${TMPFILE}` elif echo "$stream_status_url" | grep -q -s -i "[^a-z]station.ru[^a-z]"; then server_type='station.ru' host_response=`cat ${TMPFILE}` fi fi fi } command_translit() { echo "Content-type: text/xml" echo echo "<?xml version='1.0' encoding='UTF-8'?>" echo -n "<string><![CDATA[" from_translit "$arg_url" echo "]]></string>" return 0 } case ${arg_cmd} in text) command_text ;; info) command_info ;; stream|audio|video|image) get_opt "Protocol" case $opt in mms|mmst|mmsh|http|rtsp|ftp) msdlopt='-p $opt' ;; *) msdlopt='' esac get_opt "Bandwidth" [ -z "$opt" -a -n "$NET_BANDWIDTH" ] && opt=$NET_BANDWIDTH [ -n "$opt" ] && msdlopt="$msdlopt -b $opt" get_opt "Speed" [ -n "$opt" ] && msdlopt="$msdlopt -s $opt" get_opt "User-agent" [ -n "$opt" ] && msdlopt="$msdlopt --useragent \"$opt\"" get_opt "Charset" charset=$opt if [ -z "$stream_type" ]; then local TIMELIFE=${STREAM_INFO_TIMELIFE:-60} local CACHEFILE=$CACHEPATH/stream.`echo $arg_url | sed 's/[^0-9a-zA-Z]/_/g'` local tsttime let tsttime=`date +%s`-$TIMELIFE if [ -f $CACHEFILE ]; then if [ `date +%s -r $CACHEFILE` -gt $tsttime ]; then stream_url=`sed -ne "1p" $CACHEFILE` stream_type=`sed -ne "2p" $CACHEFILE` arg_opt=`sed -ne "3p" $CACHEFILE` fi fi if [ -z "$stream_type" ]; then check_stream echo $stream_url > $CACHEFILE echo $stream_type >> $CACHEFILE echo $arg_opt >> $CACHEFILE fi fi echo "Content-type: $stream_type" echo if echo "$stream_url" | grep -qs "^rtmp"; then get_opt "Rtmp-options" killall -q $RTMPDUMP 2>&1 exec nice /usr/local/etc/www/cgi-bin/scripts/rtmpdump -q -v -o - -b 60000 -r "$stream_url" $opt elif [ "$charset" == "CP1251" ]; then $MSDL $msdlopt -q -o - "$stream_url" | $TOUTF8 | sed 's/windows-125./utf-8/' else exec $MSDL $msdlopt -q -o - "$stream_url" fi ;; random) command_random ;; status) stream_url=$arg_url stream_status_url=$arg_opt command_info ;; flac) get_opt "Flac-skip" flac_skip=$opt get_opt "Flac-until" flac_until=$opt echo "Content-type: audio/wav" echo exec $FLAC -d -c --skip="$flac_skip" --until="$flac_until" --totally-silent "$stream_url" ;; directory) if echo "${arg_url}" | grep -q -s "^ftp:\/\/.*\/$"; then command_lsftp elif echo "${arg_url}" | grep -q -s "^/.*/$"; then command_ls fi ;; translit) command_translit ;; playlist|startpoint) if [ "$arg_cmd" == "startpoint" ]; then arg_url="$STARTPOINT" fi if echo "${arg_url}" | grep -q -s "^ftp:\/\/.*\/$"; then command_lsftp elif echo "${arg_url}" | grep -q -s "^/.*/$"; then command_ls elif [ -z "${arg_url}" ]; then command_scan else command_playlist fi ;; renderer) echo "$arg_url" > "/tmp/xspf_renderer.dat" echo "$arg_opt" >> "/tmp/xspf_renderer.dat" echo "Content-type: text/plain" echo ;; renderer-*) echo "{${arg_cmd}}" > "/tmp/xspf_renderer.dat" echo "Content-type: text/plain" echo ;; download) echo "Content-type: text/xml" echo echo "<success/>" exec $MSDL -q -o "$arg_opt" "$stream_url" ;; app) if [ -f $TRANSLATE/app/$arg_url ]; then . $TRANSLATE/app/$arg_url fi ;; app/*) if [ -f $TRANSLATE/$arg_cmd ]; then . $TRANSLATE/$arg_cmd fi ;; scan|*) command_scan ;; esac
1073s
trunk/util/translate.cgi
Shell
gpl3
41,017
#!/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> showIdle(); last_idx=0; ntest = 0; ref = 1; executeScript("updateItems"); redrawDisplay(); SetFocusItemIndex(0); setRefreshTime(100); </onEnter> <updateItems> xmlfile = "http://127.0.0.1/cgi-bin/scripts/util/download.php"; download_ok = loadXMLFile( xmlfile ); itemSize = getXMLElementCount("video","item"); print("Item Size = ", itemSize); titleArray=""; nameArray=""; logfileArray=""; downloadArray=""; download1Array=""; imageArray=""; if (itemSize &gt; 0) { count=1; while(1) { title = getXMLText("video","item", count-1, "title"); name = getXMLText("video","item", count-1, "name"); logfile = getXMLText("video","item", count-1, "logfile"); download = getXMLText("video","item", count-1, "download"); download1 = getXMLText("video","item", count-1, "download1"); image = getXMLText("video","item", count-1, "image"); titleArray = pushBackStringArray(titleArray, title); nameArray = pushBackStringArray(nameArray, name); logfileArray = pushBackStringArray(logfileArray, logfile); downloadArray = pushBackStringArray(downloadArray, download); download1Array = pushBackStringArray(download1Array, download1); imageArray = pushBackStringArray(imageArray, image); count += 1; if (count &gt; itemSize) { break; } } } </updateItems> <onExit> setRefreshTime(-1); </onExit> <onRefresh> ntest = ntest + 1; if (ntest &gt; 95 &amp;&amp; ntest &lt; 100 &amp;&amp; ref == 1) { showIdle(); ref = 0; postMessage("edit"); cancelIdle(); } else if (ntest &gt; 100) { executeScript("updateItems"); SetFocusItemIndex(last_idx); ntest = 0; ref = 1; } </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemXPC="5" itemYPC="25" itemWidthPC="90" itemHeightPC="8" itemImageWidthPC="0" itemImageHeightPC="0" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" 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="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"> Folositi tastele: 1=Sterge din lista 2=start/stop 3=opreste/sterge toate </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))+itemSize;</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> <image> <script> getStringArrayAt(imageArray, -1); </script> <offsetXPC>0</offsetXPC> <offsetYPC>5</offsetYPC> <widthPC>8</widthPC> <heightPC>90</heightPC> </image> <text offsetXPC=10 offsetYPC=0 widthPC=90 heightPC=100 fontSize=15 backgroundColor=-1:-1:-1 foregroundColor=250:250:250 align=left> <script> getStringArrayAt(titleArray, -1); </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> userInput = currentUserInput(); focusIndex = getFocusItemIndex(); last_idx = focusIndex; if (userInput == "display" || userInput == "DISPLAY") { redrawDisplay("yes"); setRefreshTime(100); ret = "false"; } if( userInput == "two" || userInput == "2") { setRefreshTime(-1); d1= getStringArrayAt(downloadArray, focusIndex); dlok = loadXMLFile(d1); last_idx=0; executeScript("updateItems"); setRefreshTime(100); redrawDisplay(); SetFocusItemIndex(0); } else if (userInput == "one" || userInput == "1") { setRefreshTime(-1); d1= getStringArrayAt(download1Array, focusIndex); dlok = loadXMLFile(d1); last_idx=0; executeScript("updateItems"); setRefreshTime(100); redrawDisplay(); SetFocusItemIndex(0); } else if (userInput == "three" || userInput == "3") { setRefreshTime(-1); d1="http://127.0.0.1/cgi-bin/scripts/util/stop_exua.cgi"; dlok = loadXMLFile(d1); last_idx=0; executeScript("updateItems"); setRefreshTime(100); redrawDisplay(); SetFocusItemIndex(0); } ret; </onUserInput> </mediaDisplay> <item_template> </item_template> <channel> <title>Download Manager</title> <itemSize> <script> itemSize; </script> </itemSize> </channel> </rss>
1073s
trunk/util/level.php
PHP
gpl3
6,305
#!/bin/sh cat <<EOF Content-type: video/flv EOF exec /usr/local/etc/translate/bin/rtmpdump -q -v -b 60000 -W http://static.seeon.tv/jwplayer/seeon-plugin.swf -p http://www.seeon.tv -r `echo $QUERY_STRING|sed "s_\&amp;_\&_g"`
1073s
trunk/util/seeon.cgi
Shell
gpl3
226
#!/bin/sh # Dreambox Live c_param1=`echo $QUERY_STRING | cut -d'&' -f1 | cut -d= -f1` c_value1=`echo $QUERY_STRING | cut -d'&' -f1 | cut -d= -f2` echo "Content-type: text/html" echo echo "<html><head>" echo "<title>repoman xLive</title>" echo "<link type='text/css' rel='stylesheet' href='/cube_web_management.css' />" echo "</head>" echo "<body>" echo "<h1>repoman xLive</h1><hr><br>" if [ $c_value1 = "install" ] then if [ -e /tmp/hdd/volumes/HDD1 ] then storage=/tmp/hdd/volumes/HDD1 loc="HDD" elif [ -e /tmp/usbmounts/sda1 ] then storage=/tmp/usbmounts/sda1 loc="USB1" elif [ -e /tmp/usbmounts/sdb1 ] then storage=/tmp/usbmounts/sdb1 loc="USB1" elif [ -e /tmp/usbmounts/sdc1 ] then storage=/tmp/usbmounts/sdc1 loc="USB1" elif [ -e /tmp/usbmounts/sda2 ] then storage=/tmp/usbmounts/sda2 loc="USB2" elif [ -e /tmp/usbmounts/sdb2 ] then storage=/tmp/usbmounts/sdb2 loc="USB2" elif [ -e /tmp/usbmounts/sdc2 ] then storage=/tmp/usbmounts/sdc2 loc="USB2" elif [ -e /tmp/usbmounts/sda ] then storage=/tmp/usbmounts/sda loc="USB" elif [ -e /tmp/usbmounts/sdb ] then storage=/tmp/usbmounts/sdb loc="USB" fi if [ -e $storage ] then echo "<h2>Install repoman Xlive on " $storage "</h2><br>" rm -f $storage/xlive.zip cd $storage wget -q http://hdforall.googlecode.com/files/xlive.zip -O xlive.zip if [ -f $storage/xlive.zip ] then echo "download OK....<br>" #remove scripts rm -rf $storage/xLive/repoman/* echo "unzip.....<br>" unzip -q -o xlive.zip rm -f $storage/xlive.zip cd /usr/local/etc rm -f xLive ln -s $storage/xLive xLive echo "<h3>Install OK! Enjoy</h3>" else echo "<h3>Can not install repoman xLive!<br>Check network.</h3>" fi fi fi ############################################ ############################################ echo "<br></body></html>"
1073s
trunk/util/xlive.cgi
Shell
gpl3
1,881
#!/bin/sh cat <<EOF Content-type: video/mp4 EOF exec /sbin/wget --limit-rate=500k -O - `echo $QUERY_STRING|sed "s_\&amp;_\&_g"`
1073s
trunk/util/mozhay.cgi
Shell
gpl3
129
#!/usr/local/bin/Resource/www/cgi-bin/php <?php $file=$_GET["file"]; if(preg_match('/youtube\.com\/(v\/|watch\?v=)([\w\-]+)/', $file, $match)) {; $id = $match[2]; $link="http://www.youtube.com/watch?v=".$id; $html=file_get_contents($link); $html = urldecode($html); $h=explode('fmt_stream_map',$html); $html=urldecode($h[1]); $videos = explode('url=', $html); for ($i=0;$i<count($videos);$i++) { $t1=explode(";", $videos[$i]); $link=$t1[0]; $t1=explode("itag=",$link); $t2=explode("&",$t1[1]); $tip=$t2[0]; if ($tip=="22") break; if ($tip=="18") break; } } print $link; ?>
1073s
trunk/util/yt1.php
PHP
gpl3
619
#!/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" xmlns:dc="http://purl.org/dc/elements/1.1/"> <onEnter> xmlurl = "http://127.0.0.1/cgi-bin/setting.cgi?mode=ftp"; ret = getUrl(xmlurl); </onEnter> <mediaDisplay name="threePartsView" itemBackgroundColor="0:0:0" backgroundColor="0:0:0" sideLeftWidthPC="0" itemImageXPC="5" itemXPC="20" itemYPC="20" itemWidthPC="65" capWidthPC="70" unFocusFontColor="101:101:101" focusFontColor="255:255:255" idleImageXPC="45" idleImageYPC="42" idleImageWidthPC="20" idleImageHeightPC="26"> <idleImage>image/busy1.png</idleImage> <idleImage>image/busy2.png</idleImage> <idleImage>image/busy3.png</idleImage> <idleImage>image/busy4.png</idleImage> <idleImage>image/busy5.png</idleImage> <idleImage>image/busy6.png</idleImage> <idleImage>image/busy7.png</idleImage> <idleImage>image/busy8.png</idleImage> <backgroundDisplay> <image offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> image/mele/backgd.jpg </image> </backgroundDisplay> <image offsetXPC=0 offsetYPC=2.8 widthPC=100 heightPC=15.6> image/mele/rss_title.jpg </image> <text offsetXPC=40 offsetYPC=8 widthPC=35 heightPC=10 fontSize=20 backgroundColor=-1:-1:-1 foregroundColor=255:255:255> Start-Stop FTP Server </text> <text offsetXPC=5 offsetYPC=20 widthPC=90 heightPC=8 fontSize=16 backgroundColor=-1:-1:-1 foregroundColor=200:200:200> <script> apas_status; </script> </text> <text offsetXPC=5 offsetYPC=25 widthPC=90 heightPC=50 fontSize=16 lines=10 backgroundColor=-1:-1:-1 foregroundColor=200:200:200> <script> ret; </script> </text> </mediaDisplay> <channel> <title>FTP Tools</title> </channel> </rss>
1073s
trunk/util/ftp_start_stop.php
PHP
gpl3
1,771
#!/usr/local/bin/Resource/www/cgi-bin/php <?php $file=$_GET["file"]; if(preg_match('/youtube\.com\/(v\/|watch\?v=)([\w\-]+)/', $file, $match)) {; $id = $match[2]; $link="http://www.youtube.com/watch?v=".$id; $html=file_get_contents($link); $html = urldecode($html); $h=explode('fmt_stream_map',$html); $html=urldecode($h[1]); $videos = explode('url=', $html); for ($i=0;$i<count($videos);$i++) { $t1=explode(";", $videos[$i]); $link=$t1[0]; $t1=explode("itag=",$link); $t2=explode("&",$t1[1]); $tip=$t2[0]; if ($tip=="22") break; if ($tip=="18") break; } } print $link; ?>
1073s
trunk/util/yt.php
PHP
gpl3
619
#!/usr/local/bin/Resource/www/cgi-bin/php <?php function changeext($directory) { $num = 0; if($curdir = opendir($directory)) { while($file = readdir($curdir)) { if($file != '.' && $file != '..') { $srcfile = $directory . '/' . $file; if(!is_dir($srcfile)) { if (strpos($srcfile, 'cgi_bin_translate_stream') !== false) { $data = date("d.m-H.i.s"); $newfile = $data."-".$num.".flv"; $dstfile = $directory . '/' . $newfile; $fileHand = fopen($srcfile, 'r'); fclose($fileHand); rename($srcfile, $dstfile ); $num ++; } } } } closedir($curdir); } return $num; } $movie_dir = "/tmp/hdd/volumes/HDD1/movie"; if (is_dir($movie_dir)) { changeext($movie_dir); } $movie_dir = "/tmp/hdd/volumes/HDD2/movie"; if (is_dir($movie_dir)) { changeext($movie_dir); } $movie_dir = "/tmp/usbmounts/sdb1/movie"; if (is_dir($movie_dir)) { changeext($movie_dir); } $movie_dir = "/tmp/usbmounts/sdb2/movie"; if (is_dir($movie_dir)) { changeext($movie_dir); } $movie_dir = "/tmp/usbmounts/sda1/movie"; if (is_dir($movie_dir)) { changeext($movie_dir); } $movie_dir = "/tmp/usbmounts/sda2/movie"; if (is_dir($movie_dir)) { changeext($movie_dir); } echo "<?xml version='1.0' ?>"; ?> <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"> <mediaDisplay name="threePartsView" itemBackgroundColor="0:0:0" backgroundColor="0:0:0" sideLeftWidthPC="0" itemImageXPC="5" itemXPC="20" itemYPC="20" itemWidthPC="65" capWidthPC="70" unFocusFontColor="101:101:101" focusFontColor="255:255:255" 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> <backgroundDisplay> <image offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> image/mele/backgd.jpg </image> </backgroundDisplay> <image offsetXPC=0 offsetYPC=2.8 widthPC=100 heightPC=15.6> image/mele/rss_title.jpg </image> <text offsetXPC=40 offsetYPC=8 widthPC=35 heightPC=10 fontSize=20 backgroundColor=-1:-1:-1 foregroundColor=255:255:255> Redenumire fişiere descărcate </text> <text offsetXPC=5 offsetYPC=30 widthPC=90 heightPC=10 fontSize=16 backgroundColor=-1:-1:-1 foregroundColor=200:200:200> Fişierele descărcate au fost redenumite </text> </mediaDisplay> <channel> <title>Redenumire fişiere</title> </channel> </rss>
1073s
trunk/util/ren.php
PHP
gpl3
2,807
#!/bin/sh cat <<EOF Content-type: video/flv EOF exec /usr/local/etc/www/cgi-bin/scripts/rtmpdump -q -b 60000 -v -W http://static1.mediadirect.ro/player-preload/swf/preloader/preloader.swf -r `echo $QUERY_STRING|sed "s_\&amp;_\&_g"`
1073s
trunk/util/mediadirect.cgi
Shell
gpl3
233
#!/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); } error_reporting(0); exec ("rm -f /tmp/test.xml"); $file = $_GET["file"]; $file=urldecode($file); $ttxml ="<subtitrare>"."\n"; $full_line = ''; $last_end=0; $html = file_get_contents($file); $videos = explode('<p', $html); unset($videos[0]); $videos = array_values($videos); $n=1; foreach($videos as $video) { $t1=explode('begin="',$video); $t2=explode('"',$t1[1]); $start=$t2[0]; $time1=explode(":",$start); $begin = 60*$time1[0] + $time1[1]; $t1=explode('end="',$video); $t2=explode('"',$t1[1]); $endtime=$t2[0]; $time1=explode(":",$endtime); $end = 60*$time1[0] + $time1[1]; $f = "/usr/local/bin/home_menu"; if (!file_exists($f)) { if ($begin > $last_end) { $ttxml .="<sub>"."\n"; $ttxml .="<time1>".$last_end."</time1>"."\n"; $ttxml .="<time2>".$begin."</time2>"."\n"; $ttxml .="<line1></line1>"."\n"; $ttxml .="<line2></line2>"."\n"; $ttxml .="</sub>"."\n\n"; } $last_end=$end; } $line=str_between($t1[1],">","</p"); $l=explode("<br/>",$line); $line1=$l[0]; $line2=$l[1]; $line1 = trim(preg_replace("/<(.*)>|(\{(.*)\})/e","",$line1)); $line2 = trim(preg_replace("/<(.*)>|(\{(.*)\})/e","",$line2)); if ($line2=="") { $line2=$line1; $line1=""; } $ttxml .="<sub>"."\n"; $ttxml .="<time1>".$begin."</time1>"."\n"; $ttxml .="<time2>".$end."</time2>"."\n"; $ttxml .="<line1>".$line1."</line1>"."\n"; $ttxml .="<line2>".$line2."</line2>"."\n"; $ttxml .="</sub>"."\n\n"; } $ttxml .="</subtitrare>"; $new_file = "/tmp/test.xml"; $fh = fopen($new_file, 'w'); fwrite($fh, $ttxml); fclose($fh); ?>
1073s
trunk/util/xml_xml.php
PHP
gpl3
1,788
#!/usr/local/bin/Resource/www/cgi-bin/php <?php clearstatcache(); if (file_exists("/tmp/usbmounts/sda1/download")) { $dir = "/tmp/usbmounts/sda1/download/log/*log"; } elseif (file_exists("/tmp/usbmounts/sdb1/download")) { $dir = "/tmp/usbmounts/sdb1/download/log/*log"; } elseif (file_exists("/tmp/usbmounts/sdc1/download")) { $dir = "/tmp/usbmounts/sdc1/download/log/*log"; } elseif (file_exists("/tmp/usbmounts/sda2/download")) { $dir = "/tmp/usbmounts/sda2/download/log/*log"; } elseif (file_exists("/tmp/usbmounts/sdb2/download")) { $dir = "/tmp/usbmounts/sdb2/download/log/*log"; } elseif (file_exists("/tmp/usbmounts/sdc2/download")) { $dir = "/tmp/usbmounts/sdc1/download/log/*log"; } elseif (file_exists("/tmp/hdd/volumes/HDD1/download")) { $dir = "/tmp/hdd/root/log/*log"; } else { $dir = ""; } echo "<video>"; if ($dir <> "") { $file_list = glob($dir); for ($i=0; $i< count($file_list); $i++) { $log_file = file($file_list[$i]); $t1 = explode('/log/', $file_list[$i]); $t1 = explode('.log', $t1[1]); $log = $log_file[count($log_file) -4]; $t3 = explode("K", $log); $t4 = substr($log, -25); $t5 = explode("%", $log); $end = substr($t5[0], -3); if (strpos($log_file,"saved") === true) { $end = "100"; } $t0 = $i+1; //pid $pd = "/tmp/".$t1[0].".pid"; $pid_file = file($pd); $pid = explode('pid ', $pid_file[0]); $pid = explode('.', $pid[1]); //url $log_url = $log_file[0]; $url = explode('http://', $log_url); $link = str_replace("\r","",$url[1]); $link = str_replace("\n","",$link); $link = 'http://'.$link; //title $title = $t0.'. '. $t1[0].' - '.$t3[0].'KB'.$t4; echo ' <item> <title>'.$title.'</title>'; echo '<name>'.$t1[0].'</name>'; echo '<logfile>'.$file_list[$i].'</logfile>'; if ($end != "100") { if (!$pid_file) echo ' <download>http://127.0.0.1/cgi-bin/scripts/util/manag.cgi?link='.$link.';name='.$t1[0].';go=start</download> <download1>http://127.0.0.1/cgi-bin/scripts/util/manag.cgi?name='.$t1[0].';go=delete</download1> <image>/usr/local/etc/www/cgi-bin/scripts/util/image/off.jpg</image>'; else echo ' <download>http://127.0.0.1/cgi-bin/scripts/util/manag.cgi?pid='.$pid[0].';name='.$t1[0].';go=stop</download> <download1>http://127.0.0.1/cgi-bin/scripts/util/manag.cgi?name='.$t1[0].';go=delete</download1> <image>/usr/local/etc/www/cgi-bin/scripts/util/image/on.jpg</image>'; } else echo ' <download>http://127.0.0.1/cgi-bin/scripts/util/manag.cgi?name='.$t1[0].';go=delete</download> <download1>http://127.0.0.1/cgi-bin/scripts/util/manag.cgi?name='.$t1[0].';go=delete</download1> <image>/usr/local/etc/www/cgi-bin/scripts/util/image/end.jpg</image>'; echo ' </item> '; } } echo "</video>"; ?>
1073s
trunk/util/download.php
PHP
gpl3
2,692
#!/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> showIdle(); last_idx=0; ntest = 0; ref = 1; executeScript("updateItems"); redrawDisplay(); SetFocusItemIndex(0); setRefreshTime(100); </onEnter> <updateItems> xmlfile = "http://127.0.0.1/cgi-bin/scripts/util/download.php"; download_ok = loadXMLFile( xmlfile ); itemSize = getXMLElementCount("video","item"); print("Item Size = ", itemSize); titleArray=""; nameArray=""; logfileArray=""; downloadArray=""; download1Array=""; imageArray=""; if (itemSize &gt; 0) { count=1; while(1) { title = getXMLText("video","item", count-1, "title"); name = getXMLText("video","item", count-1, "name"); logfile = getXMLText("video","item", count-1, "logfile"); download = getXMLText("video","item", count-1, "download"); download1 = getXMLText("video","item", count-1, "download1"); image = getXMLText("video","item", count-1, "image"); titleArray = pushBackStringArray(titleArray, title); nameArray = pushBackStringArray(nameArray, name); logfileArray = pushBackStringArray(logfileArray, logfile); downloadArray = pushBackStringArray(downloadArray, download); download1Array = pushBackStringArray(download1Array, download1); imageArray = pushBackStringArray(imageArray, image); count += 1; if (count &gt; itemSize) { break; } } } </updateItems> <onExit> setRefreshTime(-1); </onExit> <onRefresh> ntest = ntest + 1; if (ntest &gt; 95 &amp;&amp; ntest &lt; 100 &amp;&amp; ref == 1) { showIdle(); ref = 0; postMessage("edit"); cancelIdle(); } else if (ntest &gt; 100) { executeScript("updateItems"); SetFocusItemIndex(last_idx); ntest = 0; ref = 1; } </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemXPC="5" itemYPC="25" itemWidthPC="90" itemHeightPC="8" itemImageWidthPC="0" itemImageHeightPC="0" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" 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="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"> Folositi tastele: 1=Sterge din lista 2=start/stop 3=opreste/sterge toate </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))+itemSize;</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> <image> <script> getStringArrayAt(imageArray, -1); </script> <offsetXPC>0</offsetXPC> <offsetYPC>5</offsetYPC> <widthPC>8</widthPC> <heightPC>90</heightPC> </image> <text offsetXPC=10 offsetYPC=0 widthPC=90 heightPC=100 fontSize=15 backgroundColor=-1:-1:-1 foregroundColor=250:250:250 align=left> <script> getStringArrayAt(titleArray, -1); </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> userInput = currentUserInput(); focusIndex = getFocusItemIndex(); last_idx = focusIndex; if (userInput == "display" || userInput == "DISPLAY") { redrawDisplay("yes"); setRefreshTime(100); ret = "false"; } if( userInput == "two" || userInput == "2") { setRefreshTime(-1); d1= getStringArrayAt(downloadArray, focusIndex); dlok = loadXMLFile(d1); last_idx=0; executeScript("updateItems"); setRefreshTime(100); redrawDisplay(); SetFocusItemIndex(0); } else if (userInput == "one" || userInput == "1") { setRefreshTime(-1); d1= getStringArrayAt(download1Array, focusIndex); dlok = loadXMLFile(d1); last_idx=0; executeScript("updateItems"); setRefreshTime(100); redrawDisplay(); SetFocusItemIndex(0); } else if (userInput == "three" || userInput == "3") { setRefreshTime(-1); d1="http://127.0.0.1/cgi-bin/scripts/util/stop_exua.cgi"; dlok = loadXMLFile(d1); last_idx=0; executeScript("updateItems"); setRefreshTime(100); redrawDisplay(); SetFocusItemIndex(0); } ret; </onUserInput> </mediaDisplay> <item_template> </item_template> <channel> <title>Download Manager</title> <itemSize> <script> itemSize; </script> </itemSize> </channel> </rss>
1073s
trunk/util/.svn/text-base/level.php.svn-base
PHP
gpl3
6,305
#!/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" xmlns:dc="http://purl.org/dc/elements/1.1/"> <onEnter> xmlurl = "http://127.0.0.1/cgi-bin/setting.cgi?mode=filme"; ret = getUrl(xmlurl); </onEnter> <mediaDisplay name="threePartsView" itemBackgroundColor="0:0:0" backgroundColor="0:0:0" sideLeftWidthPC="0" itemImageXPC="5" itemXPC="20" itemYPC="20" itemWidthPC="65" capWidthPC="70" unFocusFontColor="101:101:101" focusFontColor="255:255:255" idleImageXPC="45" idleImageYPC="42" idleImageWidthPC="20" idleImageHeightPC="26"> <idleImage>image/busy1.png</idleImage> <idleImage>image/busy2.png</idleImage> <idleImage>image/busy3.png</idleImage> <idleImage>image/busy4.png</idleImage> <idleImage>image/busy5.png</idleImage> <idleImage>image/busy6.png</idleImage> <idleImage>image/busy7.png</idleImage> <idleImage>image/busy8.png</idleImage> <backgroundDisplay> <image offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> image/mele/backgd.jpg </image> </backgroundDisplay> <image offsetXPC=0 offsetYPC=2.8 widthPC=100 heightPC=15.6> image/mele/rss_title.jpg </image> <text offsetXPC=40 offsetYPC=8 widthPC=35 heightPC=10 fontSize=20 backgroundColor=-1:-1:-1 foregroundColor=255:255:255> Actualizare filme_link.php </text> <text offsetXPC=5 offsetYPC=20 widthPC=90 heightPC=8 fontSize=16 backgroundColor=-1:-1:-1 foregroundColor=200:200:200> <script> apas_status; </script> </text> <text offsetXPC=5 offsetYPC=25 widthPC=90 heightPC=50 fontSize=16 lines=10 backgroundColor=-1:-1:-1 foregroundColor=200:200:200> <script> ret; </script> </text> </mediaDisplay> <channel> <title>Actualizare filme_link</title> </channel> </rss>
1073s
trunk/util/.svn/text-base/filme.php.svn-base
PHP
gpl3
1,791
#!/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" xmlns:dc="http://purl.org/dc/elements/1.1/"> <onEnter> xmlurl = "http://127.0.0.1/cgi-bin/setting.cgi?mode=ftp"; ret = getUrl(xmlurl); </onEnter> <mediaDisplay name="threePartsView" itemBackgroundColor="0:0:0" backgroundColor="0:0:0" sideLeftWidthPC="0" itemImageXPC="5" itemXPC="20" itemYPC="20" itemWidthPC="65" capWidthPC="70" unFocusFontColor="101:101:101" focusFontColor="255:255:255" idleImageXPC="45" idleImageYPC="42" idleImageWidthPC="20" idleImageHeightPC="26"> <idleImage>image/busy1.png</idleImage> <idleImage>image/busy2.png</idleImage> <idleImage>image/busy3.png</idleImage> <idleImage>image/busy4.png</idleImage> <idleImage>image/busy5.png</idleImage> <idleImage>image/busy6.png</idleImage> <idleImage>image/busy7.png</idleImage> <idleImage>image/busy8.png</idleImage> <backgroundDisplay> <image offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> image/mele/backgd.jpg </image> </backgroundDisplay> <image offsetXPC=0 offsetYPC=2.8 widthPC=100 heightPC=15.6> image/mele/rss_title.jpg </image> <text offsetXPC=40 offsetYPC=8 widthPC=35 heightPC=10 fontSize=20 backgroundColor=-1:-1:-1 foregroundColor=255:255:255> Start-Stop FTP Server </text> <text offsetXPC=5 offsetYPC=20 widthPC=90 heightPC=8 fontSize=16 backgroundColor=-1:-1:-1 foregroundColor=200:200:200> <script> apas_status; </script> </text> <text offsetXPC=5 offsetYPC=25 widthPC=90 heightPC=50 fontSize=16 lines=10 backgroundColor=-1:-1:-1 foregroundColor=200:200:200> <script> ret; </script> </text> </mediaDisplay> <channel> <title>FTP Tools</title> </channel> </rss>
1073s
trunk/util/.svn/text-base/ftp_start_stop.php.svn-base
PHP
gpl3
1,771
#!/bin/sh DISK=`echo "$QUERY_STRING" | sed -n 's/^.*sda=\([^;]*\).*$/\1/p' | sed "s/%20/ /g"` LINK=`echo "$QUERY_STRING" | sed -n 's/^.*link=\([^;]*\).*$/\1/p' | sed "s/%20/ /g"` NAME=`echo "$QUERY_STRING" | sed -n 's/^.*name=\([^;]*\).*$/\1/p' | sed "s/%20/ /g"` if [ -n "$DISK"] then if [ -d /tmp/usbmounts/sda1/download ] then loc=/tmp/usbmounts/sda1/download loclog=/tmp/usbmounts/sda1/download elif [ -d /tmp/usbmounts/sdb1/download ] then loc=/tmp/usbmounts/sdb1/download loclog=/tmp/usbmounts/sdb1/download elif [ -d /tmp/usbmounts/sdc1/download ] then loc=/tmp/usbmounts/sdc1/download loclog=/tmp/usbmounts/sdc1/download elif [ -d /tmp/usbmounts/sda2/download ] then loc=/tmp/usbmounts/sda2/download loclog=/tmp/usbmounts/sda2/download elif [ -d /tmp/usbmounts/sdb2/download ] then loc=/tmp/usbmounts/sdb2/download loclog=/tmp/usbmounts/sdb2/download elif [ -d /tmp/usbmounts/sdc2/download ] then loc=/tmp/usbmounts/sdc2/download loclog=/tmp/usbmounts/sdc2/download elif [ -d /tmp/hdd/volumes/HDD1 ] then loc=/tmp/hdd/volumes/HDD1/download loclog=/tmp/hdd/root else loc='' loclog='' fi mkdir $loc cd $loc mkdir $loclog/log /sbin/wget --progress=dot:mega -k -bc -a $loclog/log/$NAME.log -O $NAME "$LINK" > /tmp/$NAME.pid else cd /tmp/usbmounts/sda$DISK wget -bq -O $NAME $LINK fi
1073s
trunk/util/.svn/text-base/download.cgi.svn-base
Shell
gpl3
1,307