PageRenderTime 19ms CodeModel.GetById 2ms app.highlight 12ms 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
  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
 10<onRefresh>
 11  setRefreshTime(-1);
 12  itemCount = getPageInfo("itemCount");
 13  middleItem = Integer(itemCount / 2);
 14  redrawDisplay();
 15</onRefresh>
 16
 17	<mediaDisplay name=photoView 
 18	  centerXPC=7 
 19		centerYPC=25
 20		centerHeightPC=40
 21columnCount=5
 22	  rowCount=1
 23		menuBorderColor="55:55:55"
 24		sideColorBottom="0:0:0"
 25		sideColorTop="0:0:0"
 26	  backgroundColor="0:0:0"
 27		imageBorderColor="0:0:0"
 28		itemBackgroundColor="0:0:0"
 29		itemGapXPC=0
 30		itemGapYPC=1
 31		sideTopHeightPC=22
 32		bottomYPC=85
 33		sliding=yes
 34		showHeader=no
 35		showDefaultInfo=no
 36		idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10">
 37		
 38  	<text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255">
 39		  <script>getPageInfo("pageTitle");</script>
 40		</text>
 41
 42  	<text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205">
 43		  <script>sprintf("%s / ", focus-(-1))+itemCount;</script>
 44		</text>
 45
 46		<!--  lines="5" fontSize=15 -->
 47		<text align="center" redraw="yes" 
 48  lines=3 fontSize=17
 49		      offsetXPC=5 offsetYPC=65 widthPC=90 heightPC=20 
 50		      backgroundColor=0:0:0 foregroundColor=120:120:120>
 51			<script>print(annotation); annotation;</script>
 52		</text>
 53		
 54		<text align="center" redraw="yes" offsetXPC=10 offsetYPC=85 widthPC=80 heightPC=10 fontSize=15 backgroundColor=0:0:0 foregroundColor=75:75:75>
 55			<script>print(location); location;</script>
 56		</text>
 57        <idleImage>image/POPUP_LOADING_01.png</idleImage>
 58        <idleImage>image/POPUP_LOADING_02.png</idleImage>
 59        <idleImage>image/POPUP_LOADING_03.png</idleImage>
 60        <idleImage>image/POPUP_LOADING_04.png</idleImage>
 61        <idleImage>image/POPUP_LOADING_05.png</idleImage>
 62        <idleImage>image/POPUP_LOADING_06.png</idleImage>
 63        <idleImage>image/POPUP_LOADING_07.png</idleImage>
 64        <idleImage>image/POPUP_LOADING_08.png</idleImage>
 65		<itemDisplay>
 66			<image>
 67				<script>
 68					idx = getQueryItemIndex();
 69					focus = getFocusItemIndex();
 70					if(focus==idx) 
 71					{
 72					  location = getItemInfo(idx, "location");
 73					  annotation = getItemInfo(idx, "annotation");
 74					}
 75					getItemInfo(idx, "image");
 76				</script>
 77			 <offsetXPC>
 78			   <script>
 79					idx = getQueryItemIndex();
 80					focus = getFocusItemIndex();
 81			    if(focus==idx) 0; else 12;
 82			   </script>
 83			 </offsetXPC>
 84			 <offsetYPC>
 85			   <script>
 86					idx = getQueryItemIndex();
 87					focus = getFocusItemIndex();
 88			    if(focus==idx) 0; else 6;
 89			   </script>
 90			 </offsetYPC>
 91			 <widthPC>
 92			   <script>
 93					idx = getQueryItemIndex();
 94					focus = getFocusItemIndex();
 95			    if(focus==idx) 100; else 75;
 96			   </script>
 97			 </widthPC>
 98			 <heightPC>
 99			   <script>
