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' ?>"; $host = "http://127.0.0.1/cgi-bin"; $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $page = $queryArr[0]; $search = $queryArr[1]; $tit = urldecode($queryArr[2]); } clearstatcache(); if (file_exists("/tmp/usbmounts/sda1/download")) { $dir = "/tmp/usbmounts/sda1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdb1/download")) { $dir = "/tmp/usbmounts/sdb1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdc1/download")) { $dir = "/tmp/usbmounts/sdc1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sda2/download")) { $dir = "/tmp/usbmounts/sda2/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdb2/download")) { $dir = "/tmp/usbmounts/sdb2/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdc2/download")) { $dir = "/tmp/usbmounts/sdc1/download/log/"; } elseif (file_exists("/tmp/hdd/volumes/HDD1/download")) { $dir = "/tmp/hdd/root/log/"; } else { $dir = ""; } ?> <rss version="2.0"> <onEnter> startitem = "middle"; 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) { rss = readStringFromFile(log_file); count = 0; while(1) { l= getStringArrayAt(rss,count); count += 1; if(l == null) { titlu = getStringArrayAt(rss,count-3); break; } } } </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 align="left" offsetXPC="6" offsetYPC="15" widthPC="100" heightPC="4" fontSize="16" backgroundColor="10:105:150" foregroundColor="100:200:255"> Apăsaţi 2 pentru download, 3 pentru Download Manager </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="center" redraw="yes" lines="8" fontSize=17 offsetXPC=55 offsetYPC=58 widthPC=40 heightPC=38 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(titlu); titlu;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=25 widthPC=30 heightPC=25> <script>print(img); img;</script> </image> <idleImage> image/POPUP_LOADING_01.png </idleImage> <idleImage> image/POPUP_LOADING_02.png </idleImage> <idleImage> image/POPUP_LOADING_03.png </idleImage> <idleImage> image/POPUP_LOADING_04.png </idleImage> <idleImage> image/POPUP_LOADING_05.png </idleImage> <idleImage> image/POPUP_LOADING_06.png </idleImage> <idleImage> image/POPUP_LOADING_07.png </idleImage> <idleImage> image/POPUP_LOADING_08.png </idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { img = getItemInfo(idx,"image"); annotation = getItemInfo(idx, "annotation"); titlu = 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(); ret="true"; } else if (userInput == "two" || userInput == "2") { showIdle(); url="<?php echo $host; ?>" + "/scripts/clip/php/top1_link.php?file=" + getItemInfo(getFocusItemIndex(),"download"); movie=getUrl(url); topUrl = "http://127.0.0.1/cgi-bin/scripts/util/download.cgi?link=" + movie + ";name=" + getItemInfo(getFocusItemIndex(),"name"); dlok = loadXMLFile(topUrl); cancelIdle(); do_down=1; log_file="<?php echo $dir; ?>" + getItemInfo(getFocusItemIndex(),"name") + ".log"; setRefreshTime(2000); ret="true"; } else if (userInput == "three" || userInput == "3") { jumpToLink("destination"); ret="true"; } else { 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 $tit; ?></title> <menu>main menu</menu> <?php //http://www.top1.ro/video/2/ $html=file_get_contents($search.$page); if($page > 1) { ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page-1).","; if($search) { $url = $url.$search.",".urlencode($tit); } ?> <title>Previous Page</title> <link><?php echo $url;?></link> <annotation>Pagina anterioara</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="panou_thumbs','<div'); $videos = explode('src="', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t2 = explode('"', $video); $image = $t2[0]; $title = str_between($video,'class="p">','<'); $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $link = $t2[0]; $descriere=$title; $name = preg_replace('/[^A-Za-z0-9_]/','_',$title).".flv"; if($title <> "") { echo ' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); url="'.$host.'/scripts/clip/php/top1_link.php?file='.$link.'"; movie=getUrl(url); cancelIdle(); playItemUrl(movie,10); </script> </onClick> <download>'.$link.'</download> <name>'.$name.'</name> <annotation>'.$descriere.'</annotation> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> </item> '; } } ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page+1).","; if($search) { $url = $url.$search.",".urlencode($tit); } ?> <title>Next Page</title> <link><?php echo $url;?></link> <annotation>Pagina urmatoare</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/clip/php/.svn/text-base/top1.php.svn-base
PHP
gpl3
8,795
#!/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); $page = $queryArr[0]; $search = $queryArr[1]; $tit=urldecode($queryArr[2]); } ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text align="left" offsetXPC="6" offsetYPC="15" widthPC="100" heightPC="4" fontSize="16" backgroundColor="10:105:150" foregroundColor="100:200:255"> Apăsaţi 2 pentru download, 3 pentru Download Manager </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="justify" redraw="yes" lines="8" fontSize=17 offsetXPC=55 offsetYPC=58 widthPC=40 heightPC=38 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <text redraw="yes" align="left" offsetXPC="55" offsetYPC="52" widthPC="15" heightPC="5" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(durata); durata;</script> </text> <text redraw="yes" align="left" offsetXPC="72" offsetYPC="52" widthPC="23" heightPC="5" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(pub); pub;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(titlu); titlu;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=25 widthPC=30 heightPC=25> <script>print(img); img;</script> </image> <idleImage> image/POPUP_LOADING_01.png </idleImage> <idleImage> image/POPUP_LOADING_02.png </idleImage> <idleImage> image/POPUP_LOADING_03.png </idleImage> <idleImage> image/POPUP_LOADING_04.png </idleImage> <idleImage> image/POPUP_LOADING_05.png </idleImage> <idleImage> image/POPUP_LOADING_06.png </idleImage> <idleImage> image/POPUP_LOADING_07.png </idleImage> <idleImage> image/POPUP_LOADING_08.png </idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { img = getItemInfo(idx,"image"); annotation = getItemInfo(idx, "annotation"); durata = getItemInfo(idx, "durata"); pub = getItemInfo(idx, "pub"); titlu = 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"; } if (userInput == "two" || userInput == "2") { showIdle(); url="<?php echo $host; ?>" + "/scripts/clip/php/dm_link.php?file=" + getItemInfo(getFocusItemIndex(),"download"); movie=getUrl(url); cancelIdle(); topUrl = "http://127.0.0.1/cgi-bin/scripts/util/download.cgi?link=" + movie + ";name=" + getItemInfo(getFocusItemIndex(),"name"); dlok = loadXMLFile(topUrl); "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 $search = str_replace(' ','+',$search); if($page) { $html = file_get_contents($search."/".$page."/"); } else { $page = 1; $html = file_get_contents($search."/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.",".urlencode($tit); } ?> <title>Previous Page</title> <link><?php echo $url;?></link> <annotation>Pagina anterioara</annotation> <durata></durata> <pub></pub> <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); } function getRewriteString($string) { $string = htmlentities($string); $string = preg_replace("/&amp;(.)(acute|cedil|circ|ring|tilde|uml|horn);/", "$1", $string); return $string; } $videos = explode('<div class="dmpi_video_preview', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $link = 'http://www.dailymotion.com'.$t2[0]; $t1 = explode('data-src="', $video); $t2 = explode('?', $t1[1]); $image = $t2[0]; $t1 = explode('title="', $video); $t2 = explode('"', $t1[1]); $title = $t2[0]; if ($title == "") $title="Video..."; $title = str_replace("&nbsp;","",$title); $title = str_replace("&amp;","&",$title); $title = getRewriteString($title); /** $title = htmlentities($title); $title = str_replace("&ccedil;","&#231;",$title); $title = str_replace("&amp;#305;","&#305;",$title); $title = str_replace("&ordm;","s",$title); $title = str_replace("&Ordm;","S",$title); $title = str_replace("&thorn;","t",$title); $title = str_replace("&Thorn;","T",$title); $title = str_replace("&icirc;","i",$title); $title = str_replace("&Icirc;","I",$title); $title = str_replace("&atilde;","a",$title); $title = str_replace("&Atilde;","I",$title); $title = str_replace("&ordf;","S",$title); $title = str_replace("&acirc;","a",$title); $title = str_replace("&Acirc;","A",$title); $title = str_replace("&Auml;","a",$title); $title = str_replace("&amp;icirc;","a",$title); $title = str_replace("&amp;atilde;","a",$title); $title = str_replace("&amp;Icirc;","I",$title); $title = str_replace("&amp;acirc;","a",$title); **/ $t1=explode('class="duration">',$video); $t2=explode('<',$t1[1]); $durata = "Durata:".$t2[0]; $t1=explode('class="dmco_date">',$video); $t2=explode('<',$t1[1]); $pub="Data:".$t2[0]; $t1=explode('class="dmpi_video_description foreground">',$video); $t2=explode('</div>',$t1[1]); $descriere=$t2[0]; $descriere = preg_replace("/(<\/?)(\w+)([^>]*>)/e","",$descriere); $descriere = str_replace("&nbsp;","",$descriere); $name = preg_replace('/[^A-Za-z0-9_]/','_',$title).".mp4"; echo ' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); url="'.$host.'/scripts/clip/php/dm_link.php?file='.$link.'"; movie=getUrl(url); cancelIdle(); playItemUrl(movie,10); </script> </onClick> <download>'.$link.'</download> <name>'.$name.'</name> <annotation>'.$descriere.'</annotation> <image>'.$image.'</image> <durata>'.$durata.'</durata> <pub>'.$pub.'</pub> <media:thumbnail url="'.$image.'" /> </item> '; } ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page+1).","; if($search) { $url = $url.$search.",".urlencode($tit); } ?> <title>Next Page</title> <link><?php echo $url;?></link> <annotation>Pagina urmatoare</annotation> <durata></durata> <pub></pub> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/clip/php/.svn/text-base/dm.php.svn-base
PHP
gpl3
10,106
#!/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); $page = $queryArr[0]; $search = urldecode($queryArr[1]); $tit = urldecode($queryArr[2]); } clearstatcache(); if (file_exists("/tmp/usbmounts/sda1/download")) { $dir = "/tmp/usbmounts/sda1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdb1/download")) { $dir = "/tmp/usbmounts/sdb1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdc1/download")) { $dir = "/tmp/usbmounts/sdc1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sda2/download")) { $dir = "/tmp/usbmounts/sda2/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdb2/download")) { $dir = "/tmp/usbmounts/sdb2/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdc2/download")) { $dir = "/tmp/usbmounts/sdc1/download/log/"; } elseif (file_exists("/tmp/hdd/volumes/HDD1/download")) { $dir = "/tmp/hdd/root/log/"; } else { $dir = ""; } ?> <rss version="2.0"> <onEnter> startitem = "middle"; 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) { rss = readStringFromFile(log_file); count = 0; while(1) { l= getStringArrayAt(rss,count); count += 1; if(l == null) { titlu = getStringArrayAt(rss,count-3); break; } } } </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text align="left" offsetXPC="6" offsetYPC="15" widthPC="100" heightPC="4" fontSize="16" backgroundColor="10:105:150" foregroundColor="100:200:255"> Apăsaţi 2 pentru download, 3 pentru Download Manager </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="center" redraw="yes" lines="8" fontSize=17 offsetXPC=55 offsetYPC=58 widthPC=40 heightPC=38 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <text redraw="yes" align="center" offsetXPC="60" offsetYPC="52" widthPC="30" heightPC="5" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(durata); durata;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(titlu); titlu;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=25 widthPC=30 heightPC=25> <script>print(img); img;</script> </image> <idleImage> image/POPUP_LOADING_01.png </idleImage> <idleImage> image/POPUP_LOADING_02.png </idleImage> <idleImage> image/POPUP_LOADING_03.png </idleImage> <idleImage> image/POPUP_LOADING_04.png </idleImage> <idleImage> image/POPUP_LOADING_05.png </idleImage> <idleImage> image/POPUP_LOADING_06.png </idleImage> <idleImage> image/POPUP_LOADING_07.png </idleImage> <idleImage> image/POPUP_LOADING_08.png </idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { img = getItemInfo(idx,"image"); annotation = getItemInfo(idx, "annotation"); durata = getItemInfo(idx, "durata"); pub = getItemInfo(idx, "pub"); titlu = 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(); ret="true"; } else if (userInput == "two" || userInput == "2") { showIdle(); url="<?php echo $host; ?>" + "/scripts/clip/php/trilulilu_link.php?file=" + getItemInfo(getFocusItemIndex(),"download"); movie=getUrl(url); topUrl = "http://127.0.0.1/cgi-bin/scripts/util/download.cgi?link=" + movie + ";name=" + getItemInfo(getFocusItemIndex(),"name"); dlok = loadXMLFile(topUrl); cancelIdle(); do_down=1; log_file="<?php echo $dir; ?>" + getItemInfo(getFocusItemIndex(),"name") + ".log"; setRefreshTime(2000); ret="true"; } else if (userInput == "three" || userInput == "3") { jumpToLink("destination"); ret="true"; } else { 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 $tit; ?></title> <menu>main menu</menu> <?php //http://cauta.trilulilu.ro/video/funny%20clip?offset=16 $search1 = str_replace(" ","%20",$search); $page1=16*($page-1); $html=file_get_contents("http://cauta.trilulilu.ro/video/".$search1."?offset=".$page1); if($page > 1) { ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page-1).","; if($search) { $url = $url.urlencode($search).",".urlencode($tit); } ?> <title>Previous Page</title> <link><?php echo $url;?></link> <annotation>Pagina anterioara</annotation> <image>image/left.jpg</image> <mediaDisplay name="threePartsView"/> </item> <?php } ?> <?php $videos = explode('div class="item', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $link = $t2[0]; $t3 = explode('title="', $video); $t2 = explode('"', $t3[1]); $title = trim($t2[0]); $title = str_replace("&nbsp;","",$title); $title = str_replace('&quot;',"",$title); $title=html_entity_decode($title,ENT_QUOTES, "UTF-8"); $t1 = explode('src="', $video); $t2 = explode('"', $t1[1]); $image = $t2[0]; if (strpos($image,"pixel.gif") !== false) { $image="/usr/local/etc/www/cgi-bin/scripts/clip/image/trilulilu.png"; } $descriere=$title; $t1=explode('class="duration">',$video); $t2=explode('<',$t1[1]); $durata="Durata:".trim($t2[0]); $name = preg_replace('/[^A-Za-z0-9_]/','_',$title).".flv"; if ((strpos($title,"Vizion") === false) && ($title <> "")) { echo ' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); url="'.$host.'/scripts/clip/php/trilulilu_link.php?file='.$link.'"; movie=getUrl(url); cancelIdle(); playItemUrl(movie,10); </script> </onClick> <download>'.$link.'</download> <name>'.$name.'</name> <annotation>'.$descriere.'</annotation> <image>'.$image.'</image> <durata>'.$durata.'</durata> <media:thumbnail url="'.$image.'" /> </item> '; } } ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page+1).","; if($search) { $url = $url.urlencode($search).",".urlencode($tit); } ?> <title>Next Page</title> <link><?php echo $url;?></link> <annotation>Pagina urmatoare</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/clip/php/.svn/text-base/trilulilu_s.php.svn-base
PHP
gpl3
9,635
#!/usr/local/bin/Resource/www/cgi-bin/php <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $link = $_GET["file"]; $html = file_get_contents($link); $link1=str_between($html,"video_tag.attr('src', '","'"); if ($link1 == "") { $link1=str_between($html,'src: "','"'); } print $link1; ?>
1073s
trunk/clip/php/.svn/text-base/funnyordie_link.php.svn-base
PHP
gpl3
474
#!/usr/local/bin/Resource/www/cgi-bin/php <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $link = $_GET["file"]; $html = file_get_contents($link); $link = urldecode(str_between($html, "file=", "&")); print $link; ?>
1073s
trunk/clip/php/.svn/text-base/viatalaserviciu_link.php.svn-base
PHP
gpl3
415
#!/usr/local/bin/Resource/www/cgi-bin/php <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $link = $_GET["file"]; $html = file_get_contents($link); $t1 = explode('videoURL=', $html); $t2 = explode('&preview', $t1[1]); $link = urldecode($t2[0]); print $link; ?>
1073s
trunk/clip/php/.svn/text-base/220_link.php.svn-base
PHP
gpl3
451
#!/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); $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" 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" > <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=35 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</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"> Apăsaţi 2 pentru download, 3 pentru Download Manager </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") { topUrl = "http://127.0.0.1/cgi-bin/scripts/util/download.cgi?link=" + getItemInfo(getFocusItemIndex(),"download") + ";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 //http://vimeo.com/user4936621/videos/page:2/sort:newest //http://vimeo.com/user4936621/videos/page:1/sort:newest if($page) { $html = file_get_contents("http://vimeo.com/user".$search."/videos/page:".$page."/sort:newest"); } else { $page = 1; $html = file_get_contents("http://vimeo.com/user".$search."/videos/page:".$page."/sort:newest"); } 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 anterioara</annotation> <image>image/left.jpg</image> <mediaDisplay name="threePartsView"/> </item> <?php } ?> <?php if (strpos($html,'<div class="item') !== false) { $videos = explode('<div class="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('src="', $video); $t2 = explode('"', $t1[1]); $image = $t2[0]; $t1 = explode('<div class="title">', $video); $t2 = explode('>', $t1[1]); $t3 = explode('<', $t2[1]); $title = $t3[0]; $title = trim($title); if ($title <> "") { $link = "http://127.0.0.1/cgi-bin/translate?stream,HD:1,http://vimeo.com".$link; $name = preg_replace('/[^A-Za-z0-9_]/','_',$title).".mp4"; echo' <item> <title>'.$title.'</title> <onClick>playItemURL("'.$link.'", 10);</onClick> <download>'.$link.'</download> <name>'.$name.'</name> <annotation>'.$title.'</annotation> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } } elseif (strpos($html,'<div class="clip">') !== false) { $videos = explode('<div class="clip">', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"',$t1[2]); $link = $t2[0]; $t1 = explode('src="', $video); $t2 = explode('"', $t1[1]); $image = $t2[0]; $t1 = explode('class="b', $video); $t0 = explode(">",$t1[1]); $t2 = explode('<', $t0[1]); $title = $t2[0]; $title = trim($title); if ($title <> "") { $link = "http://127.0.0.1/cgi-bin/translate?stream,HD:1,http://vimeo.com/".$link; $name = preg_replace('/[^A-Za-z0-9_]/','_',$title).".mp4"; echo' <item> <title>'.$title.'</title> <onClick>playItemURL("'.$link.'", 10);</onClick> <download>'.$link.'</download> <name>'.$name.'</name> <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 urmatoare</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/clip/php/.svn/text-base/vimeo2.php.svn-base
PHP
gpl3
8,479
#!/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); $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" > <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="justify" redraw="yes" lines="8" fontSize=17 offsetXPC=55 offsetYPC=58 widthPC=40 heightPC=38 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <text redraw="yes" align="left" offsetXPC="55" offsetYPC="52" widthPC="15" heightPC="5" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(durata); durata;</script> </text> <text redraw="yes" align="left" offsetXPC="72" offsetYPC="52" widthPC="30" heightPC="5" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(pub); pub;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(titlu); titlu;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=25 widthPC=30 heightPC=25> <script>print(img); img;</script> </image> <idleImage> image/POPUP_LOADING_01.png </idleImage> <idleImage> image/POPUP_LOADING_02.png </idleImage> <idleImage> image/POPUP_LOADING_03.png </idleImage> <idleImage> image/POPUP_LOADING_04.png </idleImage> <idleImage> image/POPUP_LOADING_05.png </idleImage> <idleImage> image/POPUP_LOADING_06.png </idleImage> <idleImage> image/POPUP_LOADING_07.png </idleImage> <idleImage> image/POPUP_LOADING_08.png </idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { img = getItemInfo(idx,"image"); annotation = getItemInfo(idx, "annotation"); durata = getItemInfo(idx, "durata"); pub = getItemInfo(idx, "pub"); titlu = 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"; } if (userInput == "two" || userInput == "2") { showIdle(); url="<?php echo $host; ?>" + "/scripts/clip/php/viatalaserviciu_link.php?file=" + getItemInfo(getFocusItemIndex(),"download"); movie=getUrl(url); cancelIdle(); topUrl = "http://127.0.0.1/cgi-bin/scripts/util/download.cgi?link=" + movie + ";name=" + getItemInfo(getFocusItemIndex(),"name"); dlok = loadXMLFile(topUrl); "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>viatalaserviciu.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("http://www.viatalaserviciu.ro/video.php?page=".$page."&viewtype=&category=mr"); } else { $page = 1; $html = file_get_contents("http://www.viatalaserviciu.ro/video.php?page=1&viewtype=&category=mr"); } 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 anterioara</annotation> <durata></durata> <pub></pub> <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="listchannel">', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('<a 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]); $descriere = $t2[0]; $title=$descriere; $t1=explode('<span class="duration">',$video); $t2=explode('<',$t1[1]); $durata="Durata:".$t2[0]; $t1=explode('span class="info">',$video); $t2=explode('<br',$t1[1]); $pub = trim(preg_replace("/(<\/?)(\w+)([^>]*>)/e","",$t2[0])); $name = preg_replace('/[^A-Za-z0-9_]/','_',$title).".flv"; echo ' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); url="'.$host.'/scripts/clip/php/viatalaserviciu_link.php?file='.$link.'"; movie=getUrl(url); cancelIdle(); playItemUrl(movie,10); </script> </onClick> <download>'.$link.'</download> <name>'.$name.'</name> <annotation>'.$descriere.'</annotation> <image>'.$image.'</image> <durata>'.$durata.'</durata> <pub>'.$pub.'</pub> <media:thumbnail url="'.$image.'" /> </item> '; } ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page+1).","; if($search) { $url = $url.$search; } ?> <title>Next Page</title> <link><?php echo $url;?></link> <annotation>Pagina urmatoare</annotation> <durata></durata> <pub></pub> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/clip/php/.svn/text-base/viatalaserviciu.php.svn-base
PHP
gpl3
8,696
#!/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); $page = $queryArr[0]; $search = $queryArr[1]; $tit = urldecode($queryArr[2]); } clearstatcache(); if (file_exists("/tmp/usbmounts/sda1/download")) { $dir = "/tmp/usbmounts/sda1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdb1/download")) { $dir = "/tmp/usbmounts/sdb1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdc1/download")) { $dir = "/tmp/usbmounts/sdc1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sda2/download")) { $dir = "/tmp/usbmounts/sda2/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdb2/download")) { $dir = "/tmp/usbmounts/sdb2/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdc2/download")) { $dir = "/tmp/usbmounts/sdc1/download/log/"; } elseif (file_exists("/tmp/hdd/volumes/HDD1/download")) { $dir = "/tmp/hdd/root/log/"; } else { $dir = ""; } ?> <rss version="2.0"> <onEnter> startitem = "middle"; 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) { rss = readStringFromFile(log_file); count = 0; while(1) { l= getStringArrayAt(rss,count); count += 1; if(l == null) { titlu = getStringArrayAt(rss,count-3); break; } } } </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text align="left" offsetXPC="6" offsetYPC="15" widthPC="100" heightPC="4" fontSize="16" backgroundColor="10:105:150" foregroundColor="100:200:255"> Apăsaţi 2 pentru download, 3 pentru Download Manager </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="center" redraw="yes" lines="8" fontSize=17 offsetXPC=55 offsetYPC=58 widthPC=40 heightPC=38 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <text redraw="yes" align="center" offsetXPC="60" offsetYPC="52" widthPC="30" heightPC="5" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(durata); durata;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(titlu); titlu;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=25 widthPC=30 heightPC=25> <script>print(img); img;</script> </image> <idleImage> image/POPUP_LOADING_01.png </idleImage> <idleImage> image/POPUP_LOADING_02.png </idleImage> <idleImage> image/POPUP_LOADING_03.png </idleImage> <idleImage> image/POPUP_LOADING_04.png </idleImage> <idleImage> image/POPUP_LOADING_05.png </idleImage> <idleImage> image/POPUP_LOADING_06.png </idleImage> <idleImage> image/POPUP_LOADING_07.png </idleImage> <idleImage> image/POPUP_LOADING_08.png </idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { img = getItemInfo(idx,"image"); annotation = getItemInfo(idx, "annotation"); durata = getItemInfo(idx, "durata"); pub = getItemInfo(idx, "pub"); titlu = 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(); ret="true"; } else if (userInput == "two" || userInput == "2") { showIdle(); url="<?php echo $host; ?>" + "/scripts/clip/php/220_link.php?file=" + getItemInfo(getFocusItemIndex(),"download"); movie=getUrl(url); topUrl = "http://127.0.0.1/cgi-bin/scripts/util/download.cgi?link=" + movie + ";name=" + getItemInfo(getFocusItemIndex(),"name"); dlok = loadXMLFile(topUrl); cancelIdle(); do_down=1; log_file="<?php echo $dir; ?>" + getItemInfo(getFocusItemIndex(),"name") + ".log"; setRefreshTime(2000); ret="true"; } else if (userInput == "three" || userInput == "3") { jumpToLink("destination"); ret="true"; } else { 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 $tit; ?></title> <menu>main menu</menu> <?php if($page) { $html = file_get_contents($search.$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.",".urlencode($tit); } ?> <title>Previous Page</title> <link><?php echo $url;?></link> <annotation>Pagina anterioara</annotation> <image>image/left.jpg</image> <mediaDisplay name="threePartsView"/> </item> <?php } ?> <?php //<div class="tabel if (strpos($html,'<div class="tabel') !==false) { $videos = explode('<div class="tabel', $html); } else { $videos = explode('<div class="lista', $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]; if (strpos($image,"pixel.gif") !==false) { $image="/usr/local/etc/www/cgi-bin/scripts/clip/image/220.jpg"; } $t1=explode('data-href="',$video); $t2=explode('"',$t1[1]); $i=$t2[0]; if ($i <> "") { $image=$i; } $t1 = explode(' title="', $video); $t2 = explode('"', $t1[1]); $title = $t2[0]; $t1=explode('<p class="descriere_film">',$video); $t2=explode("</p>",$t1[1]); $descriere=$t2[0]; $t1=explode('<span class="th_durata">',$video); $t2=explode('<',$t1[1]); $durata="Durata:".trim($t2[0]); $name = preg_replace('/[^A-Za-z0-9_]/','_',$title).".flv"; if (strpos($link,"play_from=playlist") === false) { echo ' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); url="'.$host.'/scripts/clip/php/220_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/x-flv); streamArray = pushBackStringArray(streamArray, "'.$title.'"); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file:///usr/local/etc/www/cgi-bin/scripts/util/videoRenderer.rss"); </script> </onClick> <download>'.$link.'</download> <name>'.$name.'</name> <annotation>'.$descriere.'</annotation> <image>'.$image.'</image> <durata>'.$durata.'</durata> <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 urmatoare</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/clip/php/.svn/text-base/220.php.svn-base
PHP
gpl3
10,375
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" > <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="8" fontSize=17 offsetXPC=55 offsetYPC=58 widthPC=40 heightPC=38 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(descriere); descriere;</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> <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) { img = getItemInfo(idx,"image"); annotation = getItemInfo(idx, "title"); descriere = getItemInfo(idx, "descriere"); } 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>220.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("http://www.220.ro/shows/".$page); } else { $page = 1; $html = file_get_contents("http://www.220.ro/shows/"); } 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 anterioara</annotation> <image>image/left.jpg</image> <mediaDisplay name="threePartsView"/> </item> <?php } ?> <?php $videos = explode('<div class="tabel_show">', $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]; if (strpos($image,"pixel.gif") !==false) { $image="/usr/local/etc/www/cgi-bin/scripts/clip/image/220.jpg"; } $t1=explode('data-href="',$video); $t2=explode('"',$t1[1]); $i=$t2[0]; if ($i <> "") { $image=$i; } $t1 = explode(' title="', $video); $t2 = explode('"', $t1[1]); $title = $t2[0]; $t1=explode('<p>',$video); $t2=explode('<',$t1[1]); $descriere=$t2[0]; $link = $host."/scripts/clip/php/220_show.php?file=".$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <descriere>'.$descriere.'</descriere> <link>'.$link.'</link> <media:thumbnail url="'.$image.'" /> <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 urmatoare</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/clip/php/.svn/text-base/220_show_main.php.svn-base
PHP
gpl3
6,558
#!/usr/local/bin/Resource/www/cgi-bin/php <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $link = $_GET["file"]; $link = str_replace(' ','%20',$link); $link = str_replace('[','%5B',$link); $link = str_replace(']','%5D',$link); $html = file_get_contents($link); $link=str_between($html,'mediaURL:"','"'); /* preg_match("/(http\b.*?)(\.mp4)/i",$html,$matches); $link= $matches[0]; */ print $link; ?>
1073s
trunk/clip/php/.svn/text-base/youclubvideo_link.php.svn-base
PHP
gpl3
589
#!/usr/local/bin/Resource/www/cgi-bin/php <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $link = $_GET["file"]; $link = str_replace(' ','%20',$link); $link = str_replace('[','%5B',$link); $link = str_replace(']','%5D',$link); $html = file_get_contents($link); $link=str_between($html,'mediaURL:"','"'); /* preg_match("/(http\b.*?)(\.mp4)/i",$html,$matches); $link= $matches[0]; */ print $link; ?>
1073s
trunk/clip/php/youclubvideo_link.php
PHP
gpl3
589
#!/usr/local/bin/Resource/www/cgi-bin/php <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } //$link="http://www.trilulilu.ro/alonewolf/0e5a2288cca024"; $link = $_GET["file"]; //http://fs69.trilulilu.ro/stream.php?type=video&source=site&hash=0e5a2288cca024&username=alonewolf&key=ministhebest&format=flv-vp6&start= $h = file_get_contents($link); $userid = str_between($h, 'userid":"', '"'); $hash = str_between($h, 'hash":"', '"'); $server = str_between($h, 'server":"', '"'); $link1="http://fs".$server.".trilulilu.ro/stream.php?type=video&amp;source=site&amp;hash=".$hash."&amp;username=".$userid."&amp;key=ministhebest"; $link = $link1."&amp;format=mp4-720p"; $AgetHeaders = @get_headers($link); if (!preg_match("|200|", $AgetHeaders[0])) { $link = $link1."&amp;format=mp4-360p"; $AgetHeaders = @get_headers($link); if (!preg_match("|200|", $AgetHeaders[0])) { $link = $link1."&amp;format=flv-vp6"; $AgetHeaders = @get_headers($link); if (!preg_match("|200|", $AgetHeaders[0])) { $link=""; } } } print $link; ?>
1073s
trunk/clip/php/trilulilu_link.php
PHP
gpl3
1,238
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" > <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="8" fontSize=17 offsetXPC=55 offsetYPC=40 widthPC=40 heightPC=38 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(titlu); titlu;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=25 widthPC=10 heightPC=10> <script>print(img); img;</script> </image> <image redraw="yes" offsetXPC=80 offsetYPC=25 widthPC=10 heightPC=10> <script>print(flag); flag;</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) { img = getItemInfo(idx,"image"); flag = getItemInfo(idx,"flag"); annotation = getItemInfo(idx, "description"); titlu = 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" 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="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> <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=25 offsetYPC=8 widthPC=70 heightPC=10 fontSize=20 backgroundColor=-1:-1:-1 foregroundColor=255:255:255> <script>getItemInfo(-1, "title");</script> </text> </mediaDisplay> </item_template> <destination> <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="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> <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=25 offsetYPC=8 widthPC=70 heightPC=10 fontSize=20 backgroundColor=-1:-1:-1 foregroundColor=255:255:255> <script>getItemInfo(-1, "title");</script> </text> </mediaDisplay> <link> <script> l; </script> </link> </destination> <channel> <title>HD Podcast</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); } $link="http://www.podcast.tv/high-definition-video-podcasts.html"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $link); 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_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookies.txt'); curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt'); $html = curl_exec($ch); curl_close($ch); $n=0; $videos = explode('class="recommendationbox', $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=trim($t2[0]); $t3=explode('"',$t1[2]); $flag=trim($t3[0]); $t1=explode('title="',$video); $t2=explode('"',$t1[1]); $title=$t2[0]; $tip=str_between($video,'"cast_type_hdvideo">','</span>'); $description=trim(str_between($video,'<br />','</div>')); preg_match('/\-(\d+)(\.html)/', $link, $m); $id="http://www.podcast.tv/feed_abo".$m[1]; $link=$host.'/scripts/clip/php/podcasthd_link.php?file='.$id; if ($tip == "HD-Video") { echo ' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); url="'.$link.'"; l=getUrl(url); cancelIdle(); jumptolink("destination"); </script> </onClick> <image>'.$image.'</image> <flag>'.$flag.'</flag> <tip>'.$tip.'</tip> <description>'.$description.'</description> <id>'.$id.'</id> </item> '; $n++; //if ($n > 10) break; } } ?> </channel> </rss>
1073s
trunk/clip/php/podcasthd.php
PHP
gpl3
8,509
#!/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); $page = $queryArr[0]; $search = $queryArr[1]; $tit = urldecode($queryArr[2]); } clearstatcache(); if (file_exists("/tmp/usbmounts/sda1/download")) { $dir = "/tmp/usbmounts/sda1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdb1/download")) { $dir = "/tmp/usbmounts/sdb1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdc1/download")) { $dir = "/tmp/usbmounts/sdc1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sda2/download")) { $dir = "/tmp/usbmounts/sda2/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdb2/download")) { $dir = "/tmp/usbmounts/sdb2/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdc2/download")) { $dir = "/tmp/usbmounts/sdc1/download/log/"; } elseif (file_exists("/tmp/hdd/volumes/HDD1/download")) { $dir = "/tmp/hdd/root/log/"; } else { $dir = ""; } ?> <rss version="2.0"> <onEnter> startitem = "middle"; 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) { rss = readStringFromFile(log_file); count = 0; while(1) { l= getStringArrayAt(rss,count); count += 1; if(l == null) { titlu = getStringArrayAt(rss,count-3); break; } } } </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text align="left" offsetXPC="6" offsetYPC="15" widthPC="100" heightPC="4" fontSize="16" backgroundColor="10:105:150" foregroundColor="100:200:255"> Apăsaţi 2 pentru download, 3 pentru Download Manager </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="center" redraw="yes" lines="8" fontSize=17 offsetXPC=55 offsetYPC=58 widthPC=40 heightPC=38 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <text redraw="yes" align="center" offsetXPC="60" offsetYPC="52" widthPC="30" heightPC="5" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(durata); durata;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(titlu); titlu;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=25 widthPC=30 heightPC=25> <script>print(img); img;</script> </image> <idleImage> image/POPUP_LOADING_01.png </idleImage> <idleImage> image/POPUP_LOADING_02.png </idleImage> <idleImage> image/POPUP_LOADING_03.png </idleImage> <idleImage> image/POPUP_LOADING_04.png </idleImage> <idleImage> image/POPUP_LOADING_05.png </idleImage> <idleImage> image/POPUP_LOADING_06.png </idleImage> <idleImage> image/POPUP_LOADING_07.png </idleImage> <idleImage> image/POPUP_LOADING_08.png </idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { img = getItemInfo(idx,"image"); annotation = getItemInfo(idx, "annotation"); durata = getItemInfo(idx, "durata"); pub = getItemInfo(idx, "pub"); titlu = 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(); ret="true"; } else if (userInput == "two" || userInput == "2") { showIdle(); url="<?php echo $host; ?>" + "/scripts/clip/php/trilulilu_link.php?file=" + getItemInfo(getFocusItemIndex(),"download"); movie=getUrl(url); topUrl = "http://127.0.0.1/cgi-bin/scripts/util/download.cgi?link=" + movie + ";name=" + getItemInfo(getFocusItemIndex(),"name"); dlok = loadXMLFile(topUrl); cancelIdle(); do_down=1; log_file="<?php echo $dir; ?>" + getItemInfo(getFocusItemIndex(),"name") + ".log"; setRefreshTime(2000); ret="true"; } else if (userInput == "three" || userInput == "3") { jumpToLink("destination"); ret="true"; } else { 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 $tit; ?></title> <menu>main menu</menu> <?php //http://www.trilulilu.ro/video/cele-mai-recente/azi?offset=0 if (strpos($search,"canal/") === false) { $page1=30*($page-1); } else { $page1=12*($page-1); } if ($search == "http://www.trilulilu.ro/video") { $html=file_get_contents("http://www.trilulilu.ro/video?cele-mai-recente&oricand&offset=".$page1); } else { $html=file_get_contents($search."?offset=".$page1); } 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 anterioara</annotation> <image>image/left.jpg</image> <mediaDisplay name="threePartsView"/> </item> <?php } ?> <?php $videos = explode('div class="item', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $link = $t2[0]; $t3 = explode('title="', $video); $t2 = explode('"', $t3[1]); $title = trim($t2[0]); $title = str_replace("&nbsp;","",$title); $title = str_replace('&quot;',"",$title); $title=html_entity_decode($title,ENT_QUOTES, "UTF-8"); $t1 = explode('src="', $video); $t2 = explode('"', $t1[1]); $image = $t2[0]; if (strpos($image,"pixel.gif") !== false) { $image="/usr/local/etc/www/cgi-bin/scripts/clip/image/trilulilu.png"; } $descriere=$title; $t1=explode('class="duration">',$video); $t2=explode('<',$t1[1]); $durata="Durata:".trim($t2[0]); $name = preg_replace('/[^A-Za-z0-9_]/','_',$title).".flv"; if ((strpos($title,"Vizion") === false) && ($title <> "")) { echo ' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); url="'.$host.'/scripts/clip/php/trilulilu_link.php?file='.$link.'"; movie=getUrl(url); cancelIdle(); playItemUrl(movie,10); </script> </onClick> <download>'.$link.'</download> <name>'.$name.'</name> <annotation>'.$descriere.'</annotation> <image>'.$image.'</image> <durata>'.$durata.'</durata> <media:thumbnail url="'.$image.'" /> </item> '; } } ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page+1).","; if($search) { $url = $url.$search.",".urlencode($tit); } ?> <title>Next Page</title> <link><?php echo $url;?></link> <annotation>Pagina urmatoare</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/clip/php/trilulilu.php
PHP
gpl3
9,756
#!/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); $page = $queryArr[0]; $search = urldecode($queryArr[1]); $tit = urldecode($queryArr[2]); } clearstatcache(); if (file_exists("/tmp/usbmounts/sda1/download")) { $dir = "/tmp/usbmounts/sda1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdb1/download")) { $dir = "/tmp/usbmounts/sdb1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdc1/download")) { $dir = "/tmp/usbmounts/sdc1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sda2/download")) { $dir = "/tmp/usbmounts/sda2/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdb2/download")) { $dir = "/tmp/usbmounts/sdb2/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdc2/download")) { $dir = "/tmp/usbmounts/sdc1/download/log/"; } elseif (file_exists("/tmp/hdd/volumes/HDD1/download")) { $dir = "/tmp/hdd/root/log/"; } else { $dir = ""; } ?> <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 align="left" offsetXPC="6" offsetYPC="15" widthPC="100" heightPC="4" fontSize="16" backgroundColor="10:105:150" foregroundColor="100:200:255"> Apăsaţi 2 pentru download, 3 pentru Download Manager </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="center" redraw="yes" lines="8" fontSize=17 offsetXPC=55 offsetYPC=58 widthPC=40 heightPC=38 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <text redraw="yes" align="center" offsetXPC="55" offsetYPC="52" widthPC="15" heightPC="5" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(durata); durata;</script> </text> <text redraw="yes" align="left" offsetXPC="72" offsetYPC="52" widthPC="30" heightPC="5" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(pub); pub;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(titlu); titlu;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=25 widthPC=30 heightPC=25> <script>print(img); img;</script> </image> <idleImage> image/POPUP_LOADING_01.png </idleImage> <idleImage> image/POPUP_LOADING_02.png </idleImage> <idleImage> image/POPUP_LOADING_03.png </idleImage> <idleImage> image/POPUP_LOADING_04.png </idleImage> <idleImage> image/POPUP_LOADING_05.png </idleImage> <idleImage> image/POPUP_LOADING_06.png </idleImage> <idleImage> image/POPUP_LOADING_07.png </idleImage> <idleImage> image/POPUP_LOADING_08.png </idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { img = getItemInfo(idx,"image"); annotation = getItemInfo(idx, "annotation"); durata = getItemInfo(idx, "durata"); pub = getItemInfo(idx, "pub"); titlu = 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"; } if (userInput == "two" || userInput == "2") { showIdle(); url="<?php echo $host; ?>" + "/scripts/clip/php/almanahe_link.php?file=" + getItemInfo(getFocusItemIndex(),"download"); movie=getUrl(url); cancelIdle(); topUrl = "http://127.0.0.1/cgi-bin/scripts/util/download.cgi?link=" + movie + ";name=" + getItemInfo(getFocusItemIndex(),"name"); dlok = loadXMLFile(topUrl); "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 $page1=20*($page-1); //http://www.almanahe.ro/video/videolist/videonew.html?cid=8 $t1=explode("cid=",$search); $cid=$t1[1]; $post="advanceFromSubmission=1&album_id=&cid=".$cid."&sid=&tags=&user_id=0&action_new=&thumb=yes&keyword=&video_language=&run_length=&video_owner=&video_country=&added_within=&start=".$page1."&advanceFromSubmission=&pg=videonew&video_title=&myvideo=No&myfavoritevideo=No&default=Yes&advanced_keyword=Cuvinte+cheie&search_video_owner=+Nume+utilizator&video_country=&video_language=&run_length=&added_within="; $ch = curl_init($search); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_REFERER, $search); curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL curl_setopt ($ch, CURLOPT_POST, 1); curl_setopt ($ch, CURLOPT_POSTFIELDS, $post); $html = curl_exec($ch); if($page > 1) { ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page-1).","; if($search) { $url = $url.$search.",".urlencode($tit); } ?> <title>Previous Page</title> <link><?php echo $url;?></link> <annotation>Pagina anterioara</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 id="videolist_thumb', $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]; $t1=explode('<span class="clsRunTime">',$video); $t2=explode('</span>',$t1[1]); $durata=$t2[0]; $t1=explode('<p>',$video); $t2=explode('</p>',$t1[3]); $pub = trim(preg_replace("/(<\/?)(\w+)([^>]*>)/e","",$t2[0])); $pub=str_replace('&nbsp;','',$pub); $name = preg_replace('/[^A-Za-z0-9_]/','_',$title).".flv"; $descriere=$title; echo ' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); url="'.$host.'/scripts/clip/php/almanahe_link.php?file='.$link.'"; movie=getUrl(url); cancelIdle(); playItemUrl(movie,10); </script> </onClick> <download>'.$link.'</download> <name>'.$name.'</name> <annotation>'.$descriere.'</annotation> <image>'.$image.'</image> <durata>'.$durata.'</durata> <pub>'.$pub.'</pub> <media:thumbnail url="'.$image.'" /> </item> '; } ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page+1).","; if($search) { $url = $url.$search.",".urlencode($tit); } ?> <title>Next Page</title> <link><?php echo $url;?></link> <annotation>Pagina urmatoare</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/clip/php/almanahe.php
PHP
gpl3
9,886
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; $img = "/usr/local/etc/www/cgi-bin/scripts/clip/image/videopodcasts.gif"; ?> <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" 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=15> <?php echo $img; ?> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); 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>videopodcasts</title> <menu>main menu</menu> <?php $html = file_get_contents("http://www.videopodcasts.tv/"); $videos = explode("<a style='font-size:11px'", $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode("href='", $video); $t2 = explode("'", $t1[1]); $link = "http://www.videopodcasts.tv/".$t2[0]; $link = str_replace(' ','%20',$link); $link = $host."/scripts/clip/php/videopodcasts.php?file=".$link; $t1 = explode("href='", $video); $t2 = explode('>', $t1[1]); $t3 = explode('<', $t2[1]); $title = $t3[0]; echo '<item>'; echo '<title>'.$title.'</title>'; echo '<link>'.$link.'</link>'; echo '</item>'; } ?> </channel> </rss>
1073s
trunk/clip/php/videopodcasts_main.php
PHP
gpl3
5,022
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; $img = "/usr/local/etc/www/cgi-bin/scripts/clip/image/videopodcasts.gif"; ?> <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" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=35 widthPC=30 heightPC=30> <script>print(img); img;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "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> <channel> <title>videopodcasts</title> <menu>main menu</menu> <?php $link = $_GET["file"]; $html = file_get_contents($link); $videos = explode('<td class="ltitle" style="text-align:left; padding: 2px;">', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode("Subscribe to Podcast menu','", $video); $t2 = explode("'", $t1[1]); $link = $t2[0]; if (strpos($link,"format=xml") === false) { $link=$link."?format=xml"; } $t1 = explode('img src="', $video); $t2 = explode('f=', $t1[1]); $t3 = explode('"', $t2[1]); $image = "http://www.videopodcasts.tv/".$t3[0]; $t1 = explode('href="feed', $video); $t2 = explode('>', $t1[1]); $t3 = explode('<',$t2[1]); $title = $t3[0]; echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$title.'</annotation> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <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="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> <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> '.$title.' </text> </mediaDisplay> </item> '; } ?> </channel> </rss>
1073s
trunk/clip/php/videopodcasts.php
PHP
gpl3
5,910
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $page = $queryArr[0]; $search = $queryArr[1]; $tit = urldecode($queryArr[2]); } clearstatcache(); if (file_exists("/tmp/usbmounts/sda1/download")) { $dir = "/tmp/usbmounts/sda1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdb1/download")) { $dir = "/tmp/usbmounts/sdb1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdc1/download")) { $dir = "/tmp/usbmounts/sdc1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sda2/download")) { $dir = "/tmp/usbmounts/sda2/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdb2/download")) { $dir = "/tmp/usbmounts/sdb2/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdc2/download")) { $dir = "/tmp/usbmounts/sdc1/download/log/"; } elseif (file_exists("/tmp/hdd/volumes/HDD1/download")) { $dir = "/tmp/hdd/root/log/"; } else { $dir = ""; } ?> <rss version="2.0"> <onEnter> startitem = "middle"; 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) { rss = readStringFromFile(log_file); count = 0; while(1) { l= getStringArrayAt(rss,count); count += 1; if(l == null) { titlu = getStringArrayAt(rss,count-3); break; } } } </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 align="left" offsetXPC="6" offsetYPC="15" widthPC="100" heightPC="4" fontSize="16" backgroundColor="10:105:150" foregroundColor="100:200:255"> Apăsaţi 2 pentru download, 3 pentru Download Manager </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="center" redraw="yes" lines="8" fontSize=17 offsetXPC=55 offsetYPC=58 widthPC=40 heightPC=38 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <text redraw="yes" align="center" offsetXPC="60" offsetYPC="52" widthPC="30" heightPC="5" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(durata); durata;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(titlu); titlu;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=25 widthPC=30 heightPC=25> <script>print(img); img;</script> </image> <idleImage> image/POPUP_LOADING_01.png </idleImage> <idleImage> image/POPUP_LOADING_02.png </idleImage> <idleImage> image/POPUP_LOADING_03.png </idleImage> <idleImage> image/POPUP_LOADING_04.png </idleImage> <idleImage> image/POPUP_LOADING_05.png </idleImage> <idleImage> image/POPUP_LOADING_06.png </idleImage> <idleImage> image/POPUP_LOADING_07.png </idleImage> <idleImage> image/POPUP_LOADING_08.png </idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { img = getItemInfo(idx,"image"); annotation = getItemInfo(idx, "annotation"); durata = getItemInfo(idx, "durata"); pub = getItemInfo(idx, "pub"); titlu = 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(); ret="true"; } else if (userInput == "two" || userInput == "2") { showIdle(); url="<?php echo $host; ?>" + "/scripts/clip/php/happyfish_link.php?file=" + getItemInfo(getFocusItemIndex(),"download"); movie=getUrl(url); topUrl = "http://127.0.0.1/cgi-bin/scripts/util/download.cgi?link=" + movie + ";name=" + getItemInfo(getFocusItemIndex(),"name"); dlok = loadXMLFile(topUrl); cancelIdle(); do_down=1; log_file="<?php echo $dir; ?>" + getItemInfo(getFocusItemIndex(),"name") + ".log"; setRefreshTime(2000); ret="true"; } else if (userInput == "three" || userInput == "3") { jumpToLink("destination"); ret="true"; } else { 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 $tit; ?></title> <menu>main menu</menu> <?php //http://www.happyfish.ro/episoade/animale/noi/galerie/page:2 $html=file_get_contents("http://www.happyfish.ro/episoade".$search."/noi/galerie/page:".$page); if($page > 1) { ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page-1).","; if($search) { $url = $url.$search.",".urlencode($tit); } ?> <title>Previous Page</title> <link><?php echo $url;?></link> <annotation>Pagina anterioara</annotation> <image>image/left.jpg</image> <mediaDisplay name="threePartsView"/> </item> <?php } ?> <?php $videos = explode('<div class="box_felie">', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $link = "http://www.happyfish.ro".$t2[0]; $t3 = explode('>', $t1[2]); $t2 = explode('<', $t3[1]); $title = trim($t2[0]); $t1 = explode('src="', $video); $t2 = explode('"', $t1[1]); $image = "http://www.happyfish.ro".$t2[0]; $descriere=$title; $t1=explode('<div class="data_postare">',$video); $t2=explode('in',$t1[1]); $durata=trim($t2[0]); $name = preg_replace('/[^A-Za-z0-9_]/','_',$title).".flv"; echo ' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); url="'.$host.'/scripts/clip/php/happyfish_link.php?file='.$link.'"; movie=getUrl(url); cancelIdle(); playItemUrl(movie,10); </script> </onClick> <download>'.$link.'</download> <name>'.$name.'</name> <annotation>'.$descriere.'</annotation> <image>'.$image.'</image> <durata>'.$durata.'</durata> <media:thumbnail url="'.$image.'" /> </item> '; } ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page+1).","; if($search) { $url = $url.$search.",".urlencode($tit); } ?> <title>Next Page</title> <link><?php echo $url;?></link> <annotation>Pagina urmatoare</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/clip/php/happyfish.php
PHP
gpl3
9,176
#!/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); $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" 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" > <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=35 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</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"> Apăsaţi 2 pentru download, 3 pentru Download Manager </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") { topUrl = "http://127.0.0.1/cgi-bin/scripts/util/download.cgi?link=" + getItemInfo(getFocusItemIndex(),"download") + ";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 //http://vimeo.com/user4936621/videos/page:2/sort:newest //http://vimeo.com/user4936621/videos/page:1/sort:newest if($page) { $html = file_get_contents("http://vimeo.com/user".$search."/videos/page:".$page."/sort:newest"); } else { $page = 1; $html = file_get_contents("http://vimeo.com/user".$search."/videos/page:".$page."/sort:newest"); } 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 anterioara</annotation> <image>image/left.jpg</image> <mediaDisplay name="threePartsView"/> </item> <?php } ?> <?php if (strpos($html,'<div class="item') !== false) { $videos = explode('<div class="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('src="', $video); $t2 = explode('"', $t1[1]); $image = $t2[0]; $t1 = explode('<div class="title">', $video); $t2 = explode('>', $t1[1]); $t3 = explode('<', $t2[1]); $title = $t3[0]; $title = trim($title); if ($title <> "") { $link = "http://127.0.0.1/cgi-bin/translate?stream,HD:1,http://vimeo.com".$link; $name = preg_replace('/[^A-Za-z0-9_]/','_',$title).".mp4"; echo' <item> <title>'.$title.'</title> <onClick>playItemURL("'.$link.'", 10);</onClick> <download>'.$link.'</download> <name>'.$name.'</name> <annotation>'.$title.'</annotation> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } } elseif (strpos($html,'<div class="clip">') !== false) { $videos = explode('<div class="clip">', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"',$t1[2]); $link = $t2[0]; $t1 = explode('src="', $video); $t2 = explode('"', $t1[1]); $image = $t2[0]; $t1 = explode('class="b', $video); $t0 = explode(">",$t1[1]); $t2 = explode('<', $t0[1]); $title = $t2[0]; $title = trim($title); if ($title <> "") { $link = "http://127.0.0.1/cgi-bin/translate?stream,HD:1,http://vimeo.com/".$link; $name = preg_replace('/[^A-Za-z0-9_]/','_',$title).".mp4"; echo' <item> <title>'.$title.'</title> <onClick>playItemURL("'.$link.'", 10);</onClick> <download>'.$link.'</download> <name>'.$name.'</name> <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 urmatoare</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/clip/php/vimeo2.php
PHP
gpl3
8,479
#!/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); $page = $queryArr[0]; $search = urldecode($queryArr[1]); $tit="Cautare:".urldecode($queryArr[2]); } ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text align="left" offsetXPC="6" offsetYPC="15" widthPC="100" heightPC="4" fontSize="16" backgroundColor="10:105:150" foregroundColor="100:200:255"> Apăsaţi 2 pentru download, 3 pentru Download Manager </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="justify" redraw="yes" lines="8" fontSize=17 offsetXPC=55 offsetYPC=58 widthPC=40 heightPC=38 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <text redraw="yes" align="left" offsetXPC="55" offsetYPC="52" widthPC="15" heightPC="5" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(durata); durata;</script> </text> <text redraw="yes" align="left" offsetXPC="72" offsetYPC="52" widthPC="23" heightPC="5" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(pub); pub;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(titlu); titlu;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=25 widthPC=30 heightPC=25> <script>print(img); img;</script> </image> <idleImage> image/POPUP_LOADING_01.png </idleImage> <idleImage> image/POPUP_LOADING_02.png </idleImage> <idleImage> image/POPUP_LOADING_03.png </idleImage> <idleImage> image/POPUP_LOADING_04.png </idleImage> <idleImage> image/POPUP_LOADING_05.png </idleImage> <idleImage> image/POPUP_LOADING_06.png </idleImage> <idleImage> image/POPUP_LOADING_07.png </idleImage> <idleImage> image/POPUP_LOADING_08.png </idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { img = getItemInfo(idx,"image"); annotation = getItemInfo(idx, "annotation"); durata = getItemInfo(idx, "durata"); pub = getItemInfo(idx, "pub"); titlu = 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"; } if (userInput == "two" || userInput == "2") { showIdle(); url="<?php echo $host; ?>" + "/scripts/clip/php/dm_link.php?file=" + getItemInfo(getFocusItemIndex(),"download"); movie=getUrl(url); cancelIdle(); topUrl = "http://127.0.0.1/cgi-bin/scripts/util/download.cgi?link=" + movie + ";name=" + getItemInfo(getFocusItemIndex(),"name"); dlok = loadXMLFile(topUrl); "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 $search = str_replace(' ','+',$search); if($page) { $html = file_get_contents("http://www.dailymotion.com/relevance/search/".$search."/".$page."/"); } else { $page = 1; $html = file_get_contents("http://www.dailymotion.com/relevance/search/".$search."/"); } if($page > 1) { ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page-1).","; if($search) { $url = $url.$search.",".urlencode($tit); } ?> <title>Previous Page</title> <link><?php echo $url;?></link> <annotation>Pagina anterioara</annotation> <durata></durata> <pub></pub> <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); } function getRewriteString($string) { $string = htmlentities($string); $string = preg_replace("/&amp;(.)(acute|cedil|circ|ring|tilde|uml|horn);/", "$1", $string); return $string; } $videos = explode('<div class="dmpi_video_preview', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $link = 'http://www.dailymotion.com'.$t2[0]; $t1 = explode('data-src="', $video); $t2 = explode('?', $t1[1]); $image = $t2[0]; $t1 = explode('title="', $video); $t2 = explode('"', $t1[1]); $title = $t2[0]; if ($title == "") $title="Video..."; $title = str_replace("&nbsp;","",$title); $title = str_replace("&amp;","&",$title); $title = getRewriteString($title); $t1=explode('class="duration">',$video); $t2=explode('<',$t1[1]); $durata = "Durata:".$t2[0]; $t1=explode('class="dmco_date">',$video); $t2=explode('<',$t1[1]); $pub="Data:".$t2[0]; $t1=explode('class="dmpi_video_description foreground">',$video); $t2=explode('</div>',$t1[1]); $descriere=$t2[0]; $descriere = preg_replace("/(<\/?)(\w+)([^>]*>)/e","",$descriere); $descriere = str_replace("&nbsp;","",$descriere); $name = preg_replace('/[^A-Za-z0-9_]/','_',$title).".mp4"; echo ' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); url="'.$host.'/scripts/clip/php/dm_link.php?file='.$link.'"; movie=getUrl(url); cancelIdle(); playItemUrl(movie,10); </script> </onClick> <download>'.$link.'</download> <name>'.$name.'</name> <annotation>'.$descriere.'</annotation> <image>'.$image.'</image> <durata>'.$durata.'</durata> <pub>'.$pub.'</pub> <media:thumbnail url="'.$image.'" /> </item> '; } ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page+1).","; if($search) { $url = $url.$search.",".urlencode($tit); } ?> <title>Next Page</title> <link><?php echo $url;?></link> <annotation>Pagina urmatoare</annotation> <durata></durata> <pub></pub> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/clip/php/dm_search.php
PHP
gpl3
9,248
#!/usr/local/bin/Resource/www/cgi-bin/php <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $link = $_GET["file"]; $html = file_get_contents($link); $link1=str_between($html,"video_tag.attr('src', '","'"); if ($link1 == "") { $link1=str_between($html,'src: "','"'); } print $link1; ?>
1073s
trunk/clip/php/funnyordie_link.php
PHP
gpl3
474
#!/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=20> /usr/local/etc/www/cgi-bin/scripts/clip/image/funnyordie.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>Funny or Die</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.funnyordie.com/browse/videos/all/all/most_recent"); //http://www.funnyordie.com/browse/videos/all/all/most_recent echo ' <item> <title>====== Videos - Most Recent ======</title> <annotation>Videos - Most Recent</annotation> <mediaDisplay name="threePartsView"/> </item> '; $html=str_between($html,'<div class="browse_navigation">','</div>'); $videos = explode('<a', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="',$video); $t2 = explode('"',$t1[1]); $link = "http://www.funnyordie.com".trim($t2[0]); $t3 = explode('>',$t1[1]); $t4 = explode('<',$t3[1]); $title = $t4[0]; $link = $host."/scripts/clip/php/funnyordie.php?query=".$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } echo ' <item> <title>====== Videos - Most Viewed ======</title> <annotation>Videos - Most Viewed</annotation> <mediaDisplay name="threePartsView"/> </item> '; foreach($videos as $video) { $t1 = explode('href="',$video); $t2 = explode('"',$t1[1]); $link = "http://www.funnyordie.com".trim($t2[0]); $link = str_replace("most_recent","most_viewed",$link); $t3 = explode('>',$t1[1]); $t4 = explode('<',$t3[1]); $title = $t4[0]; $link = $host."/scripts/clip/php/funnyordie.php?query=".$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } ?> </channel> </rss>
1073s
trunk/clip/php/funnyordie_main.php
PHP
gpl3
6,130
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" > <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="8" fontSize=17 offsetXPC=55 offsetYPC=58 widthPC=40 heightPC=38 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(descriere); descriere;</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> <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) { img = getItemInfo(idx,"image"); annotation = getItemInfo(idx, "title"); descriere = getItemInfo(idx, "descriere"); } 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>happyfish.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.happyfish.ro/arhiva"); $html1=str_between($html,'Productii Externe','javascript'); $videos = explode('<div class="box_felie"', $html1); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $link = $t2[0]; $t3=explode(">",$t1[1]); $t4=explode("<",$t3[1]); $title=$t4[0]; $t1 = explode('src="', $video); $t2 = explode('"', $t1[1]); $image = "http://www.happyfish.ro".$t2[0]; $descriere=$title; $link = $host."/scripts/clip/php/happyfish.php?query=1,".$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <descriere>'.$descriere.'</descriere> <link>'.$link.'</link> <media:thumbnail url="'.$image.'" /> <image>'.$image.'</image> </item> '; } ?> </channel> </rss>
1073s
trunk/clip/php/happyfish_main.php
PHP
gpl3
5,617
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; $img = "/usr/local/etc/www/cgi-bin/scripts/clip/image/dailymotion.png"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="50" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="50" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=35 widthPC=30 heightPC=30> <script>print(img); img;</script> </image> <idleImage> image/POPUP_LOADING_01.png </idleImage> <idleImage> image/POPUP_LOADING_02.png </idleImage> <idleImage> image/POPUP_LOADING_03.png </idleImage> <idleImage> image/POPUP_LOADING_04.png </idleImage> <idleImage> image/POPUP_LOADING_05.png </idleImage> <idleImage> image/POPUP_LOADING_06.png </idleImage> <idleImage> image/POPUP_LOADING_07.png </idleImage> <idleImage> image/POPUP_LOADING_08.png </idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { img = getItemInfo(idx,"image"); 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>Dailymotion - Featured users</title> <menu>main menu</menu> <?php $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $page = $queryArr[0]; $search = $queryArr[1]; } $search = str_replace(' ','+',$search); if($page) { $html = file_get_contents($search."/".$page."/"); } else { $page = 1; $html = file_get_contents($search."/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 anterioara</annotation> <image>image/left.jpg</image> <mediaDisplay name="threePartsView"/> </item> <?php } ?> <?php $videos = explode('<div class="dmpi_user_item', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $link = 'http://www.dailymotion.com/user'.$t2[0]; $t1 = explode('data-src="', $video); $t2 = explode('?', $t1[1]); $image = $t2[0]; $t1 = explode(' title="', $video); $t2 = explode('"', $t1[1]); $title = $t2[0]; $link=$host."/scripts/clip/php/dm.php?query=,".$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> </item> '; } ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page+1).","; if($search) { $url = $url.$search; } ?> <title>Next Page</title> <link><?php echo $url;?></link> <annotation>Pagina urmatoare</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/clip/php/dm_user_main.php
PHP
gpl3
6,099
#!/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); $page = $queryArr[0]; $search = urldecode($queryArr[1]); $tit = urldecode($queryArr[2]); } clearstatcache(); if (file_exists("/tmp/usbmounts/sda1/download")) { $dir = "/tmp/usbmounts/sda1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdb1/download")) { $dir = "/tmp/usbmounts/sdb1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdc1/download")) { $dir = "/tmp/usbmounts/sdc1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sda2/download")) { $dir = "/tmp/usbmounts/sda2/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdb2/download")) { $dir = "/tmp/usbmounts/sdb2/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdc2/download")) { $dir = "/tmp/usbmounts/sdc1/download/log/"; } elseif (file_exists("/tmp/hdd/volumes/HDD1/download")) { $dir = "/tmp/hdd/root/log/"; } else { $dir = ""; } ?> <rss version="2.0"> <onEnter> startitem = "middle"; 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) { rss = readStringFromFile(log_file); count = 0; while(1) { l= getStringArrayAt(rss,count); count += 1; if(l == null) { titlu = getStringArrayAt(rss,count-3); break; } } } </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text align="left" offsetXPC="6" offsetYPC="15" widthPC="100" heightPC="4" fontSize="16" backgroundColor="10:105:150" foregroundColor="100:200:255"> Apăsaţi 2 pentru download, 3 pentru Download Manager </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="center" redraw="yes" lines="8" fontSize=17 offsetXPC=55 offsetYPC=58 widthPC=40 heightPC=38 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <text redraw="yes" align="center" offsetXPC="60" offsetYPC="52" widthPC="30" heightPC="5" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(durata); durata;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(titlu); titlu;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=25 widthPC=30 heightPC=25> <script>print(img); img;</script> </image> <idleImage> image/POPUP_LOADING_01.png </idleImage> <idleImage> image/POPUP_LOADING_02.png </idleImage> <idleImage> image/POPUP_LOADING_03.png </idleImage> <idleImage> image/POPUP_LOADING_04.png </idleImage> <idleImage> image/POPUP_LOADING_05.png </idleImage> <idleImage> image/POPUP_LOADING_06.png </idleImage> <idleImage> image/POPUP_LOADING_07.png </idleImage> <idleImage> image/POPUP_LOADING_08.png </idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { img = getItemInfo(idx,"image"); annotation = getItemInfo(idx, "annotation"); durata = getItemInfo(idx, "durata"); pub = getItemInfo(idx, "pub"); titlu = 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(); ret="true"; } else if (userInput == "two" || userInput == "2") { showIdle(); url="<?php echo $host; ?>" + "/scripts/clip/php/trilulilu_link.php?file=" + getItemInfo(getFocusItemIndex(),"download"); movie=getUrl(url); topUrl = "http://127.0.0.1/cgi-bin/scripts/util/download.cgi?link=" + movie + ";name=" + getItemInfo(getFocusItemIndex(),"name"); dlok = loadXMLFile(topUrl); cancelIdle(); do_down=1; log_file="<?php echo $dir; ?>" + getItemInfo(getFocusItemIndex(),"name") + ".log"; setRefreshTime(2000); ret="true"; } else if (userInput == "three" || userInput == "3") { jumpToLink("destination"); ret="true"; } else { 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 $tit; ?></title> <menu>main menu</menu> <?php //http://cauta.trilulilu.ro/video/funny%20clip?offset=16 $search1 = str_replace(" ","%20",$search); $page1=16*($page-1); $html=file_get_contents("http://cauta.trilulilu.ro/video/".$search1."?offset=".$page1); if($page > 1) { ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page-1).","; if($search) { $url = $url.urlencode($search).",".urlencode($tit); } ?> <title>Previous Page</title> <link><?php echo $url;?></link> <annotation>Pagina anterioara</annotation> <image>image/left.jpg</image> <mediaDisplay name="threePartsView"/> </item> <?php } ?> <?php $videos = explode('div class="item', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $link = $t2[0]; $t3 = explode('title="', $video); $t2 = explode('"', $t3[1]); $title = trim($t2[0]); $title = str_replace("&nbsp;","",$title); $title = str_replace('&quot;',"",$title); $title=html_entity_decode($title,ENT_QUOTES, "UTF-8"); $t1 = explode('src="', $video); $t2 = explode('"', $t1[1]); $image = $t2[0]; if (strpos($image,"pixel.gif") !== false) { $image="/usr/local/etc/www/cgi-bin/scripts/clip/image/trilulilu.png"; } $descriere=$title; $t1=explode('class="duration">',$video); $t2=explode('<',$t1[1]); $durata="Durata:".trim($t2[0]); $name = preg_replace('/[^A-Za-z0-9_]/','_',$title).".flv"; if ((strpos($title,"Vizion") === false) && ($title <> "")) { echo ' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); url="'.$host.'/scripts/clip/php/trilulilu_link.php?file='.$link.'"; movie=getUrl(url); cancelIdle(); playItemUrl(movie,10); </script> </onClick> <download>'.$link.'</download> <name>'.$name.'</name> <annotation>'.$descriere.'</annotation> <image>'.$image.'</image> <durata>'.$durata.'</durata> <media:thumbnail url="'.$image.'" /> </item> '; } } ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page+1).","; if($search) { $url = $url.urlencode($search).",".urlencode($tit); } ?> <title>Next Page</title> <link><?php echo $url;?></link> <annotation>Pagina urmatoare</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/clip/php/trilulilu_s.php
PHP
gpl3
9,635
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" > <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="8" fontSize=17 offsetXPC=55 offsetYPC=58 widthPC=40 heightPC=38 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(descriere); descriere;</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> <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) { img = getItemInfo(idx,"image"); annotation = getItemInfo(idx, "title"); descriere = getItemInfo(idx, "descriere"); } 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>sanchi.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); } $title="Cele mai noi"; $link="http://www.sanchi.ro/video.php?viewtype=&category=mr"; $image="/usr/local/etc/www/cgi-bin/scripts/clip/image/sanchi.jpg"; $link = $host."/scripts/clip/php/sanchi.php?query=1,".urlencode($link).",".urlencode($title); echo ' <item> <title>'.$title.'</title> <descriere>'.$title.'</descriere> <link>'.$link.'</link> <media:thumbnail url="'.$image.'" /> <image>'.$image.'</image> </item> '; $html = file_get_contents("http://www.sanchi.ro/channels.php"); $videos = explode('<div class="video_info_container">', $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[2]); $t4=explode("<",$t3[1]); $title=$t4[0]; $t1 = explode('src="', $video); $t2 = explode('"', $t1[1]); $image = $t2[0]; $descriere=$title; $link = $host."/scripts/clip/php/sanchi.php?query=1,".urlencode($link).",".urlencode($title); echo ' <item> <title>'.$title.'</title> <descriere>'.$descriere.'</descriere> <link>'.$link.'</link> <media:thumbnail url="'.$image.'" /> <image>'.$image.'</image> </item> '; } ?> </channel> </rss>
1073s
trunk/clip/php/sanchi_main.php
PHP
gpl3
6,003
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" > <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="justify" redraw="yes" lines="8" fontSize=17 offsetXPC=55 offsetYPC=58 widthPC=40 heightPC=38 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <text redraw="yes" align="center" offsetXPC="55" offsetYPC="52" widthPC="15" heightPC="5" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(durata); durata;</script> </text> <text redraw="yes" align="left" offsetXPC="72" offsetYPC="52" widthPC="30" heightPC="5" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(pub); pub;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(titlu); titlu;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=25 widthPC=30 heightPC=25> <script>print(img); img;</script> </image> <idleImage> image/POPUP_LOADING_01.png </idleImage> <idleImage> image/POPUP_LOADING_02.png </idleImage> <idleImage> image/POPUP_LOADING_03.png </idleImage> <idleImage> image/POPUP_LOADING_04.png </idleImage> <idleImage> image/POPUP_LOADING_05.png </idleImage> <idleImage> image/POPUP_LOADING_06.png </idleImage> <idleImage> image/POPUP_LOADING_07.png </idleImage> <idleImage> image/POPUP_LOADING_08.png </idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { img = getItemInfo(idx,"image"); annotation = getItemInfo(idx, "annotation"); durata = getItemInfo(idx, "durata"); pub = getItemInfo(idx, "pub"); titlu = 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"; } if( userInput == "two") { topUrl = "http://127.0.0.1/cgi-bin/scripts/util/download.cgi?link=" + getItemInfo(getFocusItemIndex(),"download") + ";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>myvideo.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("http://www.myvideo.ro/Videouri_A-Z?lpage=".$page."&searchWord=&searchOrder=1"); } else { $page = 1; $html = file_get_contents("http://www.myvideo.ro/Videouri_A-Z?lpage=".$page."&searchWord=&searchOrder=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 anterioara</annotation> <image>image/left.jpg</image> <mediaDisplay name="threePartsView"/> </item> <?php } ?> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $videos = explode("<td class='body sTLeft", $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $id = str_between($video,"watch/","/"); $t1 = explode("src='", $video); $t2 = explode("'", $t1[1]); $image = $t2[0]; $t3=explode("_",$image); $link=$t3[0].".flv"; $link=str_replace("/thumbs","",$link); $t1 = explode("title='", $video); $t2 = explode("'", $t1[2]); $title = $t2[0]; $title=html_entity_decode($title,ENT_QUOTES, "UTF-8"); $t1=explode("span class='vViews'",$video); //$t2=explode('onmousemove="ST(event, this);',$t1[1]); $t3=explode('>',$t1[1]); $t4=explode('<',$t3[1]); $durata=trim($t4[0]); $t1=explode("class='sCenter vAdded'>",$video); $t2=explode("<",$t1[1]); $pub="Data:".$t2[0]; $name = preg_replace('/[^A-Za-z0-9_]/','_',$title).".flv"; echo ' <item> <title>'.$title.'</title> <onClick>playItemURL("'.$link.'", 10);</onClick> <download>'.$link.'</download> <name>'.$name.'</name> <annotation>'.$title.'</annotation> <image>'.$image.'</image> <durata>'.$durata.'</durata> <pub>'.$pub.'</pub> <media:thumbnail url="'.$image.'" /> </item> '; } ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page+1).","; if($search) { $url = $url.$search; } ?> <title>Next Page</title> <link><?php echo $url;?></link> <annotation>Pagina urmatoare</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/clip/php/myvideo.php
PHP
gpl3
8,248
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; $img = "/usr/local/etc/www/cgi-bin/scripts/filme/image/peteava.png"; $query = $_GET["file"]; if($query) { $queryArr = explode(',', $query); $c = $queryArr[0]; $tit=urldecode($queryArr[1]); } ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="50" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="50" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" > <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> <?php echo $img; ?> </image> <idleImage> image/POPUP_LOADING_01.png </idleImage> <idleImage> image/POPUP_LOADING_02.png </idleImage> <idleImage> image/POPUP_LOADING_03.png </idleImage> <idleImage> image/POPUP_LOADING_04.png </idleImage> <idleImage> image/POPUP_LOADING_05.png </idleImage> <idleImage> image/POPUP_LOADING_06.png </idleImage> <idleImage> image/POPUP_LOADING_07.png </idleImage> <idleImage> image/POPUP_LOADING_08.png </idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); 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><?php echo $tit; ?></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.peteava.ro/"); $html=str_between($html,'var categories = new Array();','</script>'); $videos = explode('categories[', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1=explode("]",$video); $cat=$t1[0]; if ((strlen($cat)==3) && (substr($cat, 0, 1)==$c)) { $t1=explode("'",$video); $t2=explode("'",$t1[1]); $title=$t2[0]; $link=$host."/scripts/filme/php/peteava.php?query=1,http://www.peteava.ro/browse/categoria/".$cat."/pagina/,".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> </item> '; } } ?> </channel> </rss>
1073s
trunk/clip/php/peteava_cat.php
PHP
gpl3
5,264
#!/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); $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=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><?php echo $tit; ?></title> <menu>main menu</menu> <?php //http://vimeo.com/channels/all/page:1/category:activism/sort:subscribed if($page) { $html = file_get_contents("http://vimeo.com/channels/all/page:".$page."/".$search."/sort:subscribed"); } else { $page = 1; $html = file_get_contents("http://vimeo.com/channels/all/page:".$page."/".$search."/sort:subscribed"); } 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 anterioara</annotation> <image>image/left.jpg</image> <mediaDisplay name="threePartsView"/> </item> <?php } ?> <?php $videos = explode('<div class="row">', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('<a href="', $video); $t2 = explode('"', $t1[1]); $link = $t2[0]; $t1 = explode(' src="', $video); $t2 = explode('"', $t1[1]); $image = $t2[0]; $t1 = explode('<div class="title">', $video); $t2 = explode('>', $t1[1]); $t3 = explode('<', $t2[1]); $title = $t3[0]; $title = trim($title); // descriere $v1 = explode('<div class="description">', $video); $v2 = explode('<', $v1[1]); $descriere = $v2[0]; $descriere = preg_replace("/(<\/?)(\w+)([^>]*>)/e","",$descriere); $cat = substr(strrchr($link,"/"),1); $link = $host."/scripts/clip/php/vimeo.php?query=,".$cat.",".urlencode($title); echo' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$descriere.'</annotation> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page+1).","; if($search) { $url = $url.$search.",".urlencode($tit); } ?> <title>Next Page</title> <link><?php echo $url;?></link> <annotation>Pagina urmatoare</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/clip/php/vimeo_can.php
PHP
gpl3
6,604
#!/usr/local/bin/Resource/www/cgi-bin/php <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $link = $_GET["file"]; $html = file_get_contents($link); $t1 = explode('videoURL=', $html); $t2 = explode('&preview', $t1[1]); $link = urldecode($t2[0]); print $link; ?>
1073s
trunk/clip/php/220_link.php
PHP
gpl3
451
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" > <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="8" fontSize=17 offsetXPC=55 offsetYPC=58 widthPC=40 heightPC=38 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(descriere); descriere;</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> <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) { img = getItemInfo(idx,"image"); annotation = getItemInfo(idx, "title"); descriere = getItemInfo(idx, "descriere"); } 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>top1.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.top1.ro/video/"); $html1=str_between($html,'<div id="chenar_detalii_v">','</div>'); $videos = explode('href="', $html1); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('"', $video); $link = "http://www.top1.ro".$t1[0]; $t3=explode(">",$video); $t4=explode("<",$t3[1]); $title=$t4[0]; $image = "/usr/local/etc/www/cgi-bin/scripts/clip/image/top1.gif"; $descriere=$title; $link = $host."/scripts/clip/php/top1.php?query=1,".$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <descriere>'.$descriere.'</descriere> <link>'.$link.'</link> <media:thumbnail url="'.$image.'" /> <image>'.$image.'</image> </item> '; } ?> </channel> </rss>
1073s
trunk/clip/php/top1_main.php
PHP
gpl3
5,532
#!/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); $page = $queryArr[0]; $search = urldecode($queryArr[1]); $tit = "Cautare:".urldecode($queryArr[2]); } ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text align="left" offsetXPC="6" offsetYPC="15" widthPC="100" heightPC="4" fontSize="16" backgroundColor="10:105:150" foregroundColor="100:200:255"> Apăsaţi 2 pentru download, 3 pentru Download Manager </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="center" redraw="yes" lines="8" fontSize=17 offsetXPC=55 offsetYPC=58 widthPC=40 heightPC=38 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <text redraw="yes" align="center" offsetXPC="60" offsetYPC="52" widthPC="30" heightPC="5" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(durata); durata;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(titlu); titlu;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=25 widthPC=30 heightPC=25> <script>print(img); img;</script> </image> <idleImage> image/POPUP_LOADING_01.png </idleImage> <idleImage> image/POPUP_LOADING_02.png </idleImage> <idleImage> image/POPUP_LOADING_03.png </idleImage> <idleImage> image/POPUP_LOADING_04.png </idleImage> <idleImage> image/POPUP_LOADING_05.png </idleImage> <idleImage> image/POPUP_LOADING_06.png </idleImage> <idleImage> image/POPUP_LOADING_07.png </idleImage> <idleImage> image/POPUP_LOADING_08.png </idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { img = getItemInfo(idx,"image"); annotation = getItemInfo(idx, "annotation"); durata = getItemInfo(idx, "durata"); pub = getItemInfo(idx, "pub"); titlu = 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"; } if (userInput == "two" || userInput == "2") { showIdle(); url="<?php echo $host; ?>" + "/scripts/clip/php/220_link.php?file=" + getItemInfo(getFocusItemIndex(),"download"); movie=getUrl(url); cancelIdle(); topUrl = "http://127.0.0.1/cgi-bin/scripts/util/download.cgi?link=" + movie + ";name=" + getItemInfo(getFocusItemIndex(),"name"); dlok = loadXMLFile(topUrl); "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 $search = str_replace(' ','+',$search); $html = file_get_contents("http://www.220.ro/index.php?module=cautare&q=".$search."&s=video"); $videos = explode('<div class="lista', $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]; if (strpos($image,"pixel.gif") !==false) { $image="/usr/local/etc/www/cgi-bin/scripts/clip/image/220.jpg"; } $t1=explode('data-href="',$video); $t2=explode('"',$t1[1]); $i=$t2[0]; if ($i <> "") { $image=$i; } $t1 = explode(' title="', $video); $t2 = explode('"', $t1[1]); $title = $t2[0]; $t1=explode('<p>',$video); $t2=explode("</p>",$t1[1]); $descriere=$t2[0]; $t1=explode('<span class="th_durata">',$video); $t2=explode('<',$t1[1]); $durata="Durata:".trim($t2[0]); $name = preg_replace('/[^A-Za-z0-9_]/','_',$title).".flv"; echo ' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); url="'.$host.'/scripts/clip/php/220_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/x-flv); streamArray = pushBackStringArray(streamArray, "'.$title.'"); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file:///usr/local/etc/www/cgi-bin/scripts/util/videoRenderer.rss"); </script> </onClick> <download>'.$link.'</download> <name>'.$name.'</name> <annotation>'.$descriere.'</annotation> <image>'.$image.'</image> <durata>'.$durata.'</durata> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } ?> </channel> </rss>
1073s
trunk/clip/php/220_search.php
PHP
gpl3
8,119
#!/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> storagePath = getStoragePath("tmp"); storagePath_stream = storagePath + "stream.dat"; storagePath_playlist = storagePath + "playlist.dat"; 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" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=8 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(titlu); titlu;</script> </text> <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"); titlu = getItemInfo(idx, "title"); 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"; } 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>vplay</title> <?php $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $page = $queryArr[0]; $search = $queryArr[1]; } $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, '/tmp/cookies.txt'); //curl_setopt($ch,CURLOPT_REFERER,$search); $html = curl_exec($ch); curl_close($ch); if($page > 1) { ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page-1).","; if($search) { $url = $url.$search; } ?> <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('class="article"', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1=explode('data="',$video); $t2 = explode('"', $t1[1]); $link = $t2[0]; $link = $host."/scripts/clip/php/vplay_link.php?file=".$link; $t1 = explode('src="', $video); $t2 = explode('"', $t1[1]); $image = $t2[0]; $title=str_between($video,'"article-title">','<'); $data = trim(str_between($video,'<b>',"</b>")); $data = "Durata: ".$data; $name = preg_replace('/[^A-Za-z0-9_]/','_',$title).".flv"; echo ' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); url="'.$link.'"; movie=getUrl(url); cancelIdle(); streamArray = null; streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, movie); streamArray = pushBackStringArray(streamArray, movie); streamArray = pushBackStringArray(streamArray, video/x-flv); streamArray = pushBackStringArray(streamArray, "'.$title.'"); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file:///usr/local/etc/www/cgi-bin/scripts/util/videoRenderer.rss"); </script> </onClick> <download>'.$link.'</download> <name>'.$name.'</name> <image>'.$image.'</image> <annotation>'.$data.'</annotation> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page+1).","; if($search) { $url = $url.$search; } ?> <title>Next Page</title> <link><?php echo $url;?></link> <annotation>Pagina urmatoare</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/clip/php/vplay.php
PHP
gpl3
8,624
#!/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> <destination> <link>http://127.0.0.1/cgi-bin/scripts/util/level.php </link> </destination> <channel> <title>RObotzi</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://creativemonkeyz.com/category/roboti/"); } else { $html = file_get_contents("http://creativemonkeyz.com/category/roboti/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 anterioara</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('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]; $image = "/usr/local/etc/www/cgi-bin/scripts/clip/image/roboti.jpg"; $t2=explode(">",$t1[1]); $t3=explode("<",$t2[1]); $title = $t3[0]; $link = 'http://127.0.0.1/cgi-bin/scripts/clip/php/roboti_link.php?file='.urlencode($link); $name = preg_replace('/[^A-Za-z0-9_]/','_',$title).".mp4"; if (strpos($title,"Goodies") === false) { echo' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); url="'.$link.'"; movie=getUrl(url); cancelIdle(); playItemUrl(movie,10); </script> </onClick> <download>'.$link.'</download> <name>'.$name.'</name> <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 urmatoare</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/clip/php/roboti.php
PHP
gpl3
6,678
#!/usr/local/bin/Resource/www/cgi-bin/php <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $link = $_GET["file"]; $html = file_get_contents($link); $t1 = explode('file=', $html); $t2 = explode('&', $t1[1]); $link = "http://www.happyfish.ro".$t2[0]; print $link; ?>
1073s
trunk/clip/php/happyfish_link.php
PHP
gpl3
455
#!/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); } $k = $_GET["file"]; $l="http://www.vplay.ro/play/dinosaur.do"; $post="onLoad=%5Btype%20Function%5D&external=0&key=".$k; $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_MAXREDIRS, 3); curl_setopt ($ch, CURLOPT_POST, 1); curl_setopt ($ch, CURLOPT_POSTFIELDS, $post); curl_setopt($ch,CURLOPT_REFERER,"http://i.vplay.ro/f/embed.swf?key=".$k); //curl_setopt($ch, CURLOPT_COOKIEFILE, 'D://cookies.txt'); $page = curl_exec($ch); curl_close($ch); $l=str_between($page,"nqURL=","&"); print $l; ?>
1073s
trunk/clip/php/vplay_link.php
PHP
gpl3
1,047
#!/usr/local/bin/Resource/www/cgi-bin/php <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $link = $_GET["file"]; $html = file_get_contents($link); $t1 = explode('sdURL', $html); $sd=urldecode($t1[1]); $t1=explode('"',$sd); $sd=$t1[2]; $sd=str_replace("\\","",$sd); $n=explode("?",$sd); $nameSD=$n[0]; $nameSD=substr(strrchr($nameSD,"/"),1); $t1 = explode('hqURL', $html); $hd=urldecode($t1[1]); $t1=explode('"',$hd); $hd=$t1[2]; $hd=str_replace("\\","",$hd); $n=explode("?",$hd); $nameHD=$n[0]; $nameHD=substr(strrchr($nameHD,"/"),1); if ($hd <> "") { print $hd; } if (($sd <> "") && ($hd=="")) { print $sd; } ?>
1073s
trunk/clip/php/dm_link.php
PHP
gpl3
888
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; $img = "/usr/local/etc/www/cgi-bin/scripts/clip/image/dailymotion.png"; ?> <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> <?php echo $img; ?> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); 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> <searchLink> <link> <script>"<?php echo $host; ?>/scripts/clip/php/dm_search.php?query=1," + urlEncode(keyword) + "," + urlEncode(keyword);</script> </link> </searchLink> <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>dailymotion</title> <item> <title>Căutare</title> <onClick> keyword = getInput(); if (keyword != null) { jumpToLink("searchLink"); } </onClick> </item> <item> <title>Most viewed videos</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/en/visited,Most+viewed+videos</link> </item> <item> <title>Most recent videos</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/ro,Most+recent+videos</link> </item> <item> <title>Top rated videos</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/en/rated,Top+rated+videos</link> </item> <item> <title>Featured users</title> <link><?php echo $host; ?>/scripts/clip/php/dm_user_main.php?query=,http://www.dailymotion.com/users/featured</link> </item> <item> <title>Classic black &amp; white movies</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/playlist/x1dqg9_crazedigitalmovies_classic-and-black-white-movies,Classic+black+and+white+movies</link> </item> <item> <title>football</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/creative-official/search/football,football</link> </item> <item> <title>FOX Sports Interactive</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/user/FOX_Sports_Interactive,FOX+Sports+Interactive</link> </item> <item> <title>Animals</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/en/channel/animals,Animals</link> </item> <item> <title>Arts</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/en/channel/creation,Arts</link> </item> <item> <title>Auto-Moto</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/en/channel/auto,Auto-Moto</link> </item> <item> <title>College</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/featured/channel/school,College</link> </item> <item> <title>Featured videos</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/en/featured,Featured+videos</link> </item> <item> <title>Film & TV</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/en/channel/shortfilms,Film</link> </item> <item> <title>Funny</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/en/channel/fun,Funny</link> </item> <item> <title>Gaming</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/en/channel/videogames,Gaming</link> </item> <item> <title>HD videos</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/en/hd,HD+videos</link> </item> <item> <title>Life & Style</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/en/channel/lifestyle,Life+and+Style</link> </item> <item> <title>Most visited</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/en/visited-week,Most+visited</link> </item> <item> <title>Motionmaker videos</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/en/creative,Motionmaker+videos</link> </item> <item> <title>Music</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/en/channel/music,Music</link> </item> <item> <title>News & Politics</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/en/channel/news,News+and+Politics</link> </item> <item> <title>Official Content videos</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/en/official,Official+Content+videos</link> </item> <item> <title>People & Family</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/featured/channel/people,People+and+Family</link> </item> <item> <title>Sexy</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/featured/channel/sexy,Sexy</link> </item> <item> <title>Sports & Extreme</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/en/channel/sport,Sports+and+Extreme</link> </item> <item> <title>Tech & Science</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/en/channel/tech,Tech+and+Science</link> </item> <item> <title>Travel</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/en/channel/travel,Travel</link> </item> <item> <title>Webcam & Vlogs</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/featured/channel/webcam,Webcam+Vlogs</link> </item> </channel> </rss>
1073s
trunk/clip/dm.php
PHP
gpl3
9,419
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; $img = "/usr/local/etc/www/cgi-bin/scripts/filme/image/peteava.png"; ?> <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" 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> <?php echo $img; ?> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); 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> <searchLink> <link> <script>"<?php echo $host; ?>/scripts/filme/php/peteava_search.php?query=1," + urlEncode(keyword) + "," + urlEncode(keyword);</script> </link> </searchLink> <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>peteava.ro</title> <item> <title>Căutare</title> <onClick> keyword = getInput(); if (keyword != null) { jumpToLink("searchLink"); } </onClick> </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.peteava.ro/"); $html=str_between($html,'var categories = new Array();','</script>'); $videos = explode('categories[', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1=explode("]",$video); $cat=$t1[0]; if (strlen($cat)==1) { $t1=explode("'",$video); $t2=explode("'",$t1[1]); $title=$t2[0]; $link=$host."/scripts/clip/php/peteava_cat.php?file=".$cat.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> </item> '; } } ?> </channel> </rss>
1073s
trunk/clip/peteava_main.php
PHP
gpl3
5,462
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; $img = "/usr/local/etc/www/cgi-bin/scripts/clip/image/trilulilu.png"; ?> <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> <?php echo $img; ?> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); 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> <searchLink> <link> <script>"<?php echo $host."/scripts/clip/php/trilulilu_s.php?query=1,"; ?>" + urlEncode(keyword) + "," + urlEncode(keyword);</script> </link> </searchLink> <channel> <title>trilulilu.ro</title> <item> <title>Căutare</title> <onClick> keyword = getInput(); if (keyword != null) { jumpToLink("searchLink"); } </onClick> </item> <item> <title>Toate</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/video,Toate</link> </item> <item> <title>Muzică</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/video/muzica/cele-mai-recente/saptamana,Muzica</link> </item> <item> <title>Filme</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/video/film/cele-mai-recente/saptamana,Film</link> </item> <item> <title>Cinefocus</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/canal/cinefocus,Cinefocus</link> </item> <item> <title>Animaţie</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/video/animatie/cele-mai-recente/saptamana,Animatie</link> </item> <item> <title>Haioase</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/video/haioase/cele-mai-recente/saptamana,Haioase</link> </item> <item> <title>Luzarii de pe Electrolizei</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/canal/luzarii,Luzarii+de+pe+Electrolizei</link> </item> <item> <title>Divertisment</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/video/divertisment/cele-mai-recente/saptamana,Divertisment</link> </item> <item> <title>Animale</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/video/animale/cele-mai-recente/saptamana,Animale</link> </item> <item> <title>Incredibil</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/video/incredibil/cele-mai-recente/saptamana,Incredibil</link> </item> <item> <title>Auto</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/video/auto-moto/cele-mai-recente/saptamana,Auto</link> </item> <item> <title>Business</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/video/business/cele-mai-recente/saptamana,Business</link> </item> <item> <title>Călătorii</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/video/calatorii/cele-mai-recente/saptamana,Calatorii</link> </item> <item> <title>Cultură</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/video/cultura/cele-mai-recente/saptamana,Cultura</link> </item> <item> <title>Diverse</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/video/diverse/cele-mai-recente/saptamana,Diverse</link> </item> <item> <title>Evenimente</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/video/evenimente/cele-mai-recente/saptamana,Evenimente</link> </item> <item> <title>Jocuri</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/video/jocuri/cele-mai-recente/saptamana,Jocuri</link> </item> <item> <title>Politică</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/video/politica/cele-mai-recente/saptamana,Politica</link> </item> <item> <title>Sport</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/video/sport/cele-mai-recente/saptamana,Sport</link> </item> <item> <title>Ştiri</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/video/stiri/cele-mai-recente/saptamana,Stiri</link> </item> <item> <title>Tehnologie</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/video/tehnologie/cele-mai-recente/saptamana,Tehnologie</link> </item> </channel> </rss>
1073s
trunk/clip/.svn/text-base/trilulilu.php.svn-base
PHP
gpl3
8,569
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; $img = "/usr/local/etc/www/cgi-bin/scripts/clip/image/video_rol_ro.gif"; ?> <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 $img; ?> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); 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>video.rol.ro</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); } $link="http://video.rol.ro/"; $html=file_get_contents($link); $html1=str_between($html,"CATEGORII","</div>"); $videos = explode("<li>", $html1); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1=explode('href="',$video); $t2=explode('"',$t1[1]); $link=$t2[0]; $t3=explode(">",$t1[1]); $t4=explode("<",$t3[1]); $title=$t4[0]; $link=$host."/scripts/clip/php/video_rol_ro.php?query=1,".$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> </item> '; } ?> </channel> </rss>
1073s
trunk/clip/.svn/text-base/video_rol_ro.php.svn-base
PHP
gpl3
5,142
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; $img = "/usr/local/etc/www/cgi-bin/scripts/clip/image/almanahe.png"; ?> <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> <?php echo $img; ?> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); 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>almanahe.ro</title> <?php $link="http://www.almanahe.ro/video/videolist/videonew.html"; $title="Cele mai noi"; echo ' <item> <title>'.$title.'</title> <link>'.$host.'/scripts/clip/php/almanahe.php?query=1,'.urlencode($link).','.urlencode($title).'</link> </item> '; 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.almanahe.ro/video/index.html"; $html=file_get_contents($link); $html1=str_between($html,"Categorii Video","</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=$t2[0]; $t3=explode(">",$t1[1]); $t4=explode("<",$t3[1]); $title=$t4[0]; $link=$host.'/scripts/clip/php/almanahe.php?query=1,'.urlencode($link).','.urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> </item> '; } ?> </channel> </rss>
1073s
trunk/clip/.svn/text-base/almanahe.php.svn-base
PHP
gpl3
5,410
#!/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"); middleItem = Integer(itemCount / 2); redrawDisplay(); </onRefresh> <mediaDisplay name=photoView centerXPC=7 centerYPC=25 centerHeightPC=40 columnCount=5 rowCount=1 menuBorderColor="55:55:55" sideColorBottom="0:0:0" sideColorTop="0:0:0" backgroundColor="0:0:0" imageBorderColor="0:0:0" itemBackgroundColor="0:0:0" itemGapXPC=0 itemGapYPC=1 sideTopHeightPC=22 bottomYPC=85 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> <!-- lines="5" fontSize=15 --> <text align="center" redraw="yes" lines=3 fontSize=17 offsetXPC=5 offsetYPC=65 widthPC=90 heightPC=20 backgroundColor=0:0:0 foregroundColor=120:120:120> <script>print(annotation); annotation;</script> </text> <text align="center" redraw="yes" offsetXPC=10 offsetYPC=85 widthPC=80 heightPC=10 fontSize=15 backgroundColor=0:0:0 foregroundColor=75:75:75> <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> <image> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); } getItemInfo(idx, "image"); </script> <offsetXPC> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) 0; else 12; </script> </offsetXPC> <offsetYPC> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) 0; else 6; </script> </offsetYPC> <widthPC> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) 100; else 75; </script> </widthPC> <heightPC> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) 50; else 37; </script> </heightPC> </image> <text align="center" lines="4" offsetXPC=0 offsetYPC=55 widthPC=100 heightPC=45 backgroundColor=-1:-1:-1> <script> idx = getQueryItemIndex(); getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "18"; else "14"; </script> </fontSize> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "75:75:75"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); majorContext = getPageInfo("majorContext"); print("*** majorContext=",majorContext); print("*** userInput=",userInput); if(userInput == "one" || userInput == "1") { if(itemCount &gt;= 1) { setFocusItemIndex(0); redrawDisplay(); } } else if(userInput == "two" || userInput == "2") { if(itemCount &gt;= 2) { setFocusItemIndex(1); redrawDisplay(); } } else if(userInput == "three" || userInput == "3") { if(itemCount &gt;= 3) { setFocusItemIndex(2); redrawDisplay(); } } else if(userInput == "four" || userInput == "4") { if(itemCount &gt;= 4) { setFocusItemIndex(3); redrawDisplay(); } } else if(userInput == "five" || userInput == "5") { if(itemCount &gt;= 5) { setFocusItemIndex(4); redrawDisplay(); } } else if(userInput == "six" || userInput == "6") { if(itemCount &gt;= 6) { setFocusItemIndex(5); redrawDisplay(); } } else if(userInput == "seven" || userInput == "7") { if(itemCount &gt;= 7) { setFocusItemIndex(6); redrawDisplay(); } } else if(userInput == "eight" || userInput == "8") { if(itemCount &gt;= 8) { setFocusItemIndex(7); redrawDisplay(); } } else if(userInput == "nine" || userInput == "9") { if(itemCount &gt;= 9) { setFocusItemIndex(8); redrawDisplay(); } } if(userInput == "zero" || userInput == "0") { if(itemCount &gt;= 10) { setFocusItemIndex(9); redrawDisplay(); } } else if (userInput == "pagedown" || userInput == "pageup" || userInput == "PD" || userInput == "PG") { itemSize = getPageInfo("itemCount"); idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -5; if(idx &gt;= itemSize) idx = itemSize-1; } else { idx -= 5; if(idx &lt; 0) idx = 0; } setFocusItemIndex(idx); setItemFocus(idx); redrawDisplay(); 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> <channel> <title>Videoclipuri</title> <item> <title>Youtube</title> <link>rss_file:///usr/local/etc/www/cgi-bin/scripts/clip/youtube/yt_index.rss</link> <location>http://youtube.com</location> <image>image/youtube.gif</image> <media:thumbnail url="image/youtube.gif" /> <annotation>YouTube este un loc în care puteti descoperi, urmări, încărca şi distribui videoclipuri.</annotation> <mediaDisplay name="onePartView" /> </item> <!-- <item> <title>Youtube user uploads</title> <link>rss_command://search</link> <location>http://youtube.com</location> <search url="<?php echo $host; ?>/scripts/php1/youtube_user.php?query=1,%s" /> <image>image/youtube.gif</image> <media:thumbnail url="image/youtube.gif" /> <annotation>Căutare videoclipuri postate pe youtube de către....</annotation> </item> --> <item> <title>220</title> <link><?php echo $host; ?>/scripts/clip/220.php</link> <location>http://www.220.ro/</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/220.jpg</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/220.jpg" /> <annotation>Te ţine în priză!</annotation> </item> <item> <title>vplay</title> <link><?php echo $host; ?>/scripts/clip/php/vplay_main.php</link> <location>http://www.vplay.ro/</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/vplay.jpg</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/vplay.jpg" /> <annotation>Videoclipuri HD Online</annotation> </item> <item> <title>happyfish</title> <link><?php echo $host; ?>/scripts/clip/php/happyfish_main.php</link> <location>http://www.happyfish.ro/arhiva</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/happyfish.png</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/happyfish.png" /> <annotation>Vrem altă Românie</annotation> </item> <item> <title>trilulilu</title> <link><?php echo $host; ?>/scripts/clip/trilulilu.php</link> <location>http://www.trilulilu.ro</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/trilulilu.png</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/trilulilu.png" /> <annotation>Vezi, asculţi, dai mai departe</annotation> </item> <item> <title>peţeavă</title> <link><?php echo $host; ?>/scripts/clip/peteava_main.php</link> <location>http://www.peteava.ro/</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/peteava.png</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/peteava.png" /> <annotation>Play me! Poţi încărca 50 de clipuri video sau 50 de imagini simultan, iar clipurile video pot avea 1 GB sau 50 min.</annotation> </item> <item> <title>ViaţaLaServiciu</title> <link><?php echo $host; ?>/scripts/clip/php/viatalaserviciu.php</link> <location>http://www.viatalaserviciu.ro/</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/viatalaserviciu.gif</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/viatalaserviciu.gif" /> <annotation>Televizorul de la muncă</annotation> </item> <item> <title>VideoAlegeNet</title> <link><?php echo $host; ?>/scripts/clip/php/video_alege_net.php?query=0,http://video.alege.net/c-filme-noi-ro-</link> <location>http://video.alege.net</location> <image>image/videoclip.png</image> <media:thumbnail url="image/videoclip.png" /> <annotation>Pentru tine</annotation> </item> <item> <title>almanahe</title> <link><?php echo $host; ?>/scripts/clip/almanahe.php</link> <location>http://www.almanahe.ro/</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/almanahe.png</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/almanahe.png" /> <annotation>Români cu simţul umorului, uniţi-vă!</annotation> </item> <item> <title>sanchi</title> <link><?php echo $host; ?>/scripts/clip/php/sanchi_main.php</link> <location>http://www.sanchi.ro/</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/sanchi.jpg</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/sanchi.jpg" /> <annotation>Pastila ta de bună dispoziţie</annotation> </item> <item> <title>myvideo</title> <link><?php echo $host; ?>/scripts/clip/php/myvideo.php</link> <location>http://www.myvideo.ro/</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/myvideo.gif</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/myvideo.gif" /> <annotation>Iubim filmuleţele haioase!</annotation> </item> <item> <title>RObotzi</title> <link><?php echo $host; ?>/scripts/clip/php/roboti.php?query=1,</link> <location>http://creativemonkeyz.com/category/roboti/</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/roboti.jpg</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/roboti.jpg" /> <annotation>Website dedicat artei!</annotation> </item> <item> <title>top1</title> <link><?php echo $host; ?>/scripts/clip/php/top1_main.php</link> <location>http://www.top1.ro</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/top1.gif</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/top1.gif" /> <annotation>Portalul top1 este o comunitate de prieteni, intra si tu si creaza-ti cont si poti uploada propriile filme si distreaza-te cu prietenii.</annotation> </item> <item> <title>Vimeo</title> <link><?php echo $host; ?>/scripts/clip/php/vimeo_cat.php</link> <location>http://vimeo.com/</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/vimeo.jpg</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/vimeo.jpg" /> <annotation>Vimeo is a respectful community of creative people who are passionate about sharing the videos they make. We provide the best tools and highest quality video.</annotation> </item> <item> <title>Dailymotion</title> <link><?php echo $host; ?>/scripts/clip/dm.php</link> <location>http://www.dailymotion.com</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/dailymotion.png</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/dailymotion.png" /> <annotation>Dailymotion is about finding new ways to see, share and engage your world through the power of online video. You can find or upload videos.</annotation> </item> <!-- <item> <title>dump.</title> <link><?php echo $host; ?>/scripts/clip/php/dump.php</link> <location>http://dump.ro/</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/dump.jpg</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/dump.jpg" /> <annotation>Uploadeaza-ti si tu clipurile sau amintirile preferate, pentru a le arata prietenilor sau efectiv pentru a le avea la indemana, cu noua facilitate pe care ti-o ofera Dump.ro vei putea vedea fisierele video intr-o fereastra mult mai mare .</annotation> </item> --> <!-- <item> <title>video.rol</title> <link><?php echo $host; ?>/scripts/clip/video_rol_ro.php</link> <location>http://video.rol.ro</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/video_rol_ro.gif</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/video_rol_ro.gif" /> <annotation>VideoMix.ro - video, filme, clipuri haioase, filme online, videoclipuri, muzica</annotation> </item> --> <!-- <item> <title>BlipTV</title> <link><?php echo $host; ?>/scripts/clip/bliptv.php</link> <location>http://blip.tv/</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/blip_tv.jpg</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/blip_tv.jpg" /> <annotation>Our mission is to make independent Web shows sustainable. We provide services to more than 50,000 independently produced Web shows. More than 44,000 show creators use blip.tv every day to manage their online and offline presence.</annotation> </item> --> <item> <title>funnyordie</title> <link><?php echo $host; ?>/scripts/clip/php/funnyordie_main.php</link> <location>http://www.funnyordie.com</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/funnyordie.png</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/funnyordie.png" /> <annotation>funny or die - Funny videos, funny pictures, funny jokes, top ten lists, funny blogs, caption contests, and funny articles featuring celebrities, comedians, and you.</annotation> </item> <item> <title>youclubvideo</title> <link><?php echo $host; ?>/scripts/clip/php/youclubvideo.php</link> <location>http://www.youclubvideo.com</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/youclubvideo.png</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/youclubvideo.png" /> <annotation>YouClubVideo was started as an idea to bring together a wide variety of clubbing experiences and people from all the countries of the world that have in common the same feelings, sounds and sences of club music.</annotation> </item> <item> <title>Best of YouTube (iPod video)</title> <link>http://feeds.feedburner.com/boyt</link> <location>http://feeds.feedburner.com/boyt</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/bestofyoutube.jpg</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/bestofyoutube.jpg" /> <annotation>The best video clips from YouTube delivered directly to your iPod</annotation> <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> Best of YouTube </text> </mediaDisplay> </item> <item> <title>Revision3</title> <link><?php echo $host; ?>/scripts/tv/rev3.php</link> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/tv/image/revision3.gif" /> <image>/usr/local/etc/www/cgi-bin/scripts/tv/image/revision3.gif</image> <location>http://revision3.com/</location> <annotation>Revision3 is the leading independent free online video service that offers hit TV shows including Diggnation with Kevin Rose, Scam School, Film Riot, etc.</annotation> </item> <!-- <item> <title>Video Podcast from SDK4</title> <link>/usr/local/etc/www/cgi-bin/scripts/clip/videopodcast.rss</link> <location></location> <image>/usr/local/etc/www/cgi-bin/scripts/user/image/metafeeds.jpg</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/user/image/metafeeds.jpg" /> <annotation>Video Podcast from SDK4</annotation> </item> --> <item> <title>HD Podcast</title> <link><?php echo $host; ?>/scripts/clip/php/podcasthd.php</link> <location>http://www.podcast.tv/high-definition-video-podcasts.html</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/podcast.png</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/podcast.png" /> <annotation>HD-Podcasts (High Definition) | podcast.tv is an international video podcast directory with podcast recommendations and useful podcasting functions for enjoying podcasts and learn how to podcast</annotation> </item> <item> <title>Video Podcast Directory</title> <link><?php echo $host; ?>/scripts/clip/php/videopodcasts_main.php</link> <location>http://www.videopodcasts.tv/</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/videopodcasts.gif</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/videopodcasts.gif" /> <annotation>The best video podcast directory. Search the biggest collection of video podcasts, video podcast feeds and video podcast software in the universe. Play, share, and enjoy!</annotation> </item> </channel> </rss>
1073s
trunk/clip/.svn/text-base/clip.php.svn-base
PHP
gpl3
19,620
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; $img = "/usr/local/etc/www/cgi-bin/scripts/filme/image/peteava.png"; ?> <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" 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> <?php echo $img; ?> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); 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> <searchLink> <link> <script>"<?php echo $host; ?>/scripts/filme/php/peteava_search.php?query=1," + urlEncode(keyword) + "," + urlEncode(keyword);</script> </link> </searchLink> <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>peteava.ro</title> <item> <title>Căutare</title> <onClick> keyword = getInput(); if (keyword != null) { jumpToLink("searchLink"); } </onClick> </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.peteava.ro/"); $html=str_between($html,'var categories = new Array();','</script>'); $videos = explode('categories[', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1=explode("]",$video); $cat=$t1[0]; if (strlen($cat)==1) { $t1=explode("'",$video); $t2=explode("'",$t1[1]); $title=$t2[0]; $link=$host."/scripts/clip/php/peteava_cat.php?file=".$cat.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> </item> '; } } ?> </channel> </rss>
1073s
trunk/clip/.svn/text-base/peteava_main.php.svn-base
PHP
gpl3
5,462
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; $img = "/usr/local/etc/www/cgi-bin/scripts/clip/image/dailymotion.png"; ?> <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> <?php echo $img; ?> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); 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> <searchLink> <link> <script>"<?php echo $host; ?>/scripts/clip/php/dm_search.php?query=1," + urlEncode(keyword) + "," + urlEncode(keyword);</script> </link> </searchLink> <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>dailymotion</title> <item> <title>Căutare</title> <onClick> keyword = getInput(); if (keyword != null) { jumpToLink("searchLink"); } </onClick> </item> <item> <title>Most viewed videos</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/en/visited,Most+viewed+videos</link> </item> <item> <title>Most recent videos</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/ro,Most+recent+videos</link> </item> <item> <title>Top rated videos</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/en/rated,Top+rated+videos</link> </item> <item> <title>Featured users</title> <link><?php echo $host; ?>/scripts/clip/php/dm_user_main.php?query=,http://www.dailymotion.com/users/featured</link> </item> <item> <title>Classic black &amp; white movies</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/playlist/x1dqg9_crazedigitalmovies_classic-and-black-white-movies,Classic+black+and+white+movies</link> </item> <item> <title>football</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/creative-official/search/football,football</link> </item> <item> <title>FOX Sports Interactive</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/user/FOX_Sports_Interactive,FOX+Sports+Interactive</link> </item> <item> <title>Animals</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/en/channel/animals,Animals</link> </item> <item> <title>Arts</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/en/channel/creation,Arts</link> </item> <item> <title>Auto-Moto</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/en/channel/auto,Auto-Moto</link> </item> <item> <title>College</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/featured/channel/school,College</link> </item> <item> <title>Featured videos</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/en/featured,Featured+videos</link> </item> <item> <title>Film & TV</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/en/channel/shortfilms,Film</link> </item> <item> <title>Funny</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/en/channel/fun,Funny</link> </item> <item> <title>Gaming</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/en/channel/videogames,Gaming</link> </item> <item> <title>HD videos</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/en/hd,HD+videos</link> </item> <item> <title>Life & Style</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/en/channel/lifestyle,Life+and+Style</link> </item> <item> <title>Most visited</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/en/visited-week,Most+visited</link> </item> <item> <title>Motionmaker videos</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/en/creative,Motionmaker+videos</link> </item> <item> <title>Music</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/en/channel/music,Music</link> </item> <item> <title>News & Politics</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/en/channel/news,News+and+Politics</link> </item> <item> <title>Official Content videos</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/en/official,Official+Content+videos</link> </item> <item> <title>People & Family</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/featured/channel/people,People+and+Family</link> </item> <item> <title>Sexy</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/featured/channel/sexy,Sexy</link> </item> <item> <title>Sports & Extreme</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/en/channel/sport,Sports+and+Extreme</link> </item> <item> <title>Tech & Science</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/en/channel/tech,Tech+and+Science</link> </item> <item> <title>Travel</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/en/channel/travel,Travel</link> </item> <item> <title>Webcam & Vlogs</title> <link><?php echo $host; ?>/scripts/clip/php/dm.php?query=,http://www.dailymotion.com/featured/channel/webcam,Webcam+Vlogs</link> </item> </channel> </rss>
1073s
trunk/clip/.svn/text-base/dm.php.svn-base
PHP
gpl3
9,419
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; $img = "/usr/local/etc/www/cgi-bin/scripts/clip/image/220.jpg"; ?> <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> <?php echo $img; ?> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); 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> <searchLink> <link> <script>"<?php echo $host; ?>/scripts/clip/php/220_search.php?query=1," + urlEncode(keyword) + "," + urlEncode(keyword);</script> </link> </searchLink> <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>220.ro</title> <item> <title>Căutare</title> <onClick> keyword = getInput(); if (keyword != null) { jumpToLink("searchLink"); } </onClick> </item> <item> <title>200.ro - shows</title> <link><?php echo $host; ?>/scripts/clip/php/220_show_main.php</link> </item> <item> <title>200.ro - selecţii</title> <link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/,Selectii</link> </item> <item> <title>200.ro - filmele zilei</title> <link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/filmele-zilei/,Filmele+zilei</link> </item> <item> <title>200.ro - cele mai recente</title> <link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/cele-mai-noi/,Cele+mai+recente</link> </item> <item> <title>200.ro - cele mai vizionate</title> <link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/cele-mai-vazute/,Cele+mai+vizionate</link> </item> <item> <title>200.ro - cele mai comentate</title> <link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/cele-mai-comentate/,Cele+mai+comentate</link> </item> <item> <title>Toate filmele</title> <link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/video/,Toate+filmele</link> </item> <item> <title>Animale</title> <link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/animale/,Animale</link> </item> <item> <title>Auto, moto</title> <link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/auto/,Auto</link> </item> <item> <title>Cinema, movie trailers</title> <link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/trailer/,Cinema</link> </item> <item> <title>Comedie, umor românesc</title> <link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/umor-romanesc/,Comedie</link> </item> <item> <title>Desene animate</title> <link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/desene-animate/,Desene+animate</link> </item> <item> <title>Emisiuni TV</title> <link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/emisiuni-tv/,Emisiuni+TV</link> </item> <item> <title>Farse</title> <link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/farse/,Farse</link> </item> <item> <title>Faze tari</title> <link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/faze-tari/,Faze+tari</link> </item> <item> <title>Funny</title> <link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/funny/,Funny</link> </item> <item> <title>Interzis la birou</title> <link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/sexy/,Interzis+la+birou</link> </item> <item> <title>Jocuri</title> <link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/gaming/,Jocuri</link> </item> <item> <title>Muzică, videoclipuri</title> <link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/videoclipuri/,Muzica</link> </item> <item> <title>Prieteni, petreceri, clubbing</title> <link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/party/,Prieteni</link> </item> <item> <title>Reclame</title> <link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/reclame/,Reclame</link> </item> <item> <title>Sport</title> <link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/sport/,Sport</link> </item> <item> <title>Vedete</title> <link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/vedete/,Vedete</link> </item> </channel> </rss>
1073s
trunk/clip/.svn/text-base/220.php.svn-base
PHP
gpl3
8,121
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; $img = "/usr/local/etc/www/cgi-bin/scripts/clip/image/trilulilu.png"; ?> <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> <?php echo $img; ?> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); 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> <searchLink> <link> <script>"<?php echo $host."/scripts/clip/php/trilulilu_s.php?query=1,"; ?>" + urlEncode(keyword) + "," + urlEncode(keyword);</script> </link> </searchLink> <channel> <title>trilulilu.ro</title> <item> <title>Căutare</title> <onClick> keyword = getInput(); if (keyword != null) { jumpToLink("searchLink"); } </onClick> </item> <item> <title>Toate</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/video,Toate</link> </item> <item> <title>Muzică</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/video/muzica/cele-mai-recente/saptamana,Muzica</link> </item> <item> <title>Filme</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/video/film/cele-mai-recente/saptamana,Film</link> </item> <item> <title>Cinefocus</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/canal/cinefocus,Cinefocus</link> </item> <item> <title>Animaţie</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/video/animatie/cele-mai-recente/saptamana,Animatie</link> </item> <item> <title>Haioase</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/video/haioase/cele-mai-recente/saptamana,Haioase</link> </item> <item> <title>Luzarii de pe Electrolizei</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/canal/luzarii,Luzarii+de+pe+Electrolizei</link> </item> <item> <title>Divertisment</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/video/divertisment/cele-mai-recente/saptamana,Divertisment</link> </item> <item> <title>Animale</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/video/animale/cele-mai-recente/saptamana,Animale</link> </item> <item> <title>Incredibil</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/video/incredibil/cele-mai-recente/saptamana,Incredibil</link> </item> <item> <title>Auto</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/video/auto-moto/cele-mai-recente/saptamana,Auto</link> </item> <item> <title>Business</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/video/business/cele-mai-recente/saptamana,Business</link> </item> <item> <title>Călătorii</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/video/calatorii/cele-mai-recente/saptamana,Calatorii</link> </item> <item> <title>Cultură</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/video/cultura/cele-mai-recente/saptamana,Cultura</link> </item> <item> <title>Diverse</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/video/diverse/cele-mai-recente/saptamana,Diverse</link> </item> <item> <title>Evenimente</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/video/evenimente/cele-mai-recente/saptamana,Evenimente</link> </item> <item> <title>Jocuri</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/video/jocuri/cele-mai-recente/saptamana,Jocuri</link> </item> <item> <title>Politică</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/video/politica/cele-mai-recente/saptamana,Politica</link> </item> <item> <title>Sport</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/video/sport/cele-mai-recente/saptamana,Sport</link> </item> <item> <title>Ştiri</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/video/stiri/cele-mai-recente/saptamana,Stiri</link> </item> <item> <title>Tehnologie</title> <link><?php echo $host; ?>/scripts/clip/php/trilulilu.php?query=1,http://www.trilulilu.ro/video/tehnologie/cele-mai-recente/saptamana,Tehnologie</link> </item> </channel> </rss>
1073s
trunk/clip/trilulilu.php
PHP
gpl3
8,569
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; $img = "/usr/local/etc/www/cgi-bin/scripts/clip/image/almanahe.png"; ?> <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> <?php echo $img; ?> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); 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>almanahe.ro</title> <?php $link="http://www.almanahe.ro/video/videolist/videonew.html"; $title="Cele mai noi"; echo ' <item> <title>'.$title.'</title> <link>'.$host.'/scripts/clip/php/almanahe.php?query=1,'.urlencode($link).','.urlencode($title).'</link> </item> '; 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.almanahe.ro/video/index.html"; $html=file_get_contents($link); $html1=str_between($html,"Categorii Video","</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=$t2[0]; $t3=explode(">",$t1[1]); $t4=explode("<",$t3[1]); $title=$t4[0]; $link=$host.'/scripts/clip/php/almanahe.php?query=1,'.urlencode($link).','.urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> </item> '; } ?> </channel> </rss>
1073s
trunk/clip/almanahe.php
PHP
gpl3
5,410
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; $img = "/usr/local/etc/www/cgi-bin/scripts/clip/image/video_rol_ro.gif"; ?> <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 $img; ?> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); 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>video.rol.ro</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); } $link="http://video.rol.ro/"; $html=file_get_contents($link); $html1=str_between($html,"CATEGORII","</div>"); $videos = explode("<li>", $html1); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1=explode('href="',$video); $t2=explode('"',$t1[1]); $link=$t2[0]; $t3=explode(">",$t1[1]); $t4=explode("<",$t3[1]); $title=$t4[0]; $link=$host."/scripts/clip/php/video_rol_ro.php?query=1,".$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> </item> '; } ?> </channel> </rss>
1073s
trunk/clip/video_rol_ro.php
PHP
gpl3
5,142
#!/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"); middleItem = Integer(itemCount / 2); redrawDisplay(); </onRefresh> <mediaDisplay name=photoView centerXPC=7 centerYPC=25 centerHeightPC=40 columnCount=5 rowCount=1 menuBorderColor="55:55:55" sideColorBottom="0:0:0" sideColorTop="0:0:0" backgroundColor="0:0:0" imageBorderColor="0:0:0" itemBackgroundColor="0:0:0" itemGapXPC=0 itemGapYPC=1 sideTopHeightPC=22 bottomYPC=85 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> <!-- lines="5" fontSize=15 --> <text align="center" redraw="yes" lines=3 fontSize=17 offsetXPC=5 offsetYPC=65 widthPC=90 heightPC=20 backgroundColor=0:0:0 foregroundColor=120:120:120> <script>print(annotation); annotation;</script> </text> <text align="center" redraw="yes" offsetXPC=10 offsetYPC=85 widthPC=80 heightPC=10 fontSize=15 backgroundColor=0:0:0 foregroundColor=75:75:75> <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> <image> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); } getItemInfo(idx, "image"); </script> <offsetXPC> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) 0; else 12; </script> </offsetXPC> <offsetYPC> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) 0; else 6; </script> </offsetYPC> <widthPC> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) 100; else 75; </script> </widthPC> <heightPC> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) 50; else 37; </script> </heightPC> </image> <text align="center" lines="4" offsetXPC=0 offsetYPC=55 widthPC=100 heightPC=45 backgroundColor=-1:-1:-1> <script> idx = getQueryItemIndex(); getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "18"; else "14"; </script> </fontSize> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "75:75:75"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); majorContext = getPageInfo("majorContext"); print("*** majorContext=",majorContext); print("*** userInput=",userInput); if(userInput == "one" || userInput == "1") { if(itemCount &gt;= 1) { setFocusItemIndex(0); redrawDisplay(); } } else if(userInput == "two" || userInput == "2") { if(itemCount &gt;= 2) { setFocusItemIndex(1); redrawDisplay(); } } else if(userInput == "three" || userInput == "3") { if(itemCount &gt;= 3) { setFocusItemIndex(2); redrawDisplay(); } } else if(userInput == "four" || userInput == "4") { if(itemCount &gt;= 4) { setFocusItemIndex(3); redrawDisplay(); } } else if(userInput == "five" || userInput == "5") { if(itemCount &gt;= 5) { setFocusItemIndex(4); redrawDisplay(); } } else if(userInput == "six" || userInput == "6") { if(itemCount &gt;= 6) { setFocusItemIndex(5); redrawDisplay(); } } else if(userInput == "seven" || userInput == "7") { if(itemCount &gt;= 7) { setFocusItemIndex(6); redrawDisplay(); } } else if(userInput == "eight" || userInput == "8") { if(itemCount &gt;= 8) { setFocusItemIndex(7); redrawDisplay(); } } else if(userInput == "nine" || userInput == "9") { if(itemCount &gt;= 9) { setFocusItemIndex(8); redrawDisplay(); } } if(userInput == "zero" || userInput == "0") { if(itemCount &gt;= 10) { setFocusItemIndex(9); redrawDisplay(); } } else if (userInput == "pagedown" || userInput == "pageup" || userInput == "PD" || userInput == "PG") { itemSize = getPageInfo("itemCount"); idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -5; if(idx &gt;= itemSize) idx = itemSize-1; } else { idx -= 5; if(idx &lt; 0) idx = 0; } setFocusItemIndex(idx); setItemFocus(idx); redrawDisplay(); 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> <channel> <title>Videoclipuri</title> <item> <title>Youtube</title> <link>rss_file:///usr/local/etc/www/cgi-bin/scripts/clip/youtube/yt_index.rss</link> <location>http://youtube.com</location> <image>image/youtube.gif</image> <media:thumbnail url="image/youtube.gif" /> <annotation>YouTube este un loc în care puteti descoperi, urmări, încărca şi distribui videoclipuri.</annotation> <mediaDisplay name="onePartView" /> </item> <!-- <item> <title>Youtube user uploads</title> <link>rss_command://search</link> <location>http://youtube.com</location> <search url="<?php echo $host; ?>/scripts/php1/youtube_user.php?query=1,%s" /> <image>image/youtube.gif</image> <media:thumbnail url="image/youtube.gif" /> <annotation>Căutare videoclipuri postate pe youtube de către....</annotation> </item> --> <item> <title>220</title> <link><?php echo $host; ?>/scripts/clip/220.php</link> <location>http://www.220.ro/</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/220.jpg</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/220.jpg" /> <annotation>Te ţine în priză!</annotation> </item> <item> <title>vplay</title> <link><?php echo $host; ?>/scripts/clip/php/vplay_main.php</link> <location>http://www.vplay.ro/</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/vplay.jpg</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/vplay.jpg" /> <annotation>Videoclipuri HD Online</annotation> </item> <item> <title>happyfish</title> <link><?php echo $host; ?>/scripts/clip/php/happyfish_main.php</link> <location>http://www.happyfish.ro/arhiva</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/happyfish.png</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/happyfish.png" /> <annotation>Vrem altă Românie</annotation> </item> <item> <title>trilulilu</title> <link><?php echo $host; ?>/scripts/clip/trilulilu.php</link> <location>http://www.trilulilu.ro</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/trilulilu.png</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/trilulilu.png" /> <annotation>Vezi, asculţi, dai mai departe</annotation> </item> <item> <title>peţeavă</title> <link><?php echo $host; ?>/scripts/clip/peteava_main.php</link> <location>http://www.peteava.ro/</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/peteava.png</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/peteava.png" /> <annotation>Play me! Poţi încărca 50 de clipuri video sau 50 de imagini simultan, iar clipurile video pot avea 1 GB sau 50 min.</annotation> </item> <item> <title>ViaţaLaServiciu</title> <link><?php echo $host; ?>/scripts/clip/php/viatalaserviciu.php</link> <location>http://www.viatalaserviciu.ro/</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/viatalaserviciu.gif</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/viatalaserviciu.gif" /> <annotation>Televizorul de la muncă</annotation> </item> <item> <title>VideoAlegeNet</title> <link><?php echo $host; ?>/scripts/clip/php/video_alege_net.php?query=0,http://video.alege.net/c-filme-noi-ro-</link> <location>http://video.alege.net</location> <image>image/videoclip.png</image> <media:thumbnail url="image/videoclip.png" /> <annotation>Pentru tine</annotation> </item> <item> <title>almanahe</title> <link><?php echo $host; ?>/scripts/clip/almanahe.php</link> <location>http://www.almanahe.ro/</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/almanahe.png</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/almanahe.png" /> <annotation>Români cu simţul umorului, uniţi-vă!</annotation> </item> <item> <title>sanchi</title> <link><?php echo $host; ?>/scripts/clip/php/sanchi_main.php</link> <location>http://www.sanchi.ro/</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/sanchi.jpg</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/sanchi.jpg" /> <annotation>Pastila ta de bună dispoziţie</annotation> </item> <item> <title>myvideo</title> <link><?php echo $host; ?>/scripts/clip/php/myvideo.php</link> <location>http://www.myvideo.ro/</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/myvideo.gif</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/myvideo.gif" /> <annotation>Iubim filmuleţele haioase!</annotation> </item> <item> <title>RObotzi</title> <link><?php echo $host; ?>/scripts/clip/php/roboti.php?query=1,</link> <location>http://creativemonkeyz.com/category/roboti/</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/roboti.jpg</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/roboti.jpg" /> <annotation>Website dedicat artei!</annotation> </item> <item> <title>top1</title> <link><?php echo $host; ?>/scripts/clip/php/top1_main.php</link> <location>http://www.top1.ro</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/top1.gif</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/top1.gif" /> <annotation>Portalul top1 este o comunitate de prieteni, intra si tu si creaza-ti cont si poti uploada propriile filme si distreaza-te cu prietenii.</annotation> </item> <item> <title>Vimeo</title> <link><?php echo $host; ?>/scripts/clip/php/vimeo_cat.php</link> <location>http://vimeo.com/</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/vimeo.jpg</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/vimeo.jpg" /> <annotation>Vimeo is a respectful community of creative people who are passionate about sharing the videos they make. We provide the best tools and highest quality video.</annotation> </item> <item> <title>Dailymotion</title> <link><?php echo $host; ?>/scripts/clip/dm.php</link> <location>http://www.dailymotion.com</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/dailymotion.png</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/dailymotion.png" /> <annotation>Dailymotion is about finding new ways to see, share and engage your world through the power of online video. You can find or upload videos.</annotation> </item> <!-- <item> <title>dump.</title> <link><?php echo $host; ?>/scripts/clip/php/dump.php</link> <location>http://dump.ro/</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/dump.jpg</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/dump.jpg" /> <annotation>Uploadeaza-ti si tu clipurile sau amintirile preferate, pentru a le arata prietenilor sau efectiv pentru a le avea la indemana, cu noua facilitate pe care ti-o ofera Dump.ro vei putea vedea fisierele video intr-o fereastra mult mai mare .</annotation> </item> --> <!-- <item> <title>video.rol</title> <link><?php echo $host; ?>/scripts/clip/video_rol_ro.php</link> <location>http://video.rol.ro</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/video_rol_ro.gif</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/video_rol_ro.gif" /> <annotation>VideoMix.ro - video, filme, clipuri haioase, filme online, videoclipuri, muzica</annotation> </item> --> <!-- <item> <title>BlipTV</title> <link><?php echo $host; ?>/scripts/clip/bliptv.php</link> <location>http://blip.tv/</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/blip_tv.jpg</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/blip_tv.jpg" /> <annotation>Our mission is to make independent Web shows sustainable. We provide services to more than 50,000 independently produced Web shows. More than 44,000 show creators use blip.tv every day to manage their online and offline presence.</annotation> </item> --> <item> <title>funnyordie</title> <link><?php echo $host; ?>/scripts/clip/php/funnyordie_main.php</link> <location>http://www.funnyordie.com</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/funnyordie.png</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/funnyordie.png" /> <annotation>funny or die - Funny videos, funny pictures, funny jokes, top ten lists, funny blogs, caption contests, and funny articles featuring celebrities, comedians, and you.</annotation> </item> <item> <title>youclubvideo</title> <link><?php echo $host; ?>/scripts/clip/php/youclubvideo.php</link> <location>http://www.youclubvideo.com</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/youclubvideo.png</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/youclubvideo.png" /> <annotation>YouClubVideo was started as an idea to bring together a wide variety of clubbing experiences and people from all the countries of the world that have in common the same feelings, sounds and sences of club music.</annotation> </item> <item> <title>Best of YouTube (iPod video)</title> <link>http://feeds.feedburner.com/boyt</link> <location>http://feeds.feedburner.com/boyt</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/bestofyoutube.jpg</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/bestofyoutube.jpg" /> <annotation>The best video clips from YouTube delivered directly to your iPod</annotation> <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> Best of YouTube </text> </mediaDisplay> </item> <item> <title>Revision3</title> <link><?php echo $host; ?>/scripts/tv/rev3.php</link> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/tv/image/revision3.gif" /> <image>/usr/local/etc/www/cgi-bin/scripts/tv/image/revision3.gif</image> <location>http://revision3.com/</location> <annotation>Revision3 is the leading independent free online video service that offers hit TV shows including Diggnation with Kevin Rose, Scam School, Film Riot, etc.</annotation> </item> <!-- <item> <title>Video Podcast from SDK4</title> <link>/usr/local/etc/www/cgi-bin/scripts/clip/videopodcast.rss</link> <location></location> <image>/usr/local/etc/www/cgi-bin/scripts/user/image/metafeeds.jpg</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/user/image/metafeeds.jpg" /> <annotation>Video Podcast from SDK4</annotation> </item> --> <item> <title>HD Podcast</title> <link><?php echo $host; ?>/scripts/clip/php/podcasthd.php</link> <location>http://www.podcast.tv/high-definition-video-podcasts.html</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/podcast.png</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/podcast.png" /> <annotation>HD-Podcasts (High Definition) | podcast.tv is an international video podcast directory with podcast recommendations and useful podcasting functions for enjoying podcasts and learn how to podcast</annotation> </item> <item> <title>Video Podcast Directory</title> <link><?php echo $host; ?>/scripts/clip/php/videopodcasts_main.php</link> <location>http://www.videopodcasts.tv/</location> <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/videopodcasts.gif</image> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/videopodcasts.gif" /> <annotation>The best video podcast directory. Search the biggest collection of video podcasts, video podcast feeds and video podcast software in the universe. Play, share, and enjoy!</annotation> </item> </channel> </rss>
1073s
trunk/clip/clip.php
PHP
gpl3
19,620
#!/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"; $p=$_SERVER['SCRIPT_FILENAME']; $script_directory = substr($p, 0, strrpos($p, '/')); $check_file=$script_directory."/filme/peteava.php"; $f_version=$script_directory."/version.txt"; if (file_exists($f_version)) { $curr_vers=trim(file_get_contents($script_directory."/version.txt")); if (file_exists($check_file)) { $avb_vers=trim(file_get_contents("http://hdforall.googlecode.com/files/version.txt")); } else { $avb_vers=trim(file_get_contents("http://hdforall.googlecode.com/files/version_mini.txt")); } if ($avb_vers <> $curr_vers) { $info = "O nouă versiune este disponibilă (".$avb_vers.")! Actualizaţi din meniul System Tools."; } else { $info = "Sfat: Folosiţi tastele 1-9 sau PREV/NEXT pentru o navigare mai uşoară."; } } else { $info = "Sfat: Folosiţi tastele 1-9 sau PREV/NEXT pentru o navigare mai uşoară!"; } ?> <rss version="2.0"> <onEnter> showIdle(); SetScreenSaverStatus("no"); setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); redrawDisplay(); </onRefresh> <mediaDisplay name=photoView centerXPC=7 centerYPC=25 centerHeightPC=60 columnCount=5 rowCount=3 menuBorderColor="55:55:55" sideColorBottom="0:0:0" sideColorTop="0:0:0" backgroundColor="0:0:0" itemBackgroundColor="0:0:0" itemGapXPC=0 itemGapYPC=0 imageBorderColor="10:105:150" imageBorderPC="0" sideTopHeightPC=0 bottomYPC=0 sliding=yes showHeader=no showDefaultInfo=no idleImageWidthPC="8" idleImageHeightPC="10" idleImageXPC="80" idleImageYPC="10"> <text align="left" offsetXPC=5 offsetYPC=5 widthPC=75 heightPC=5 fontSize=15 backgroundColor=0:0:0 foregroundColor=120:120:120> <?php echo $info; ?> </text> <!-- <backgroundDisplay name=ims_guide_menu> <image offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> image/IMS_bg.fsp </image> </backgroundDisplay> --> <text align="left" redraw="yes" useBackgroundSurface=yes offsetXPC="8" offsetYPC="15" widthPC="50" heightPC="8" fontSize="24" foregroundColor="100:200:255"> <script>print(hed); hed;</script> </text> <text align="center" redraw="yes" lines=" 2" useBackgroundSurface=yes offsetXPC="8" offsetYPC="85" widthPC="84" heightPC="12" fontSize="17" foregroundColor="200:200:200"> <script>print(annotation); annotation;</script> </text> <image offsetXPC=0 offsetYPC=23 widthPC=100 heightPC=1> ../etc/translate/rss/image/gradient_line.bmp </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> <image> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { hed = getItemInfo(idx, "title"); annotation = getItemInfo(idx, "annotation"); getItemInfo(idx, "focus"); } else { getItemInfo(idx, "unfocus"); } </script> <offsetXPC> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) 7.5; else 15; </script> </offsetXPC> <offsetYPC> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) 0; else 10; </script> </offsetYPC> <widthPC> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) 85; else 70; </script> </widthPC> <heightPC> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) 80; else 70; </script> </heightPC> </image> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); majorContext = getPageInfo("majorContext"); print("*** majorContext=",majorContext); print("*** userInput=",userInput); if(userInput == "one" || userInput == "1") { if(itemCount &gt;= 1) { setFocusItemIndex(0); redrawDisplay(); } } else if(userInput == "two" || userInput == "2") { if(itemCount &gt;= 2) { setFocusItemIndex(1); redrawDisplay(); } } else if(userInput == "three" || userInput == "3") { if(itemCount &gt;= 3) { setFocusItemIndex(2); redrawDisplay(); } } else if(userInput == "four" || userInput == "4") { if(itemCount &gt;= 4) { setFocusItemIndex(3); redrawDisplay(); } } else if(userInput == "five" || userInput == "5") { if(itemCount &gt;= 5) { setFocusItemIndex(4); redrawDisplay(); } } else if(userInput == "six" || userInput == "6") { if(itemCount &gt;= 6) { setFocusItemIndex(5); redrawDisplay(); } } else if(userInput == "seven" || userInput == "7") { if(itemCount &gt;= 7) { setFocusItemIndex(6); redrawDisplay(); } } else if(userInput == "eight" || userInput == "8") { if(itemCount &gt;= 8) { setFocusItemIndex(7); redrawDisplay(); } } else if(userInput == "nine" || userInput == "9") { if(itemCount &gt;= 9) { setFocusItemIndex(8); redrawDisplay(); } } if(userInput == "zero" || userInput == "0") { if(itemCount &gt;= 10) { setFocusItemIndex(9); redrawDisplay(); } } else if (userInput == "pagedown" || userInput == "pageup" || userInput == "PD" || userInput == "PG") { itemSize = getPageInfo("itemCount"); idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -4; if(idx &gt;= itemSize) idx = itemSize-1; } else { idx -= 4; if(idx &lt; 0) idx = 0; } setFocusItemIndex(idx); setItemFocus(idx); redrawDisplay(); ret = "true"; } ret; </script> </onUserInput> </mediaDisplay> <adultlink> <mediaDisplay name="photoView"/> <link> <?php echo $host; ?>/scripts/adult/adult1325.php </link> </adultlink> <adultpass> <mediaDisplay name="onePartView" /> <link> /usr/local/etc/www/cgi-bin/scripts/adult/adult.rss </link> </adultpass> <destination> <link>http://127.0.0.1/cgi-bin/scripts/mini1.php</link> <mediaDisplay name="photoView"/> </destination> <channel> <title>HDD Links</title> <!-- 1 --> <item> <title>Filme online subtitrate</title> <onClick> <script> showIdle(); "<?php echo $host; ?>/scripts/filme/filme.php"; </script> </onClick> <focus>/usr/local/etc/www/cgi-bin/scripts/image/filme_focus.png</focus> <unfocus>/usr/local/etc/www/cgi-bin/scripts/image/filme_unfocus.png</unfocus> <annotation>Filme online traduse</annotation> </item> <!-- 2 --> <item> <title>TV Live</title> <onClick> <script> showIdle(); "<?php echo $host; ?>/scripts/tv/tv_live.php"; </script> </onClick> <focus>/usr/local/etc/www/cgi-bin/scripts/image/livetv_focus.png</focus> <unfocus>/usr/local/etc/www/cgi-bin/scripts/image/livetv_unfocus.png</unfocus> <annotation>Posturi TV din România şi din alte ţări. Ştiri, filme, muzică sau sport</annotation> </item> <!-- 3 --> <item> <title>Posturi naţionale</title> <onClick> <script> showIdle(); "<?php echo $host; ?>/scripts/tv/nationale.php"; </script> </onClick> <focus>/usr/local/etc/www/cgi-bin/scripts/image/nationale_focus.png</focus> <unfocus>/usr/local/etc/www/cgi-bin/scripts/image/nationale_unfocus.png</unfocus> <annotation>Înregistrări ale unor emisiuni TV emise de posturile naţionale</annotation> </item> <!-- 4 - new line --> <item> <title>Seriale TV subtitrate</title> <onClick> <script> showIdle(); "<?php echo $host; ?>/scripts/filme/seriale.php"; </script> </onClick> <focus>/usr/local/etc/www/cgi-bin/scripts/image/seriale_focus.png</focus> <unfocus>/usr/local/etc/www/cgi-bin/scripts/image/seriale_unfocus.png</unfocus> <annotation>Seriale TV traduse</annotation> </item> <!-- 5 --> <item> <title>OneHD</title> <onClick> <script> showIdle(); "<?php echo $host; ?>/scripts/tv/prahovahd.php"; </script> </onClick> <focus>/usr/local/etc/www/cgi-bin/scripts/image/onehd_focus.png</focus> <unfocus>/usr/local/etc/www/cgi-bin/scripts/image/onehd_unfocus.png</unfocus> <annotation>One HD: concerte, divertisment, business, turism, experimente, disponibile în High Definition atât live cât şi on-demand (VOD)</annotation> </item> <!-- 6 --> <item> <title>Radio Online</title> <onClick> <script> showIdle(); "/usr/local/etc/www/cgi-bin/scripts/tv/radio.rss"; </script> </onClick> <focus>/usr/local/etc/www/cgi-bin/scripts/image/radio_focus.png</focus> <unfocus>/usr/local/etc/www/cgi-bin/scripts/image/radio_unfocus.png</unfocus> <annotation>Posturi de radio</annotation> </item> <!-- 7 - new line --> <item> <title>Pentru copii</title> <onClick> <script> showIdle(); "<?php echo $host; ?>/scripts/filme/desene.php"; </script> </onClick> <focus>/usr/local/etc/www/cgi-bin/scripts/image/desene_focus.png</focus> <unfocus>/usr/local/etc/www/cgi-bin/scripts/image/desene_unfocus.png</unfocus> <annotation>Desene animate, filme, poveşti</annotation> </item> <!-- 8 --> <item> <title>Conturi personale metafeeds</title> <onClick> <script> showIdle(); "<?php echo $host; ?>/scripts/user/users.php"; </script> </onClick> <focus>/usr/local/etc/www/cgi-bin/scripts/image/user_focus.png</focus> <unfocus>/usr/local/etc/www/cgi-bin/scripts/image/user_unfocus.png</unfocus> <annotation>Ai un cont pe metafeeds? Aici putem să-l adăugăm!</annotation> </item> <!-- 9 --> <item> <title>Ştiri şi alte informaţii</title> <onClick> <script> showIdle(); "<?php echo $host; ?>/scripts/news/news.php"; </script> </onClick> <focus>/usr/local/etc/www/cgi-bin/scripts/image/news_focus.png</focus> <unfocus>/usr/local/etc/www/cgi-bin/scripts/image/news_unfocus.png</unfocus> <annotation>Orarul serialelor, meteo, cursul valutar sau alte informaţii</annotation> </item> <!-- 10 - new line --> <item> <title>Videoclipuri</title> <onClick> <script> showIdle(); "<?php echo $host; ?>/scripts/clip/clip.php"; </script> </onClick> <focus>/usr/local/etc/www/cgi-bin/scripts/image/videoclip_focus.png</focus> <unfocus>/usr/local/etc/www/cgi-bin/scripts/image/videoclip_unfocus.png</unfocus> <annotation>Filmuleţe nostime, reale, clipuri video personale</annotation> </item> <!-- 11 --> <item> <title>Trailere filme şi jocuri</title> <onClick> <script> showIdle(); "<?php echo $host; ?>/scripts/trailer/trailer.php"; </script> </onClick> <focus>/usr/local/etc/www/cgi-bin/scripts/image/trailer_focus.png</focus> <unfocus>/usr/local/etc/www/cgi-bin/scripts/image/trailer_unfocus.png</unfocus> <annotation>Ultimele trailere pentru filme sau jocuri</annotation> </item> <!-- 12 --> <item> <title>Emisiuni Sportive</title> <onClick> <script> showIdle(); "<?php echo $host; ?>/scripts/tv/tv_sport.php"; </script> </onClick> <focus>/usr/local/etc/www/cgi-bin/scripts/image/sport_focus.png</focus> <unfocus>/usr/local/etc/www/cgi-bin/scripts/image/sport_unfocus.png</unfocus> <annotation>Înregistrări evenimente sportive: fotbal şi nu numai</annotation> </item> <!-- 13 - new line --> <?php $f="/usr/local/etc/xLive/repoman/05_08_2011.txt"; if (file_exists($f)) { echo ' <item> <title>repoman xLive</title> <link>/usr/local/etc/xLive/repoman/repoman.rss</link> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/php1/xlive.png" /> <focus>/usr/local/etc/www/cgi-bin/scripts/image/xlive_focus.png</focus> <unfocus>/usr/local/etc/www/cgi-bin/scripts/image/xlive_unfocus.png</unfocus> <location></location> <annotation>repoman xLive</annotation> <mediaDisplay name="photoView"/> </item> '; } else { echo ' <item> <title>repoman xLive</title> <onClick> <script> rss = "/usr/local/etc/www/cgi-bin/scripts/util/downloadDialog.rss"; ret = doModalRss(rss); if (ret == "Confirm") { showIdle(); url="http://127.0.0.1/cgi-bin/scripts/util/xlive.cgi?mode=install"; msg = getURL(url); cancelIdle(); jumptolink("destination"); } </script> </onClick> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/php1/xlive.png" /> <focus>/usr/local/etc/www/cgi-bin/scripts/image/xlive_focus.png</focus> <unfocus>/usr/local/etc/www/cgi-bin/scripts/image/xlive_unfocus.png</unfocus> <location></location> <annotation>repoman xLive</annotation> <mediaDisplay name="photoView"/> </item> '; } ?> <!-- 14 --> <item> <title>Posturi locale</title> <onClick> <script> showIdle(); "<?php echo $host; ?>/scripts/tv/locale.php"; </script> </onClick> <focus>/usr/local/etc/www/cgi-bin/scripts/image/locale_focus.png</focus> <unfocus>/usr/local/etc/www/cgi-bin/scripts/image/locale_unfocus.png</unfocus> <annotation>Ştiri şi emisiuni înregistrate, difuzate de posturile TV locale</annotation> </item> <!-- 15 --> <item> <title>Programe adulţi</title> <annotation>Numai pentru +18! Necesită parolă. Pentru mai multe informaţii: http:// hdforall.freehostia.com. Pentru schimbare parolă introduceţi o parolă greşită.</annotation> <focus>/usr/local/etc/www/cgi-bin/scripts/image/adult_focus.png</focus> <unfocus>/usr/local/etc/www/cgi-bin/scripts/image/adult_unfocus.png</unfocus> <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="photoView"/> </item> </channel> </rss>
1073s
trunk/.svn/text-base/mini1.php.svn-base
PHP
gpl3
14,699
#!/usr/local/bin/Resource/www/cgi-bin/php <?php phpinfo(); ?>
1073s
trunk/.svn/text-base/php_info.php.svn-base
PHP
gpl3
62
#!/usr/local/bin/Resource/www/cgi-bin/php <?php phpinfo(); ?>
1073s
trunk/php_info.php
PHP
gpl3
62
#!/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); myID=1; titleArray = null; canalArray = null; </onEnter> <onRefresh> setRefreshTime(-1); url = "http://127.0.0.1/cgi-bin/scripts/news/php/program_tv.php?file="+myID; dlok = loadXMLFile(url); if (dlok != null) { itemSize = getXMLElementCount("channel","item"); if(itemSize == 0) postMessage("return"); print("Item Size = ", itemSize); pageTitle = getXMLText("channel", "title_pg"); count=0; while(itemSize != 0) { title = getXMLText("channel","item",count,"title"); canal = getXMLText("channel","item",count,"canal"); titleArray = pushBackStringArray(titleArray, title); canalArray = pushBackStringArray(canalArray, canal); count += 1; if (count == itemSize) { break; } } print("title array =", titleArray); redrawDisplay(); } </onRefresh> <onExit> setRefreshTime(-1); </onExit> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" sideColorLeft="0:0:0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="20" itemYPC="25" itemWidthPC="22" itemHeightPC="8" capXPC="20" capYPC="25" capWidthPC="22" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" sliding="no" menuXPC=5 menuYPC=25 menuWidthPC=14 menuHeightPC=8 menuPerPage=8 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))+itemSize;</script> </text> <text align="left" redraw="yes" lines="12" fontSize=15 offsetXPC=42 offsetYPC=30 widthPC=53 heightPC=48 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=10 offsetYPC=7 widthPC=10 heightPC=10> /usr/local/etc/www/cgi-bin/scripts/news/image/program_tv.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> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); majorContext = getPageInfo("majorContext"); 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; } annotation = " "; print("new idx: "+idx); setFocusItemIndex(idx); redrawDisplay(); ret = "true"; } else if((userInput == "two" || userInput == "enter" || userInput == "ENTR") &amp;&amp; majorContext == "items") { showIdle(); idx = Integer(getFocusItemIndex()); url_canal = "http://127.0.0.1/cgi-bin/scripts/tv/php/dolce_prog.php?file=" + getItemInfo(idx,"canal"); annotation = getURL(url_canal); cancelIdle(); redrawDisplay(); ret = "true"; } else if (userInput == "right" &amp;&amp; majorContext == "items") { ret = "true"; } else if (userInput == "right" &amp;&amp; majorContext == "menu") { redrawDisplay(); ret = "false"; } else { annotation = " "; redrawDisplay(); ret = "false"; } ret; </script> </onUserInput> <itemDisplay> <image offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx1 = getFocusItemIndex(); idx2 = getQueryItemIndex(); if (idx1 == idx2) { "image/IMAGE_NEWRSS_MENU_BTFOC.bmp"; } else { ""; } </script> </image> <text offsetXPC=0 offsetYPC=25 widthPC=100 heightPC=50 fontSize=15 backgroundColor=-1:-1:-1 foregroundColor=200:200:200> <script> getStringArrayAt(titleArray , -1); </script> </text> </itemDisplay> </mediaDisplay> <item_template> <canal> <script> getStringArrayAt(canalArray , -1); </script> </canal> <mediaDisplay name="threePartsView" 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> <?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 c($title) { $title = htmlentities($title); $title = str_replace("&ordm;","s",$title); $title = str_replace("&Ordm;","S",$title); $title = str_replace("&thorn;","t",$title); $title = str_replace("&Thorn;","T",$title); $title = str_replace("&icirc;","i",$title); $title = str_replace("&Icirc;","I",$title); $title = str_replace("&atilde;","a",$title); $title = str_replace("&Atilde;","I",$title); $title = str_replace("&ordf;","S",$title); $title = str_replace("&acirc;","a",$title); $title = str_replace("&Acirc;","A",$title); $title = str_replace("&oacute;","o",$title); $title = str_replace("&amp;", "&",$title); return $title; } $id = $_GET["file"]; $link="http://port.ro/pls/tv/tv.prog"; $html = file_get_contents($link); $t1=explode('chNumberCombo',$html); $t2=explode('<optgroup',$t1[0]); if ($id==0) { $html=$t1[0]; $pg="Toate"; } else { $html=$t2[$id]; $a=explode('label="',$html); $b=explode('"',$a[1]); $pg=$b[0]; } echo ' <submenu> <title>Toate</title> <onClick> titleArray = null; canalArray = null; urlArray = null; myID = 0; setRefreshTime(1); </onClick> </submenu> '; $h=$t1[0]; $videos=explode('label="',$h); unset($videos[0]); $videos = array_values($videos); $n=1; foreach($videos as $video) { $b=explode('"',$video); $c=c($b[0]); echo ' <submenu> <title>'.$c.'</title> <onClick> titleArray = null; canalArray = null; urlArray = null; myID = '.$n.'; setRefreshTime(1); </onClick> </submenu> '; $n++; } ?> <channel> <title> <script>pageTitle;</script> </title> <itemSize> <script>itemSize;</script> </itemSize> </channel> </rss>
1073s
trunk/news/php/port.php
PHP
gpl3
7,394
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; ?> <rss version="2.0"> <?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["q"]; if($query) { $queryArr = explode(',', $query); $loc = $queryArr[0]; $id = $queryArr[1]; } $link="http://vremea.meteoromania.ro/prognoza_new/".$loc; $html = file_get_contents($link); //$bg="http://vremea.meteoromania.ro/sites/all/themes/meteo/images/bg_big.jpg"; // Conditii curente $t1=explode('<td class="white2">',$html); $t2=explode('</td>',$t1[1]); $cond=explode("<br/>",$t2[0]); $vant_cur=trim($cond[0]); $pres_cur=trim($cond[1]); $hum_cur=trim($cond[2]); $ir_cur=trim($cond[3]); //info actuale $t1=explode('class="titlu"',$html); $t2=explode(">",$t1[1]); $t3=explode("<",$t2[1]); $timp_cur=$t3[0]; $t1=explode('src="',$html); $t2=explode('"',$t1[2]); $img_cur="http://vremea.meteoromania.ro".$t2[0]; $t2=explode('title="',$t1[2]); $t3=explode('"',$t2[1]); $desc_cur=$t3[0]; $t1=explode('<div id="loc" class="vizibil">',$html); $t2=explode('-->',$t1[1]); $t3=explode('<',$t2[1]); $loc=$t3[0]; $t4=explode('</div>',$t1[1]); $t5=explode('</td>',$t4[1]); $temp_cur=str_replace("&deg;","",trim($t5[0])); //=================================== //Prognoza $d=explode('<td background="/sites/all/themes/meteo/images/bg_prognoza_up.jpg"',$html); // Get day name $days=$d[1]; $day=explode('td align="center" class="titlu"',$days); // Day 1 $t1=explode(">",$day[1]); $t2=explode("<",$t1[1]); $day1_name=$t2[0]; // Day 2 $t1=explode(">",$day[2]); $t2=explode("<",$t1[1]); $day2_name=$t2[0]; // Day 3 $t1=explode(">",$day[3]); $t2=explode("<",$t1[1]); $day3_name=$t2[0]; //Valori prognoza $days=$d[3]; //Imagine $t1=explode('src="',$days); $t2=explode('"',$t1[1]); $img_day1="http://vremea.meteoromania.ro".$t2[0]; $t2=explode('"',$t1[2]); $img_day2="http://vremea.meteoromania.ro".$t2[0]; $t2=explode('"',$t1[3]); $img_day3="http://vremea.meteoromania.ro".$t2[0]; //descriere $t1=explode('title="',$days); $t2=explode('"',$t1[1]); $day1_desc=$t2[0]; $t2=explode('"',$t1[2]); $day2_desc=$t2[0]; $t2=explode('"',$t1[3]); $day3_desc=$t2[0]; //min max $a1=explode("<br>",$t1[1]); $day1_max=str_replace("&","",trim($a1[1])); $a2=explode("</td>",$a1[2]); $day1_min=str_replace("&","",trim($a2[0])); $a1=explode("<br>",$t1[2]); $day2_max=str_replace("&","",trim($a1[1])); $a2=explode("</td>",$a1[2]); $day2_min=str_replace("&","",trim($a2[0])); $a1=explode("<br>",$t1[3]); $day3_max=str_replace("&","",trim($a1[1])); $a2=explode("</td>",$a1[2]); $day3_min=str_replace("&","",trim($a2[0])); //========================================================== ?> <mediaDisplay name="onePartView" sideLeftWidthPC="0" sideRightWidthPC="0" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" 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> <backgroundDisplay> <image offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> /usr/local/etc/www/cgi-bin/scripts/news/image/vremea_bg.jpg </image> </backgroundDisplay> --> <text redraw="yes" align="center" offsetXPC="5" offsetYPC="5" widthPC="50" heightPC="8" fontSize="17" backgroundColor="0:64:128" foregroundColor="100:200:255"> <?php echo $timp_cur; ?> </text> <image offsetXPC=5 offsetYPC=15 widthPC=10 heightPC=16> <?php echo $img_cur; ?> </image> <text align="left" offsetXPC="15" offsetYPC="15" widthPC="40" heightPC="5" fontSize="14" backgroundColor="-1:-1:-1" foregroundColor="0:0:0"> Temperatura curentă:<?php echo str_replace("deg;"," ",$temp_cur); ?> </text> <text align="left" lines="2" offsetXPC="15" offsetYPC="20" widthPC="40" heightPC="10" fontSize="14" backgroundColor="-1:-1:-1" foregroundColor="0:0:0"> <?php echo $desc_cur; ?> </text> <text redraw="yes" align="center" offsetXPC="5" offsetYPC="35" widthPC="50" heightPC="8" fontSize="17" backgroundColor="0:64:128" foregroundColor="100:200:255"> Informaţii suplimentare </text> <text align="left" offsetXPC="5" offsetYPC="44" widthPC="20" heightPC="5" fontSize="14" backgroundColor="-1:-1:-1" foregroundColor="0:0:0"> Viteza vântului: </text> <text align="left" offsetXPC="25" offsetYPC="44" widthPC="30" heightPC="5" fontSize="14" backgroundColor="-1:-1:-1" foregroundColor="0:0:0"> <?php echo $vant_cur; ?> </text> <text align="left" offsetXPC="5" offsetYPC="49" widthPC="20" heightPC="5" fontSize="14" backgroundColor="-1:-1:-1" foregroundColor="0:0:0"> Umiditate: </text> <text align="left" offsetXPC="25" offsetYPC="49" widthPC="30" heightPC="5" fontSize="14" backgroundColor="-1:-1:-1" foregroundColor="0:0:0"> <?php echo $hum_cur; ?> </text> <text align="left" offsetXPC="5" offsetYPC="54" widthPC="20" heightPC="5" fontSize="14" backgroundColor="-1:-1:-1" foregroundColor="0:0:0"> Presiunea: </text> <text align="left" offsetXPC="25" offsetYPC="54" widthPC="30" heightPC="5" fontSize="14" backgroundColor="-1:-1:-1" foregroundColor="0:0:0"> <?php echo $pres_cur; ?> </text> <text align="left" offsetXPC="5" offsetYPC="59" widthPC="20" heightPC="5" fontSize="14" backgroundColor="-1:-1:-1" foregroundColor="0:0:0"> IR: </text> <text align="left" offsetXPC="25" offsetYPC="59" widthPC="30" heightPC="5" fontSize="14" backgroundColor="-1:-1:-1" foregroundColor="0:0:0"> <?php echo $ir_cur; ?> </text> <image offsetXPC=60 offsetYPC=15 widthPC=10 heightPC=16> <?php echo $img_day1; ?> </image> <text redraw="yes" align="center" offsetXPC="60" offsetYPC="5" widthPC="35" heightPC="8" fontSize="17" backgroundColor="0:64:128" foregroundColor="100:200:255"> <?php echo $day1_name; ?> </text> <text redraw="yes" align="left" lines="2" offsetXPC="70" offsetYPC="24" widthPC="25" heightPC="10" fontSize="14" backgroundColor="-1:-1:-1" foregroundColor="0:0:0"> <?php echo $day1_desc; ?> </text> <text redraw="yes" align="left" offsetXPC="70" offsetYPC="14" widthPC="25" heightPC="5" fontSize="14" backgroundColor="-1:-1:-1" foregroundColor="0:0:0"> <?php echo str_replace("deg;"," ",$day1_max); ?> </text> <text redraw="yes" align="left" offsetXPC="70" offsetYPC="19" widthPC="25" heightPC="5" fontSize="14" backgroundColor="-1:-1:-1" foregroundColor="0:0:0"> <?php echo str_replace("deg;"," ",$day1_min); ?> </text> <image offsetXPC=60 offsetYPC=45 widthPC=10 heightPC=16> <?php echo $img_day2; ?> </image> <text redraw="yes" align="center" offsetXPC="60" offsetYPC="35" widthPC="35" heightPC="8" fontSize="17" backgroundColor="0:64:128" foregroundColor="100:200:255"> <?php echo $day2_name; ?> </text> <text redraw="yes" align="left" lines="2" offsetXPC="70" offsetYPC="54" widthPC="25" heightPC="10" fontSize="14" backgroundColor="-1:-1:-1" foregroundColor="0:0:0"> <?php echo $day2_desc; ?> </text> <text redraw="yes" align="left" offsetXPC="70" offsetYPC="44" widthPC="25" heightPC="5" fontSize="14" backgroundColor="-1:-1:-1" foregroundColor="0:0:0"> <?php echo str_replace("deg;"," ",$day2_max); ?> </text> <text redraw="yes" align="left" offsetXPC="70" offsetYPC="49" widthPC="25" heightPC="5" fontSize="14" backgroundColor="-1:-1:-1" foregroundColor="0:0:0"> <?php echo str_replace("deg;"," ",$day2_min); ?> </text> <image offsetXPC=60 offsetYPC=75 widthPC=10 heightPC=16> <?php echo $img_day3; ?> </image> <text redraw="yes" align="center" offsetXPC="60" offsetYPC="65" widthPC="35" heightPC="8" fontSize="17" backgroundColor="0:64:128" foregroundColor="100:200:255"> <?php echo $day3_name; ?> </text> <text redraw="yes" align="left" lines="2" offsetXPC="70" offsetYPC="84" widthPC="25" heightPC="10" fontSize="14" backgroundColor="-1:-1:-1" foregroundColor="0:0:0"> <?php echo $day3_desc; ?> </text> <text redraw="yes" align="left" offsetXPC="70" offsetYPC="74" widthPC="25" heightPC="5" fontSize="14" backgroundColor="-1:-1:-1" foregroundColor="0:0:0"> <?php echo str_replace("deg;"," ",$day3_max); ?> </text> <text redraw="yes" align="left" offsetXPC="70" offsetYPC="79" widthPC="25" heightPC="5" fontSize="14" backgroundColor="-1:-1:-1" foregroundColor="0:0:0"> <?php echo str_replace("deg;"," ",$day3_min); ?> </text> <text redraw="yes" align="center" offsetXPC="5" offsetYPC="70" widthPC="50" heightPC="18" fontSize="24" backgroundColor="-1:-1:-1" foregroundColor="0:0:0"> Localitate: <?php echo $loc; ?> </text> <onUserInput> <script> ret = "false"; if(userInput == "right" || userInput == "R") { ret = "true"; } ret; </script> </onUserInput> </mediaDisplay> <channel> <title>Vremea</title> </channel> </rss>
1073s
trunk/news/php/.svn/text-base/w.php.svn-base
PHP
gpl3
9,155
#!/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" 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=20 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=35 widthPC=15 heightPC=12> <script>print(img); img;</script> </image> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(titlu); titlu;</script> </text> <idleImage> image/POPUP_LOADING_01.png </idleImage> <idleImage> image/POPUP_LOADING_02.png </idleImage> <idleImage> image/POPUP_LOADING_03.png </idleImage> <idleImage> image/POPUP_LOADING_04.png </idleImage> <idleImage> image/POPUP_LOADING_05.png </idleImage> <idleImage> image/POPUP_LOADING_06.png </idleImage> <idleImage> image/POPUP_LOADING_07.png </idleImage> <idleImage> image/POPUP_LOADING_08.png </idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { titlu = getItemInfo(idx, "title"); 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>TvBlog - orarul serialelor</title> <menu>main menu</menu> <?php $html = file_get_contents("http://www.tvblog.ro/orarul-serialelor/"); $videos = explode('<h4>', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('<', $video); //$t2 = explode('<', $t1[1]); $day = $t1[0]; /** echo '<item>'; echo '<title>================================'.$day.'================================</title>'; echo '<media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/news/image/tvblog.jpg" />'; echo '</item>'; **/ $days = explode('<li>',$video); unset($days[0]); $days = array_values($days); foreach($days as $serial) { $t1 = explode('<img src="', $serial); $t2 = explode('"', $t1[1]); $image ='http://www.tvblog.ro'.$t2[0]; $t1 = explode('title="', $serial); $t2 = explode('"',$t1[1]); $tit1=$t2[0]; $t3 = explode('<strong>', $serial); $t4 = explode("</strong>",$t3[1]); $title = preg_replace("/(<\/?)(\w+)([^>]*>)/e","",$t4[0]); echo ' <item> <title>'.$title.'</title> <image>'.$image.'</image> <annotation>'.$day.'</annotation> </item> '; } } ?> </channel> </rss>
1073s
trunk/news/php/.svn/text-base/tvblog.php.svn-base
PHP
gpl3
5,681
#!/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); myID=1; titleArray = null; canalArray = null; </onEnter> <onRefresh> setRefreshTime(-1); url = "http://127.0.0.1/cgi-bin/scripts/news/php/program_tv.php?file="+myID; dlok = loadXMLFile(url); if (dlok != null) { itemSize = getXMLElementCount("channel","item"); if(itemSize == 0) postMessage("return"); print("Item Size = ", itemSize); pageTitle = getXMLText("channel", "title_pg"); count=0; while(itemSize != 0) { title = getXMLText("channel","item",count,"title"); canal = getXMLText("channel","item",count,"canal"); titleArray = pushBackStringArray(titleArray, title); canalArray = pushBackStringArray(canalArray, canal); count += 1; if (count == itemSize) { break; } } print("title array =", titleArray); redrawDisplay(); } </onRefresh> <onExit> setRefreshTime(-1); </onExit> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" sideColorLeft="0:0:0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="20" itemYPC="25" itemWidthPC="22" itemHeightPC="8" capXPC="20" capYPC="25" capWidthPC="22" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" sliding="no" menuXPC=5 menuYPC=25 menuWidthPC=14 menuHeightPC=8 menuPerPage=8 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))+itemSize;</script> </text> <text align="left" redraw="yes" lines="12" fontSize=15 offsetXPC=42 offsetYPC=30 widthPC=53 heightPC=48 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=10 offsetYPC=7 widthPC=10 heightPC=10> /usr/local/etc/www/cgi-bin/scripts/news/image/program_tv.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> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); majorContext = getPageInfo("majorContext"); 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; } annotation = " "; print("new idx: "+idx); setFocusItemIndex(idx); redrawDisplay(); ret = "true"; } else if((userInput == "two" || userInput == "enter" || userInput == "ENTR") &amp;&amp; majorContext == "items") { showIdle(); idx = Integer(getFocusItemIndex()); url_canal = "http://127.0.0.1/cgi-bin/scripts/tv/php/dolce_prog.php?file=" + getItemInfo(idx,"canal"); annotation = getURL(url_canal); cancelIdle(); redrawDisplay(); ret = "true"; } else if (userInput == "right" &amp;&amp; majorContext == "items") { ret = "true"; } else if (userInput == "right" &amp;&amp; majorContext == "menu") { redrawDisplay(); ret = "false"; } else { annotation = " "; redrawDisplay(); ret = "false"; } ret; </script> </onUserInput> <itemDisplay> <image offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx1 = getFocusItemIndex(); idx2 = getQueryItemIndex(); if (idx1 == idx2) { "image/IMAGE_NEWRSS_MENU_BTFOC.bmp"; } else { ""; } </script> </image> <text offsetXPC=0 offsetYPC=25 widthPC=100 heightPC=50 fontSize=15 backgroundColor=-1:-1:-1 foregroundColor=200:200:200> <script> getStringArrayAt(titleArray , -1); </script> </text> </itemDisplay> </mediaDisplay> <item_template> <canal> <script> getStringArrayAt(canalArray , -1); </script> </canal> <mediaDisplay name="threePartsView" 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> <?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 c($title) { $title = htmlentities($title); $title = str_replace("&ordm;","s",$title); $title = str_replace("&Ordm;","S",$title); $title = str_replace("&thorn;","t",$title); $title = str_replace("&Thorn;","T",$title); $title = str_replace("&icirc;","i",$title); $title = str_replace("&Icirc;","I",$title); $title = str_replace("&atilde;","a",$title); $title = str_replace("&Atilde;","I",$title); $title = str_replace("&ordf;","S",$title); $title = str_replace("&acirc;","a",$title); $title = str_replace("&Acirc;","A",$title); $title = str_replace("&oacute;","o",$title); $title = str_replace("&amp;", "&",$title); return $title; } $id = $_GET["file"]; $link="http://port.ro/pls/tv/tv.prog"; $html = file_get_contents($link); $t1=explode('chNumberCombo',$html); $t2=explode('<optgroup',$t1[0]); if ($id==0) { $html=$t1[0]; $pg="Toate"; } else { $html=$t2[$id]; $a=explode('label="',$html); $b=explode('"',$a[1]); $pg=$b[0]; } echo ' <submenu> <title>Toate</title> <onClick> titleArray = null; canalArray = null; urlArray = null; myID = 0; setRefreshTime(1); </onClick> </submenu> '; $h=$t1[0]; $videos=explode('label="',$h); unset($videos[0]); $videos = array_values($videos); $n=1; foreach($videos as $video) { $b=explode('"',$video); $c=c($b[0]); echo ' <submenu> <title>'.$c.'</title> <onClick> titleArray = null; canalArray = null; urlArray = null; myID = '.$n.'; setRefreshTime(1); </onClick> </submenu> '; $n++; } ?> <channel> <title> <script>pageTitle;</script> </title> <itemSize> <script>itemSize;</script> </itemSize> </channel> </rss>
1073s
trunk/news/php/.svn/text-base/port.php.svn-base
PHP
gpl3
7,394
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $link="http://vremea.meteoromania.ro/"; $html = file_get_contents($link); $t1=explode('id="image_rotate"',$html); $t2=explode('src="',$t1[1]); $t3=explode('"',$t2[3]); $img="http://vremea.meteoromania.ro/".$t3[0]; $t4=explode('span class="titlu">',$t1[1]); $t5=explode('<',$t4[3]); $desc=$t5[0]; $t1=explode('value="file=',$html); $t2=explode('&',$t1[1]); $t3=explode("&streamer=",$html); $t4=explode('&',$t3[1]); $video=$t4[0].$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="40" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="40" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=45 widthPC=30 heightPC=30> <?php echo $img; ?> </image> <text redraw="yes" align="center" lines="3" offsetXPC="60" offsetYPC="25" widthPC="30" heightPC="15" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> Prognoza meteo în ţară pentru ziua de mâine: <?php echo $desc; ?> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> Apăsaţi: 1=primul 2=mijloc 3=ultimul. REV/NEXT salt o pagină (8) </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"; } if (userInput == "one" || userInput == "1") { idx=0; setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } if (userInput == "two" || userInput == "2") { idx=Integer(itemCount / 2); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } if (userInput == "three" || userInput == "3") { idx = itemCount-1; setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <channel> <title>Vremea în România</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); } if ($video <> "") { echo ' <item> <title>Video - Prognoza meteo - Avertizări meteo</title> <onClick> <script> movie="http://127.0.0.1/cgi-bin/translate?stream,,'.$video.'"; playItemUrl(movie,10); </script> </onClick> </item> '; } $videos = explode('<option', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1=explode('value="',$video); $t2=explode('"',$t1[1]); $id=$t2[0]; $t3=explode(">",$t1[1]); $t4=explode("<",$t3[1]); $title=trim($t4[0]); $r_title=str_replace(" ","_",$title); $link="http://127.0.0.1/cgi-bin/scripts/news/php/w.php?q=".$r_title.",".$id; echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> </item> '; } ?> </channel> </rss>
1073s
trunk/news/php/.svn/text-base/weather.php.svn-base
PHP
gpl3
5,674
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' ?>"; ?> <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"> <mediaDisplay name="threePartsView" showDefaultInfo="no" bottomYPC="0" itemGap="0" itemPerPage="10" showHeader="no" sideLeftWidthPC="0" itemImageXPC="0" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="10" itemYPC="10" itemWidthPC="50" itemHeightPC="8" capWidthPC="55" unFocusFontColor="101:101:101" focusFontColor="255:255:255" 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> <channel> <title>Curs Valutar</title> <menu>main menu</menu> <?php //m.cursbnr.ro 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://m.cursbnr.ro/"); $title = str_between($html,"<p>","</p>"); echo '<item>'; echo '<title>'.$title.'</title>'; echo '</item>'; $videos = explode('<p style="background-color:', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('<b>', $video); $t2 = explode('</b>', $t1[1]); $title = $t2[0].'RON'; echo '<item>'; echo '<title>'.$title.'</title>'; echo '</item>'; } ?> </channel> </rss>
1073s
trunk/news/php/.svn/text-base/curs.php.svn-base
PHP
gpl3
1,835
#!/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); } function c($title) { $title = htmlentities($title); $title = str_replace("&ordm;","s",$title); $title = str_replace("&Ordm;","S",$title); $title = str_replace("&thorn;","t",$title); $title = str_replace("&Thorn;","T",$title); $title = str_replace("&icirc;","i",$title); $title = str_replace("&Icirc;","I",$title); $title = str_replace("&atilde;","a",$title); $title = str_replace("&Atilde;","I",$title); $title = str_replace("&ordf;","S",$title); $title = str_replace("&acirc;","a",$title); $title = str_replace("&Acirc;","A",$title); $title = str_replace("&oacute;","o",$title); $title = str_replace("&amp;", "&",$title); return $title; } $id = $_GET["file"]; $link="http://port.ro/pls/tv/tv.prog"; $html = file_get_contents($link); $t1=explode('chNumberCombo',$html); $t2=explode('<optgroup',$t1[0]); if ($id==0) { $html=$t1[0]; $pg="Toate"; } else { $html=$t2[$id]; $a=explode('label="',$html); $b=explode('"',$a[1]); $pg=$b[0]; } echo "<channel>"; echo "<title_pg>".c($pg)."</title_pg>"; $videos = explode('<option', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1=explode('value="',$video); $t2=explode('"',$t1[1]); $canal=$t2[0]; $t3=explode(">",$t1[1]); $t4=explode("<",$t3[1]); $title=c($t4[0]); if (strlen($canal) == 5) { print ' <item> <title>'.$title.'</title> <canal>'.$canal.'</canal> </item> '; } } echo "</channel>"; ?>
1073s
trunk/news/php/.svn/text-base/program_tv.php.svn-base
PHP
gpl3
1,760
#!/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" 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=20 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=35 widthPC=15 heightPC=12> <script>print(img); img;</script> </image> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(titlu); titlu;</script> </text> <idleImage> image/POPUP_LOADING_01.png </idleImage> <idleImage> image/POPUP_LOADING_02.png </idleImage> <idleImage> image/POPUP_LOADING_03.png </idleImage> <idleImage> image/POPUP_LOADING_04.png </idleImage> <idleImage> image/POPUP_LOADING_05.png </idleImage> <idleImage> image/POPUP_LOADING_06.png </idleImage> <idleImage> image/POPUP_LOADING_07.png </idleImage> <idleImage> image/POPUP_LOADING_08.png </idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { titlu = getItemInfo(idx, "title"); 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>TvBlog - orarul serialelor</title> <menu>main menu</menu> <?php $html = file_get_contents("http://www.tvblog.ro/orarul-serialelor/"); $videos = explode('<h4>', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('<', $video); //$t2 = explode('<', $t1[1]); $day = $t1[0]; /** echo '<item>'; echo '<title>================================'.$day.'================================</title>'; echo '<media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/news/image/tvblog.jpg" />'; echo '</item>'; **/ $days = explode('<li>',$video); unset($days[0]); $days = array_values($days); foreach($days as $serial) { $t1 = explode('<img src="', $serial); $t2 = explode('"', $t1[1]); $image ='http://www.tvblog.ro'.$t2[0]; $t1 = explode('title="', $serial); $t2 = explode('"',$t1[1]); $tit1=$t2[0]; $t3 = explode('<strong>', $serial); $t4 = explode("</strong>",$t3[1]); $title = preg_replace("/(<\/?)(\w+)([^>]*>)/e","",$t4[0]); echo ' <item> <title>'.$title.'</title> <image>'.$image.'</image> <annotation>'.$day.'</annotation> </item> '; } } ?> </channel> </rss>
1073s
trunk/news/php/tvblog.php
PHP
gpl3
5,681
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' ?>"; ?> <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"> <mediaDisplay name="threePartsView" showDefaultInfo="no" bottomYPC="0" itemGap="0" itemPerPage="10" showHeader="no" sideLeftWidthPC="0" itemImageXPC="0" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="10" itemYPC="10" itemWidthPC="50" itemHeightPC="8" capWidthPC="55" unFocusFontColor="101:101:101" focusFontColor="255:255:255" 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> <channel> <title>Curs Valutar</title> <menu>main menu</menu> <?php //m.cursbnr.ro 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://m.cursbnr.ro/"); $title = str_between($html,"<p>","</p>"); echo '<item>'; echo '<title>'.$title.'</title>'; echo '</item>'; $videos = explode('<p style="background-color:', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('<b>', $video); $t2 = explode('</b>', $t1[1]); $title = $t2[0].'RON'; echo '<item>'; echo '<title>'.$title.'</title>'; echo '</item>'; } ?> </channel> </rss>
1073s
trunk/news/php/curs.php
PHP
gpl3
1,835
#!/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); } function c($title) { $title = htmlentities($title); $title = str_replace("&ordm;","s",$title); $title = str_replace("&Ordm;","S",$title); $title = str_replace("&thorn;","t",$title); $title = str_replace("&Thorn;","T",$title); $title = str_replace("&icirc;","i",$title); $title = str_replace("&Icirc;","I",$title); $title = str_replace("&atilde;","a",$title); $title = str_replace("&Atilde;","I",$title); $title = str_replace("&ordf;","S",$title); $title = str_replace("&acirc;","a",$title); $title = str_replace("&Acirc;","A",$title); $title = str_replace("&oacute;","o",$title); $title = str_replace("&amp;", "&",$title); return $title; } $id = $_GET["file"]; $link="http://port.ro/pls/tv/tv.prog"; $html = file_get_contents($link); $t1=explode('chNumberCombo',$html); $t2=explode('<optgroup',$t1[0]); if ($id==0) { $html=$t1[0]; $pg="Toate"; } else { $html=$t2[$id]; $a=explode('label="',$html); $b=explode('"',$a[1]); $pg=$b[0]; } echo "<channel>"; echo "<title_pg>".c($pg)."</title_pg>"; $videos = explode('<option', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1=explode('value="',$video); $t2=explode('"',$t1[1]); $canal=$t2[0]; $t3=explode(">",$t1[1]); $t4=explode("<",$t3[1]); $title=c($t4[0]); if (strlen($canal) == 5) { print ' <item> <title>'.$title.'</title> <canal>'.$canal.'</canal> </item> '; } } echo "</channel>"; ?>
1073s
trunk/news/php/program_tv.php
PHP
gpl3
1,760
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $link="http://vremea.meteoromania.ro/"; $html = file_get_contents($link); $t1=explode('id="image_rotate"',$html); $t2=explode('src="',$t1[1]); $t3=explode('"',$t2[3]); $img="http://vremea.meteoromania.ro/".$t3[0]; $t4=explode('span class="titlu">',$t1[1]); $t5=explode('<',$t4[3]); $desc=$t5[0]; $t1=explode('value="file=',$html); $t2=explode('&',$t1[1]); $t3=explode("&streamer=",$html); $t4=explode('&',$t3[1]); $video=$t4[0].$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="40" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="40" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=45 widthPC=30 heightPC=30> <?php echo $img; ?> </image> <text redraw="yes" align="center" lines="3" offsetXPC="60" offsetYPC="25" widthPC="30" heightPC="15" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> Prognoza meteo în ţară pentru ziua de mâine: <?php echo $desc; ?> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> Apăsaţi: 1=primul 2=mijloc 3=ultimul. REV/NEXT salt o pagină (8) </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"; } if (userInput == "one" || userInput == "1") { idx=0; setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } if (userInput == "two" || userInput == "2") { idx=Integer(itemCount / 2); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } if (userInput == "three" || userInput == "3") { idx = itemCount-1; setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <channel> <title>Vremea în România</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); } if ($video <> "") { echo ' <item> <title>Video - Prognoza meteo - Avertizări meteo</title> <onClick> <script> movie="http://127.0.0.1/cgi-bin/translate?stream,,'.$video.'"; playItemUrl(movie,10); </script> </onClick> </item> '; } $videos = explode('<option', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1=explode('value="',$video); $t2=explode('"',$t1[1]); $id=$t2[0]; $t3=explode(">",$t1[1]); $t4=explode("<",$t3[1]); $title=trim($t4[0]); $r_title=str_replace(" ","_",$title); $link="http://127.0.0.1/cgi-bin/scripts/news/php/w.php?q=".$r_title.",".$id; echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> </item> '; } ?> </channel> </rss>
1073s
trunk/news/php/weather.php
PHP
gpl3
5,674
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; ?> <rss version="2.0"> <?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["q"]; if($query) { $queryArr = explode(',', $query); $loc = $queryArr[0]; $id = $queryArr[1]; } $link="http://vremea.meteoromania.ro/prognoza_new/".$loc; $html = file_get_contents($link); //$bg="http://vremea.meteoromania.ro/sites/all/themes/meteo/images/bg_big.jpg"; // Conditii curente $t1=explode('<td class="white2">',$html); $t2=explode('</td>',$t1[1]); $cond=explode("<br/>",$t2[0]); $vant_cur=trim($cond[0]); $pres_cur=trim($cond[1]); $hum_cur=trim($cond[2]); $ir_cur=trim($cond[3]); //info actuale $t1=explode('class="titlu"',$html); $t2=explode(">",$t1[1]); $t3=explode("<",$t2[1]); $timp_cur=$t3[0]; $t1=explode('src="',$html); $t2=explode('"',$t1[2]); $img_cur="http://vremea.meteoromania.ro".$t2[0]; $t2=explode('title="',$t1[2]); $t3=explode('"',$t2[1]); $desc_cur=$t3[0]; $t1=explode('<div id="loc" class="vizibil">',$html); $t2=explode('-->',$t1[1]); $t3=explode('<',$t2[1]); $loc=$t3[0]; $t4=explode('</div>',$t1[1]); $t5=explode('</td>',$t4[1]); $temp_cur=str_replace("&deg;","",trim($t5[0])); //=================================== //Prognoza $d=explode('<td background="/sites/all/themes/meteo/images/bg_prognoza_up.jpg"',$html); // Get day name $days=$d[1]; $day=explode('td align="center" class="titlu"',$days); // Day 1 $t1=explode(">",$day[1]); $t2=explode("<",$t1[1]); $day1_name=$t2[0]; // Day 2 $t1=explode(">",$day[2]); $t2=explode("<",$t1[1]); $day2_name=$t2[0]; // Day 3 $t1=explode(">",$day[3]); $t2=explode("<",$t1[1]); $day3_name=$t2[0]; //Valori prognoza $days=$d[3]; //Imagine $t1=explode('src="',$days); $t2=explode('"',$t1[1]); $img_day1="http://vremea.meteoromania.ro".$t2[0]; $t2=explode('"',$t1[2]); $img_day2="http://vremea.meteoromania.ro".$t2[0]; $t2=explode('"',$t1[3]); $img_day3="http://vremea.meteoromania.ro".$t2[0]; //descriere $t1=explode('title="',$days); $t2=explode('"',$t1[1]); $day1_desc=$t2[0]; $t2=explode('"',$t1[2]); $day2_desc=$t2[0]; $t2=explode('"',$t1[3]); $day3_desc=$t2[0]; //min max $a1=explode("<br>",$t1[1]); $day1_max=str_replace("&","",trim($a1[1])); $a2=explode("</td>",$a1[2]); $day1_min=str_replace("&","",trim($a2[0])); $a1=explode("<br>",$t1[2]); $day2_max=str_replace("&","",trim($a1[1])); $a2=explode("</td>",$a1[2]); $day2_min=str_replace("&","",trim($a2[0])); $a1=explode("<br>",$t1[3]); $day3_max=str_replace("&","",trim($a1[1])); $a2=explode("</td>",$a1[2]); $day3_min=str_replace("&","",trim($a2[0])); //========================================================== ?> <mediaDisplay name="onePartView" sideLeftWidthPC="0" sideRightWidthPC="0" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" 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> <backgroundDisplay> <image offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> /usr/local/etc/www/cgi-bin/scripts/news/image/vremea_bg.jpg </image> </backgroundDisplay> --> <text redraw="yes" align="center" offsetXPC="5" offsetYPC="5" widthPC="50" heightPC="8" fontSize="17" backgroundColor="0:64:128" foregroundColor="100:200:255"> <?php echo $timp_cur; ?> </text> <image offsetXPC=5 offsetYPC=15 widthPC=10 heightPC=16> <?php echo $img_cur; ?> </image> <text align="left" offsetXPC="15" offsetYPC="15" widthPC="40" heightPC="5" fontSize="14" backgroundColor="-1:-1:-1" foregroundColor="0:0:0"> Temperatura curentă:<?php echo str_replace("deg;"," ",$temp_cur); ?> </text> <text align="left" lines="2" offsetXPC="15" offsetYPC="20" widthPC="40" heightPC="10" fontSize="14" backgroundColor="-1:-1:-1" foregroundColor="0:0:0"> <?php echo $desc_cur; ?> </text> <text redraw="yes" align="center" offsetXPC="5" offsetYPC="35" widthPC="50" heightPC="8" fontSize="17" backgroundColor="0:64:128" foregroundColor="100:200:255"> Informaţii suplimentare </text> <text align="left" offsetXPC="5" offsetYPC="44" widthPC="20" heightPC="5" fontSize="14" backgroundColor="-1:-1:-1" foregroundColor="0:0:0"> Viteza vântului: </text> <text align="left" offsetXPC="25" offsetYPC="44" widthPC="30" heightPC="5" fontSize="14" backgroundColor="-1:-1:-1" foregroundColor="0:0:0"> <?php echo $vant_cur; ?> </text> <text align="left" offsetXPC="5" offsetYPC="49" widthPC="20" heightPC="5" fontSize="14" backgroundColor="-1:-1:-1" foregroundColor="0:0:0"> Umiditate: </text> <text align="left" offsetXPC="25" offsetYPC="49" widthPC="30" heightPC="5" fontSize="14" backgroundColor="-1:-1:-1" foregroundColor="0:0:0"> <?php echo $hum_cur; ?> </text> <text align="left" offsetXPC="5" offsetYPC="54" widthPC="20" heightPC="5" fontSize="14" backgroundColor="-1:-1:-1" foregroundColor="0:0:0"> Presiunea: </text> <text align="left" offsetXPC="25" offsetYPC="54" widthPC="30" heightPC="5" fontSize="14" backgroundColor="-1:-1:-1" foregroundColor="0:0:0"> <?php echo $pres_cur; ?> </text> <text align="left" offsetXPC="5" offsetYPC="59" widthPC="20" heightPC="5" fontSize="14" backgroundColor="-1:-1:-1" foregroundColor="0:0:0"> IR: </text> <text align="left" offsetXPC="25" offsetYPC="59" widthPC="30" heightPC="5" fontSize="14" backgroundColor="-1:-1:-1" foregroundColor="0:0:0"> <?php echo $ir_cur; ?> </text> <image offsetXPC=60 offsetYPC=15 widthPC=10 heightPC=16> <?php echo $img_day1; ?> </image> <text redraw="yes" align="center" offsetXPC="60" offsetYPC="5" widthPC="35" heightPC="8" fontSize="17" backgroundColor="0:64:128" foregroundColor="100:200:255"> <?php echo $day1_name; ?> </text> <text redraw="yes" align="left" lines="2" offsetXPC="70" offsetYPC="24" widthPC="25" heightPC="10" fontSize="14" backgroundColor="-1:-1:-1" foregroundColor="0:0:0"> <?php echo $day1_desc; ?> </text> <text redraw="yes" align="left" offsetXPC="70" offsetYPC="14" widthPC="25" heightPC="5" fontSize="14" backgroundColor="-1:-1:-1" foregroundColor="0:0:0"> <?php echo str_replace("deg;"," ",$day1_max); ?> </text> <text redraw="yes" align="left" offsetXPC="70" offsetYPC="19" widthPC="25" heightPC="5" fontSize="14" backgroundColor="-1:-1:-1" foregroundColor="0:0:0"> <?php echo str_replace("deg;"," ",$day1_min); ?> </text> <image offsetXPC=60 offsetYPC=45 widthPC=10 heightPC=16> <?php echo $img_day2; ?> </image> <text redraw="yes" align="center" offsetXPC="60" offsetYPC="35" widthPC="35" heightPC="8" fontSize="17" backgroundColor="0:64:128" foregroundColor="100:200:255"> <?php echo $day2_name; ?> </text> <text redraw="yes" align="left" lines="2" offsetXPC="70" offsetYPC="54" widthPC="25" heightPC="10" fontSize="14" backgroundColor="-1:-1:-1" foregroundColor="0:0:0"> <?php echo $day2_desc; ?> </text> <text redraw="yes" align="left" offsetXPC="70" offsetYPC="44" widthPC="25" heightPC="5" fontSize="14" backgroundColor="-1:-1:-1" foregroundColor="0:0:0"> <?php echo str_replace("deg;"," ",$day2_max); ?> </text> <text redraw="yes" align="left" offsetXPC="70" offsetYPC="49" widthPC="25" heightPC="5" fontSize="14" backgroundColor="-1:-1:-1" foregroundColor="0:0:0"> <?php echo str_replace("deg;"," ",$day2_min); ?> </text> <image offsetXPC=60 offsetYPC=75 widthPC=10 heightPC=16> <?php echo $img_day3; ?> </image> <text redraw="yes" align="center" offsetXPC="60" offsetYPC="65" widthPC="35" heightPC="8" fontSize="17" backgroundColor="0:64:128" foregroundColor="100:200:255"> <?php echo $day3_name; ?> </text> <text redraw="yes" align="left" lines="2" offsetXPC="70" offsetYPC="84" widthPC="25" heightPC="10" fontSize="14" backgroundColor="-1:-1:-1" foregroundColor="0:0:0"> <?php echo $day3_desc; ?> </text> <text redraw="yes" align="left" offsetXPC="70" offsetYPC="74" widthPC="25" heightPC="5" fontSize="14" backgroundColor="-1:-1:-1" foregroundColor="0:0:0"> <?php echo str_replace("deg;"," ",$day3_max); ?> </text> <text redraw="yes" align="left" offsetXPC="70" offsetYPC="79" widthPC="25" heightPC="5" fontSize="14" backgroundColor="-1:-1:-1" foregroundColor="0:0:0"> <?php echo str_replace("deg;"," ",$day3_min); ?> </text> <text redraw="yes" align="center" offsetXPC="5" offsetYPC="70" widthPC="50" heightPC="18" fontSize="24" backgroundColor="-1:-1:-1" foregroundColor="0:0:0"> Localitate: <?php echo $loc; ?> </text> <onUserInput> <script> ret = "false"; if(userInput == "right" || userInput == "R") { ret = "true"; } ret; </script> </onUserInput> </mediaDisplay> <channel> <title>Vremea</title> </channel> </rss>
1073s
trunk/news/php/w.php
PHP
gpl3
9,155
#!/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"); redrawDisplay(); </onRefresh> <mediaDisplay name=photoView centerXPC=7 centerYPC=25 centerHeightPC=40 columnCount=4 rowCount=1 menuBorderColor="55:55:55" sideColorBottom="0:0:0" sideColorTop="0:0:0" backgroundColor="0:0:0" imageBorderColor="0:0:0" itemBackgroundColor="0:0:0" itemGapXPC=0 itemGapYPC=1 sideTopHeightPC=22 bottomYPC=85 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> <!-- lines="5" fontSize=15 --> <text align="center" redraw="yes" lines=3 fontSize=17 offsetXPC=5 offsetYPC=65 widthPC=90 heightPC=20 backgroundColor=0:0:0 foregroundColor=120:120:120> <script>print(annotation); annotation;</script> </text> <text align="center" redraw="yes" offsetXPC=10 offsetYPC=85 widthPC=80 heightPC=10 fontSize=15 backgroundColor=0:0:0 foregroundColor=75:75:75> <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> <image> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); } getItemInfo(idx, "image"); </script> <offsetXPC> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) 0; else 12; </script> </offsetXPC> <offsetYPC> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) 0; else 6; </script> </offsetYPC> <widthPC> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) 100; else 75; </script> </widthPC> <heightPC> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) 50; else 37; </script> </heightPC> </image> <text align="center" lines="4" offsetXPC=0 offsetYPC=55 widthPC=100 heightPC=45 backgroundColor=-1:-1:-1> <script> idx = getQueryItemIndex(); getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "18"; else "14"; </script> </fontSize> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "75:75:75"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); majorContext = getPageInfo("majorContext"); print("*** majorContext=",majorContext); print("*** userInput=",userInput); if(userInput == "one" || userInput == "1") { if(itemCount &gt;= 1) { setFocusItemIndex(0); redrawDisplay(); } } else if(userInput == "two" || userInput == "2") { if(itemCount &gt;= 2) { setFocusItemIndex(1); redrawDisplay(); } } else if(userInput == "three" || userInput == "3") { if(itemCount &gt;= 3) { setFocusItemIndex(2); redrawDisplay(); } } else if(userInput == "four" || userInput == "4") { if(itemCount &gt;= 4) { setFocusItemIndex(3); redrawDisplay(); } } else if(userInput == "five" || userInput == "5") { if(itemCount &gt;= 5) { setFocusItemIndex(4); redrawDisplay(); } } else if(userInput == "six" || userInput == "6") { if(itemCount &gt;= 6) { setFocusItemIndex(5); redrawDisplay(); } } else if(userInput == "seven" || userInput == "7") { if(itemCount &gt;= 7) { setFocusItemIndex(6); redrawDisplay(); } } else if(userInput == "eight" || userInput == "8") { if(itemCount &gt;= 8) { setFocusItemIndex(7); redrawDisplay(); } } else if(userInput == "nine" || userInput == "9") { if(itemCount &gt;= 9) { setFocusItemIndex(8); redrawDisplay(); } } if(userInput == "zero" || userInput == "0") { if(itemCount &gt;= 10) { setFocusItemIndex(9); redrawDisplay(); } } else if (userInput == "pagedown" || userInput == "pageup" || userInput == "PD" || userInput == "PG") { itemSize = getPageInfo("itemCount"); idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -10; if(idx &gt;= itemSize) idx = itemSize-1; } else { idx -= 10; if(idx &lt; 0) idx = 0; } setFocusItemIndex(idx); setItemFocus(idx); redrawDisplay(); ret = "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" 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>Ştiri şi alte informaţii</title> <item> <title>TvBlog: orarul serialelor</title> <link><?php echo $host; ?>/scripts/news/php/tvblog.php</link> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/news/image/tvblog.jpg" /> <image>/usr/local/etc/www/cgi-bin/scripts/news/image/tvblog.jpg</image> <location>http://www.tvblog.ro</location> <annotation>TvBlog, blogul iubitorilor de seriale TV</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>Vremea în România</title> <link><?php echo $host; ?>/scripts/news/php/weather.php</link> <media:thumbnail url="image/mele/weather.png" /> <image>image/mele/weather.png</image> <location>http://vremea.meteoromania.ro/</location> <annotation>Starea vremii în diferite localităţi</annotation> </item> <item> <title>Curs Valutar</title> <link><?php echo $host; ?>/scripts/news/php/curs.php</link> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/news/image/curs.png" /> <image>/usr/local/etc/www/cgi-bin/scripts/news/image/curs.png</image> <location>http://bnr.ro</location> <annotation>Cursul oficial pentru principalele valute</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>port.ro: programul TV</title> <link><?php echo $host; ?>/scripts/news/php/port.php</link> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/news/image/program_tv.png" /> <image>/usr/local/etc/www/cgi-bin/scripts/news/image/program_tv.png</image> <location>http://port.ro</location> <annotation>Programul TV pentru mai mult de 100 de posturi</annotation> <mediaDisplay name="threePartsView"/> </item> <!-- <item> <title>Program-Tv.ro :: Acum la televizor</title> <link>http://www.program-tv.ro/acum-la-tv.rss</link> <media:thumbnail url="image/tv_radio.png" /> <image>image/tv_radio.png</image> <location>http://www.program-tv.ro</location> <annotation>Program TV, Ghid Pentru Posturile Tv, Cinematografe Si Teatre. Ofera Detalii Pentru Fiecare Film, Teatru Sau Emisiune.</annotation> <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=20 offsetYPC=8 widthPC=70 heightPC=10 fontSize=20 backgroundColor=-1:-1:-1 foregroundColor=255:255:255> Program-Tv.ro :: Acum la televizor </text> </mediaDisplay> </item> <item> <title>Program-Tv.ro :: Urmeaza la televizor</title> <link>http://www.program-tv.ro/urmeaza-la-tv.rss</link> <media:thumbnail url="image/tv_radio.png" /> <image>image/tv_radio.png</image> <location>http://www.program-tv.ro</location> <annotation>Program TV, Ghid Pentru Posturile Tv, Cinematografe Si Teatre. Ofera Detalii Pentru Fiecare Film, Teatru Sau Emisiune.</annotation> <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=20 offsetYPC=8 widthPC=70 heightPC=10 fontSize=20 backgroundColor=-1:-1:-1 foregroundColor=255:255:255> Program-Tv.ro :: Urmeaza la televizor </text> </mediaDisplay> </item> --> </channel> </rss>
1073s
trunk/news/news.php
PHP
gpl3
11,611
#!/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"); redrawDisplay(); </onRefresh> <mediaDisplay name=photoView centerXPC=7 centerYPC=25 centerHeightPC=40 columnCount=4 rowCount=1 menuBorderColor="55:55:55" sideColorBottom="0:0:0" sideColorTop="0:0:0" backgroundColor="0:0:0" imageBorderColor="0:0:0" itemBackgroundColor="0:0:0" itemGapXPC=0 itemGapYPC=1 sideTopHeightPC=22 bottomYPC=85 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> <!-- lines="5" fontSize=15 --> <text align="center" redraw="yes" lines=3 fontSize=17 offsetXPC=5 offsetYPC=65 widthPC=90 heightPC=20 backgroundColor=0:0:0 foregroundColor=120:120:120> <script>print(annotation); annotation;</script> </text> <text align="center" redraw="yes" offsetXPC=10 offsetYPC=85 widthPC=80 heightPC=10 fontSize=15 backgroundColor=0:0:0 foregroundColor=75:75:75> <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> <image> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); } getItemInfo(idx, "image"); </script> <offsetXPC> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) 0; else 12; </script> </offsetXPC> <offsetYPC> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) 0; else 6; </script> </offsetYPC> <widthPC> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) 100; else 75; </script> </widthPC> <heightPC> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) 50; else 37; </script> </heightPC> </image> <text align="center" lines="4" offsetXPC=0 offsetYPC=55 widthPC=100 heightPC=45 backgroundColor=-1:-1:-1> <script> idx = getQueryItemIndex(); getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "18"; else "14"; </script> </fontSize> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "75:75:75"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); majorContext = getPageInfo("majorContext"); print("*** majorContext=",majorContext); print("*** userInput=",userInput); if(userInput == "one" || userInput == "1") { if(itemCount &gt;= 1) { setFocusItemIndex(0); redrawDisplay(); } } else if(userInput == "two" || userInput == "2") { if(itemCount &gt;= 2) { setFocusItemIndex(1); redrawDisplay(); } } else if(userInput == "three" || userInput == "3") { if(itemCount &gt;= 3) { setFocusItemIndex(2); redrawDisplay(); } } else if(userInput == "four" || userInput == "4") { if(itemCount &gt;= 4) { setFocusItemIndex(3); redrawDisplay(); } } else if(userInput == "five" || userInput == "5") { if(itemCount &gt;= 5) { setFocusItemIndex(4); redrawDisplay(); } } else if(userInput == "six" || userInput == "6") { if(itemCount &gt;= 6) { setFocusItemIndex(5); redrawDisplay(); } } else if(userInput == "seven" || userInput == "7") { if(itemCount &gt;= 7) { setFocusItemIndex(6); redrawDisplay(); } } else if(userInput == "eight" || userInput == "8") { if(itemCount &gt;= 8) { setFocusItemIndex(7); redrawDisplay(); } } else if(userInput == "nine" || userInput == "9") { if(itemCount &gt;= 9) { setFocusItemIndex(8); redrawDisplay(); } } if(userInput == "zero" || userInput == "0") { if(itemCount &gt;= 10) { setFocusItemIndex(9); redrawDisplay(); } } else if (userInput == "pagedown" || userInput == "pageup" || userInput == "PD" || userInput == "PG") { itemSize = getPageInfo("itemCount"); idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -10; if(idx &gt;= itemSize) idx = itemSize-1; } else { idx -= 10; if(idx &lt; 0) idx = 0; } setFocusItemIndex(idx); setItemFocus(idx); redrawDisplay(); ret = "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" 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>Ştiri şi alte informaţii</title> <item> <title>TvBlog: orarul serialelor</title> <link><?php echo $host; ?>/scripts/news/php/tvblog.php</link> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/news/image/tvblog.jpg" /> <image>/usr/local/etc/www/cgi-bin/scripts/news/image/tvblog.jpg</image> <location>http://www.tvblog.ro</location> <annotation>TvBlog, blogul iubitorilor de seriale TV</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>Vremea în România</title> <link><?php echo $host; ?>/scripts/news/php/weather.php</link> <media:thumbnail url="image/mele/weather.png" /> <image>image/mele/weather.png</image> <location>http://vremea.meteoromania.ro/</location> <annotation>Starea vremii în diferite localităţi</annotation> </item> <item> <title>Curs Valutar</title> <link><?php echo $host; ?>/scripts/news/php/curs.php</link> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/news/image/curs.png" /> <image>/usr/local/etc/www/cgi-bin/scripts/news/image/curs.png</image> <location>http://bnr.ro</location> <annotation>Cursul oficial pentru principalele valute</annotation> <mediaDisplay name="threePartsView"/> </item> <item> <title>port.ro: programul TV</title> <link><?php echo $host; ?>/scripts/news/php/port.php</link> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/news/image/program_tv.png" /> <image>/usr/local/etc/www/cgi-bin/scripts/news/image/program_tv.png</image> <location>http://port.ro</location> <annotation>Programul TV pentru mai mult de 100 de posturi</annotation> <mediaDisplay name="threePartsView"/> </item> <!-- <item> <title>Program-Tv.ro :: Acum la televizor</title> <link>http://www.program-tv.ro/acum-la-tv.rss</link> <media:thumbnail url="image/tv_radio.png" /> <image>image/tv_radio.png</image> <location>http://www.program-tv.ro</location> <annotation>Program TV, Ghid Pentru Posturile Tv, Cinematografe Si Teatre. Ofera Detalii Pentru Fiecare Film, Teatru Sau Emisiune.</annotation> <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=20 offsetYPC=8 widthPC=70 heightPC=10 fontSize=20 backgroundColor=-1:-1:-1 foregroundColor=255:255:255> Program-Tv.ro :: Acum la televizor </text> </mediaDisplay> </item> <item> <title>Program-Tv.ro :: Urmeaza la televizor</title> <link>http://www.program-tv.ro/urmeaza-la-tv.rss</link> <media:thumbnail url="image/tv_radio.png" /> <image>image/tv_radio.png</image> <location>http://www.program-tv.ro</location> <annotation>Program TV, Ghid Pentru Posturile Tv, Cinematografe Si Teatre. Ofera Detalii Pentru Fiecare Film, Teatru Sau Emisiune.</annotation> <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=20 offsetYPC=8 widthPC=70 heightPC=10 fontSize=20 backgroundColor=-1:-1:-1 foregroundColor=255:255:255> Program-Tv.ro :: Urmeaza la televizor </text> </mediaDisplay> </item> --> </channel> </rss>
1073s
trunk/news/.svn/text-base/news.php.svn-base
PHP
gpl3
11,611
#!/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"; $p=$_SERVER['SCRIPT_FILENAME']; $script_directory = substr($p, 0, strrpos($p, '/')); $check_file=$script_directory."/filme/peteava.php"; $f_version=$script_directory."/version.txt"; if (file_exists($f_version)) { $curr_vers=trim(file_get_contents($script_directory."/version.txt")); if (file_exists($check_file)) { $avb_vers=trim(file_get_contents("http://hdforall.googlecode.com/files/version.txt")); } else { $avb_vers=trim(file_get_contents("http://hdforall.googlecode.com/files/version_mini.txt")); } if ($avb_vers <> $curr_vers) { $info = "O nouă versiune este disponibilă (".$avb_vers.")! Actualizaţi din meniul System Tools."; } else { $info = "Sfat: Folosiţi tastele 1-9 sau PREV/NEXT pentru o navigare mai uşoară."; } } else { $info = "Sfat: Folosiţi tastele 1-9 sau PREV/NEXT pentru o navigare mai uşoară!"; } ?> <rss version="2.0"> <onEnter> showIdle(); SetScreenSaverStatus("no"); setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); redrawDisplay(); </onRefresh> <mediaDisplay name=photoView centerXPC=7 centerYPC=25 centerHeightPC=60 columnCount=5 rowCount=3 menuBorderColor="55:55:55" sideColorBottom="0:0:0" sideColorTop="0:0:0" backgroundColor="0:0:0" itemBackgroundColor="0:0:0" itemGapXPC=0 itemGapYPC=0 imageBorderColor="10:105:150" imageBorderPC="0" sideTopHeightPC=0 bottomYPC=0 sliding=yes showHeader=no showDefaultInfo=no idleImageWidthPC="8" idleImageHeightPC="10" idleImageXPC="80" idleImageYPC="10"> <text align="left" offsetXPC=5 offsetYPC=5 widthPC=75 heightPC=5 fontSize=15 backgroundColor=0:0:0 foregroundColor=120:120:120> <?php echo $info; ?> </text> <!-- <backgroundDisplay name=ims_guide_menu> <image offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> image/IMS_bg.fsp </image> </backgroundDisplay> --> <text align="left" redraw="yes" useBackgroundSurface=yes offsetXPC="8" offsetYPC="15" widthPC="50" heightPC="8" fontSize="24" foregroundColor="100:200:255"> <script>print(hed); hed;</script> </text> <text align="center" redraw="yes" lines=" 2" useBackgroundSurface=yes offsetXPC="8" offsetYPC="85" widthPC="84" heightPC="12" fontSize="17" foregroundColor="200:200:200"> <script>print(annotation); annotation;</script> </text> <image offsetXPC=0 offsetYPC=23 widthPC=100 heightPC=1> ../etc/translate/rss/image/gradient_line.bmp </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> <image> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { hed = getItemInfo(idx, "title"); annotation = getItemInfo(idx, "annotation"); getItemInfo(idx, "focus"); } else { getItemInfo(idx, "unfocus"); } </script> <offsetXPC> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) 7.5; else 15; </script> </offsetXPC> <offsetYPC> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) 0; else 10; </script> </offsetYPC> <widthPC> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) 85; else 70; </script> </widthPC> <heightPC> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) 80; else 70; </script> </heightPC> </image> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); majorContext = getPageInfo("majorContext"); print("*** majorContext=",majorContext); print("*** userInput=",userInput); if(userInput == "one" || userInput == "1") { if(itemCount &gt;= 1) { setFocusItemIndex(0); redrawDisplay(); } } else if(userInput == "two" || userInput == "2") { if(itemCount &gt;= 2) { setFocusItemIndex(1); redrawDisplay(); } } else if(userInput == "three" || userInput == "3") { if(itemCount &gt;= 3) { setFocusItemIndex(2); redrawDisplay(); } } else if(userInput == "four" || userInput == "4") { if(itemCount &gt;= 4) { setFocusItemIndex(3); redrawDisplay(); } } else if(userInput == "five" || userInput == "5") { if(itemCount &gt;= 5) { setFocusItemIndex(4); redrawDisplay(); } } else if(userInput == "six" || userInput == "6") { if(itemCount &gt;= 6) { setFocusItemIndex(5); redrawDisplay(); } } else if(userInput == "seven" || userInput == "7") { if(itemCount &gt;= 7) { setFocusItemIndex(6); redrawDisplay(); } } else if(userInput == "eight" || userInput == "8") { if(itemCount &gt;= 8) { setFocusItemIndex(7); redrawDisplay(); } } else if(userInput == "nine" || userInput == "9") { if(itemCount &gt;= 9) { setFocusItemIndex(8); redrawDisplay(); } } if(userInput == "zero" || userInput == "0") { if(itemCount &gt;= 10) { setFocusItemIndex(9); redrawDisplay(); } } else if (userInput == "pagedown" || userInput == "pageup" || userInput == "PD" || userInput == "PG") { itemSize = getPageInfo("itemCount"); idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -4; if(idx &gt;= itemSize) idx = itemSize-1; } else { idx -= 4; if(idx &lt; 0) idx = 0; } setFocusItemIndex(idx); setItemFocus(idx); redrawDisplay(); ret = "true"; } ret; </script> </onUserInput> </mediaDisplay> <adultlink> <mediaDisplay name="photoView"/> <link> <?php echo $host; ?>/scripts/adult/adult1325.php </link> </adultlink> <adultpass> <mediaDisplay name="onePartView" /> <link> /usr/local/etc/www/cgi-bin/scripts/adult/adult.rss </link> </adultpass> <destination> <link>http://127.0.0.1/cgi-bin/scripts/mini1.php</link> <mediaDisplay name="photoView"/> </destination> <channel> <title>HDD Links</title> <!-- 1 --> <item> <title>Filme online subtitrate</title> <onClick> <script> showIdle(); "<?php echo $host; ?>/scripts/filme/filme.php"; </script> </onClick> <focus>/usr/local/etc/www/cgi-bin/scripts/image/filme_focus.png</focus> <unfocus>/usr/local/etc/www/cgi-bin/scripts/image/filme_unfocus.png</unfocus> <annotation>Filme online traduse</annotation> </item> <!-- 2 --> <item> <title>TV Live</title> <onClick> <script> showIdle(); "<?php echo $host; ?>/scripts/tv/tv_live.php"; </script> </onClick> <focus>/usr/local/etc/www/cgi-bin/scripts/image/livetv_focus.png</focus> <unfocus>/usr/local/etc/www/cgi-bin/scripts/image/livetv_unfocus.png</unfocus> <annotation>Posturi TV din România şi din alte ţări. Ştiri, filme, muzică sau sport</annotation> </item> <!-- 3 --> <item> <title>Posturi naţionale</title> <onClick> <script> showIdle(); "<?php echo $host; ?>/scripts/tv/nationale.php"; </script> </onClick> <focus>/usr/local/etc/www/cgi-bin/scripts/image/nationale_focus.png</focus> <unfocus>/usr/local/etc/www/cgi-bin/scripts/image/nationale_unfocus.png</unfocus> <annotation>Înregistrări ale unor emisiuni TV emise de posturile naţionale</annotation> </item> <!-- 4 - new line --> <item> <title>Seriale TV subtitrate</title> <onClick> <script> showIdle(); "<?php echo $host; ?>/scripts/filme/seriale.php"; </script> </onClick> <focus>/usr/local/etc/www/cgi-bin/scripts/image/seriale_focus.png</focus> <unfocus>/usr/local/etc/www/cgi-bin/scripts/image/seriale_unfocus.png</unfocus> <annotation>Seriale TV traduse</annotation> </item> <!-- 5 --> <item> <title>OneHD</title> <onClick> <script> showIdle(); "<?php echo $host; ?>/scripts/tv/prahovahd.php"; </script> </onClick> <focus>/usr/local/etc/www/cgi-bin/scripts/image/onehd_focus.png</focus> <unfocus>/usr/local/etc/www/cgi-bin/scripts/image/onehd_unfocus.png</unfocus> <annotation>One HD: concerte, divertisment, business, turism, experimente, disponibile în High Definition atât live cât şi on-demand (VOD)</annotation> </item> <!-- 6 --> <item> <title>Radio Online</title> <onClick> <script> showIdle(); "/usr/local/etc/www/cgi-bin/scripts/tv/radio.rss"; </script> </onClick> <focus>/usr/local/etc/www/cgi-bin/scripts/image/radio_focus.png</focus> <unfocus>/usr/local/etc/www/cgi-bin/scripts/image/radio_unfocus.png</unfocus> <annotation>Posturi de radio</annotation> </item> <!-- 7 - new line --> <item> <title>Pentru copii</title> <onClick> <script> showIdle(); "<?php echo $host; ?>/scripts/filme/desene.php"; </script> </onClick> <focus>/usr/local/etc/www/cgi-bin/scripts/image/desene_focus.png</focus> <unfocus>/usr/local/etc/www/cgi-bin/scripts/image/desene_unfocus.png</unfocus> <annotation>Desene animate, filme, poveşti</annotation> </item> <!-- 8 --> <item> <title>Conturi personale metafeeds</title> <onClick> <script> showIdle(); "<?php echo $host; ?>/scripts/user/users.php"; </script> </onClick> <focus>/usr/local/etc/www/cgi-bin/scripts/image/user_focus.png</focus> <unfocus>/usr/local/etc/www/cgi-bin/scripts/image/user_unfocus.png</unfocus> <annotation>Ai un cont pe metafeeds? Aici putem să-l adăugăm!</annotation> </item> <!-- 9 --> <item> <title>Ştiri şi alte informaţii</title> <onClick> <script> showIdle(); "<?php echo $host; ?>/scripts/news/news.php"; </script> </onClick> <focus>/usr/local/etc/www/cgi-bin/scripts/image/news_focus.png</focus> <unfocus>/usr/local/etc/www/cgi-bin/scripts/image/news_unfocus.png</unfocus> <annotation>Orarul serialelor, meteo, cursul valutar sau alte informaţii</annotation> </item> <!-- 10 - new line --> <item> <title>Videoclipuri</title> <onClick> <script> showIdle(); "<?php echo $host; ?>/scripts/clip/clip.php"; </script> </onClick> <focus>/usr/local/etc/www/cgi-bin/scripts/image/videoclip_focus.png</focus> <unfocus>/usr/local/etc/www/cgi-bin/scripts/image/videoclip_unfocus.png</unfocus> <annotation>Filmuleţe nostime, reale, clipuri video personale</annotation> </item> <!-- 11 --> <item> <title>Trailere filme şi jocuri</title> <onClick> <script> showIdle(); "<?php echo $host; ?>/scripts/trailer/trailer.php"; </script> </onClick> <focus>/usr/local/etc/www/cgi-bin/scripts/image/trailer_focus.png</focus> <unfocus>/usr/local/etc/www/cgi-bin/scripts/image/trailer_unfocus.png</unfocus> <annotation>Ultimele trailere pentru filme sau jocuri</annotation> </item> <!-- 12 --> <item> <title>Emisiuni Sportive</title> <onClick> <script> showIdle(); "<?php echo $host; ?>/scripts/tv/tv_sport.php"; </script> </onClick> <focus>/usr/local/etc/www/cgi-bin/scripts/image/sport_focus.png</focus> <unfocus>/usr/local/etc/www/cgi-bin/scripts/image/sport_unfocus.png</unfocus> <annotation>Înregistrări evenimente sportive: fotbal şi nu numai</annotation> </item> <!-- 13 - new line --> <?php $f="/usr/local/etc/xLive/repoman/05_08_2011.txt"; if (file_exists($f)) { echo ' <item> <title>repoman xLive</title> <link>/usr/local/etc/xLive/repoman/repoman.rss</link> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/php1/xlive.png" /> <focus>/usr/local/etc/www/cgi-bin/scripts/image/xlive_focus.png</focus> <unfocus>/usr/local/etc/www/cgi-bin/scripts/image/xlive_unfocus.png</unfocus> <location></location> <annotation>repoman xLive</annotation> <mediaDisplay name="photoView"/> </item> '; } else { echo ' <item> <title>repoman xLive</title> <onClick> <script> rss = "/usr/local/etc/www/cgi-bin/scripts/util/downloadDialog.rss"; ret = doModalRss(rss); if (ret == "Confirm") { showIdle(); url="http://127.0.0.1/cgi-bin/scripts/util/xlive.cgi?mode=install"; msg = getURL(url); cancelIdle(); jumptolink("destination"); } </script> </onClick> <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/php1/xlive.png" /> <focus>/usr/local/etc/www/cgi-bin/scripts/image/xlive_focus.png</focus> <unfocus>/usr/local/etc/www/cgi-bin/scripts/image/xlive_unfocus.png</unfocus> <location></location> <annotation>repoman xLive</annotation> <mediaDisplay name="photoView"/> </item> '; } ?> <!-- 14 --> <item> <title>Posturi locale</title> <onClick> <script> showIdle(); "<?php echo $host; ?>/scripts/tv/locale.php"; </script> </onClick> <focus>/usr/local/etc/www/cgi-bin/scripts/image/locale_focus.png</focus> <unfocus>/usr/local/etc/www/cgi-bin/scripts/image/locale_unfocus.png</unfocus> <annotation>Ştiri şi emisiuni înregistrate, difuzate de posturile TV locale</annotation> </item> <!-- 15 --> <item> <title>Programe adulţi</title> <annotation>Numai pentru +18! Necesită parolă. Pentru mai multe informaţii: http:// hdforall.freehostia.com. Pentru schimbare parolă introduceţi o parolă greşită.</annotation> <focus>/usr/local/etc/www/cgi-bin/scripts/image/adult_focus.png</focus> <unfocus>/usr/local/etc/www/cgi-bin/scripts/image/adult_unfocus.png</unfocus> <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="photoView"/> </item> </channel> </rss>
1073s
trunk/mini1.php
PHP
gpl3
14,699
#!/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/peteava.php
PHP
gpl3
5,983
#!/usr/local/bin/Resource/www/cgi-bin/php <?php error_reporting(0); $filelink=$_ENV["QUERY_STRING"]; //$filelink = $_GET["file"]; //$filelink="http://www.seriale.filmesubtitrate.info/2011/08/against-wall-sezon-1-ep-1-pilot-serial.html"; $t1=explode(",",$filelink); $filelink = urldecode($t1[0]); $filelink = str_replace("*",",",$filelink); $filelink = str_replace("@","&",$filelink); //seriale.subtitrate.info $pg = urldecode($t1[1]); if ($pg == "") { $pg_title = "Link"; } else { $pg_title = $pg; $pg = preg_replace('/[^A-Za-z0-9_]/','_',$pg); } $titledownload=$pg; $onlinemoca=$t1[2]; //play movie if (file_exists("/tmp/usbmounts/sda1/download")) { $dir = "/tmp/usbmounts/sda1/download/"; $dir_log = "/tmp/usbmounts/sda1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdb1/download")) { $dir = "/tmp/usbmounts/sdb1/download/"; $dir_log = "/tmp/usbmounts/sdb1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdc1/download")) { $dir = "/tmp/usbmounts/sdc1/download/"; $dir_log = "/tmp/usbmounts/sdc1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sda2/download")) { $dir = "/tmp/usbmounts/sda2/download/"; $dir_log = "/tmp/usbmounts/sda2/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdb2/download")) { $dir = "/tmp/usbmounts/sdb2/download/"; $dir_log = "/tmp/usbmounts/sdb2/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdc2/download")) { $dir = "/tmp/usbmounts/sdc2/download/"; $dir = "/tmp/usbmounts/sdc2/download/log/"; } elseif (file_exists("/tmp/hdd/volumes/HDD1/download")) { $dir = "/tmp/hdd/volumes/HDD1/download/"; $dir_log = "/tmp/hdd/root/log/"; } else { $dir = ""; $dir_log = ""; } // end ?> <?php echo "<?xml version='1.0' ?>"; ?> <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"> <onEnter> storagePath = getStoragePath("tmp"); storagePath_stream = storagePath + "stream.dat"; storagePath_playlist = storagePath + "playlist.dat"; setRefreshTime(1); first_time=1; </onEnter> <onExit> setRefreshTime(-1); </onExit> <onRefresh> if(first_time == 1) { setRefreshTime(-1); itemCount = getPageInfo("itemCount"); first_time=0; } else if (do_down == 1) { topUrl = "http://127.0.0.1/cgi-bin/scripts/util/info_down.php?file=" + log_file + ",f"; info_serial = getUrl(topUrl); } </onRefresh> <mediaDisplay name="threePartsView" itemBackgroundColor="0:0:0" backgroundColor="0:0:0" sideLeftWidthPC="0" sideRightWidthPC="0" sideColorRight="0:0:0" itemImageXPC="5" itemXPC="20" itemYPC="20" itemWidthPC="70" capWidthPC="70" unFocusFontColor="101:101:101" focusFontColor="255:255:255" showHeader="no" showDefaultInfo="yes" bottomYPC="90" infoYPC="100" infoXPC="0" popupXPC = "40" popupYPC = "55" popupWidthPC = "22.3" popupHeightPC = "5.5" popupFontSize = "13" popupBorderColor="28:35:51" popupForegroundColor="255:255:255" popupBackgroundColor="28:35:51" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="18" fontSize="24" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text align="left" offsetXPC="6" offsetYPC="15" widthPC="100" heightPC="4" fontSize="16" backgroundColor="10:105:150" foregroundColor="100:200:255"> Apăsaţi 1 pentru Download Manager, 2 pentru download, 3 pentru vizionare download, 4 verificare link </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(info_serial); info_serial;</script> </text> <onUserInput> userInput = currentUserInput(); ret = "false"; if(userInput == "two" || userInput == "2") { tip=getItemInfo(getFocusItemIndex(),"tip"); showIdle(); if (tip == "1") { url = getItemInfo(getFocusItemIndex(),"download"); movie=getUrl(url); info_serial="link:" + movie; topUrl = "http://127.0.0.1/cgi-bin/scripts/util/download.cgi?link=" + movie + ";name=" + getItemInfo(getFocusItemIndex(),"name"); } else if (tip == "2") { topUrl = "http://127.0.0.1/cgi-bin/scripts/util/download.cgi?link=" + getItemInfo(getFocusItemIndex(),"download") + ";name=" + getItemInfo(getFocusItemIndex(),"name"); } dummy = getUrl(topUrl); cancelIdle(); do_down=1; file_name= getItemInfo(getFocusItemIndex(),"title"); log_file="<?php echo $dir_log; ?>" + getItemInfo(getFocusItemIndex(),"name") + ".log"; setRefreshTime(10000); ret="true"; } else if (userInput == "three" || userInput == "3") { url="<?php echo $dir; ?>" + getItemInfo(getFocusItemIndex(),"name"); playItemurl(url,10); ret="true"; } else if(userInput == "four" || userInput == "4") { showIdle(); url = getItemInfo(getFocusItemIndex(),"download"); info_serial="link:" + url; redrawdisplay(); tip=getItemInfo(getFocusItemIndex(),"tip"); if (tip == "1") { movie=getUrl(url); info_serial="movie:" + movie; } cancelIdle(); redrawdisplay(); ret="true"; } else if (userInput == "one" || userInput == "1") { jumpToLink("destination"); ret="true"; } else { info_serial=" "; setRefreshTime(-1); do_down=0; ret="false"; } ret; </onUserInput> </mediaDisplay> <destination> <link>http://127.0.0.1/cgi-bin/scripts/util/level.php </link> </destination> <channel> <?php echo "<title>".$pg_title."</title>" ; function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } function cv($s) { $g=ord("g"); $c=ord($s); if ($c < 58) { $c=$s; } else { if ($c > 116) { $c=$c-$g + 16 + 6; } else { $c=$c-$g + 16; } } return $c; } function get_unpack($k,$char_rep,$pos_link,$h) { $g=ord("g"); $f=explode("return p}",$h); $e=explode("'.split",$f[$k]); $t=$e[0]; $a=explode(";",$t); //print_r($a); //for debug only $w=explode("|",$a[$char_rep]); //char list for replace $t1=explode("'",$a[$pos_link]); // where is final link $fl= $t1[3]; $fl=str_replace("10","u",$fl); $fl=str_replace("11","v",$fl); $fl=str_replace("12","w",$fl); $fl=str_replace("13","x",$fl); $fl=str_replace("14","y",$fl); $fl=str_replace("15","z",$fl); $r=""; for ($i=0;$i<strlen($fl)-1;$i++) { if (preg_match("/[A-Za-z0-9_]/",$fl[$i])) { $m=$w[cv($fl[$i])]; if ($m=="") $m=$fl[$i]; $r=$r.$m; } else { $r=$r.$fl[$i]; } } return $r; } function cv1($s) { $g=ord("g"); $c=ord($s); if ($c < 58) { $c=$s; } else { if ($c > 140) { //never $c=$c-$g + 16 + 6; } else { $c=$c-$g + 16; } } return $c; } function get_unpack1($k,$char_rep,$pos_link,$h) { $g=ord("g"); $f=explode("return p}",$h); $e=explode("'.split",$f[$k]); $t=$e[0]; $a=explode(";",$t); //print_r($a); //for debug only $w=explode("|",$a[$char_rep]); //char list for replace $t1=explode("'",$a[$pos_link]); // where is final link $fl= $t1[3]; $fl=str_replace("10","u",$fl); $fl=str_replace("11","v",$fl); $fl=str_replace("12","w",$fl); $fl=str_replace("13","x",$fl); $fl=str_replace("14","y",$fl); $fl=str_replace("15","z",$fl); $r=""; for ($i=0;$i<strlen($fl)-1;$i++) { if (preg_match("/[A-Za-z0-9_]/",$fl[$i])) { $m=$w[cv1($fl[$i])]; if ($m=="") $m=$fl[$i]; $r=$r.$m; } else { $r=$r.$fl[$i]; } } return $r; } /**####################################**/ /** Here we start.......**/ $last_link = ""; //if (strpos($filelink,"onlinemoca") === false) { if (strpos($filelink,"filmeonlinesubtitrate") !== false) { $post="pageviewnr=1"; $ch = curl_init($filelink); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 GTB5'); curl_setopt($ch,CURLOPT_REFERER,$filelink); //curl_setopt ($ch, CURLOPT_POST, 1); //curl_setopt ($ch, CURLOPT_POSTFIELDS, $post); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL curl_setopt($ch, CURLOPT_HEADER, true); $html = curl_exec($ch); curl_close ($ch); //$l = str_between($html,"Link: <",">;"); //echo $l; //Link: <http://www.filmeonlinesubtitrate.tv/?p=5382>; rel=shortlink //$AgetHeaders = @get_headers($filelink); //echo $AgetHeaders; } elseif (strpos($filelink,"990.ro") !== false) { $link1 = str_replace("download","",$filelink); $link1 = str_replace("seriale2","player-seriale",$link1); $ch = curl_init($link1); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 GTB5'); curl_setopt($ch,CURLOPT_REFERER,$filelink); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL $html = curl_exec($ch); curl_close ($ch); $filelink=$link1; } else { $html = file_get_contents($filelink); } $mysrt=str_between($html,"captions.file=","&"); /**################ All links ################**/ if(preg_match_all("/(http\b.*?)(\"|\')+/i",$html,$matches)) { $links=$matches[1]; } $s="/adf\.ly|vidxden\.c|divxden\.c|vidbux\.c|movreel\.c|videoweed\.(c|e)|novamov\.(c|e)|vk\.com"; $s=$s."|movshare\.net|youtube\.c|flvz\.com|rapidmov\.net|putlocker\.com|mixturevideo\.com|"; $s=$s."peteava\.ro\/embed|peteava\.ro\/id|content\.peteava\.ro|divxstage\.net|divxstage\.eu"; $s=$s."|vimeo\.com|googleplayer\.swf|filebox\.ro\/get_video|vkontakte\.ru|megavideo\.com|videobam\.com"; $s=$s."|fastupload\.ro|fastupload\.rol\.ro|video\.rol\.ro|zetshare\.net\/embed|ufliq\.com|stagero\.eu|ovfile\.com"; $s=$s."|trilulilu|proplayer\/playlist-controller.php|viki\.com/i"; for ($i=0;$i<count($links);$i++) { $cur_link=$links[$i]; if (preg_match($s,$cur_link)) { if ($cur_link <> $last_link) { if (!preg_match("/facebook|twitter|img\.youtube/",$cur_link)) { $t1=explode("proxy.link=",$cur_link); //filmeonline.org if ($t1[1] <> "") { $cur_link=$t1[1]; } $link="http://127.0.0.1/cgi-bin/scripts/filme/php/link.php?file=".urlencode($cur_link); if (strpos($cur_link,"adf.ly") !==false) { //onlinemoca $a1=explode($cur_link,$html); $a2=explode('alt="',$a1[1]); $a3=explode('"',$a2[1]); $server=$a3[0]; } else { $server = str_between($cur_link,"http://","/"); } $last_link=$cur_link; if (strpos($link,"megavideo") !==false) { $mega="yes"; //Set cookie } if (strpos($cur_link,"google") !==false) { $t1=explode("docid=",$cur_link); $t2=explode("&",$t1[1]); $docid=$t2[0]; $mysrt_google="http://video.google.com/videotranscript?frame=c&docid=".$docid."&hl=ro&type=track&name=ro&lang=ro"; } if (strpos($cur_link,"viki.com") !==false) { preg_match('/(viki\.com\/player\/medias\/)([\w\-]+)/', $cur_link, $match); $viki_id = $match[2]; } $title=$server. " - With seek - SDK4"; echo' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); movie="'.$link.'"; url=getUrl(movie); cancelIdle(); streamArray = null; streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, video/x-flv); streamArray = pushBackStringArray(streamArray, "'.$pg_title.'"); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file:///usr/local/etc/www/cgi-bin/scripts/util/videoRenderer.rss"); </script> </onClick> <download>'.$link.'</download> <tip>1</tip> <name>'.$titledownload.'.flv</name> </item> '; if (($mysrt <> "") || ($mysrt_google <> "") || ($viki_id <> "")){ $f = "/usr/local/bin/home_menu"; if (file_exists($f)) { echo' <item> <title>Play cu subtitrare</title> <onClick> <script> showIdle(); '; if ($mysrt_google <> "") { echo ' dummy=getURL("http://127.0.0.1/cgi-bin/scripts/util/google_xml.php?file='.urlencode($mysrt_google).'");'; } else if ($viki_id <> "") { echo ' dummy=getURL("http://127.0.0.1/cgi-bin/scripts/util/viki_xml.php?file='.$viki_id.'");'; } else { echo ' dummy=getURL("http://127.0.0.1/cgi-bin/scripts/util/srt_xml.php?file='.urlencode($mysrt).'");'; } echo ' movie="'.$link.'"; url=getUrl(movie); cancelIdle(); storagePath = getStoragePath("tmp"); storagePath_stream = storagePath + "stream.dat"; streamArray = null; streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, video/mp4); streamArray = pushBackStringArray(streamArray, "'.$pg_title.'"); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file:///usr/local/etc/www/cgi-bin/scripts/util/videoRenderer2.rss"); </script> </onClick> <download>'.$link.'</download> <tip>1</tip> <name>'.$titledownload.'.flv</name> </item> '; } else { echo' <item> <title>Play cu subtitrare</title> <onClick> <script> showIdle(); '; if ($mysrt_google <> "") { echo ' dummy=getURL("http://127.0.0.1/cgi-bin/scripts/util/google_xml.php?file='.urlencode($mysrt_google).'");'; } else if ($viki_id <> "") { echo ' dummy=getURL("http://127.0.0.1/cgi-bin/scripts/util/viki_xml.php?file='.$viki_id.'");'; } else { echo ' dummy=getURL("http://127.0.0.1/cgi-bin/scripts/util/srt_xml.php?file='.urlencode($mysrt).'");'; } echo ' movie="'.$link.'"; url=getUrl(movie); cancelIdle(); storagePath = getStoragePath("tmp"); storagePath_stream = storagePath + "stream.dat"; streamArray = null; streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, video/mp4); streamArray = pushBackStringArray(streamArray, "'.$pg_title.'"); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file:///usr/local/etc/www/cgi-bin/scripts/util/videoRenderer1.rss"); </script> </onClick> <download>'.$link.'</download> <tip>1</tip> <name>'.$titledownload.'.flv</name> </item> '; } } } } } } /**################ special links ##############**/ if (preg_match_all('/<(iframe\b|object\b)[^>]+src\s?=\s?([\'|\"])(.*?)(\"|\')+/is', $html, $matches)) { $links=$matches[3]; } $link=""; $srt=""; $tip=""; for ($i=0;$i<count($links);$i++) { $cur_link=$links[$i]; if (strpos($cur_link,"rofilm.info") !==false) { $baza = file_get_contents($cur_link); $t1=explode('value="file=',$baza); $t2=explode("&",$t1[1]); $link = $t2[0]; if ($link=="") { $t1=explode("value='file=",$baza); $t2=explode("&",$t1[1]); $link=$t2[0]; } if ($link == "") { $link1=str_between($baza,'proxy.link=','"'); $tip="1"; $link2="http://127.0.0.1/cgi-bin/scripts/filme/php/link.php?file=".urlencode($link1); $server = str_between($link1,"http://","/"); $title=$server. " - With seek - SDK4"; if ($link1 <> "") { echo' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); movie="'.$link2.'"; url=getUrl(movie); cancelIdle(); streamArray = null; streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, video/x-flv); streamArray = pushBackStringArray(streamArray, "'.$pg_title.'"); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file:///usr/local/etc/www/cgi-bin/scripts/util/videoRenderer.rss"); </script> </onClick> <download>'.$link2.'</download> <tip>1</tip> <name>'.$titledownload.'.flv</name> </item> '; } } $t1=explode('captions.file=',$baza); $t2=explode("&",$t1[1]); $srt=$t2[0]; $srt = str_replace(" ","%20",$srt); } elseif (strpos($cur_link,"serialetvonline.info") !==false) { if (strpos($cur_link,"gettvguide2.php") === false) { $baza = file_get_contents($cur_link); $link = str_between($baza,'"flashvars" value="file=','&'); $t1=explode('captions.file=',$baza); $t2=explode("&",$t1[1]); $srt=$t2[0]; $srt = str_replace(" ","%20",$srt); } } elseif (strpos($cur_link,"rosharing.info") !==false){ $baza = file_get_contents($cur_link); $srt=get_unpack1(2,13,10,$baza); $link=get_unpack1(2,13,4,$baza); $srt = str_replace(" ","%20",$srt); } elseif (strpos($cur_link,"1roshare.info") !==false){ $baza = file_get_contents($cur_link); $srt=get_unpack(2,13,10,$baza); //http://roshare.info/u2/roshare/8v7d8dey8zix.srt //http://s1.roshare.info/files/0/8fyh1ncsck0bw9/video.flv //http://s5.roshare.info:182/files/5/1qgs4bsp8xnti1/video.flv $link=get_unpack(2,13,4,$baza); $srt = str_replace(" ","%20",$srt); } elseif (strpos($cur_link,"rosharing.com") !==false) { $baza = file_get_contents($cur_link); $link = str_between($baza,'value="file=','&'); $t1=explode('captions.file=',$baza); $t2=explode("&",$t1[1]); $srt=$t2[0]; $srt = str_replace(" ","%20",$srt); } else { $link=""; $srt=""; } // if ($link <> $last_link) { if ($link <> "") { $server = str_between($link,"http://","/"); $title=$server. " - With seek - SDK4"; echo' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); url="'.$link.'"; cancelIdle(); streamArray = null; streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, video/x-flv); streamArray = pushBackStringArray(streamArray, "'.$pg_title.'"); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file:///usr/local/etc/www/cgi-bin/scripts/util/videoRenderer.rss"); </script> </onClick> <download>'.$link.'</download> <tip>2</tip> <name>'.$titledownload.'.flv</name> </item> '; } if (($srt <> "") && (strpos($srt,".srt") !==false)) { echo ' <item> <title>Subtitrare</title> <download>'.$srt.'</download> <tip>2</tip> <name>'.$titledownload.'.srt</name> </item> '; } $last_link = $link; // } } /**################ flash... mediafile,file.....############**/ $videos = explode('flash', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('ile=', $video); $t2 = explode('&', $t1[1]); $t3 = explode("'",$t2[0]); $link = urldecode($t3[0]); if (strpos($video,"proxy.link") !== false) { //www.seriale-filme.info ,filmeonline.org $link=str_between($video,'proxy.link=','"'); } if (($link <> "") && strcmp($link,$lastlink)) { if (strpos($link, 'http://') !== false){ $titledownload = $pg; $title=str_between($link,"http://","/"); $ext=".flv"; $lastlink = $link; if (!preg_match($s,$link)) { //exclud link-urile care trebuie "preparate", astea trebuie sa fie in prima analiza! // for sdk4.... with seek $title=$title. " - With seek - SDK4"; echo' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); url="'.$link.'"; cancelIdle(); streamArray = null; streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, video/x-flv); streamArray = pushBackStringArray(streamArray, "'.$pg_title.'"); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file:///usr/local/etc/www/cgi-bin/scripts/util/videoRenderer.rss"); </script> </onClick> <download>'.$link.'</download> <tip>2</tip> <name>'.$titledownload.'.'.$ext.'</name> </item> '; } $srt1 = str_between($video,'captions.file=','&'); $t1=explode('"',$srt1); $srt = $t1[0]; if (strpos($srt,"http") === false) { ////www.veziserialeonline.info,www.seriale-filme.info $s1=explode("/",$filelink); $s=$s1[2]; $srt="http://".$s.$srt; } $pct = substr($srt, -4, 1); if (($srt <> "") && ($pct == ".") && (strpos($srt,".srt") !==false) && (strpos($srt,"000.srt") === false) ) { echo ' <item> <title>Subtitrare</title> <download>'.$srt.'</download> <tip>2</tip> <name>'.$titledownload.'.srt</name> </item> '; } } } } //foreach if ($mega=="yes") { echo ' <item> <title>Set megavideo premium account</title> <link>/usr/local/etc/www/cgi-bin/scripts/filme/php/megavideo.rss</link> <mediaDisplay name="onePartView" /> </item> '; } ?> </channel> </rss>
1073s
trunk/filme/php/filme_link.php
PHP
gpl3
23,470
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $host = "http://127.0.0.1/cgi-bin"; $query = $_GET["file"]; if($query) { $queryArr = explode(',', $query); $filelink = $queryArr[0]; $pg_tit = urldecode($queryArr[1]); $pg = preg_replace('/[^A-Za-z0-9_]/','_',$pg_tit); } //play movie if (file_exists("/tmp/usbmounts/sda1/download")) { $dir = "/tmp/usbmounts/sda1/download/"; $dir_log = "/tmp/usbmounts/sda1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdb1/download")) { $dir = "/tmp/usbmounts/sdb1/download/"; $dir_log = "/tmp/usbmounts/sdb1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdc1/download")) { $dir = "/tmp/usbmounts/sdc1/download/"; $dir_log = "/tmp/usbmounts/sdc1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sda2/download")) { $dir = "/tmp/usbmounts/sda2/download/"; $dir_log = "/tmp/usbmounts/sda2/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdb2/download")) { $dir = "/tmp/usbmounts/sdb2/download/"; $dir_log = "/tmp/usbmounts/sdb2/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdc2/download")) { $dir = "/tmp/usbmounts/sdc2/download/"; $dir = "/tmp/usbmounts/sdc2/download/log/"; } elseif (file_exists("/tmp/hdd/volumes/HDD1/download")) { $dir = "/tmp/hdd/volumes/HDD1/download/"; $dir_log = "/tmp/hdd/root/log/"; } else { $dir = ""; $dir_log = ""; } // end ?> <rss version="2.0"> <onEnter> setRefreshTime(1); first_time=1; ntest = 0; ref = 1; </onEnter> <onExit> setRefreshTime(-1); </onExit> <onRefresh> if(first_time == 1) { setRefreshTime(-1); itemCount = getPageInfo("itemCount"); first_time=0; } else if (do_down == 1) { ntest = ntest + 1; if (ntest &gt; 95 &amp;&amp; ntest &lt; 100 &amp;&amp; ref == 1) { showIdle(); info_serial = "wait..."; ref = 0; postMessage("edit"); cancelIdle(); } else if (ntest &gt; 100) { topUrl = "http://127.0.0.1/cgi-bin/scripts/util/info_down.php?file=" + log_file + ",f"; info_serial = getUrl(topUrl); ntest = 0; ref = 1; } } else if (info_serial == "Ready") { do_down = 0; setRefreshTime(-1); } </onRefresh> <mediaDisplay name="threePartsView" itemBackgroundColor="0:0:0" backgroundColor="0:0:0" sideLeftWidthPC="0" sideRightWidthPC="0" sideColorRight="0:0:0" itemImageXPC="5" itemXPC="20" itemYPC="20" itemWidthPC="70" capWidthPC="70" unFocusFontColor="101:101:101" focusFontColor="255:255:255" showHeader="no" showDefaultInfo="yes" bottomYPC="90" infoYPC="100" infoXPC="0" popupXPC = "40" popupYPC = "55" popupWidthPC = "22.3" popupHeightPC = "5.5" popupFontSize = "13" popupBorderColor="28:35:51" popupForegroundColor="255:255:255" popupBackgroundColor="28:35:51" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" fontSize="16" foregroundColor="200:200:200" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { info_serial = getItemInfo(idx, "info_serial"); } getItemInfo(idx, "title"); </script> </text> </itemDisplay> <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="18" fontSize="24" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text align="left" offsetXPC="6" offsetYPC="15" widthPC="100" heightPC="4" fontSize="16" backgroundColor="10:105:150" foregroundColor="100:200:255"> Apăsaţi 1 pentru Download Manager, 2 pentru download </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(info_serial); info_serial;</script> </text> <onUserInput> userInput = currentUserInput(); ret = "false"; if (userInput == "display" || userInput == "DISPLAY") { log_file="<?php echo $dir_log; ?>" + getItemInfo(getFocusItemIndex(),"name") + ".mp4.log"; topUrl = "http://127.0.0.1/cgi-bin/scripts/util/info_down.php?file=" + log_file + ",f"; info_serial = getUrl(topUrl); redrawDisplay("yes"); setRefreshTime(100); ret = "false"; } else if( userInput == "one" || userInput == "1") { jumpToLink("destination"); ret="true"; } else if(userInput == "two" || userInput == "2") { showIdle(); setRefreshTime(100); do_down=1; file_name= "<?php echo $dir; ?>" + getItemInfo(getFocusItemIndex(),"name") + ".srt"; log_file="<?php echo $dir_log; ?>" + getItemInfo(getFocusItemIndex(),"name") + ".srt.log"; topUrl = "http://127.0.0.1/cgi-bin/scripts/util/download.cgi?link=" + getItemInfo(getFocusItemIndex(),"subtitrare") + ";name=" + getItemInfo(getFocusItemIndex(),"name") + ".srt"; dummy = getUrl(topUrl); log_file="<?php echo $dir_log; ?>" + getItemInfo(getFocusItemIndex(),"name") + ".mp4.log"; topUrl = "http://127.0.0.1/cgi-bin/scripts/util/download.cgi?link=" + getItemInfo(getFocusItemIndex(),"download") + ";name=" + getItemInfo(getFocusItemIndex(),"name") + ".mp4"; dummy = getUrl(topUrl); cancelIdle(); ret="true"; } else if (userInput == "right" || userInput == "left" || userInput == "R" || userInput == "L" || userInput == "enter" || userInput == "ENTR") { setRefreshTime(-1); do_down=0; ret="false"; } ret; </onUserInput> </mediaDisplay> <destination> <link>http://127.0.0.1/cgi-bin/scripts/util/level.php </link> </destination> <channel> <title><?echo $pg_tit; ?></title> <menu>main menu</menu> <?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $filelink); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 GTB5'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_COOKIEFILE, "/tmp/cookie.txt"); $html = curl_exec($ch); curl_close($ch); /* $videos = explode('flash', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('ile=', $video); $t2 = explode('&', $t1[1]); $t3 = explode("'",$t2[0]); $link = urldecode($t3[0]); if (strpos($link,"wp-content") !==false) { $t2=explode("&",$t1[2]); $t3=explode("'",$t2[0]); $link = urldecode($t3[0]); } */ $link = str_between($html,"&file=","&"); $link = str_replace("s2.serialepe.net","s3.serialepe.net",$link); $srt = str_between($html,'captions.file=','&'); //$t1=explode('"',$srt1); //$srt = $t1[0]; $srt = str_replace("s2.serialepe.net","s3.serialepe.net",$srt); if ($link <> "") { $server = str_between($link,"http://","/"); $title = $server." - ".substr(strrchr($link,"/"),1); $titledownload = $pg; $ext="flv"; // for sdk4.... with seek $title="Play with seek - SDK4"; echo' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); url="'.$link.'"; cancelIdle(); storagePath = getStoragePath("tmp"); storagePath_stream = storagePath + "stream.dat"; streamArray = null; streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, video/mp4); streamArray = pushBackStringArray(streamArray, "'.$pg_tit.'"); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file:///usr/local/etc/www/cgi-bin/scripts/util/videoRenderer.rss"); </script> </onClick> <download>'.$link.'</download> <name>'.$titledownload.'</name> <subtitrare>'.$srt.'</subtitrare> <info_serial>'.$info.'</info_serial> </item> '; // cu subtitrare $title="Play cu subtitrare"; $f = "/usr/local/bin/home_menu"; if (file_exists($f)) { echo' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); dummy=getURL("http://127.0.0.1/cgi-bin/scripts/util/srt_xml.php?file='.urlencode($srt).'"); url="'.$link.'"; cancelIdle(); storagePath = getStoragePath("tmp"); storagePath_stream = storagePath + "stream.dat"; streamArray = null; streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, video/mp4); streamArray = pushBackStringArray(streamArray, "'.$pg_tit.'"); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file:///usr/local/etc/www/cgi-bin/scripts/util/videoRenderer2.rss"); </script> </onClick> <download>'.$link.'</download> <name>'.$titledownload.'</name> <subtitrare>'.$srt.'</subtitrare> <info_serial>'.$info.'</info_serial> </item> '; } else { echo' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); dummy=getURL("http://127.0.0.1/cgi-bin/scripts/util/srt_xml.php?file='.urlencode($srt).'"); url="'.$link.'"; cancelIdle(); storagePath = getStoragePath("tmp"); storagePath_stream = storagePath + "stream.dat"; streamArray = null; streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, url); streamArray = pushBackStringArray(streamArray, video/mp4); streamArray = pushBackStringArray(streamArray, "'.$pg_tit.'"); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file:///usr/local/etc/www/cgi-bin/scripts/util/videoRenderer1.rss"); </script> </onClick> <download>'.$link.'</download> <name>'.$titledownload.'</name> <subtitrare>'.$srt.'</subtitrare> <info_serial>'.$info.'</info_serial> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/serialepe_link.php
PHP
gpl3
10,960
#!/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>filmehd.net - categorii</title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $host = "http://127.0.0.1/cgi-bin"; $link = "http://filmehd.net"; echo ' <item> <title>Filme noi</title> <link>'.$host.'/scripts/filme/php/filmehd.php?query=,'.$link.'</link> <annotation>Filme noi</annotation> <mediaDisplay name="threePartsView"/> </item> '; $html = file_get_contents("http://filmehd.net"); $html=str_between($html,'menu-seria-categorys-container','</div>'); //echo $html; $videos = explode('menu-item menu-item-type-taxonomy', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $video=urlencode($video); $t1 = explode('href%3D%22', $video); $t2 = explode('%22', $t1[1]); $link = urldecode($t2[0]); $link = str_replace(' ','%20',$link); $link = str_replace('[','%5B',$link); $link = str_replace(']','%5D',$link); $t3 = explode('%3E', $t1[1]); $t4 = explode('%3C', $t3[1]); $title = urldecode($t4[0]); echo ' <item> <title>'.$title.'</title> <link>'.$host.'/scripts/filme/php/filmehd.php?query=,'.$link.'</link> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } ?> </channel> </rss>
1073s
trunk/filme/php/filmehd_main.php
PHP
gpl3
5,654
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="30" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="30" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="center" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=25 widthPC=30 heightPC=25> <script>print(image); image;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { image = getItemInfo(idx, "image"); annotation = getItemInfo(idx, "annotation"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>seenow</title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } //necesita inregistrare pe site //seenow.txt are o singura linie de forma //username|pass $filename = "/usr/local/etc/dvdplayer/seenow.txt"; $cookie="D://seenow.txt"; $cookie="/tmp/seenow.txt"; if (file_exists($filename)) { $handle = fopen($filename, "r"); $c = fread($handle, filesize($filename)); fclose($handle); $a=explode("|",$c); $a1=str_replace("?","@",$a[0]); $user=urlencode($a1); $pass=trim($a[1]); if (!file_exists($cookie)) { $l="http://www.seenow.ro/login"; $post="email=".$user."&password=".$pass."&submitlogin=Login&remember_me=0"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $l); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 GTB5'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt ($ch, CURLOPT_POST, 1); curl_setopt ($ch, CURLOPT_POSTFIELDS, $post); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie); $html = curl_exec($ch); curl_close($ch); $t1=explode('<div class="floatL user">',$html); $t2=explode('class="floatL',$t1[1]); $t3=explode('>',$t2[1]); $t4=explode('<',$t3[1]); $this_user=trim($t4[0]); $t5=explode('>',$t2[2]); $t6=explode('<',$t5[1]); $credit=trim($t6[0]); } else { $link="http://www.seenow.ro/"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $link); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 GTB5'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie); $html = curl_exec($ch); curl_close($ch); $t1=explode('<div class="floatL user">',$html); $t2=explode('class="floatL',$t1[1]); $t3=explode('>',$t2[1]); $t4=explode('<',$t3[1]); $this_user=trim($t4[0]); $t5=explode('>',$t2[2]); $t6=explode('<',$t5[1]); $credit=trim($t6[0]); } } else { $link="http://www.seenow.ro/"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $link); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 GTB5'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie); $html = curl_exec($ch); curl_close($ch); $t1=explode('<div class="floatL user">',$html); $t2=explode('class="floatL',$t1[1]); $t3=explode('>',$t2[1]); $t4=explode('<',$t3[1]); $this_user=trim($t4[0]); $t5=explode('>',$t2[2]); $t6=explode('<',$t5[1]); $credit=trim($t6[0]); } $t1=explode("var items =",$html); $t2=explode("</div>",$t1[1]); $html=$t2[0]; //echo $html; $videos = explode('a class="floatL', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1=explode('href="',$video); $t2=explode('"',$t1[1]); $t3="http://www.seenow.ro".$t2[0]; //http://localhost/documentare-pagina-1 $t4=explode("pagina",$t3); $link=$t4[0]."pagina-"; $t1=explode('src="',$video); $t2=explode('"',$t1[1]); $image=$t2[0]; $t1=explode('span class="',$video); $t2=explode('>',$t1[1]); $t3=explode('<',$t2[1]); $title=$t3[0]; $link = 'http://127.0.0.1/cgi-bin/scripts/filme/php/seenow.php?file=1,'.$link.','.urlencode($title); if (strpos($title,"Canale") === false) { echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$title.'</annotation> <image>'.$image.'</image> <annotation>'.$title.'</annotation> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } if ($this_user=="Guest") { $link = "/usr/local/etc/www/cgi-bin/scripts/filme/php/seenow.rss"; $description="Pentru a accesa acest site trebuie să aveţi un cont pe seenow.ro. Completaţi userul şi parola în acest formular şi apoi apăsaţi Return, Return după care accesaţi din nou această pagină. Folositi ? pentru @ in caz ca nu aveti aceasta tasta."; echo ' <item> <title>Logare</title> <link>'.$link.'</link> <annotation>'.$description.'</annotation> <mediaDisplay name="onePartView" /> </item> '; } else { echo ' <item> <title>'.$this_user.'</title> <annotation>'.$credit.'</annotation> </item> '; } ?> </channel> </rss>
1073s
trunk/filme/php/seenow_main.php
PHP
gpl3
8,922
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $host = "http://127.0.0.1/cgi-bin"; $query = $_GET["file"]; if($query) { $queryArr = explode(',', $query); $link = $queryArr[0]; $pg_tit = urldecode($queryArr[1]); } $html = file_get_contents($link); ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="30" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="30" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <!--<image offsetXPC=5 offsetYPC=2 widthPC=20 heightPC=16> <script>channelImage;</script> </image>--> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="center" redraw="yes" lines="10" fontSize=17 offsetXPC=40 offsetYPC=55 widthPC=55 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=53 offsetYPC=22.5 widthPC=30 heightPC=30> <script>print(img); img;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <script> channelImage = "/usr/local/etc/www/cgi-bin/scripts/filme/image/series.png"; </script> <channel> <title><?echo $pg_tit; ?></title> <menu>main menu</menu> <?php $videos = explode("<div class='bloc_episoade'>", $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1=explode('href="',$video); $t2=explode('"',$t1[1]); $link="http://serialepenet.ro".$t2[0]; $t3=explode("class='serial_title'>",$video); $t4=explode("<",$t3[1]); $title=$t4[0]; $t1=explode('src="',$video); $t2=explode('"',$t1[1]); $image=$t2[0]; $s=$pg_tit."-".$title; $link = $host."/scripts/filme/php/serialepenet_l.php?file=".$link.",".urlencode($s); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$s.'</annotation> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } ?> </channel> </rss>
1073s
trunk/filme/php/serialepenet_s.php
PHP
gpl3
5,792
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="center" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=65 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=35> <script>print(img); img;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { 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>moviesample.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); } //http://www.moviesample.net/category/filme-romanesti-online //http://www.moviesample.net/category/filme-romanesti-online/page/1 //http://www.filmenet.ro/category/filme-romanesti-online //http://www.filmenet.ro/category/filme-romanesti-online/page/2 //http://www.moviesample.net/category/filme-online/page/2 //http://www.filmenet.ro/page/2 $host = "http://127.0.0.1/cgi-bin"; $page = $_GET["query"]; if(!$page) { $page=1; } $html = file_get_contents("http://www.moviesample.net/category/filme-online/page/".$page); if($page > 1) { ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page-1); ?> <title>Previous Page</title> <link><?php echo $url;?></link> <annotation>Pagina anterioară</annotation> <image>image/left.jpg</image> <mediaDisplay name="threePartsView"/> </item> <?php } ?> <?php $videos = explode('id="post-', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $t3=explode("url=",$t2[0]); $link = $t2[0]; $t1 = explode('src=', $video); $t2 = explode('&', $t1[2]); $image = "http://www.moviesample.net".$t2[0]; /* $t1 = explode('li class="date">',$video); $t2 = explode('<',$t1[1]); $data = $t2[0]; */ //$data=""; $data = trim(str_between($video,"<p>","</p>")); $data = preg_replace("/(<\/?)(\w+)([^>]*>)/e","",$data); $t1 = explode('title="', $video); $t2 = explode('"', $t1[1]); $title = $t2[0]; $title=trim(preg_replace("/Online.*/i","",$title)); if ($title <> "") { $link = $host.'/scripts/filme/php/filme_link.php?'.$link.','.urlencode($title); $name = preg_replace('/[^A-Za-z0-9_]/','_',$title).".flv"; echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$data.'</annotation> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page+1); ?> <title>Next Page</title> <link><?php echo $url;?></link> <annotation>Pagina următoare</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/filme/php/moviesample.php
PHP
gpl3
6,874
#!/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>onlythefilm.com</title> <menu>main menu</menu> <?php $host = "http://127.0.0.1/cgi-bin"; $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $page = $queryArr[0]; $search = $queryArr[1]; } //http://www.onlythefilm.com/page/2/ if($page) { $html = file_get_contents("http://www.onlythefilm.com/page/".$page."/"); } else { $page = 1; $html = file_get_contents("http://www.onlythefilm.com/"); } 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('id="post-', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('class="',$video); $t2 = explode('"',$t1[1]); $on = $t2[0]; if (strpos($on, 'online') !== false) { // link $v1 = explode('href="', $video); $v2 = explode('"', $v1[1]); $link = $v2[0]; $v3 = explode('>',$v1[1]); $v4 = explode('<',$v3[1]); $titlu = trim($v4[0]); // imagine $v1 = explode('src="', $video); $v2 = explode('"', $v1[1]); $image = $v2[0]; // descriere $descriere = str_between($video,'<p style="text-align: center;">','</p>'); $descriere = str_replace('<!-- more -->','',$descriere); $descriere = preg_replace("/(<\/?)(\w+)([^>]*>)/e","",$descriere); if($link!="") { $link = "http://127.0.0.1/cgi-bin/scripts/filme/php/filme_link.php?".$link.",".urlencode($titlu); echo' <item> <title>'.$titlu.'</title> <link>'.$link.'</link> <annotation>'.$descriere.'</annotation> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } } ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page+1).","; 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/onlythefilm.php
PHP
gpl3
6,968
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="50" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="50" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=35 widthPC=30 heightPC=30> image/movies.png </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>filmede10.net</title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $html = file_get_contents("http://www.filmede10.net/"); $videos = explode('<span class="catNumData" style="unicode-bidi: embed;">', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $link = "http://www.filmede10.net".$t2[0]; $t3 = explode('">', $t1[1]); $t4 = explode('<', $t3[1]); $title = $t4[0]; if (strpos($link,"pagina_in_lucru") === false) { $link1 = $host."/scripts/filme/php/filmede10_net.php?query=1,".$link; echo ' <item> <title>'.$title.'</title> <link>'.$link1.'</link> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/filmede10_net_main.php
PHP
gpl3
5,273
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $page = $queryArr[0]; $search = $queryArr[1]; $tit=urldecode($queryArr[2]); } ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="35" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="35" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="center" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=22.5 widthPC=30 heightPC=25> <script>print(img); img;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "14"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title><?php echo $tit; ?></title> <menu>main menu</menu> <?php if($page) { $link=$search.$page; } else { $page = 1; $link = $search; } if($page > 1) { ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page-1); if($search) { $url = $url.$search.",".urlencode($tit); } ?> <title>Pagina anterioară</title> <link><?php echo $url;?></link> <annotation>Pagina anterioară</annotation> <image>image/left.jpg</image> <mediaDisplay name="threePartsView"/> </item> <?php } ?> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $host = "http://127.0.0.1/cgi-bin"; $cookie="D://vplay_c.txt"; $cookie="/tmp/vplay_c.txt"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $link); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 GTB5'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie); $html = curl_exec($ch); curl_close($ch); $html = str_between($html,"<h2>Colec","</ul>"); $videos = explode('<li>', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="', $video); $t2 = explode('"', $t1[1]); $link = "http://vplay.ro".$t2[0]; $image=str_between($video,"image:url(",")"); $t3 = explode('title="', $t1[1]); $t4 = explode('"', $t3[1]); $title = trim($t4[0]); $description = str_between($video,'<span class="s_e">','</span>'); if ($link <> "") { $link = $host."/scripts/filme/php/vplay_sez.php?file=".urlencode($link).",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$description.'</annotation> <image>'.$image.'</image> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page+1).","; if($search) { $url = $url.$search.",".urlencode($tit); } ?> <title>Pagina următoare</title> <link><?php echo $url;?></link> <annotation>Pagina următoare</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/filme/php/vplay_main.php
PHP
gpl3
6,863
#!/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>cinemaxx.ro</title> <menu>main menu</menu> <?php $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $page = $queryArr[0]; $search = $queryArr[1]; } //http://www.cinemaxx.ro/browse-filme-actiune-online-videos-2-date.html if($page) { if($search) { $html = file_get_contents($search."-".$page."-date.html"); } else { $html = file_get_contents($search.$page."-date.html"); } } else { $page = 1; if($search) { $html = file_get_contents($search."-".$page."-date.html"); } else { $html = file_get_contents($search.$page."-date.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('<li class="video">', $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('alt="', $video); $t2 = explode('"', $t1[1]); $title = $t2[0]; $link = 'http://127.0.0.1/cgi-bin/scripts/filme/php/filme_link.php?'.$link.','.urlencode($title); echo ' <item> <title>'.$title.'</title> <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/cinemaxx.php
PHP
gpl3
6,626
#!/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>documentare.digitalarena.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://documentare.digitalarena.ro/"); $image = "image/movies.png"; echo ' <item> <title>Documentare noi</title> <link>'.$host.'/scripts/filme/php/digitalarena.php?query=,http://documentare.digitalarena.ro/</link> <annotation>Documentare noi</annotation> <mediaDisplay name="threePartsView"/> </item> '; $html=str_between($html,'<ul class="sub-menu">','</ul>'); $videos = explode('li id="menu-item-', $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 = $host."/scripts/filme/php/digitalarena.php?query=,".$link; echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/digitalarena_main.php
PHP
gpl3
5,564
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="50" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="50" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=35 widthPC=30 heightPC=30> image/movies.png </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>tinymkv.com</title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $host = "http://127.0.0.1/cgi-bin"; $link = "http://www.tinymkv.com/"; $html = file_get_contents($link); $videos = explode("a class='post-count-link'", $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode("href='", $video); $t2 = explode("'", $t1[1]); $link = $t2[0]; $link = str_replace(' ','%20',$link); $link = str_replace('[','%5B',$link); $link = str_replace(']','%5D',$link); $t3 = explode('>', $t1[1]); $t4 = explode('<', $t3[1]); $title = $t4[0]; if (strpos($link,".html") !== false) { $title=$an.' - '.$title; echo ' <item> <title>'.$title.'</title> <link>'.$host.'/scripts/filme/php/tinymkv.php?query='.$link.','.urlencode($title).'</link> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } else { $an=$title; echo ' <item> <title>====== '.$title.' ======</title> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/tinymkv_main.php
PHP
gpl3
5,539
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $cat = $queryArr[0]; $tit = urldecode($queryArr[1]); } $link = $cat; $html = file_get_contents($link); ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="50" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="50" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <!--<image offsetXPC=5 offsetYPC=2 widthPC=20 heightPC=16> <script>channelImage;</script> </image>--> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=35 widthPC=30 heightPC=30> <script>channelImage;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "title"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <script> <?php //$t1 = explode('<div id="descriere_serial">',$html); $t1=explode('href="#seasons"',$html); $t2 = explode('src="',$t1[1]); $t3 = explode('"',$t2[1]); $img1=str_replace(" ","%20",$t3[0]); echo 'channelImage = "'.$img1.'"'; ?> </script> <channel> <title><?php echo $tit; ?></title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } //http://www.serialeonline.tv/category/californication/ //hhttp://www.serialeonline.tv/category/californication/sezonul-1-californication/ $html1 = str_between($html,'<div style="background-color: #1c1f29; font-size: 16px; text-align: center;">','</div>'); if ($html1 == "") { $html1 = str_between($html,'<div id="seasons">','</div>'); } $videos = explode('href="', $html1); unset($videos[0]); $videos = array_values($videos); $n=0; foreach($videos as $video) { $t1 = explode('"', $video); //$t2 = explode('"', $t1[1]); //echo $t1[0]; $link = $host."/scripts/filme/php/serialeonline.php?query=1,".$t1[0].",".urlencode($tit); $t3 = explode(">",$video); $t4 = explode("<",$t3[1]); $title = trim($t4[0]); if ($title <> "") { echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> </item> '; $n++; } } if ($n == 0) { $link = $host."/scripts/filme/php/serialeonline.php?query=1,".$cat.",".urlencode($tit); $title = "Incomplet"; echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> </item> '; } ?> </channel> </rss>
1073s
trunk/filme/php/serialeonline_sez.php
PHP
gpl3
6,215
#!/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 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"); 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>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($search."?max-results=100"); $image = "image/movies.png"; $videos = explode("<h3 class='post-title entry-title'>", $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode("href='", $video); $t2 = explode("'", $t1[1]); $link = $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/filmele-copilariei.php
PHP
gpl3
5,709
#!/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>desene.veziserialeonline.info</title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $host = "http://127.0.0.1/cgi-bin"; $html = file_get_contents("http://desene.veziserialeonline.info/tv-shows"); $videos = explode('<li class="post-', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1=explode('href="',$video); $t2=explode('"',$t1[1]); $link=$t2[0]; $t1 = explode('src="', $video); $t2 = explode('"', $t1[1]); $image = $t2[0]; $t1 = explode('title="', $video); $t2 = explode('"', $t1[1]); $title = trim($t2[0]); $data = trim(str_between($video,'<div class="entry-summary" style="height:150px;">','</div>')); $data = preg_replace("/(<\/?)([^>]*>)/e","",$data); $data = str_replace("&nbsp;","",$data); if ($link <> "") { $link = $host.'/scripts/filme/php/desene_veziserialeonline.php?file='.$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <image>'.$image.'</image> <annotation>'.$data.'</annotation> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/desene_veziserialeonline_main.php
PHP
gpl3
5,652
#!/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.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_cat1.php
PHP
gpl3
6,547
#!/usr/local/bin/Resource/www/cgi-bin/php <?php error_reporting(0); $filelink = $_GET["file"]; $filelink=urldecode($filelink); if (strpos($filelink,"adf.ly") !==false) { $h1=file_get_contents($filelink); $filelink=str_between($h1,"var url = '","'"); } function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } function str_prep($string){ $string = str_replace(' ','%20',$string); $string = str_replace('[','%5B',$string); $string = str_replace(']','%5D',$string); $string = str_replace('%3A',':',$string); $string = str_replace('%2F','/',$string); $string = str_replace('#038;','',$string); $string = str_replace('&amp;','&',$string); return $string; } //peteava function r() { $i=mt_rand(4096,0xffff); $j=mt_rand(4096,0xffff); return dechex($i).dechex($j); } function zeroFill($a,$b) { if ($a >= 0) { return bindec(decbin($a>>$b)); //simply right shift for positive number } $bin = decbin($a>>$b); $bin = substr($bin, $b); // zero fill on the left side $o = bindec($bin); return $o; } function crunch($arg1,$arg2) { $local4 = strlen($arg2); while ($local5 < $local4) { $local3 = ord(substr($arg2,$local5)); $arg1=$arg1^$local3; $local3=$local3%32; $arg1 = ((($arg1 << $local3) & 0xFFFFFFFF) | zeroFill($arg1,(32 - $local3))); $local5++; } return $arg1; } function peteava($movie) { $seedfile=file_get_contents("http://content.peteava.ro/seed/seed.txt"); $t1=explode("=",$seedfile); $seed=$t1[1]; if ($seed == "") { return ""; } $r=r(); $s = hexdec($seed); $local3 = crunch($s,$movie); $local3 = crunch($local3,"0"); $local3 = crunch($local3,$r); return strtolower(dechex($local3)).$r; } /** end peteava **/ function cv($s) { $g=ord("g"); $c=ord($s); if ($c < 58) { $c=$s; } else { $c=$c-$g + 16; } return $c; } function get_unpack($k,$char_rep,$pos_link,$h) { $g=ord("g"); $f=explode("return p}",$h); $e=explode("'.split",$f[$k]); $t=$e[0]; $a=explode(";",$t); //print_r($a); //for debug only $w=explode("|",$a[$char_rep]); //char list for replace //print_r($w); $t1=explode("'",$a[$pos_link]); // where is final link $fl= $t1[3]; $s1=explode("/",$fl); $r=""; for ($i=0;$i<strlen($fl)-1;$i++) { if (preg_match("/[A-Za-z0-9_]/",$fl[$i])) { $m=$w[cv($fl[$i])]; if ($m=="") $m=$fl[$i]; $r=$r.$m; } else { $r=$r.$fl[$i]; } } return $r; } function cv4($s) { $g=ord("g"); $c=ord($s); if ($c < 58) { //91 $c=$s; } elseif (($c>57) && ($c<123)) { //2gb $c=$c-$g + 16; } elseif ($c> 122) { $c=$c - 123 + 36; } return $c; } function get_unpack4($k,$char_rep,$pos_link,$h) { $g=ord("g"); $f=explode("return p}",$h); $e=explode("'.split",$f[$k]); $t=$e[0]; $a=explode(";",$t); //print_r($a); //for debug only $w=explode("|",$a[$char_rep]); //char list for replace //print_r ($w); $t1=explode("'",$a[$pos_link]); // where is final link $fl= $t1[3]; $fl=str_replace("10",chr(123),$fl); $fl=str_replace("11",chr(124),$fl); $fl=str_replace("12",chr(125),$fl); $fl=str_replace("13",chr(126),$fl); $fl=str_replace("14",chr(127),$fl); $fl=str_replace("15",chr(128),$fl); $r=""; for ($i=0;$i<strlen($fl)-1;$i++) { $m=$w[cv4($fl[$i])]; if ($m=="") $m=$fl[$i]; $r=$r.$m; } return $r; } function rapidmov($string) { //http://www1-45-37.rapidmov.net/cgi-bin/dl.cgi/xqawnjsw4l2yogppfwyu7nysssq6s62b7ee3v6crve/video.flv $h = file_get_contents($string); $g=ord("g"); $f=explode("return p}",$h); $e=explode("'.split",$f[1]); $t=$e[0]; $a=explode(";",$t); $w=explode("|",$a[9]); $t1=explode("'",$a[4]); $fl= $t1[3]; $s1=explode("/",$fl); $r=""; for ($i=0;$i<strlen($fl)-1;$i++) { if (preg_match("/[A-Za-z0-9_]/",$fl[$i])) { $r=$r.$w[cv($fl[$i])]; } else { $r=$r.$fl[$i]; } } return $r; } //if (!preg_match_all('/\{"d":(false|true),"l":"([^"]+)","u":"([^"]+)"/i', $page, $st)) function videobb($l) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $l); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 GTB5'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookies.txt'); curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt'); $page = curl_exec($ch); curl_close($ch); //preg_match_all('/\{"d":(false|true),"l":"([^"]+)","u":"([^"]+)"\}/i', $page, $st); preg_match_all('/\{"d":(false|true),"l":"([^"]+)","u":"([^"]+)"/i', $page, $st); $stream = array(); for ($i = 0; $i < count($st[0]); $i++) { $stream[$st[2][$i]] = array(($st[1][$i] == "true" ? true : false), base64_decode($st[3][$i])); } if (count($stream) > 1) { foreach ($stream as $st => $da) { if ($da[0] == true) { $fl=$da[1]; } else { $fl=$da[1]; // ????? } } } else { $qs = array_rand($stream); $fl = $stream[$qs][1]; } return $fl; } function vk($string) { if (strpos($string,"video_ext.php") === false) { $h = file_get_contents($string); $t1=explode("nvar vars",$h); $l=$t1[1]; $uid=str_between($l,'\"uid\":\"','\"'); $host=str_between($l,'"host\":\"','\"'); $host=str_replace("\\/","/",$host); $host=str_replace("\\/","/",$host); $host=str_replace("\/","/",$host); $vtag=str_between($l,'"vtag\":\"','\"'); $r=$host."u".$uid."/video/".$vtag.".360.mp4"; } else { $baza = file_get_contents($string); $host = str_between($baza,"var video_host = '","'"); $uid = str_between($baza,"var video_uid = '","'"); $vtag = str_between($baza,"var video_vtag = '","'"); $hd = str_between($baza,"var video_max_hd = '","'"); $r = $host."u".$uid."/video/".$vtag.".360.mp4"; if ($hd == "0") { $r = $host."u".$uid."/video/".$vtag.".240.mp4"; } } return $r; } function youtube($file) { if(preg_match('/youtube\.com\/(v\/|watch\?v=|embed\/)([\w\-]+)/', $file, $match)) {; $l ="http://www.youtube.com/watch?v=".$match[2]; $r=file_get_contents("http://127.0.0.1/cgi-bin/scripts/util/yt.php?file=".$l); } return $r; } function flvz($string) { if (strpos($string,"embed") === false) { $string=str_replace("video","embed",$string); } $h = file_get_contents($string); $r = str_between($h,'"url": "','"'); return $r; } function putlocker($string) { //http://www.putlocker.com/embed/067DF715716F10C5 //http://www.putlocker.com/file/067DF715716F10C5 $string=str_replace("file","embed",$string); $id=substr(strrchr($string,"/"),1); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $string); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookies.txt'); curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt'); $h = curl_exec($ch); curl_close($ch); $t1=explode('form method="post"',$h); $t2=explode('value="',$t1[1]); $t3=explode('"',$t2[1]); $hash=$t3[0]; $post="hash=".$hash."&confirm=Close+Ad+and+Watch+as+Free+User"; //hash=fe41ab2306be4d45&confirm=Close+Ad+and+Watch+as+Free+User $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $string); curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt'); curl_setopt ($ch, CURLOPT_POST, 1); curl_setopt ($ch, CURLOPT_POSTFIELDS, $post); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); $h = curl_exec($ch); curl_close($ch); $id=str_between($h,"playlist: '","'"); //$url="http://www.putlocker.com/get_file.php?embed_stream=".$id; ///get_file.php?embed_stream=MDY3REY3MTU3MTZGMTBDNStlNTY1Y2EwNDcyZjYwZjUy if (strpos($string,"putlocker") !==false) { $url="http://www.putlocker.com".$id; } elseif (strpos($string,"sockshare") !== false) { $url="http://www.sockshare.com".$id; } $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $h = curl_exec($ch); curl_close($ch); $t1=explode('media:content url="',$h); $t2=explode('"',$t1[2]); $r = $t2[0]; return $r; } function megavideo($string) { if (preg_match('/(v=)([A-Za-z0-9_]+)/', $string, $m)) { $id=$m[2]; } elseif (preg_match('/(v\/)([A-Za-z0-9_]+)/', $string, $m)) { $file = get_headers($string); foreach ($file as $key => $value) { if (strstr($value,"location")) { $url = ltrim($value,"location: "); $id = substr(strrchr($url, '='),1); } // end if } // end foreach } elseif (preg_match('/(d=)([A-Za-z0-9_]+)/', $string, $m)) { $h=file_get_contents($string); $id=str_between($h,'flashvars.v = "','"'); } return $id; } //***************Here we start************************************** $filelink=str_prep($filelink); if ((strpos($filelink,"vidxden") !==false) || (strpos($filelink,"divxden") !==false)) { if (strpos($filelink,"embed") === false) { $t=explode("/",$filelink); $id= $t[3]; $filelink=$t[0]."/".$t[1]."/".$t[2]."/"."embed-".$id."-width-653-height-362.html"; } $h = file_get_contents($filelink); $link=get_unpack(1,11,5,$h); } elseif (strpos($filelink,"vidbux") !==false) { if (strpos($filelink,"embed") === false) { $t=explode("/",$filelink); $id= $t[3]; $filelink=$t[0]."/".$t[1]."/".$t[2]."/"."embed-".$id."-width-653-height-362.html"; } $h = file_get_contents($filelink); $link=get_unpack(1,8,4,$h); } elseif (strpos($filelink,'movreel') !==false) { preg_match('/movreel\.com\/(embed\/)?+([\w\-]+)/', $filelink, $m); $id=$m[2]; $filelink = "http://movreel.com/embed/".$id; $h = file_get_contents($filelink); $link=str_between($h,'<param name="src" value="','"'); } elseif (strpos($filelink,'videoweed') !==false) { if (strpos($filelink,"embed") !== false) { preg_match('/(v=)([A-Za-z0-9_]+)/', $filelink, $m); $id=$m[2]; $s=explode("/",$filelink); $filelink="http://".$s[2]."/embed.php?v=".$id."&amp;width=900&amp;height=600"; } $h = file_get_contents($filelink); $f = str_between($h,'flashvars.file="','"'); $k = str_between($h,'flashvars.filekey="','"'); $l="http://www.videoweed.es/api/player.api.php?user=undefined&codes=undefined&pass=undefined&file=".$f."&key=".$k; //$l=str_replace("&","&amp;",$l); $h=file_get_contents($l); $link=str_between($h,"url=","&"); } elseif (strpos($filelink,'novamov') !==false) { if (strpos($filelink,"embed") !== false) { preg_match('/(v=)([A-Za-z0-9_]+)/', $filelink, $m); $id=$m[2]; $s=explode("/",$filelink); //http://embed.novamov.com/embed.php?width=728&height=400&v=yi18gc4a62gsu&px=1 $filelink="http://".$s[2]."/embed.php?v=".$id."&amp;width=600&amp;height=480"; } $h=file_get_contents($filelink); $file=str_between($h,'flashvars.file="','"'); $filekey=str_between($h,'flashvars.filekey="','"'); $l="http://www.novamov.com/api/player.api.php?user=undefined&file=".$file."&pass=undefined&key=".urlencode($filekey); $h=file_get_contents($l); $link=str_between($h,"url=","&"); } elseif (strpos($filelink, 'videobb.com') !== false) { $id=substr(strrchr($filelink,"/"),1); $l="http://www.sheepser.com/vb23.php?s1=".$id; $h=file_get_contents($l); $t1=explode('url="',$h); $t2=explode('"',$t1[1]); $link=$t2[0]; if (strpos($link,"videobb") === false) { $filelink="http://www.videobb.com/player_control/settings.php?v=".$id; $link=videobb($filelink); } } elseif (strpos($filelink, 'videozer.com') !== false) { $id=substr(strrchr($filelink,"/"),1); $l="http://www.sheepser.com/vz23.php?s1=".$id; $h=file_get_contents($l); $t1=explode('url="',$h); $t2=explode('"',$t1[1]); $link=$t2[0]; if (strpos($link,"videozer") === false) { $filelink="http://www.videozer.com/player_control/settings.php?v=".$id; $link=videobb($filelink); } } elseif ((strpos($filelink, 'vk.com') !== false) || (strpos($filelink, 'vkontakte.ru') !== false)) { $link=vk($filelink); } elseif (strpos($filelink, 'movshare') !== false){ preg_match('/(v=)([A-Za-z0-9_]+)/', $filelink, $m); $id=$m[2]; if ($id == "") { if (strpos($filelink,"?") !==false) { $a=explode("?",$filelink); $rest = substr($a[0], 0, -1); $id= substr(strrchr($rest,"/"),1); } else { $id = substr(strrchr($filelink,"/"),1); } } $filelink = "http://embed.movshare.net/embed.php?v=".$id; $baza = file_get_contents($filelink); $key=str_between($baza,'flashvars.filekey="','"'); if ($key <> "") { $l="http://www.movshare.net/api/player.api.php?user=undefined&codes=undefined&key="; $l=$l.urlencode($key)."&pass=undefined&file=".$id; $b=file_get_contents($l); $link=str_between($b,"url=","&"); } else { $link = str_between($baza,'file="','"'); if ($link == "") { $link=str_between($baza,'name="src" value="','"'); } if ($link == "") { $link=str_between($baza,'src" value="','"'); } } } elseif (strpos($filelink, 'youtube') !== false){ $link=youtube($filelink); } elseif (strpos($filelink, 'flvz.com') !== false){ $link=flvz($filelink); } elseif (strpos($filelink, 'rapidmov.net') !== false){ //$link=rapidmov($filelink); $h = file_get_contents($filelink); $link=get_unpack4(1,16,4,$h); } elseif (strpos($filelink, 'putlocker.com') !== false){ $link=putlocker($filelink); } elseif (strpos($filelink, 'peteava.ro/embed') !== false) { preg_match('/(video\/)([A-Za-z0-9_]+)/', $filelink, $m); $id=$m[2]; $filelink = "http://www.peteava.ro/embed/video/".$id; $h = file_get_contents($filelink); $id = str_between($h,"hd_file=","&"); if ($id == "") { $id = str_between($h,"stream.php&file=","&"); } if ($id <> $last_peteava) { $last_peteava=$id; $token = peteava($id); $link = "http://content.peteava.ro/video/".$id."?start=0&token=".$token; } } elseif (strpos($filelink, 'peteava.ro/id') !== false) { $h = file_get_contents($filelink); $id = str_between($h,"hd_file=","&"); if ($id == "") { $id = str_between($h,"stream.php&file=","&"); } if ($id <> $last_peteava) { $last_peteava=$id; $token = peteava($id); $link = "http://content.peteava.ro/video/".$id."?start=0&token=".$token; } } elseif (strpos($filelink, 'content.peteava.ro') !== false) { $id = str_between($h,"hd_file=","&"); if ($id == "") { $id = str_between($filelink,"stream.php&file=","&"); } $p=strpos($id,"."); //cinemaxx.ro $id1= substr($id,0, $p); $id2=substr($id,$p,4); $id= $id1.$id2; if ($id <> $last_peteava) { $last_peteava=$id; $token = peteava($id); $link = "http://content.peteava.ro/video/".$id."?start=0&token=".$token; } } elseif (strpos($filelink,'vimeo.com') !==false){ //http://player.vimeo.com/video/16275866 if (strpos($filelink,"player.vimeo.com") !==false) { $id=substr(strrchr($filelink,"/"),1); $link="http://127.0.0.1/cgi-bin/translate?stream,,http://vimeo.com/".$id; } else { $link="http://127.0.0.1/cgi-bin/translate?stream,,".$filelink; } } elseif (strpos($filelink, 'googleplayer.swf') !== false) { $t1 = explode("docid=", $filelink); $t2 = explode("&",$t1[1]); $link = "http://127.0.0.1/cgi-bin/translate?stream,,http://video.google.com/videoplay?docid=".$t2[0]; } elseif (strpos($filelink, 'filebox.ro/get_video') !== false) { $s = str_between($filelink,"videoserver","."); $f = str_between($filelink,"key=","&"); $link = "http://static.filebox.ro/filme/".$s."/".$f.".flv"; } elseif (strpos($filelink, 'megavideo.com') !== false) { $link="http://127.0.0.1/cgi-bin/scripts/php1/mv.cgi?v=".megavideo($filelink); } elseif (strpos($filelink, 'videobam.com/widget') !== false) { //http://videobam.com/widget/Xykqy/3" $h = file_get_contents($filelink); $link=str_between($h,',"url":"','"'); $link=str_replace("\\","",$link); } elseif (strpos($filelink, 'video.rol.ro') !== false) { //http://video.rol.ro/embed/js/55307.js //http://video.rol.ro/embed/iframe/56071 //http://video.rol.ro/trollhunter-2010-www-onlinemoca-com-55307.htm if (strpos($filelink,"embed") !==false) { $r1 = substr(strrchr($filelink, "/"), 1); $l= "http://video.rol.ro/embed/js/".$r1.".js"; } else { $r1 = substr(strrchr($filelink, "-"), 1); $r2=explode(".",$r1); $l= "http://video.rol.ro/embed/js/".$r2[0].".js"; } $h = file_get_contents($l); $link=str_between($h,"file': '","'"); } elseif (strpos($filelink, 'divxstage.net') !== false) { //divxstage.net/video/canc73f7kgvbt $h = file_get_contents($filelink); $link=str_between($h,'param name="src" value="','"'); if ($link == "") { $link=str_between($h,'addVariable("file","','"'); } } elseif (strpos($filelink, 'divxstage.eu') !== false) { //http://www.divxstage.eu/video/oisekelygcrnb //http://www.divxstage.eu/api/player.api.php?key=78%2E96%2E189%2E71%2D0158d8005886f55b17aa976b4b596404&user=undefined&codes=undefined&pass=undefined&file=0nm6yadbatt77 $h = file_get_contents($filelink); $p1=str_between($h,'flashvars.filekey="','"'); $p2=str_between($h,'flashvars.file="','"'); if ($p1 == "") { $link=str_between($h,'param name="src" value="','"'); if ($link == "") { $link=str_between($h,'addVariable("file","','"'); } } else { $l1="http://www.divxstage.eu/api/player.api.php?key=".urlencode($p1)."&user=undefined&codes=undefined&pass=undefined&file=".$p2; $h = file_get_contents($l1); $link=str_between($h,"url=","&"); } } elseif ((strpos($filelink, 'fastupload.rol.ro') !== false) || (strpos($filelink, 'fastupload.ro') !== false)) { $h = file_get_contents($filelink); $link=str_between($h,"file': '","'"); } elseif (strpos($filelink, 'zetshare.net') !== false) { $h = file_get_contents($filelink); $link=str_between($h,"'file', '","'"); } elseif (strpos($filelink, 'ufliq.com') !== false) { $h = file_get_contents($filelink); $link=str_between($h,"url: '","'"); if ($link == "") { $link=get_unpack4(1,14,6,$h); } } elseif (strpos($filelink, 'stagero.eu') !== false) { //http://www.stagero.eu/api/player.api.php?codes=1&key=78%2E96%2E189%2E71%2D43400f4737713449ec249d9baf1e16f9&pass=undefined&user=undefined&file=pq34kgvq7gn26 $h = file_get_contents($filelink); $p1=str_between($h,'flashvars.filekey="','"'); $p2=str_between($h,'flashvars.file="','"'); $l1="http://www.stagero.eu/api/player.api.php?codes=1&key=".urlencode($p1)."&pass=undefined&user=undefined&file=".$p2; $h = file_get_contents($l1); $link=str_between($h,"url=","&"); } elseif (strpos($filelink, 'mixturevideo.com') !== false) { $h = file_get_contents($filelink); $p1=str_between($h,"file=","&"); $p2=str_between($h,"streamer=",'"'); $link=$p2."&file=".$p1; } elseif (strpos($filelink, 'ovfile.com') !== false) { $h = file_get_contents($filelink); $link=get_unpack4(2,12,5,$h); if (strpos($link,"http") === false) { $link=get_unpack4(2,16,5,$h); } } elseif (strpos($filelink, 'trilulilu') !== false) { $h = file_get_contents($filelink); if (strpos($filelink,"embed") === false) { $userid = str_between($h, 'userid":"', '"'); $hash = str_between($h, 'hash":"', '"'); $server = str_between($h, 'server":"', '"'); } else { $userid = str_between($h, 'userid=', '&'); $hash = str_between($h, 'hash=', '&'); $server = str_between($h, 'server=', '"'); } $link1="http://fs".$server.".trilulilu.ro/stream.php?type=video&amp;source=site&amp;hash=".$hash."&amp;username=".$userid."&amp;key=ministhebest"; $link = $link1."&amp;format=mp4-720p"; $AgetHeaders = @get_headers($link); if (!preg_match("|200|", $AgetHeaders[0])) { $link = $link1."&amp;format=mp4-360p"; $AgetHeaders = @get_headers($link); if (!preg_match("|200|", $AgetHeaders[0])) { $link = $link1."&amp;format=flv-vp6"; $AgetHeaders = @get_headers($link); if (!preg_match("|200|", $AgetHeaders[0])) { $link=""; } } } } elseif (strpos($filelink, 'filmedocumentare.com') !==false) { $h = file_get_contents($filelink); $link=trim(str_between($h,"<location>","</location>")); } elseif (strpos($filelink, 'xvidstage.com') !== false) { //http://xvidstage.com/zwvh3et6vugo //http://xvidstage.com/cgi-bin/dl.cgi/igribijb5hnkqetnfyplgdzywdxney3aiufdbxrwn4/video.avi //http://s2.xvidstage.com:182/d/uquig3k7gii5uaadri5e7kkogbfsqnhv4oxwpqvhx556wkcrvrzq636z/video.flv //http://xvidstage.com/embed-26kpbe5apbem.html if (strpos($filelink,"embed") !== false) { $h = file_get_contents($filelink); } else { $id = substr(strrchr($filelink, "/"), 1); $filelink = "http://xvidstage.com/embed-".$id.".html"; $h = file_get_contents($filelink); } $link=get_unpack4(2,9,5,$h); } elseif (strpos($filelink, 'viki.com') !==false) { preg_match('/(viki\.com\/player\/medias\/)([\w\-]+)/', $filelink, $match); $viki_id = $match[2]; $l1="http://www.viki.com/player/medias/".$viki_id."/info.json?rtmp=true&source=embed&embedding_uri=www.viki.com"; $h=file_get_contents($l1); if (strpos($h,"rtmp") === false) { $new_file="D://dolce.gz"; $new_file="/tmp/dolce.gz"; $fh = fopen($new_file, 'w'); fwrite($fh, $html); fclose($fh); $zd = gzopen($new_file, "r"); $h = gzread($zd, filesize($new_file)); gzclose($zd); } $rtmp=str_between($h,'"uri":"','"'); //rtmp://fms.354a.edgecastcdn.net/00354A/videos/encoded/Heartstrings/mp4:131448_Heartstrings_001_480p.mp4" $t1=explode("/",$rtmp); $y=$t1[7]; $a=$t1[3]."/".$t1[4]."/".$t1[5]."/".$t1[6]; $rtmp=$t1[0]."//".$t1[2]."/".$a; $link = "http://127.0.0.1/cgi-bin/scripts/util/translate1.cgi?stream,Rtmp-options:-a%20".$a."%20-y%20".$y."%20-W%20http://a3.vikiassets.com/swfs/vikiplayer.swf%20-p%20http://www.viki.com,".$rtmp; } print $link; ?>
1073s
trunk/filme/php/link.php
PHP
gpl3
22,058
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $query = $_GET["file"]; $queryArr = explode(',', $query); $link = $queryArr[0]; $tit = urldecode($queryArr[1]); $html = file_get_contents($link); $t1=explode("Adaugat in categoria",$html); $t2=explode('src="',$t1[1]); $t3=explode('"',$t2[1]); $img=$t3[0]; $t2=explode("</div>",$t1[1]); $t3=explode("<br />",$t2[1]); $desc=trim($t3[0]); if ($desc == "") { $desc=trim($t3[1]); } if ($desc == "") { $desc=trim($t3[2]); } $desc = preg_replace("/(<\/?)([^>]*>)/e","",$desc); ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text align="left" offsetXPC="6" offsetYPC="15" widthPC="50" heightPC="4" fontSize="16" backgroundColor="10:105:150" foregroundColor="100:200:255"> Apăsaţi 1 sau 2 pentru salt +- 100 </text> <text redraw="no" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="center" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <?php echo $desc; ?> </text> <image redraw="yes" offsetXPC=60 offsetYPC=22.5 widthPC=30 heightPC=25> <?php echo $img; ?> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { annotation = getItemInfo(idx, "annotation"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } else if(userInput == "one" || userInput == "1") { idx = Integer(getFocusItemIndex()); idx -= -100; if(idx &gt;= itemCount) idx = itemCount-1; print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } else if(userInput == "two" || userInput == "2") { idx = Integer(getFocusItemIndex()); idx -= 100; if(idx &lt; 0) idx = 0; print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title><?php echo $tit; ?></title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $host = "http://127.0.0.1/cgi-bin"; $videos = explode('<li style="', $html); unset($videos[0]); $videos = array_values($videos); //$videos = array_reverse($videos); foreach($videos as $video) { $t1=explode('href="',$video); $t2=explode('"',$t1[1]); $link=$t2[0]; $t3 = explode('>', $t1[1]); $t4 = explode('<', $t3[1]); $title = $t4[0]; if ($link <> "") { $link = 'http://127.0.0.1/cgi-bin/scripts/filme/php/filme_link.php?'.$link.','.urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation></annotation> <media:thumbnail url="'.$img.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/serialecoreene.php
PHP
gpl3
6,335
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $page = $queryArr[0]; $search = $queryArr[1]; $tit=urldecode($queryArr[2]); } ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text align="left" offsetXPC="6" offsetYPC="15" widthPC="100" heightPC="4" fontSize="16" backgroundColor="10:105:150" foregroundColor="100:200:255"> Apăsaţi 2 pentru download, 3 pentru Download Manager </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="center" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=22.5 widthPC=30 heightPC=25> <script>print(img); img;</script> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } if (userInput == "two" || userInput == "2") { showIdle(); url=getItemInfo(getFocusItemIndex(),"download"); movie=getUrl(url); cancelIdle(); topUrl = "http://127.0.0.1/cgi-bin/scripts/util/download.cgi?link=" + movie + ";name=" + getItemInfo(getFocusItemIndex(),"name"); dlok = loadXMLFile(topUrl); "true"; } if (userInput == "three" || userInput == "3") { jumpToLink("destination"); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <destination> <link>http://127.0.0.1/cgi-bin/scripts/util/level.php </link> </destination> <channel> <title><?php echo $tit; ?></title> <menu>main menu</menu> <?php $host = "http://127.0.0.1/cgi-bin"; $html = file_get_contents($search.$page); if($page > 1) { ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page-1).","; if($search) { $url = $url.$search.",".urlencode($tit); } ?> <title>Previous Page</title> <link><?php echo $url;?></link> <annotation>Pagina anterioară</annotation> <image>image/left.jpg</image> <mediaDisplay name="threePartsView"/> </item> <?php } ?> <?php $videos = explode('<div class="materialItemContainer"', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('<a href="', $video); $t2 = explode('"', $t1[2]); $link = $t2[0]; $link = str_replace(' ','%20',$link); $link = str_replace('[','%5B',$link); $link = str_replace(']','%5D',$link); $link = "http://www.peteava.ro".$link; for ($i=1;$i<6;$i++) { $t1 = explode('src="', $video); $t2 = explode('"', $t1[$i]); $image = $t2[0]; if (strpos($image,"pixel.gif") === false) break; } $t1 = explode('"infoContainer">',$video); $t2 = explode('<',$t1[1]); $data = "Durata: ".$t2[0]; $t1 = explode('class="materialTitle">', $video); $t2 = explode('<', $t1[1]); $title = htmlspecialchars_decode($t2[0]); $link = $host.'/scripts/filme/php/peteava_link.php?file='.$link.','.urlencode($title); $name = preg_replace('/[^A-Za-z0-9_]/','_',$title).".flv"; $f = "/usr/local/bin/home_menu"; if (file_exists($f)) { echo ' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); url="'.$link.'"; movie=getURL(url); cancelIdle(); storagePath = getStoragePath("tmp"); storagePath_stream = storagePath + "stream.dat"; streamArray = null; streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, movie); streamArray = pushBackStringArray(streamArray, movie); streamArray = pushBackStringArray(streamArray, video/mp4); streamArray = pushBackStringArray(streamArray, "'.$pg_tit.'"); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file:///usr/local/etc/www/cgi-bin/scripts/util/videoRenderer2.rss"); </script> </onClick> <download>'.$link.'</download> <name>'.$name.'</name> <image>'.$image.'</image> <annotation>'.$data.'</annotation> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } else { echo ' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); url="'.$link.'"; movie=getURL(url); cancelIdle(); storagePath = getStoragePath("tmp"); storagePath_stream = storagePath + "stream.dat"; streamArray = null; streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, movie); streamArray = pushBackStringArray(streamArray, movie); streamArray = pushBackStringArray(streamArray, video/mp4); streamArray = pushBackStringArray(streamArray, "'.$pg_tit.'"); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file:///usr/local/etc/www/cgi-bin/scripts/util/videoRenderer1.rss"); </script> </onClick> <download>'.$link.'</download> <name>'.$name.'</name> <image>'.$image.'</image> <annotation>'.$data.'</annotation> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } ?> <item> <?php $sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME']; $url = $sThisFile."?query=".($page+1).","; if($search) { $url = $url.$search.",".urlencode($tit); } ?> <title>Next Page</title> <link><?php echo $url;?></link> <annotation>Pagina următoare</annotation> <image>image/right.jpg</image> <mediaDisplay name="threePartsView"/> </item> </channel> </rss>
1073s
trunk/filme/php/peteava.php
PHP
gpl3
9,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"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="photoView" fontSize="16" rowCount="8" columnCount="3" sideTopHeightPC="0" sideBottomHeightPC="0" sideColorBottom="10:105:150" sideColorTop="10:105:150" centerXPC="5" centerYPC="25" centerHeightPC="65" itemGapXPC="1" itemGapYPC="1" rollItems="yes" drawItemText="yes" itemImageWidthPC="0.1" itemImageHeightPC="0.1" imageBorderPC="1.5" forceFocusOnItem="yes" itemCornerRounding="yes" sliding=yes showHeader=no showDefaultInfo=no idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <!--<image offsetXPC=5 offsetYPC=2 widthPC=20 heightPC=16> <script>channelImage;</script> </image>--> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { annotation = getItemInfo(idx, "title"); } </script> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -24; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 24; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <script> channelImage = "/usr/local/etc/www/cgi-bin/scripts/filme/image/series.png"; </script> <channel> <title>serialepenet.ro</title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } // Pe Litere $html = file_get_contents("http://serialepenet.ro/lista_seriale"); $videos = explode('views-summary views-summary-unformatted', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1=explode('href="',$video); $t2=explode('"',$t1[1]); $link="http://serialepenet.ro".$t2[0]; $t3=explode(">",$t1[1]); $t4=explode("<",$t3[1]); $title="Litera: ".$t4[0]; $link = $host."/scripts/filme/php/serialepenet_lit.php?file=".$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <annotation>'.$title.'</annotation> <link>'.$link.'</link> </item> '; } // // Categorie $t1=explode('<h3>Categorii</h3>',$html); $html=$t1[1]; $videos = explode('<span class="field-content">', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1=explode('href="',$video); $t2=explode('"',$t1[1]); $link="http://serialepenet.ro".$t2[0]; $t3=explode(">",$t1[1]); $t4=explode("<",$t3[1]); $title=$t4[0]; $link = $host."/scripts/filme/php/serialepenet_cat.php?file=".$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <annotation>'.$title.'</annotation> <link>'.$link.'</link> </item> '; } ?> </channel> </rss>
1073s
trunk/filme/php/serialepenet_main.php
PHP
gpl3
5,130
#!/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>jurnaltv.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); } $img = "image/movies.png"; $filename = "/usr/local/etc/dvdplayer/jurnaltv.txt"; if (!file_exists($filename)) { $link = "/usr/local/etc/www/cgi-bin/scripts/filme/php/jurnaltv.rss"; $description="Pentru a accesa acest site trebuie să aveţi un cont pe jurnaltv.ro (este gratis)."; echo ' <item> <title>Logare</title> <link>'.$link.'</link> <annotation>'.$description.'</annotation> <media:thumbnail url="'.$img.'" /> <mediaDisplay name="onePartView" /> </item> '; } else { $handle = fopen($filename, "r"); $c = fread($handle, filesize($filename)); fclose($handle); $a=explode("@",$c); $user=$a[0]; $pass=trim($a[1]); $post="user=".$user."&pass=".$pass."&logged=logged"; $l="http://www.jurnaltv.ro/login"; $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/cookies.txt'); curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt'); curl_exec($ch); curl_close($ch); } $html = file_get_contents("http://www.jurnaltv.ro/videos/recent/page1"); $html = str_between($html,'<div id="mmenulist5"','</table>'); $videos = explode('href="', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('"', $video); $link = $t1[0]; $title=trim(str_between($video,'<span class=""><span class="">','</span>')); $link1 = $host."/scripts/filme/php/jurnaltv.php?query=1,".$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link1.'</link> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } if (file_exists($filename)) { $link = "/usr/local/etc/www/cgi-bin/scripts/filme/php/jurnaltv.rss"; $description="Pentru a accesa acest site trebuie să aveţi un cont pe jurnaltv.ro (este gratis)."; echo ' <item> <title>Schimbare date logare</title> <link>'.$link.'</link> <annotation>'.$description.'</annotation> <media:thumbnail url="'.$img.'" /> <mediaDisplay name="onePartView" /> </item> '; } ?> </channel> </rss>
1073s
trunk/filme/php/jurnaltv_main.php
PHP
gpl3
6,923
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $query = $_GET["query"]; if($query) { $queryArr = explode(',', $query); $pg_tit = urldecode($queryArr[1]); $link = $queryArr[0]; } //play movie if (file_exists("/tmp/usbmounts/sda1/download")) { $dir = "/tmp/usbmounts/sda1/download/"; $dir_log = "/tmp/usbmounts/sda1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdb1/download")) { $dir = "/tmp/usbmounts/sdb1/download/"; $dir_log = "/tmp/usbmounts/sdb1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdc1/download")) { $dir = "/tmp/usbmounts/sdc1/download/"; $dir_log = "/tmp/usbmounts/sdc1/download/log/"; } elseif (file_exists("/tmp/usbmounts/sda2/download")) { $dir = "/tmp/usbmounts/sda2/download/"; $dir_log = "/tmp/usbmounts/sda2/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdb2/download")) { $dir = "/tmp/usbmounts/sdb2/download/"; $dir_log = "/tmp/usbmounts/sdb2/download/log/"; } elseif (file_exists("/tmp/usbmounts/sdc2/download")) { $dir = "/tmp/usbmounts/sdc2/download/"; $dir = "/tmp/usbmounts/sdc2/download/log/"; } elseif (file_exists("/tmp/hdd/volumes/HDD1/download")) { $dir = "/tmp/hdd/volumes/HDD1/download/"; $dir_log = "/tmp/hdd/root/log/"; } else { $dir = ""; $dir_log = ""; } // end ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); first_time=1; </onEnter> <onRefresh> if(first_time == 1) { setRefreshTime(-1); itemCount = getPageInfo("itemCount"); first_time=0; } else if (do_down == 1) { topUrl = "http://127.0.0.1/cgi-bin/scripts/util/info_down.php?file=" + log_file + ",f"; info_serial = getUrl(topUrl); } </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="75" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="75" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text align="left" offsetXPC="6" offsetYPC="15" widthPC="100" heightPC="4" fontSize="16" backgroundColor="10:105:150" foregroundColor="100:200:255"> Apăsaţi 1 pentru Download Manager, 2 pentru download..... </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(info_serial); info_serial;</script> </text> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); img = getItemInfo(idx,"image"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "14"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); ret="true"; } else if(userInput == "two" || userInput == "2") { tip=getItemInfo(getFocusItemIndex(),"tip"); showIdle(); if (tip == "1") { url = getItemInfo(getFocusItemIndex(),"download"); movie=getUrl(url); info_serial="link:" + movie; topUrl = "http://127.0.0.1/cgi-bin/scripts/util/download.cgi?link=" + movie + ";name=" + getItemInfo(getFocusItemIndex(),"name"); } else if (tip == "2") { topUrl = "http://127.0.0.1/cgi-bin/scripts/util/download.cgi?link=" + getItemInfo(getFocusItemIndex(),"download") + ";name=" + getItemInfo(getFocusItemIndex(),"name"); } dummy = getUrl(topUrl); cancelIdle(); do_down=1; file_name= getItemInfo(getFocusItemIndex(),"title"); log_file="<?php echo $dir_log; ?>" + getItemInfo(getFocusItemIndex(),"name") + ".log"; setRefreshTime(10000); ret="true"; } else if (userInput == "three" || userInput == "3") { url="<?php echo $dir; ?>" + getItemInfo(getFocusItemIndex(),"name"); playItemurl(url,10); ret="true"; } else if(userInput == "four" || userInput == "4") { showIdle(); url = getItemInfo(getFocusItemIndex(),"download"); info_serial="link:" + url; redrawdisplay(); tip=getItemInfo(getFocusItemIndex(),"tip"); if (tip == "1") { movie=getUrl(url); info_serial="movie:" + movie; } cancelIdle(); redrawdisplay(); ret="true"; } else if (userInput == "one" || userInput == "1") { jumpToLink("destination"); ret="true"; } else { info_serial=" "; setRefreshTime(-1); do_down=0; ret="false"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <destination> <link>http://127.0.0.1/cgi-bin/scripts/util/level.php </link> </destination> <channel> <title><?php echo $pg_tit; ?></title> <menu>main menu</menu> <?php $host = "http://127.0.0.1/cgi-bin"; function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $html = file_get_contents($link); //echo $html; $t1=explode($link,$html); $html=$t1[2]; $t2=explode("<ul class='posts'>",$html); $html=$t2[1]; $videos = explode('<li>', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode("href='", $video); $t2 = explode("'", $t1[1]); $link = $t2[0]; $t3=explode(">",$t1[1]); $t4=explode("<",$t3[1]); $title=$t4[0]; if ($title <> "") { $link = $host.'/scripts/filme/php/tinymkv_link.php?file='.$link; $name = preg_replace('/[^A-Za-z0-9_]/','_',$title).".mkv"; echo ' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); url="'.$link.'"; url1=getUrl(url); movie="http://127.0.0.1/cgi-bin/scripts/util/mozhay.cgi?" + url1; cancelIdle(); storagePath = getStoragePath("tmp"); storagePath_stream = storagePath + "stream.dat"; streamArray = null; streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, ""); streamArray = pushBackStringArray(streamArray, url1); streamArray = pushBackStringArray(streamArray, url1); streamArray = pushBackStringArray(streamArray, video/x-flv); streamArray = pushBackStringArray(streamArray, "'.$title.'"); streamArray = pushBackStringArray(streamArray, "1"); writeStringToFile(storagePath_stream, streamArray); doModalRss("rss_file:///usr/local/etc/www/cgi-bin/scripts/util/videoRenderer.rss"); </script> </onClick> <download>'.$link.'</download> <name>'.$name.'</name> <tip>1</tip> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/tinymkv.php
PHP
gpl3
9,346
#!/usr/local/bin/Resource/www/cgi-bin/php <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $link = $_GET["file"]; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $link); curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $h = curl_exec($ch); curl_close($ch); $link = str_between($h,'vPlayer.swf?f=','"'); $h = file_get_contents($link); $link = str_between($h,"<src>","</src>"); print $link; ?>
1073s
trunk/filme/php/jurnaltv_link.php
PHP
gpl3
637
#!/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=60 offsetYPC=25 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 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://iplay.txt"; $cookie="/tmp/iplay.txt"; $l="http://www.iplay.ro/video/get-episodes.php?id_season=".$search; $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('<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('src="', $video); $t2 = explode('"', $t1[1]); $image = $t2[0]; $title = str_between($video,'span class="title">','</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); if ($title <> "") { $title=$tit."-".$title; $f = "/usr/local/bin/home_menu"; if (file_exists($f)) { echo' <item> <title>'.$title.'</title> <onClick> <script> showIdle(); url1=getURL("http://127.0.0.1/cgi-bin/scripts/util/iplay_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/iplay_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> '; } } } ?> </channel> </rss>
1073s
trunk/filme/php/iplay.php
PHP
gpl3
8,121
#!/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 dupa gen</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 gen","</ul>"); $image = "image/movies.png"; $host = "http://127.0.0.1/cgi-bin"; $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_filme2.php
PHP
gpl3
5,285
#!/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>filmeonline24.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://www.filmeonline24.com/"); $img = "image/movies.png"; $link = $host."/scripts/filme/php/filmeonline24.php?query=,http://www.filmeonline24.com/"; echo ' <item> <title>Filme Noi</title> <link>'.$link.'</link> <annotation>Filme noi</annotation> </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/filmeonline24.php?query=,".$link; echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$title.'</annotation> </item> '; } **/ ?> </channel> </rss>
1073s
trunk/filme/php/filmeonline24_main.php
PHP
gpl3
5,589
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="40" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="40" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="justify" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <script>print(annotation); annotation;</script> </text> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>filmedocumentare</title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $html = file_get_contents("http://filmedocumentare.com/"); $html=str_between($html,'Canale de filme','</table>'); $videos = explode('href="', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('"', $video); $link = $t1[0]; $t1 = explode('title="', $video); $t4 = explode('"',$t1[1]); $annotation=$t4[0]; $t2 = explode('>', $t1[1]); $t3 = explode('<',$t2[1]); $title = $t3[0]; $title=html_entity_decode($title,ENT_QUOTES, "UTF-8"); $title=htmlentities($title, ENT_QUOTES, "UTF-8"); $title=urlencode($title); $title=str_replace("%C8%99","s",$title); $title=str_replace("%C8%9B","t",$title); $title=urldecode($title); if ($link <> "") { $link = $host."/scripts/filme/php/filmedocumentare.php?query=1,".$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$annotation.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/filmedocumentare_main.php
PHP
gpl3
5,518
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $host = "http://127.0.0.1/cgi-bin"; $query = $_GET["file"]; if($query) { $queryArr = explode(',', $query); $link = $queryArr[0]; $tit = urldecode($queryArr[1]); } $html = file_get_contents($link); $t1=explode('div class="post-',$html); $image=str_between($t1[2],'img src="','"'); ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=55 offsetYPC=35 widthPC=35 heightPC=30> <?php echo $image; ?> </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title><?php echo $tit; ?></title> <menu>main menu</menu> <?php echo ' <item> <title>Alege una din variantele de mai jos</title> <annotation>Download link</annotation> <mediaDisplay name="threePartsView"/> </item> '; //$html=str_between($html,'table id="variante"','div class="shr-bookmarks'); //http://www.filmeonline.org/watch $videos = explode('href="', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('"', $video); //http://adf.ly/402271/http://www.filmeonline.org/watch/p3VYMr3xs1KGdd/?y3bkcirnu0le $t2=explode("http",$t1[0]); if ($t2[2] <> "") { $link = "http".$t2[2]; $link=""; //dublura } else { $link = "http".$t2[1]; } $t1 = explode('title="', $video); $t2 = explode('"',$t1[1]); $title = $t2[0]; if (strpos($title,"-") !== false) { $t=explode("-",$title); $title=trim($t[1]); } if ($link <> "") { if (strpos($link,"http://www.filmeonline.org/watch") !==false) { $link = $host."/scripts/filme/php/filme_link.php?".$link.",".urlencode($tit); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <media:thumbnail url="'.$image.'" /> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } } } ?> </channel> </rss>
1073s
trunk/filme/php/filmeonline_link.php
PHP
gpl3
6,103
#!/usr/local/bin/Resource/www/cgi-bin/php <?php echo "<?xml version='1.0' encoding='UTF8' ?>"; $host = "http://127.0.0.1/cgi-bin"; ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="50" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="50" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>print(annotation); annotation;</script> </text> <image redraw="yes" offsetXPC=60 offsetYPC=35 widthPC=30 heightPC=30> /usr/local/etc/www/cgi-bin/scripts/filme/image/series.png </image> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> <itemDisplay> <text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) { location = getItemInfo(idx, "location"); annotation = getItemInfo(idx, "annotation"); } getItemInfo(idx, "title"); </script> <fontSize> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "16"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title>filmeonline.org - seriale</title> <menu>main menu</menu> <?php function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $host = "http://127.0.0.1/cgi-bin"; $html = file_get_contents("http://www.filmeonline.org/seriale-online-subtitrate-in-romana/"); $html=str_between($html,'<div class="azindex">','<div style="clear:both;">'); $videos = explode('<li>', $html); unset($videos[0]); $videos = array_values($videos); foreach($videos as $video) { $t1 = explode('href="',$video); $t2 = explode('"',$t1[1]); $link = trim($t2[0]); if (strpos($link,"http://www.filmeonline.org") !== false) { $title=str_between($video,'<span class="head">','</span>'); $link = $host."/scripts/filme/php/filmeonlines.php?query=".$link.",".urlencode($title); echo ' <item> <title>'.$title.'</title> <link>'.$link.'</link> <annotation>'.$title.'</annotation> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/filmeonlines_main.php
PHP
gpl3
5,397
#!/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="firstposttitle">',$html); $t2=explode('src="',$t1[1]); $t3=explode('"',$t2[1]); $img=$t3[0]; $t4=explode('Show summary:',$t1[1]); $t5=explode('</div>',$t4[1]); $data=trim($t5[0]); $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)); ?> <rss version="2.0"> <onEnter> startitem = "middle"; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); itemCount = getPageInfo("itemCount"); </onRefresh> <mediaDisplay name="threePartsView" sideLeftWidthPC="0" sideRightWidthPC="0" headerImageWidthPC="0" selectMenuOnRight="no" autoSelectMenu="no" autoSelectItem="no" itemImageHeightPC="0" itemImageWidthPC="0" itemXPC="8" itemYPC="25" itemWidthPC="45" itemHeightPC="8" capXPC="8" capYPC="25" capWidthPC="45" capHeightPC="64" itemBackgroundColor="0:0:0" itemPerPage="8" itemGap="0" bottomYPC="90" backgroundColor="0:0:0" showHeader="no" showDefaultInfo="no" imageFocus="" sliding="no" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10" > <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255"> <script>getPageInfo("pageTitle");</script> </text> <text align="left" offsetXPC="6" offsetYPC="15" widthPC="50" heightPC="4" fontSize="16" backgroundColor="10:105:150" foregroundColor="100:200:255"> Apăsaţi 1 sau 2 pentru salt +- 100 </text> <text redraw="no" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205"> <script>sprintf("%s / ", focus-(-1))+itemCount;</script> </text> <text align="center" redraw="yes" lines="10" fontSize=17 offsetXPC=55 offsetYPC=55 widthPC=40 heightPC=42 backgroundColor=0:0:0 foregroundColor=200:200:200> <?php echo $data; ?> </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) "14"; else "14"; </script> </fontSize> <backgroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "10:80:120"; else "-1:-1:-1"; </script> </backgroundColor> <foregroundColor> <script> idx = getQueryItemIndex(); focus = getFocusItemIndex(); if(focus==idx) "255:255:255"; else "140:140:140"; </script> </foregroundColor> </text> </itemDisplay> <onUserInput> <script> ret = "false"; userInput = currentUserInput(); if (userInput == "pagedown" || userInput == "pageup") { idx = Integer(getFocusItemIndex()); if (userInput == "pagedown") { idx -= -8; if(idx &gt;= itemCount) idx = itemCount-1; } else { idx -= 8; if(idx &lt; 0) idx = 0; } print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } else if(userInput == "one" || userInput == "1") { idx = Integer(getFocusItemIndex()); idx -= -100; if(idx &gt;= itemCount) idx = itemCount-1; print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } else if(userInput == "two" || userInput == "2") { idx = Integer(getFocusItemIndex()); idx -= 100; if(idx &lt; 0) idx = 0; print("new idx: "+idx); setFocusItemIndex(idx); setItemFocus(0); redrawDisplay(); "true"; } ret; </script> </onUserInput> </mediaDisplay> <item_template> <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"> <idleImage>image/POPUP_LOADING_01.png</idleImage> <idleImage>image/POPUP_LOADING_02.png</idleImage> <idleImage>image/POPUP_LOADING_03.png</idleImage> <idleImage>image/POPUP_LOADING_04.png</idleImage> <idleImage>image/POPUP_LOADING_05.png</idleImage> <idleImage>image/POPUP_LOADING_06.png</idleImage> <idleImage>image/POPUP_LOADING_07.png</idleImage> <idleImage>image/POPUP_LOADING_08.png</idleImage> </mediaDisplay> </item_template> <channel> <title><?php echo $tit; ?></title> <menu>main menu</menu> <?php 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('<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]; $t1 = explode('src="', $video); $t2 = explode('"', $t1[1]); $image = $t2[0]; $title = trim(str_between($video,'rel="bookmark">','</a>')); 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> <media:thumbnail url="'.$image.'" /> <mediaDisplay name="threePartsView"/> </item> '; } } ?> </channel> </rss>
1073s
trunk/filme/php/seriale-filme_info.php
PHP
gpl3
6,517