PageRenderTime 50ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/scripts/feeds/scripts_vb6/scripts/clip/clip.php

http://eboda-hd-for-all-500.googlecode.com/
PHP | 493 lines | 459 code | 34 blank | 0 comment | 86 complexity | f877f6319da2ef7d0b3d8a1982adc798 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. </onEnter>
  9. <onRefresh>
  10. setRefreshTime(-1);
  11. itemCount = getPageInfo("itemCount");
  12. middleItem = Integer(itemCount / 2);
  13. redrawDisplay();
  14. </onRefresh>
  15. <mediaDisplay name=photoView
  16. centerXPC=7
  17. centerYPC=25
  18. centerHeightPC=40
  19. columnCount=5
  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. idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10">
  35. <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255">
  36. <script>getPageInfo("pageTitle");</script>
  37. </text>
  38. <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205">
  39. <script>sprintf("%s / ", focus-(-1))+itemCount;</script>
  40. </text>
  41. <!-- lines="5" fontSize=15 -->
  42. <text align="center" redraw="yes"
  43. lines=3 fontSize=17
  44. offsetXPC=5 offsetYPC=65 widthPC=90 heightPC=20
  45. backgroundColor=0:0:0 foregroundColor=120:120:120>
  46. <script>print(annotation); annotation;</script>
  47. </text>
  48. <text align="center" redraw="yes" offsetXPC=10 offsetYPC=85 widthPC=80 heightPC=10 fontSize=15 backgroundColor=0:0:0 foregroundColor=75:75:75>
  49. <script>print(location); location;</script>
  50. </text>
  51. <idleImage>image/POPUP_LOADING_01.png</idleImage>
  52. <idleImage>image/POPUP_LOADING_02.png</idleImage>
  53. <idleImage>image/POPUP_LOADING_03.png</idleImage>
  54. <idleImage>image/POPUP_LOADING_04.png</idleImage>
  55. <idleImage>image/POPUP_LOADING_05.png</idleImage>
  56. <idleImage>image/POPUP_LOADING_06.png</idleImage>
  57. <idleImage>image/POPUP_LOADING_07.png</idleImage>
  58. <idleImage>image/POPUP_LOADING_08.png</idleImage>
  59. <itemDisplay>
  60. <image>
  61. <script>
  62. idx = getQueryItemIndex();
  63. focus = getFocusItemIndex();
  64. if(focus==idx)
  65. {
  66. location = getItemInfo(idx, "location");
  67. annotation = getItemInfo(idx, "annotation");
  68. }
  69. getItemInfo(idx, "image");
  70. </script>
  71. <offsetXPC>
  72. <script>
  73. idx = getQueryItemIndex();
  74. focus = getFocusItemIndex();
  75. if(focus==idx) 0; else 12;
  76. </script>
  77. </offsetXPC>
  78. <offsetYPC>
  79. <script>
  80. idx = getQueryItemIndex();
  81. focus = getFocusItemIndex();
  82. if(focus==idx) 0; else 6;
  83. </script>
  84. </offsetYPC>
  85. <widthPC>
  86. <script>
  87. idx = getQueryItemIndex();
  88. focus = getFocusItemIndex();
  89. if(focus==idx) 100; else 75;
  90. </script>
  91. </widthPC>
  92. <heightPC>
  93. <script>
  94. idx = getQueryItemIndex();
  95. focus = getFocusItemIndex();
  96. if(focus==idx) 50; else 37;
  97. </script>
  98. </heightPC>
  99. </image>
  100. <text align="center" lines="4" offsetXPC=0 offsetYPC=55 widthPC=100 heightPC=45 backgroundColor=-1:-1:-1>
  101. <script>
  102. idx = getQueryItemIndex();
  103. getItemInfo(idx, "title");
  104. </script>
  105. <fontSize>
  106. <script>
  107. idx = getQueryItemIndex();
  108. focus = getFocusItemIndex();
  109. if(focus==idx) "18"; else "14";
  110. </script>
  111. </fontSize>
  112. <foregroundColor>
  113. <script>
  114. idx = getQueryItemIndex();
  115. focus = getFocusItemIndex();
  116. if(focus==idx) "255:255:255"; else "75:75:75";
  117. </script>
  118. </foregroundColor>
  119. </text>
  120. </itemDisplay>
  121. <onUserInput>
  122. <script>
  123. ret = "false";
  124. userInput = currentUserInput();
  125. majorContext = getPageInfo("majorContext");
  126. print("*** majorContext=",majorContext);
  127. print("*** userInput=",userInput);
  128. if(userInput == "one" || userInput == "1")
  129. {
  130. if(itemCount &gt;= 1)
  131. {
  132. setFocusItemIndex(0);
  133. redrawDisplay();
  134. }
  135. }
  136. else if(userInput == "two" || userInput == "2")
  137. {
  138. if(itemCount &gt;= 2)
  139. {
  140. setFocusItemIndex(1);
  141. redrawDisplay();
  142. }
  143. }
  144. else if(userInput == "three" || userInput == "3")
  145. {
  146. if(itemCount &gt;= 3)
  147. {
  148. setFocusItemIndex(2);
  149. redrawDisplay();
  150. }
  151. }
  152. else if(userInput == "four" || userInput == "4")
  153. {
  154. if(itemCount &gt;= 4)
  155. {
  156. setFocusItemIndex(3);
  157. redrawDisplay();
  158. }
  159. }
  160. else if(userInput == "five" || userInput == "5")
  161. {
  162. if(itemCount &gt;= 5)
  163. {
  164. setFocusItemIndex(4);
  165. redrawDisplay();
  166. }
  167. }
  168. else if(userInput == "six" || userInput == "6")
  169. {
  170. if(itemCount &gt;= 6)
  171. {
  172. setFocusItemIndex(5);
  173. redrawDisplay();
  174. }
  175. }
  176. else if(userInput == "seven" || userInput == "7")
  177. {
  178. if(itemCount &gt;= 7)
  179. {
  180. setFocusItemIndex(6);
  181. redrawDisplay();
  182. }
  183. }
  184. else if(userInput == "eight" || userInput == "8")
  185. {
  186. if(itemCount &gt;= 8)
  187. {
  188. setFocusItemIndex(7);
  189. redrawDisplay();
  190. }
  191. }
  192. else if(userInput == "nine" || userInput == "9")
  193. {
  194. if(itemCount &gt;= 9)
  195. {
  196. setFocusItemIndex(8);
  197. redrawDisplay();
  198. }
  199. }
  200. if(userInput == "zero" || userInput == "0")
  201. {
  202. if(itemCount &gt;= 10)
  203. {
  204. setFocusItemIndex(9);
  205. redrawDisplay();
  206. }
  207. }
  208. else if (userInput == "pagedown" || userInput == "pageup" || userInput == "PD" || userInput == "PG")
  209. {
  210. itemSize = getPageInfo("itemCount");
  211. idx = Integer(getFocusItemIndex());
  212. if (userInput == "pagedown")
  213. {
  214. idx -= -5;
  215. if(idx &gt;= itemSize)
  216. idx = itemSize-1;
  217. }
  218. else
  219. {
  220. idx -= 5;
  221. if(idx &lt; 0)
  222. idx = 0;
  223. }
  224. setFocusItemIndex(idx);
  225. setItemFocus(idx);
  226. redrawDisplay();
  227. ret = "true";
  228. }
  229. ret;
  230. </script>
  231. </onUserInput>
  232. </mediaDisplay>
  233. <item_template>
  234. <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10">
  235. <idleImage>image/POPUP_LOADING_01.png</idleImage>
  236. <idleImage>image/POPUP_LOADING_02.png</idleImage>
  237. <idleImage>image/POPUP_LOADING_03.png</idleImage>
  238. <idleImage>image/POPUP_LOADING_04.png</idleImage>
  239. <idleImage>image/POPUP_LOADING_05.png</idleImage>
  240. <idleImage>image/POPUP_LOADING_06.png</idleImage>
  241. <idleImage>image/POPUP_LOADING_07.png</idleImage>
  242. <idleImage>image/POPUP_LOADING_08.png</idleImage>
  243. </mediaDisplay>
  244. </item_template>
  245. <channel>
  246. <title>Videoclipuri</title>
  247. <item>
  248. <title>Vimeo</title>
  249. <link><?php echo $host; ?>/scripts/clip/php/vimeo_cat.php</link>
  250. <location>http://vimeo.com/</location>
  251. <image>/scripts/clip/image/vimeo.jpg</image>
  252. <media:thumbnail url="/scripts/clip/image/vimeo.jpg" />
  253. <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 in the universe.</annotation>
  254. </item>
  255. <item>
  256. <title>Dailymotion</title>
  257. <link><?php echo $host; ?>/scripts/clip/dm.php</link>
  258. <location>http://www.dailymotion.com</location>
  259. <image>/scripts/clip/image/dailymotion.png</image>
  260. <media:thumbnail url="/scripts/clip/image/dailymotion.png" />
  261. <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 about your interests and hobbies, eyewitness accounts of recent news and distant places, and everything else from the strange to the spectacular.</annotation>
  262. </item>
  263. <item>
  264. <title>Youtube</title>
  265. <link>rss_file:///scripts/clip/youtube/yt_index.rss</link>
  266. <location>http://youtube.com</location>
  267. <image>/scripts/image/youtube.gif</image>
  268. <media:thumbnail url="image/youtube.gif" />
  269. <annotation>YouTube este un loc în care puteti descoperi, urmări, încărca si distribui videoclipuri.</annotation>
  270. <mediaDisplay name="onePartView" />
  271. </item>
  272. <!--
  273. <item>
  274. <title>Youtube user uploads</title>
  275. <link>rss_command://search</link>
  276. <location>http://youtube.com</location>
  277. <search url="<?php echo $host; ?>/scripts/php1/youtube_user.php?query=1,%s" />
  278. <image>/scripts/image/youtube.gif</image>
  279. <media:thumbnail url="image/youtube.gif" />
  280. <annotation>ƒutare videoclipuri postate pe youtube de ƒtre....</annotation>
  281. </item>
  282. -->
  283. <item>
  284. <title>220.ro</title>
  285. <link><?php echo $host; ?>/scripts/clip/220.php</link>
  286. <location>http://www.220.ro/</location>
  287. <image>/scripts/clip/image/220.jpg</image>
  288. <media:thumbnail url="/scripts/clip/image/220.jpg" />
  289. <annotation>220.ro este una dintre cele mai interesante destinatii online pentru divertisment de calitate si noutati din toate domeniile, un site ce ofera materiale unice si nu numai. Totodata, 220.ro este si o comunitate de sharing video unde oricine poate uploada un material pentru a-l trimite mai apoi si prietenilor. In plus, Internetul naste din cand in cand si vedete. Tu poti fi una dintre ele.</annotation>
  290. </item>
  291. <!--
  292. <item>
  293. <title>videonews</title>
  294. <link><?php echo $host; ?>/scripts/clip/php/videonews_tv.php</link>
  295. <location>http://videonews.antena3.ro/action/videolist/tv/</location>
  296. <image>/scripts/clip/image/videonews.jpg</image>
  297. <media:thumbnail url="/scripts/clip/image/videonews.jpg" />
  298. <annotation>Dacă aţi surprins un eveniment, ceva important sau neobişnuit, uploadaţi imaginile pe Videonews. Materialele voastre pot deveni ştiri pe Antena3.ro sau în jurnalele Antenei 3, iar cele mai bune materiale primite vor fi premiate.</annotation>
  299. </item>
  300. -->
  301. <item>
  302. <title>peteava.ro</title>
  303. <link><?php echo $host; ?>/scripts/clip/peteava_main.php</link>
  304. <location>http://www.peteava.ro/</location>
  305. <image>/scripts/clip/image/peteava.png</image>
  306. <media:thumbnail url="/scripts/clip/image/peteava.png" />
  307. <annotation>Poti incarca 50 de clipuri video si / sau imagini simultan, iar clipurile video pot avea 1 GB sau 50 min.</annotation>
  308. </item>
  309. <item>
  310. <title>ViataLaServiciu</title>
  311. <link><?php echo $host; ?>/scripts/clip/php/viatalaserviciu.php</link>
  312. <location>http://www.viatalaserviciu.ro/</location>
  313. <image>/scripts/clip/image/viatalaserviciu.gif</image>
  314. <media:thumbnail url="/scripts/clip/image/viatalaserviciu.gif" />
  315. <annotation>Ne petrecem la job mai mult de jumatate din timpul nostru activ. Mincam, facem febra, avem aventuri, fumam o tigara, citim ziare online, muncim, ne certam, ne simpatizam, flirtam, ne uitam pe geam, fugim sa luam o piine de la supermarket – facem toate aceste lucruri la serviciu. Avem o viata la serviciu.</annotation>
  316. </item>
  317. <item>
  318. <title>VideoAlegeNet</title>
  319. <link><?php echo $host; ?>/scripts/clip/php/video_alege_net.php?query=0,http://video.alege.net/c-filme-noi-ro-</link>
  320. <location>http://video.alege.net</location>
  321. <image>/scripts/image/videoclip.png</image>
  322. <media:thumbnail url="image/videoclip.png" />
  323. <annotation>Azi va recomandam urmatoarele filme...</annotation>
  324. </item>
  325. <item>
  326. <title>CancanTV</title>
  327. <link><?php echo $host; ?>/scripts/clip/php/cancan.php</link>
  328. <location>http://www.cancan.ro/</location>
  329. <image>/scripts/clip/image/cancan.jpg</image>
  330. <media:thumbnail url="/scripts/clip/image/cancan.jpg" />
  331. <annotation>Ai un pont? Trimite acum un e-mail la pont@cancan.ro</annotation>
  332. </item>
  333. <item>
  334. <title>youclubvideo</title>
  335. <link><?php echo $host; ?>/scripts/clip/php/youclubvideo.php</link>
  336. <location>http://www.youclubvideo.com</location>
  337. <image>/scripts/clip/image/youclubvideo.png</image>
  338. <media:thumbnail url="/scripts/clip/image/youclubvideo.png" />
  339. <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>
  340. </item>
  341. <item>
  342. <title>almanahe.ro</title>
  343. <link><?php echo $host; ?>/scripts/clip/php/almanahe.php</link>
  344. <location>http://www.almanahe.ro/</location>
  345. <image>/scripts/clip/image/almanahe.png</image>
  346. <media:thumbnail url="/scripts/clip/image/almanahe.png" />
  347. <annotation>Ideea proiectului almanahe.ro dateaza din anul de gratie 2007 ( luna noiembrie cred ) cand domnul Vanghelie a dat duma': " Sa se duca dracu' la munca, sa puna mana sa citeasca niste almanahe, almanahe! " si asta a fost DECLICK-UL.</annotation>
  348. </item>
  349. <item>
  350. <title>Tare.ro</title>
  351. <link><?php echo $host; ?>/scripts/clip/php/tare.php</link>
  352. <location>http://www.tare.ro/</location>
  353. <image>/scripts/clip/image/tare.png</image>
  354. <media:thumbnail url="/scripts/clip/image/tare.png" />
  355. <annotation>Cele mai tari clipuri ale zilei</annotation>
  356. </item>
  357. <item>
  358. <title>www.sanchi.ro</title>
  359. <link><?php echo $host; ?>/scripts/clip/php/sanchi.php</link>
  360. <location>http://www.sanchi.ro/</location>
  361. <image>/scripts/clip/image/sanchi.jpg</image>
  362. <media:thumbnail url="/scripts/clip/image/sanchi.jpg" />
  363. <annotation>sanchi.ro Pastila ta de buna dispozitie!</annotation>
  364. </item>
  365. <item>
  366. <title>myvideo.ro</title>
  367. <link><?php echo $host; ?>/scripts/clip/php/myvideo.php</link>
  368. <location>http://www.myvideo.ro/</location>
  369. <image>/scripts/clip/image/myvideo.gif</image>
  370. <media:thumbnail url="/scripts/clip/image/myvideo.gif" />
  371. <annotation>Noi de la MyVideo iubim filmuletele haioase! Şi tu? Atunci ajută-ne ƒ facem ca marea comunitate MyVideo ƒ crească şi mai mare! Mii de filmulete Ÿteaptă deja ƒ fie ƒsite, vizionate, votate, comentate şi trimise. Şi pe zi ce trece devin mai multe.</annotation>
  372. </item>
  373. <item>
  374. <title>dump.ro</title>
  375. <link><?php echo $host; ?>/scripts/clip/php/dump.php</link>
  376. <location>http://dump.ro/</location>
  377. <image>/scripts/clip/image/dump.jpg</image>
  378. <media:thumbnail url="/scripts/clip/image/dump.jpg" />
  379. <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>
  380. </item>
  381. <item>
  382. <title>BlipTV</title>
  383. <link><?php echo $host; ?>/scripts/clip/bliptv.php</link>
  384. <location>http://blip.tv/</location>
  385. <image>/scripts/clip/image/blip_tv.jpg</image>
  386. <media:thumbnail url="/scripts/clip/image/blip_tv.jpg" />
  387. <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>
  388. </item>
  389. <item>
  390. <title>Best of YouTube (iPod video)</title>
  391. <link>http://feeds.feedburner.com/boyt</link>
  392. <location>http://feeds.feedburner.com/boyt</location>
  393. <image>/scripts/clip/image/bestofyoutube.jpg</image>
  394. <media:thumbnail url="/scripts/clip/image/bestofyoutube.jpg" />
  395. <annotation>The best video clips from YouTube delivered directly to your iPod</annotation>
  396. <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">
  397. <idleImage>image/POPUP_LOADING_01.png</idleImage>
  398. <idleImage>image/POPUP_LOADING_02.png</idleImage>
  399. <idleImage>image/POPUP_LOADING_03.png</idleImage>
  400. <idleImage>image/POPUP_LOADING_04.png</idleImage>
  401. <idleImage>image/POPUP_LOADING_05.png</idleImage>
  402. <idleImage>image/POPUP_LOADING_06.png</idleImage>
  403. <idleImage>image/POPUP_LOADING_07.png</idleImage>
  404. <idleImage>image/POPUP_LOADING_08.png</idleImage>
  405. <backgroundDisplay>
  406. <image offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100>
  407. image/mele/backgd.jpg
  408. </image>
  409. </backgroundDisplay>
  410. <image offsetXPC=0 offsetYPC=2.8 widthPC=100 heightPC=15.6>
  411. image/mele/rss_title.jpg
  412. </image>
  413. <text offsetXPC=40 offsetYPC=8 widthPC=35 heightPC=10 fontSize=20 backgroundColor=-1:-1:-1 foregroundColor=255:255:255>
  414. Best of YouTube
  415. </text>
  416. </mediaDisplay>
  417. </item>
  418. <item>
  419. <title>Revision3</title>
  420. <link><?php echo $host; ?>/scripts/tv/rev3.php</link>
  421. <media:thumbnail url="/scripts/tv/image/revision3.gif" />
  422. <image>/scripts/tv/image/revision3.gif</image>
  423. <location>http://revision3.com/</location>
  424. <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>
  425. </item>
  426. <item>
  427. <title>Video Podcast from SDK4</title>
  428. <link>/scripts/clip/videopodcast.rss</link>
  429. <location></location>
  430. <image>/scripts/user/image/metafeeds.jpg</image>
  431. <media:thumbnail url="/scripts/user/image/metafeeds.jpg" />
  432. <annotation>Video Podcast from SDK4</annotation>
  433. </item>
  434. <item>
  435. <title>HD Podcast</title>
  436. <link><?php echo $host; ?>/scripts/clip/php/podcasthd.php</link>
  437. <location>http://www.podcast.tv/high-definition-video-podcasts.html</location>
  438. <image>/usr/local/etc/www/cgi-bin/scripts/clip/image/podcast.png</image>
  439. <media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/podcast.png" />
  440. <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>
  441. </item>
  442. <item>
  443. <title>Video Podcast Directory</title>
  444. <link><?php echo $host; ?>/scripts/clip/php/videopodcasts_main.php</link>
  445. <location>http://www.videopodcasts.tv/</location>
  446. <image>/scripts/clip/image/videopodcasts.gif</image>
  447. <media:thumbnail url="/scripts/clip/image/videopodcasts.gif" />
  448. <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>
  449. </item>
  450. <item>
  451. <title>podcastalley</title>
  452. <link><?php echo $host; ?>/scripts/clip/php/podcastalley_main.php</link>
  453. <location>http://www.podcastalley.com/index.php</location>
  454. <image>/scripts/clip/image/podcastalley.gif</image>
  455. <media:thumbnail url="/scripts/clip/image/podcastalley.gif" />
  456. <annotation>Podcast Alley is the podcast lovers portal. Featuring the best Podcast Directory and the Top 10 podcasts, as voted on by the listeners.</annotation>
  457. </item>
  458. </channel>
  459. </rss>