PageRenderTime 15ms CodeModel.GetById 8ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/mini1.php

https://code.google.com/p/hdforall/
PHP | 560 lines | 530 code | 29 blank | 1 comment | 103 complexity | 061b8fe41a1cf5933cac38c4c9227ea3 MD5 | raw file
  1#!/usr/local/bin/Resource/www/cgi-bin/php
  2<?php echo "<?xml version='1.0' encoding='UTF-8' ?>";
  3$host = "http://127.0.0.1/cgi-bin";
  4$p=$_SERVER['SCRIPT_FILENAME'];
  5$script_directory = substr($p, 0, strrpos($p, '/'));
  6$check_file=$script_directory."/filme/peteava.php";
  7$f_version=$script_directory."/version.txt";
  8if (file_exists($f_version)) {
  9  $curr_vers=trim(file_get_contents($script_directory."/version.txt"));
 10if (file_exists($check_file)) {
 11 $avb_vers=trim(file_get_contents("http://hdforall.googlecode.com/files/version.txt"));
 12} else {
 13 $avb_vers=trim(file_get_contents("http://hdforall.googlecode.com/files/version_mini.txt"));
 14}
 15if ($avb_vers <> $curr_vers) {
 16  $info = "O nou? versiune este disponibil? (".$avb_vers.")! Actualiza?i din meniul System Tools.";
 17} else {
 18  $info = "Sfat: Folosi?i tastele 1-9 sau PREV/NEXT pentru o navigare mai u?oar?.";
 19}
 20} else {
 21  $info = "Sfat: Folosi?i tastele 1-9 sau PREV/NEXT pentru o navigare mai u?oar?!";
 22}
 23$f = "/usr/local/bin/home_menu";
 24if (file_exists($f)) {
 25  $file = "/usr/local/etc/www/cgi-bin/scripts/util/videoRenderer.rss";
 26  $h=file_get_contents($file);
 27  if (strpos($h,"eboda") === false) {
 28    exec("cp /usr/local/etc/www/cgi-bin/scripts/filme/videoRenderer.rss /usr/local/etc/www/cgi-bin/scripts/util/videoRenderer.rss");
 29    exec("cp /usr/local/etc/www/cgi-bin/scripts/filme/videoRenderer_h.rss /usr/local/etc/www/cgi-bin/scripts/util/videoRenderer_h.rss");
 30  }
 31}
 32?>
 33<rss version="2.0">
 34<onEnter>
 35  showIdle();
 36  SetScreenSaverStatus("no");
 37  setRefreshTime(1);
 38</onEnter>
 39
 40<onRefresh>
 41  setRefreshTime(-1);
 42  itemCount = getPageInfo("itemCount");
 43  redrawDisplay();
 44</onRefresh>
 45
 46	<mediaDisplay name=photoView
 47	  centerXPC=7
 48		centerYPC=25
 49		centerHeightPC=60
 50		columnCount=5
 51	  rowCount=3
 52		menuBorderColor="55:55:55"
 53		sideColorBottom="0:0:0"
 54		sideColorTop="0:0:0"
 55	  backgroundColor="0:0:0"
 56		itemBackgroundColor="0:0:0"
 57		itemGapXPC=0
 58		itemGapYPC=0
 59		imageBorderColor="10:105:150"
 60		imageBorderPC="0"
 61		sideTopHeightPC=0
 62		bottomYPC=0
 63		sliding=yes
 64		showHeader=no
 65		showDefaultInfo=no
 66		idleImageWidthPC="8" idleImageHeightPC="10" idleImageXPC="80" idleImageYPC="10">
 67		<text align="left" offsetXPC=5 offsetYPC=5 widthPC=75 heightPC=5 fontSize=15 backgroundColor=0:0:0 foregroundColor=120:120:120>
 68   <?php echo $info; ?>
 69		</text>
 70<!--
 71<backgroundDisplay name=ims_guide_menu>
 72                <image offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100>
 73                        image/IMS_bg.fsp
 74                </image>
 75</backgroundDisplay>
 76-->
 77  	<text align="left" redraw="yes" useBackgroundSurface=yes offsetXPC="8" offsetYPC="15" widthPC="50" heightPC="8" fontSize="24" foregroundColor="100:200:255">
 78		  <script>print(hed); hed;</script>
 79		</text>
 80  	<text align="center" redraw="yes" lines=" 2" useBackgroundSurface=yes offsetXPC="8" offsetYPC="85" widthPC="84" heightPC="12" fontSize="17" foregroundColor="200:200:200">
 81		  <script>print(annotation); annotation;</script>
 82		</text>
 83  <image offsetXPC=0 offsetYPC=23 widthPC=100 heightPC=1>
 84		../etc/translate/rss/image/gradient_line.bmp
 85	</image>
 86
 87
 88        <idleImage>image/POPUP_LOADING_01.png</idleImage>
 89        <idleImage>image/POPUP_LOADING_02.png</idleImage>
 90        <idleImage>image/POPUP_LOADING_03.png</idleImage>
 91        <idleImage>image/POPUP_LOADING_04.png</idleImage>
 92        <idleImage>image/POPUP_LOADING_05.png</idleImage>
 93        <idleImage>image/POPUP_LOADING_06.png</idleImage>
 94        <idleImage>image/POPUP_LOADING_07.png</idleImage>
 95        <idleImage>image/POPUP_LOADING_08.png</idleImage>
 96		<itemDisplay>
 97			<image>
 98				<script>
 99					idx = getQueryItemIndex();
