PageRenderTime 48ms CodeModel.GetById 21ms RepoModel.GetById 1ms app.codeStats 0ms

/scripts/feeds/scripts_vb6/scripts/mini1.php

http://eboda-hd-for-all-500.googlecode.com/
PHP | 345 lines | 334 code | 11 blank | 0 comment | 83 complexity | 6645ec6f03af58764f134ac37e06f60b MD5 | raw file
Possible License(s): GPL-3.0, GPL-2.0
  1. <?php echo "<?xml version='1.0' encoding='UTF8' ?>";
  2. $host = "http://127.0.0.1:82";
  3. ?>
  4. <rss version="2.0">
  5. <onEnter>
  6. startitem = "middle";
  7. setRefreshTime(1);
  8. columnCount=3
  9. </onEnter>
  10. <onRefresh>
  11. setRefreshTime(-1);
  12. itemCount = getPageInfo("itemCount");
  13. redrawDisplay();
  14. </onRefresh>
  15. <mediaDisplay name=photoView
  16. centerXPC=7
  17. centerYPC=25
  18. centerHeightPC=60
  19. columnCount=3
  20. rowCount=1
  21. menuBorderColor="55:55:55"
  22. sideColorBottom="0:0:0"
  23. sideColorTop="0:0:0"
  24. backgroundColor="0:0:0"
  25. imageBorderColor="0:0:0"
  26. itemBackgroundColor="0:0:0"
  27. itemGapXPC=0
  28. itemGapYPC=1
  29. sideTopHeightPC=22
  30. bottomYPC=85
  31. sliding=yes
  32. showHeader=no
  33. showDefaultInfo=no
  34. idleImageWidthPC="8" idleImageHeightPC="10" idleImageXPC="80" idleImageYPC="10">
  35. <!--
  36. <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255">
  37. <script>getPageInfo("pageTitle");</script>
  38. </text>
  39. <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205">
  40. <script>sprintf("%s / ", focus-(-1))+itemCount;</script>
  41. </text>
  42. -->
  43. <text align="left" offsetXPC=5 offsetYPC=5 widthPC=75 heightPC=5 fontSize=15 backgroundColor=0:0:0 foregroundColor=120:120:120>
  44. Tips: Folositi tastele 1-9, Prev si Next pentru o navigare mai usoara! Apasati 0 pentru help.
  45. </text>
  46. <text align="center" redraw="yes" lines="4" offsetXPC=10 offsetYPC=85 widthPC=75 heightPC=15 fontSize=15 backgroundColor=0:0:0 foregroundColor=120:120:120>
  47. <script>print(annotation); annotation;</script>
  48. </text>
  49. <idleImage>image/POPUP_LOADING_01.png</idleImage>
  50. <idleImage>image/POPUP_LOADING_02.png</idleImage>
  51. <idleImage>image/POPUP_LOADING_03.png</idleImage>
  52. <idleImage>image/POPUP_LOADING_04.png</idleImage>
  53. <idleImage>image/POPUP_LOADING_05.png</idleImage>
  54. <idleImage>image/POPUP_LOADING_06.png</idleImage>
  55. <idleImage>image/POPUP_LOADING_07.png</idleImage>
  56. <idleImage>image/POPUP_LOADING_08.png</idleImage>
  57. <itemDisplay>
  58. <image>
  59. <script>
  60. idx = getQueryItemIndex();
  61. focus = getFocusItemIndex();
  62. if(focus==idx)
  63. {
  64. annotation = getItemInfo(idx, "annotation");
  65. }
  66. getItemInfo(idx, "image");
  67. </script>
  68. <offsetXPC>
  69. <script>
  70. idx = getQueryItemIndex();
  71. focus = getFocusItemIndex();
  72. if(focus==idx) 0; else 15;
  73. </script>
  74. </offsetXPC>
  75. <offsetYPC>
  76. <script>
  77. idx = getQueryItemIndex();
  78. focus = getFocusItemIndex();
  79. if(focus==idx) 0; else 8;
  80. </script>
  81. </offsetYPC>
  82. <widthPC>
  83. <script>
  84. idx = getQueryItemIndex();
  85. focus = getFocusItemIndex();
  86. if(focus==idx) 100; else 70;
  87. </script>
  88. </widthPC>
  89. <heightPC>
  90. <script>
  91. idx = getQueryItemIndex();
  92. focus = getFocusItemIndex();
  93. if(focus==idx) 60; else 42;
  94. </script>
  95. </heightPC>
  96. </image>
  97. <text align="center" lines="3" offsetXPC=0 offsetYPC=65 widthPC=100 heightPC=35 backgroundColor=-1:-1:-1>
  98. <script>
  99. idx = getQueryItemIndex();
  100. getItemInfo(idx, "title");
  101. </script>
  102. <fontSize>
  103. <script>
  104. idx = getQueryItemIndex();
  105. focus = getFocusItemIndex();
  106. if(focus==idx) "22"; else "18";
  107. </script>
  108. </fontSize>
  109. <foregroundColor>
  110. <script>
  111. idx = getQueryItemIndex();
  112. focus = getFocusItemIndex();
  113. if(focus==idx) "255:255:255"; else "75:75:75";
  114. </script>
  115. </foregroundColor>
  116. </text>
  117. </itemDisplay>
  118. <onUserInput>
  119. <script>
  120. ret = "false";
  121. userInput = currentUserInput();
  122. majorContext = getPageInfo("majorContext");
  123. print("*** majorContext=",majorContext);
  124. print("*** userInput=",userInput);
  125. if(userInput == "one" || userInput == "1")
  126. {
  127. if(itemCount &gt;= 1)
  128. {
  129. setFocusItemIndex(0);
  130. redrawDisplay();
  131. }
  132. }
  133. else if(userInput == "two" || userInput == "2")
  134. {
  135. if(itemCount &gt;= 2)
  136. {
  137. setFocusItemIndex(1);
  138. redrawDisplay();
  139. }
  140. }
  141. else if(userInput == "three" || userInput == "3")
  142. {
  143. if(itemCount &gt;= 3)
  144. {
  145. setFocusItemIndex(2);
  146. redrawDisplay();
  147. }
  148. }
  149. else if(userInput == "four" || userInput == "4")
  150. {
  151. if(itemCount &gt;= 4)
  152. {
  153. setFocusItemIndex(3);
  154. redrawDisplay();
  155. }
  156. }
  157. else if(userInput == "five" || userInput == "5")
  158. {
  159. if(itemCount &gt;= 5)
  160. {
  161. setFocusItemIndex(4);
  162. redrawDisplay();
  163. }
  164. }
  165. else if(userInput == "six" || userInput == "6")
  166. {
  167. if(itemCount &gt;= 6)
  168. {
  169. setFocusItemIndex(5);
  170. redrawDisplay();
  171. }
  172. }
  173. else if(userInput == "seven" || userInput == "7")
  174. {
  175. if(itemCount &gt;= 7)
  176. {
  177. setFocusItemIndex(6);
  178. redrawDisplay();
  179. }
  180. }
  181. else if(userInput == "eight" || userInput == "8")
  182. {
  183. if(itemCount &gt;= 8)
  184. {
  185. setFocusItemIndex(7);
  186. redrawDisplay();
  187. }
  188. }
  189. else if(userInput == "nine" || userInput == "9")
  190. {
  191. if(itemCount &gt;= 9)
  192. {
  193. setFocusItemIndex(8);
  194. redrawDisplay();
  195. }
  196. }
  197. if(userInput == "zero" || userInput == "0")
  198. {
  199. doModalRss("/scripts/util/help.rss");
  200. ret="true";
  201. }
  202. else if (userInput == "pagedown" || userInput == "pageup" || userInput == "PD" || userInput == "PG")
  203. {
  204. itemSize = getPageInfo("itemCount");
  205. idx = Integer(getFocusItemIndex());
  206. if (userInput == "pagedown")
  207. {
  208. idx -= -10;
  209. if(idx &gt;= itemSize)
  210. idx = itemSize-1;
  211. }
  212. else
  213. {
  214. idx -= 10;
  215. if(idx &lt; 0)
  216. idx = 0;
  217. }
  218. setFocusItemIndex(idx);
  219. setItemFocus(idx);
  220. redrawDisplay();
  221. ret = "true";
  222. }
  223. ret;
  224. </script>
  225. </onUserInput>
  226. </mediaDisplay>
  227. <item_template>
  228. <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10">
  229. <idleImage>image/POPUP_LOADING_01.png</idleImage>
  230. <idleImage>image/POPUP_LOADING_02.png</idleImage>
  231. <idleImage>image/POPUP_LOADING_03.png</idleImage>
  232. <idleImage>image/POPUP_LOADING_04.png</idleImage>
  233. <idleImage>image/POPUP_LOADING_05.png</idleImage>
  234. <idleImage>image/POPUP_LOADING_06.png</idleImage>
  235. <idleImage>image/POPUP_LOADING_07.png</idleImage>
  236. <idleImage>image/POPUP_LOADING_08.png</idleImage>
  237. </mediaDisplay>
  238. <link>
  239. <script>getItemInfo(getQueryItemIndex(), "location");</script>
  240. </link>
  241. </item_template>
  242. <adultlink>
  243. <mediaDisplay name="photoView"/>
  244. <link>
  245. <?php echo $host; ?>/scripts/adult/adult1325.php
  246. </link>
  247. </adultlink>
  248. <adultpass>
  249. <mediaDisplay name="onePartView" />
  250. <link>
  251. /usr/local/etc/www/cgi-bin/scripts/adult/adult.rss
  252. </link>
  253. </adultpass>
  254. <destination>
  255. <link>http://127.0.0.1/cgi-bin/scripts/mini1.php</link>
  256. <mediaDisplay name="photoView"/>
  257. </destination>
  258. <channel>
  259. <title>HDD Links</title>
  260. <item>
  261. <link><?php echo $host; ?>/scripts/trailer/trailer.php</link>
  262. <title>Trailere filme şi jocuri</title>
  263. <annotation>Vedeţi aici ultimele trailere pentru filme sau jocuri...</annotation>
  264. <image>/scripts/image/trailerb.png</image>
  265. <mediaDisplay name="photoView"/>
  266. </item>
  267. <item>
  268. <link><?php echo $host; ?>/scripts/filme/filme.php</link>
  269. <title>Filme online subtitrate</title>
  270. <annotation>Vedeţi aici filme online cu subtitrare...</annotation>
  271. <image>/scripts/filme/image/movies.png</image>
  272. <mediaDisplay name="threePartsView"/>
  273. </item>
  274. <item>
  275. <link><?php echo $host; ?>/scripts/filme/seriale.php</link>
  276. <title>Seriale TV subtitrate</title>
  277. <annotation>Vedeţi aici seriale TV cu subtitrare...</annotation>
  278. <image>/scripts/filme/image/series.png</image>
  279. <mediaDisplay name="threePartsView"/>
  280. </item>
  281. <item>
  282. <link><?php echo $host; ?>/scripts/filme/desene.php</link>
  283. <title>Pentru copii...</title>
  284. <annotation>Pentru copii avem desene animate, povesti...</annotation>
  285. <image>/scripts/filme/image/desene.png</image>
  286. <mediaDisplay name="threePartsView"/>
  287. </item>
  288. <item>
  289. <link><?php echo $host; ?>/scripts/clip/clip.php</link>
  290. <title>Videoclipuri şi altele</title>
  291. <annotation>Filmuleţe nostime, clipuri video şi altele</annotation>
  292. <image>/scripts/image/videoclip.png</image>
  293. <mediaDisplay name="photoView"/>
  294. </item>
  295. <item>
  296. <link><?php echo $host; ?>/scripts/news/news.php</link>
  297. <title>Ştiri şi alte informaţii</title>
  298. <annotation>Vezi orarul serialelor, cursul valutar sau alte informaţii utile</annotation>
  299. <image>/scripts/news/image/news.png</image>
  300. <mediaDisplay name="photoView"/>
  301. </item>
  302. <item>
  303. <link><?php echo $host; ?>/scripts/tv/tv_radio.php</link>
  304. <title>TV, Radio şi emisiuni Inregistrate</title>
  305. <annotation>Ascultă sau vezi postul tău de radio sau TV favorit. Ai ratat o emisiune? Aici poţi s-o găseşti!</annotation>
  306. <image>/scripts/image/tv_radio.png</image>
  307. <mediaDisplay name="photoView"/>
  308. </item>
  309. <item>
  310. <link><?php echo $host; ?>/scripts/user/users.php</link>
  311. <title>Conturi personale metafeeds</title>
  312. <annotation>Ai un cont pe metafeeds? Aici putem -l adăugăm!</annotation>
  313. <image>/scripts/image/users.png</image>
  314. <mediaDisplay name="threePartsView"/>
  315. </item>
  316. <item>
  317. <link>rss_command://search</link>
  318. <search url="<?php echo $host; ?>/scripts/adult/adult%s.php" />
  319. <title>Canal adulţi</title>
  320. <annotation>Numai pentru 18++! Necesită parolă. Intră pe http://forum.softpedia.com/index.php?showforum=14 pentru mai multe informaţii</annotation>
  321. <image>/scripts/image/adult.png</image>
  322. <mediaDisplay name="photoView"/>
  323. </item>
  324. <!--
  325. <item>
  326. <link><?php echo $host; ?>/scripts/util/system.php</link>
  327. <title>Utilitare player</title>
  328. <annotation>Pornire-Oprire sever FTP, redenumire fişiere si alte unelte utile.</annotation>
  329. <image>/scripts/image/system.png</image>
  330. <mediaDisplay name="threePartsView"/>
  331. </item>
  332. -->
  333. </channel>
  334. </rss>