100					idx = getQueryItemIndex();
101					focus = getFocusItemIndex();
102			    if(focus==idx) 50; else 37;
103			   </script>
104			 </heightPC>
105			</image>
106			
107			<text align="center" lines="4" offsetXPC=0 offsetYPC=55 widthPC=100 heightPC=45 backgroundColor=-1:-1:-1>
108				<script>
109					idx = getQueryItemIndex();
110					getItemInfo(idx, "title");
111				</script>
112				<fontSize>
113  				<script>
114  					idx = getQueryItemIndex();
115  					focus = getFocusItemIndex();
116  			    if(focus==idx) "18"; else "14";
117  				</script>
118				</fontSize>
119			  <foregroundColor>
120  				<script>
121  					idx = getQueryItemIndex();
122  					focus = getFocusItemIndex();
123  			    if(focus==idx) "255:255:255"; else "75:75:75";
124  				</script>
125			  </foregroundColor>
126			</text>
127
128		</itemDisplay>
129		
130  <onUserInput>
131    <script>
132      ret = "false";
133      userInput = currentUserInput();
134      majorContext = getPageInfo("majorContext");
135
136      print("*** majorContext=",majorContext);
137      print("*** userInput=",userInput);
138
139      if(userInput == "one" || userInput == "1")
140      {
141        if(itemCount &gt;= 1)
142        {
143          setFocusItemIndex(0);
144          redrawDisplay();
145        }
146      }
147      else if(userInput == "two" || userInput == "2")
148      {
149        if(itemCount &gt;= 2)
150        {
151          setFocusItemIndex(1);
152          redrawDisplay();
153        }
154      }
155      else if(userInput == "three" || userInput == "3")
156      {
157        if(itemCount &gt;= 3)
158        {
159          setFocusItemIndex(2);
160          redrawDisplay();
161        }
162      }
163      else if(userInput == "four" || userInput == "4")
164      {
165        if(itemCount &gt;= 4)
166        {
167          setFocusItemIndex(3);
168          redrawDisplay();
169        }
170      }
171      else if(userInput == "five" || userInput == "5")
172      {
173        if(itemCount &gt;= 5)
174        {
175          setFocusItemIndex(4);
176          redrawDisplay();
177        }
178      }
179      else if(userInput == "six" || userInput == "6")
180      {
181        if(itemCount &gt;= 6)
182        {
183          setFocusItemIndex(5);
184          redrawDisplay();
185        }
186      }
187      else if(userInput == "seven" || userInput == "7")
188      {
189        if(itemCount &gt;= 7)
190        {
191          setFocusItemIndex(6);
192          redrawDisplay();
193        }
194      }
195      else if(userInput == "eight" || userInput == "8")
196      {
197        if(itemCount &gt;= 8)
198        {
199          setFocusItemIndex(7);
200          redrawDisplay();
201        }
202      }
203      else if(userInput == "nine" || userInput == "9")
204      {
205        if(itemCount &gt;= 9)
206        {
207          setFocusItemIndex(8);
208          redrawDisplay();
209        }
210      }
211      if(userInput == "zero" || userInput == "0")
212      {
213        if(itemCount &gt;= 10)
214        {
215          setFocusItemIndex(9);
216          redrawDisplay();
217        }
218      }
219      else if (userInput == "pagedown" || userInput == "pageup" || userInput == "PD" || userInput == "PG")
220      {
221        itemSize = getPageInfo("itemCount");
222        idx = Integer(getFocusItemIndex());
223        if (userInput == "pagedown")
224        {
225          idx -= -5;
226          if(idx &gt;= itemSize)
227            idx = itemSize-1;
228        }
229        else
230        {
231          idx -= 5;
232          if(idx &lt; 0)
233            idx = 0;
234        }
235        setFocusItemIndex(idx);
236        setItemFocus(idx);
237        redrawDisplay();
238        ret = "true";
239      }
240
241      ret;
242    </script>
243  </onUserInput>
244		
245	</mediaDisplay>
246	
247	<item_template>
248		<mediaDisplay  name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10">
249        <idleImage>image/POPUP_LOADING_01.png</idleImage>
250        <idleImage>image/POPUP_LOADING_02.png</idleImage>
251        <idleImage>image/POPUP_LOADING_03.png</idleImage>
252        <idleImage>image/POPUP_LOADING_04.png</idleImage>
253        <idleImage>image/POPUP_LOADING_05.png</idleImage>
254        <idleImage>image/POPUP_LOADING_06.png</idleImage>
255        <idleImage>image/POPUP_LOADING_07.png</idleImage>
256        <idleImage>image/POPUP_LOADING_08.png</idleImage>
257		</mediaDisplay>
258
259	</item_template>
260
261<channel>
262<title>Videoclipuri</title>
263<item>
264<title>Vimeo</title>
265	<link><?php echo $host; ?>/scripts/clip/php/vimeo_cat.php</link>
266	<location>http://vimeo.com/</location>
267	<image>/scripts/clip/image/vimeo.jpg</image>
268	<media:thumbnail url="/scripts/clip/image/vimeo.jpg" />
269	<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>
270</item>	
271
272<item>
273<title>Dailymotion</title>
274	<link><?php echo $host; ?>/scripts/clip/dm.php</link>
275	<location>http://www.dailymotion.com</location>
276	<image>/scripts/clip/image/dailymotion.png</image>
277	<media:thumbnail url="/scripts/clip/image/dailymotion.png" />
278	<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>
279</item>
280
281<item>
282<title>Youtube</title>
283	<link>rss_file:///scripts/clip/youtube/yt_index.rss</link>
284	<location>http://youtube.com</location>
285	<image>/scripts/image/youtube.gif</image>
286	<media:thumbnail url="image/youtube.gif" />
287	<annotation>YouTube este un loc în care puteti descoperi, urmări, încărca si distribui videoclipuri.</annotation>
288	<mediaDisplay name="onePartView" />
289</item>
290<!--
291<item>
292<title>Youtube user uploads</title>
293	<link>rss_command://search</link>
294	<location>http://youtube.com</location>
295	<search url="<?php echo $host; ?>/scripts/php1/youtube_user.php?query=1,%s" />
296	<image>/scripts/image/youtube.gif</image>
297	<media:thumbnail url="image/youtube.gif" />
298	<annotation>Căutare videoclipuri postate pe youtube de către....</annotation>
299</item>
300-->
301<item>
302<title>220.ro</title>
303	<link><?php echo $host; ?>/scripts/clip/220.php</link>
304	<location>http://www.220.ro/</location>
305	<image>/scripts/clip/image/220.jpg</image>
306	<media:thumbnail url="/scripts/clip/image/220.jpg" />
307	<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>
308</item>
309<!--
310<item>
311<title>videonews</title>
312	<link><?php echo $host; ?>/scripts/clip/php/videonews_tv.php</link>
313	<location>http://videonews.antena3.ro/action/videolist/tv/</location>
314	<image>/scripts/clip/image/videonews.jpg</image>
315	<media:thumbnail url="/scripts/clip/image/videonews.jpg" />
316	<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>
317</item>
318-->
319<item>
320<title>peteava.ro</title>
321	<link><?php echo $host; ?>/scripts/clip/peteava_main.php</link>
322	<location>http://www.peteava.ro/</location>
323	<image>/scripts/clip/image/peteava.png</image>
324	<media:thumbnail url="/scripts/clip/image/peteava.png" />
325	<annotation>Poti incarca 50 de clipuri video si / sau imagini simultan, iar clipurile video pot avea 1 GB sau 50 min.</annotation>
326</item>
327
328<item>
329<title>ViataLaServiciu</title>
330	<link><?php echo $host; ?>/scripts/clip/php/viatalaserviciu.php</link>
331	<location>http://www.viatalaserviciu.ro/</location>
332	<image>/scripts/clip/image/viatalaserviciu.gif</image>
333	<media:thumbnail url="/scripts/clip/image/viatalaserviciu.gif" />
334	<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>
335</item>
336
337<item>
338<title>VideoAlegeNet</title>
339	<link><?php echo $host; ?>/scripts/clip/php/video_alege_net.php?query=0,http://video.alege.net/c-filme-noi-ro-</link>
340	<location>http://video.alege.net</location>
341	<image>/scripts/image/videoclip.png</image>
342	<media:thumbnail url="image/videoclip.png" />
343	<annotation>Azi va recomandam urmatoarele filme...</annotation>
344</item>
345
346<item>
347<title>CancanTV</title>
348	<link><?php echo $host; ?>/scripts/clip/php/cancan.php</link>
349	<location>http://www.cancan.ro/</location>
350	<image>/scripts/clip/image/cancan.jpg</image>
351	<media:thumbnail url="/scripts/clip/image/cancan.jpg" />
352	<annotation>Ai un pont? Trimite acum un e-mail la pont@cancan.ro</annotation>
353</item>
354
355<item>
356<title>youclubvideo</title>
357	<link><?php echo $host; ?>/scripts/clip/php/youclubvideo.php</link>
358	<location>http://www.youclubvideo.com</location>
359	<image>/scripts/clip/image/youclubvideo.png</image>
360	<media:thumbnail url="/scripts/clip/image/youclubvideo.png" />
361	<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>
362</item>
363
364<item>
365<title>almanahe.ro</title>
366	<link><?php echo $host; ?>/scripts/clip/php/almanahe.php</link>
367	<location>http://www.almanahe.ro/</location>
368	<image>/scripts/clip/image/almanahe.png</image>
369	<media:thumbnail url="/scripts/clip/image/almanahe.png" />
370	<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>
371</item>
372
373<item>
374<title>Tare.ro</title>
375	<link><?php echo $host; ?>/scripts/clip/php/tare.php</link>
376	<location>http://www.tare.ro/</location>
377	<image>/scripts/clip/image/tare.png</image>
378	<media:thumbnail url="/scripts/clip/image/tare.png" />
379	<annotation>Cele mai tari clipuri ale zilei</annotation>
380</item>
381
382<item>
383<title>www.sanchi.ro</title>
384	<link><?php echo $host; ?>/scripts/clip/php/sanchi.php</link>
385	<location>http://www.sanchi.ro/</location>
386	<image>/scripts/clip/image/sanchi.jpg</image>
387	<media:thumbnail url="/scripts/clip/image/sanchi.jpg" />
388	<annotation>sanchi.ro Pastila ta de buna dispozitie!</annotation>
389</item>
390
391<item>
392<title>myvideo.ro</title>
393	<link><?php echo $host; ?>/scripts/clip/php/myvideo.php</link>
394	<location>http://www.myvideo.ro/</location>
395	<image>/scripts/clip/image/myvideo.gif</image>
396	<media:thumbnail url="/scripts/clip/image/myvideo.gif" />
397	<annotation>Noi de la MyVideo iubim filmuletele haioase! Şi tu? Atunci ajută-ne să facem ca marea comunitate MyVideo să crească şi mai mare! Mii de filmulete aşteaptă deja să fie găsite, vizionate, votate, comentate şi trimise. Şi pe zi ce trece devin mai multe.</annotation>
398</item>
399
400<item>
401<title>dump.ro</title>
402	<link><?php echo $host; ?>/scripts/clip/php/dump.php</link>
403	<location>http://dump.ro/</location>
404	<image>/scripts/clip/image/dump.jpg</image>
405	<media:thumbnail url="/scripts/clip/image/dump.jpg" />
406	<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>
407</item>
408
409<item>
410<title>BlipTV</title>
411	<link><?php echo $host; ?>/scripts/clip/bliptv.php</link>
412	<location>http://blip.tv/</location>
413	<image>/scripts/clip/image/blip_tv.jpg</image>
414	<media:thumbnail url="/scripts/clip/image/blip_tv.jpg" />
415	<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>
416</item>
417
418<item>
419<title>Best of YouTube (iPod video)</title>
420	<link>http://feeds.feedburner.com/boyt</link>
421	<location>http://feeds.feedburner.com/boyt</location>
422	<image>/scripts/clip/image/bestofyoutube.jpg</image>
423	<media:thumbnail url="/scripts/clip/image/bestofyoutube.jpg" />
424	<annotation>The best video clips from YouTube delivered directly to your iPod</annotation>
425    <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">
426        <idleImage>image/POPUP_LOADING_01.png</idleImage>
427        <idleImage>image/POPUP_LOADING_02.png</idleImage>
428        <idleImage>image/POPUP_LOADING_03.png</idleImage>
429        <idleImage>image/POPUP_LOADING_04.png</idleImage>
430        <idleImage>image/POPUP_LOADING_05.png</idleImage>
431        <idleImage>image/POPUP_LOADING_06.png</idleImage>
432        <idleImage>image/POPUP_LOADING_07.png</idleImage>
433        <idleImage>image/POPUP_LOADING_08.png</idleImage>
434		<backgroundDisplay>
435			<image  offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100>
436			image/mele/backgd.jpg
437			</image>
438		</backgroundDisplay>
439		<image  offsetXPC=0 offsetYPC=2.8 widthPC=100 heightPC=15.6>
440		image/mele/rss_title.jpg
441		</image>
442		<text  offsetXPC=40 offsetYPC=8 widthPC=35 heightPC=10 fontSize=20 backgroundColor=-1:-1:-1 foregroundColor=255:255:255>
443               Best of YouTube
444		</text>
445    </mediaDisplay>
446</item>
447<item>
448<title>Revision3</title>
449<link><?php echo $host; ?>/scripts/tv/rev3.php</link>
450<media:thumbnail url="/scripts/tv/image/revision3.gif" />
451<image>/scripts/tv/image/revision3.gif</image>
452<location>http://revision3.com/</location>
453<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>
454</item>
455
456<item>
457<title>Video Podcast from SDK4</title>
458	<link>/scripts/clip/videopodcast.rss</link>
459	<location></location>
460	<image>/scripts/user/image/metafeeds.jpg</image>
461	<media:thumbnail url="/scripts/user/image/metafeeds.jpg" />
462	<annotation>Video Podcast from SDK4</annotation>
463</item>
464
465<item>
466<title>HD Podcast</title>
467	<link><?php echo $host; ?>/scripts/clip/php/podcasthd.php</link>
468	<location>http://www.podcast.tv/high-definition-video-podcasts.html</location>
469	<image>/usr/local/etc/www/cgi-bin/scripts/clip/image/podcast.png</image>
470	<media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/podcast.png" />
471	<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>
472</item>
473
474<item>
475<title>Video Podcast Directory</title>
476	<link><?php echo $host; ?>/scripts/clip/php/videopodcasts_main.php</link>
477	<location>http://www.videopodcasts.tv/</location>
478	<image>/scripts/clip/image/videopodcasts.gif</image>
479	<media:thumbnail url="/scripts/clip/image/videopodcasts.gif" />
480	<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>
481</item>
482
483<item>
484<title>podcastalley</title>
485	<link><?php echo $host; ?>/scripts/clip/php/podcastalley_main.php</link>
486	<location>http://www.podcastalley.com/index.php</location>
487	<image>/scripts/clip/image/podcastalley.gif</image>
488	<media:thumbnail url="/scripts/clip/image/podcastalley.gif" />
489	<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>
490</item>
491
492</channel>
493</rss>