100					focus = getFocusItemIndex();
101					if(focus==idx)
102					{
103					  hed = getItemInfo(idx, "title");
104					  annotation = getItemInfo(idx, "annotation");
105					  getItemInfo(idx, "focus");
106					}
107					else
108					{
109					getItemInfo(idx, "unfocus");
110					}
111				</script>
112			 <offsetXPC>
113			   <script>
114					idx = getQueryItemIndex();
115					focus = getFocusItemIndex();
116			    if(focus==idx) 7.5; else 15;
117			   </script>
118			 </offsetXPC>
119			 <offsetYPC>
120			   <script>
121					idx = getQueryItemIndex();
122					focus = getFocusItemIndex();
123			    if(focus==idx) 0; else 10;
124			   </script>
125			 </offsetYPC>
126			 <widthPC>
127			   <script>
128					idx = getQueryItemIndex();
129					focus = getFocusItemIndex();
130			    if(focus==idx) 85; else 70;
131			   </script>
132			 </widthPC>
133			 <heightPC>
134			   <script>
135					idx = getQueryItemIndex();
136					focus = getFocusItemIndex();
137			    if(focus==idx) 80; else 70;
138			   </script>
139			 </heightPC>
140			</image>
141
142		</itemDisplay>
143
144  <onUserInput>
145    <script>
146      ret = "false";
147      userInput = currentUserInput();
148      majorContext = getPageInfo("majorContext");
149
150      print("*** majorContext=",majorContext);
151      print("*** userInput=",userInput);
152
153      if(userInput == "one" || userInput == "1")
154      {
155        if(itemCount &gt;= 1)
156        {
157          setFocusItemIndex(0);
158          redrawDisplay();
159        }
160      }
161      else if(userInput == "two" || userInput == "2")
162      {
163        if(itemCount &gt;= 2)
164        {
165          setFocusItemIndex(1);
166          redrawDisplay();
167        }
168      }
169      else if(userInput == "three" || userInput == "3")
170      {
171        if(itemCount &gt;= 3)
172        {
173          setFocusItemIndex(2);
174          redrawDisplay();
175        }
176      }
177      else if(userInput == "four" || userInput == "4")
178      {
179        if(itemCount &gt;= 4)
180        {
181          setFocusItemIndex(3);
182          redrawDisplay();
183        }
184      }
185      else if(userInput == "five" || userInput == "5")
186      {
187        if(itemCount &gt;= 5)
188        {
189          setFocusItemIndex(4);
190          redrawDisplay();
191        }
192      }
193      else if(userInput == "six" || userInput == "6")
194      {
195        if(itemCount &gt;= 6)
196        {
197          setFocusItemIndex(5);
198          redrawDisplay();
199        }
200      }
201      else if(userInput == "seven" || userInput == "7")
202      {
203        if(itemCount &gt;= 7)
204        {
205          setFocusItemIndex(6);
206          redrawDisplay();
207        }
208      }
209      else if(userInput == "eight" || userInput == "8")
210      {
211        if(itemCount &gt;= 8)
212        {
213          setFocusItemIndex(7);
214          redrawDisplay();
215        }
216      }
217      else if(userInput == "nine" || userInput == "9")
218      {
219        if(itemCount &gt;= 9)
220        {
221          setFocusItemIndex(8);
222          redrawDisplay();
223        }
224      }
225      if(userInput == "zero" || userInput == "0")
226      {
227        if(itemCount &gt;= 10)
228        {
229          setFocusItemIndex(9);
230          redrawDisplay();
231        }
232      }
233      else if (userInput == "pagedown" || userInput == "pageup" || userInput == "PD" || userInput == "PG")
234      {
235        itemSize = getPageInfo("itemCount");
236        idx = Integer(getFocusItemIndex());
237        if (userInput == "pagedown")
238        {
239          idx -= -4;
240          if(idx &gt;= itemSize)
241            idx = itemSize-1;
242        }
243        else
244        {
245          idx -= 4;
246          if(idx &lt; 0)
247            idx = 0;
248        }
249        setFocusItemIndex(idx);
250        setItemFocus(idx);
251        redrawDisplay();
252        ret = "true";
253      }
254
255      ret;
256    </script>
257  </onUserInput>
258
259	</mediaDisplay>
260
261
262<adultlink>
263<mediaDisplay name="photoView"/>
264<link>
265  <?php echo $host; ?>/scripts/adult/adult1325.php
266</link>
267</adultlink>
268<adultpass>
269<mediaDisplay name="onePartView" />
270<link>
271/usr/local/etc/www/cgi-bin/scripts/adult/adult.rss
272</link>
273</adultpass>
274<destination>
275<link>http://127.0.0.1/cgi-bin/scripts/mini1.php</link>
276<mediaDisplay name="photoView"/>
277</destination>
278<channel>
279    <title>HDD Links</title>
280
281<!-- 1 -->
282<item>
283<title>Filme online subtitrate</title>
284<onClick>
285<script>
286showIdle();
287"<?php echo $host; ?>/scripts/filme/filme.php";
288</script>
289</onClick>
290<focus>/usr/local/etc/www/cgi-bin/scripts/image/filme_focus.png</focus>
291<unfocus>/usr/local/etc/www/cgi-bin/scripts/image/filme_unfocus.png</unfocus>
292<annotation>Filme online traduse</annotation>
293</item>
294
295<!-- 2 -->
296<item>
297<title>TV Live</title>
298<onClick>
299<script>
300showIdle();
301"<?php echo $host; ?>/scripts/tv/tv_live.php";
302</script>
303</onClick>
304<focus>/usr/local/etc/www/cgi-bin/scripts/image/livetv_focus.png</focus>
305<unfocus>/usr/local/etc/www/cgi-bin/scripts/image/livetv_unfocus.png</unfocus>
306<annotation>Posturi TV din România ?i din alte ??ri. ?tiri, filme, muzic? sau sport</annotation>
307</item>
308
309<!-- 3 -->
310<item>
311<title>Posturi na?ionale</title>
312<onClick>
313<script>
314showIdle();
315"<?php echo $host; ?>/scripts/tv/nationale.php";
316</script>
317</onClick>
318<focus>/usr/local/etc/www/cgi-bin/scripts/image/nationale_focus.png</focus>
319<unfocus>/usr/local/etc/www/cgi-bin/scripts/image/nationale_unfocus.png</unfocus>
320<annotation>Înregistr?ri ale unor emisiuni TV emise de posturile na?ionale</annotation>
321</item>
322
323<!-- 4 - new line -->
324<item>
325<title>Seriale TV subtitrate</title>
326<onClick>
327<script>
328showIdle();
329"<?php echo $host; ?>/scripts/filme/seriale.php";
330</script>
331</onClick>
332<focus>/usr/local/etc/www/cgi-bin/scripts/image/seriale_focus.png</focus>
333<unfocus>/usr/local/etc/www/cgi-bin/scripts/image/seriale_unfocus.png</unfocus>
334<annotation>Seriale TV traduse</annotation>
335</item>
336
337<!-- 5 -->
338<item>
339<title>OneHD</title>
340<onClick>
341<script>
342showIdle();
343"<?php echo $host; ?>/scripts/tv/prahovahd.php";
344</script>
345</onClick>
346<focus>/usr/local/etc/www/cgi-bin/scripts/image/onehd_focus.png</focus>
347<unfocus>/usr/local/etc/www/cgi-bin/scripts/image/onehd_unfocus.png</unfocus>
348<annotation>One HD: concerte, divertisment, business, turism, experimente, disponibile în High Definition atât live cât ?i on-demand (VOD)</annotation>
349</item>
350
351<!-- 6 -->
352<item>
353<title>Radio Online</title>
354<onClick>
355<script>
356showIdle();
357"/usr/local/etc/www/cgi-bin/scripts/tv/radio.rss";
358</script>
359</onClick>
360<focus>/usr/local/etc/www/cgi-bin/scripts/image/radio_focus.png</focus>
361<unfocus>/usr/local/etc/www/cgi-bin/scripts/image/radio_unfocus.png</unfocus>
362<annotation>Posturi de radio</annotation>
363</item>
364
365<!-- 7 - new line -->
366<item>
367<title>Pentru copii</title>
368<onClick>
369<script>
370showIdle();
371"<?php echo $host; ?>/scripts/filme/desene.php";
372</script>
373</onClick>
374<focus>/usr/local/etc/www/cgi-bin/scripts/image/desene_focus.png</focus>
375<unfocus>/usr/local/etc/www/cgi-bin/scripts/image/desene_unfocus.png</unfocus>
376<annotation>Desene animate, filme, pove?ti</annotation>
377</item>
378
379<!-- 8 -->
380<item>
381<title>Conturi personale metafeeds</title>
382<onClick>
383<script>
384showIdle();
385"<?php echo $host; ?>/scripts/user/users.php";
386</script>
387</onClick>
388<focus>/usr/local/etc/www/cgi-bin/scripts/image/user_focus.png</focus>
389<unfocus>/usr/local/etc/www/cgi-bin/scripts/image/user_unfocus.png</unfocus>
390<annotation>Ai un cont pe metafeeds? Aici putem s?-l ad?ug?m!</annotation>
391</item>
392
393<!-- 9 -->
394<item>
395<title>?tiri ?i alte informa?ii</title>
396<onClick>
397<script>
398showIdle();
399"<?php echo $host; ?>/scripts/news/news.php";
400</script>
401</onClick>
402<focus>/usr/local/etc/www/cgi-bin/scripts/image/news_focus.png</focus>
403<unfocus>/usr/local/etc/www/cgi-bin/scripts/image/news_unfocus.png</unfocus>
404<annotation>Orarul serialelor, meteo, cursul valutar sau alte informa?ii</annotation>
405</item>
406<!-- 10 - new line -->
407<item>
408<title>Videoclipuri</title>
409<onClick>
410<script>
411showIdle();
412"<?php echo $host; ?>/scripts/clip/clip.php";
413</script>
414</onClick>
415<focus>/usr/local/etc/www/cgi-bin/scripts/image/videoclip_focus.png</focus>
416<unfocus>/usr/local/etc/www/cgi-bin/scripts/image/videoclip_unfocus.png</unfocus>
417<annotation>Filmule?e nostime, reale, clipuri video personale</annotation>
418</item>
419
420<!-- 11 -->
421<item>
422<title>Trailere filme ?i jocuri</title>
423<onClick>
424<script>
425showIdle();
426"<?php echo $host; ?>/scripts/trailer/trailer.php";
427</script>
428</onClick>
429<focus>/usr/local/etc/www/cgi-bin/scripts/image/trailer_focus.png</focus>
430<unfocus>/usr/local/etc/www/cgi-bin/scripts/image/trailer_unfocus.png</unfocus>
431<annotation>Ultimele trailere pentru filme sau jocuri</annotation>
432</item>
433
434<!-- 12 -->
435
436<item>
437<title>Emisiuni Sportive</title>
438<onClick>
439<script>
440showIdle();
441"<?php echo $host; ?>/scripts/tv/tv_sport.php";
442</script>
443</onClick>
444<focus>/usr/local/etc/www/cgi-bin/scripts/image/sport_focus.png</focus>
445<unfocus>/usr/local/etc/www/cgi-bin/scripts/image/sport_unfocus.png</unfocus>
446<annotation>Înregistr?ri evenimente sportive: fotbal ?i nu numai</annotation>
447</item>
448
449<!-- 13 - new line -->
450
451<?php
452$f="/usr/local/etc/xLive/repoman/05_08_2011.txt";
453if (file_exists($f)) {
454echo '
455<item>
456<title>repoman xLive</title>
457<link>/usr/local/etc/xLive/repoman/repoman.rss</link>
458<media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/php1/xlive.png" />
459<focus>/usr/local/etc/www/cgi-bin/scripts/image/xlive_focus.png</focus>
460<unfocus>/usr/local/etc/www/cgi-bin/scripts/image/xlive_unfocus.png</unfocus>
461<location></location>
462<annotation>repoman xLive</annotation>
463<mediaDisplay name="photoView"/>
464</item>
465';
466} else {
467echo '
468<item>
469<title>repoman xLive</title>
470<onClick>
471<script>
472rss = "/usr/local/etc/www/cgi-bin/scripts/util/downloadDialog.rss";
473ret = doModalRss(rss);
474if (ret == "Confirm")    {
475  showIdle();
476  url="http://127.0.0.1/cgi-bin/scripts/util/xlive.cgi?mode=install";
477  msg = getURL(url);
478  cancelIdle();
479  jumptolink("destination");
480}
481</script>
482</onClick>
483<media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/php1/xlive.png" />
484<focus>/usr/local/etc/www/cgi-bin/scripts/image/xlive_focus.png</focus>
485<unfocus>/usr/local/etc/www/cgi-bin/scripts/image/xlive_unfocus.png</unfocus>
486<location></location>
487<annotation>repoman xLive</annotation>
488<mediaDisplay name="photoView"/>
489</item>
490';
491}
492?>
493<!-- 14 -->
494
495<item>
496<title>Posturi locale</title>
497<onClick>
498<script>
499showIdle();
500"<?php echo $host; ?>/scripts/tv/locale.php";
501</script>
502</onClick>
503<focus>/usr/local/etc/www/cgi-bin/scripts/image/locale_focus.png</focus>
504<unfocus>/usr/local/etc/www/cgi-bin/scripts/image/locale_unfocus.png</unfocus>
505<annotation>?tiri ?i emisiuni înregistrate, difuzate de posturile TV locale</annotation>
506</item>
507
508<!-- 15 -->
509  <item>
510    <title>Programe adul?i</title>
511    <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>
512    <focus>/usr/local/etc/www/cgi-bin/scripts/image/adult_focus.png</focus>
513    <unfocus>/usr/local/etc/www/cgi-bin/scripts/image/adult_unfocus.png</unfocus>
514    <onClick>
515    <script>
516    optionsPath="/usr/local/etc/dvdplayer/adult.dat";
517    pass = readStringFromFile(optionsPath);
518    if (pass == null)
519    {
520    pass="1325";
521    writeStringToFile(optionsPath, pass);
522    keyword = getInput();
523    if (keyword != null)
524    {
525      if (keyword == pass)
526      {
527        jumpToLink("adultlink");
528      }
529      else
530      {
531       jumpToLink("adultpass");
532      }
533    }
534    }
535    else if (pass == "0")
536    {
537    jumpToLink("adultlink");
538    }
539    else
540    {
541    keyword = getInput();
542    if (keyword != null)
543    {
544      if (keyword == pass)
545      {
546        jumpToLink("adultlink");
547      }
548      else
549      {
550       jumpToLink("adultpass");
551      }
552    }
553    }
554    </script>
555    </onClick>
556    <mediaDisplay name="photoView"/>
557  </item>
558</channel>
559
560</rss>