PageRenderTime 9ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/filme/seriale.php

https://code.google.com/p/hdforall/
PHP | 308 lines | 276 code | 31 blank | 1 comment | 17 complexity | 14a936a5e61b12a768d31f78e4ecf77b MD5 | raw file
  1#!/usr/local/bin/Resource/www/cgi-bin/php
  2<?php echo "<?xml version='1.0' encoding='UTF8' ?>";
  3$host = "http://127.0.0.1/cgi-bin";
  4?>
  5<rss version="2.0">
  6<onEnter>
  7  startitem = "middle";
  8  setRefreshTime(1);
  9</onEnter>
 10
 11<onRefresh>
 12  setRefreshTime(-1);
 13  itemCount = getPageInfo("itemCount");
 14</onRefresh>
 15
 16<mediaDisplay name="threePartsView"
 17	sideLeftWidthPC="0"
 18	sideRightWidthPC="0"
 19	
 20	headerImageWidthPC="0"
 21	selectMenuOnRight="no"
 22	autoSelectMenu="no"
 23	autoSelectItem="no"
 24	itemImageHeightPC="0"
 25	itemImageWidthPC="0"
 26	itemXPC="8"
 27	itemYPC="25"
 28	itemWidthPC="50"
 29	itemHeightPC="8"
 30	capXPC="8"
 31	capYPC="25"
 32	capWidthPC="50"
 33	capHeightPC="64"
 34	itemBackgroundColor="0:0:0"
 35	itemPerPage="8"
 36  itemGap="0"
 37	bottomYPC="90"
 38	backgroundColor="0:0:0"
 39	showHeader="no"
 40	showDefaultInfo="no"
 41	imageFocus=""
 42	sliding="no"
 43	idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"
 44>
 45		
 46  	<text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255">
 47		  <script>getPageInfo("pageTitle");</script>
 48		</text>
 49
 50  	<text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205">
 51		  <script>sprintf("%s / ", focus-(-1))+itemCount;</script>
 52		</text>
 53  	<text  redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255">
 54		  <script>print(annotation); annotation;</script>
 55		</text>
 56		<image  redraw="yes" offsetXPC=60 offsetYPC=35 widthPC=30 heightPC=30>
 57        /usr/local/etc/www/cgi-bin/scripts/filme/image/series.png
 58		</image>
 59        <idleImage>image/POPUP_LOADING_01.png</idleImage>
 60        <idleImage>image/POPUP_LOADING_02.png</idleImage>
 61        <idleImage>image/POPUP_LOADING_03.png</idleImage>
 62        <idleImage>image/POPUP_LOADING_04.png</idleImage>
 63        <idleImage>image/POPUP_LOADING_05.png</idleImage>
 64        <idleImage>image/POPUP_LOADING_06.png</idleImage>
 65        <idleImage>image/POPUP_LOADING_07.png</idleImage>
 66        <idleImage>image/POPUP_LOADING_08.png</idleImage>
 67
 68		<itemDisplay>
 69			<text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100>
 70				<script>
 71					idx = getQueryItemIndex();
 72					focus = getFocusItemIndex();
 73					if(focus==idx) 
 74					{
 75					  location = getItemInfo(idx, "location");
 76					  annotation = getItemInfo(idx, "annotation");
 77					}
 78					getItemInfo(idx, "title");
 79				</script>
 80				<fontSize>
 81  				<script>
 82  					idx = getQueryItemIndex();
 83  					focus = getFocusItemIndex();
 84  			    if(focus==idx) "16"; else "14";
 85  				</script>
 86				</fontSize>
 87			  <backgroundColor>
 88  				<script>
 89  					idx = getQueryItemIndex();
 90  					focus = getFocusItemIndex();
 91  			    if(focus==idx) "10:80:120"; else "-1:-1:-1";
 92  				</script>
 93			  </backgroundColor>
 94			  <foregroundColor>
 95  				<script>
 96  					idx = getQueryItemIndex();
 97  					focus = getFocusItemIndex();
 98  			    if(focus==idx) "255:255:255"; else "140:140:140";
 99  				</script>
100			  </foregroundColor>
101			</text>
102
103		</itemDisplay>
104		
105<onUserInput>
106<script>
107ret = "false";
108userInput = currentUserInput();
109
110if (userInput == "pagedown" || userInput == "pageup")
111{
112  idx = Integer(getFocusItemIndex());
113  if (userInput == "pagedown")
114  {
115    idx -= -8;
116    if(idx &gt;= itemCount)
117      idx = itemCount-1;
118  }
119  else
120  {
121    idx -= 8;
122    if(idx &lt; 0)
123      idx = 0;
124  }
125
126  print("new idx: "+idx);
127  setFocusItemIndex(idx);
128	setItemFocus(0);
129  redrawDisplay();
130  "true";
131}
132ret;
133</script>
134</onUserInput>
135		
136	</mediaDisplay>
137	
138	<item_template>
139		<mediaDisplay  name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10">
140        <idleImage>image/POPUP_LOADING_01.png</idleImage>
141        <idleImage>image/POPUP_LOADING_02.png</idleImage>
142        <idleImage>image/POPUP_LOADING_03.png</idleImage>
143        <idleImage>image/POPUP_LOADING_04.png</idleImage>
144        <idleImage>image/POPUP_LOADING_05.png</idleImage>
145        <idleImage>image/POPUP_LOADING_06.png</idleImage>
146        <idleImage>image/POPUP_LOADING_07.png</idleImage>
147        <idleImage>image/POPUP_LOADING_08.png</idleImage>
148		</mediaDisplay>
149	</item_template>
150<channel>
151	<title>Seriale TV</title>
152<?php
153  $f = "/usr/local/bin/home_menu";
154if (!file_exists($f)) {
155echo '
156<item>
157<title>Set?ri subtitr?ri online</title>
158<link>/usr/local/etc/www/cgi-bin/scripts/util/sub.rss</link>
159<annotation>Set?ri culoare, fundal, m?rime pentru subtitrare</annotation>
160<mediaDisplay name="onePartView"/>
161</item>
162';
163} else {
164echo '
165<item>
166<title>Set?ri subtitr?ri online</title>
167<link>/usr/local/etc/www/cgi-bin/scripts/util/sub1.rss</link>
168<annotation>Set?ri culoare, fundal, m?rime pentru subtitrare</annotation>
169<mediaDisplay name="onePartView"/>
170</item>
171';
172}
173?>
174<item>
175<title>serialepe.net</title>
176<link><?php echo $host; ?>/scripts/filme/php/serialepe_main.php</link>
177<annotation>http://www.serialepe.net/p/seriale-online-gratis-subtitrate.html</annotation>
178<mediaDisplay name="threePartsView"/>
179</item>
180
181<item>
182<title>filmesubtitrate.info</title>
183<link><?php echo $host; ?>/scripts/filme/php/filmesubtitrate_info_main.php</link>
184<annotation>http://www.seriale.filmesubtitrate.info/p/seriale-online-subtitrate-in-romana.html</annotation>
185<mediaDisplay name="photoView"/>
186</item>
187
188<item>
189<title>serialepenet (cu abonament)</title>
190<link><?php echo $host; ?>/scripts/filme/php/serialepenet_main.php</link>
191<annotation>http://serialepenet.ro/</annotation>
192<mediaDisplay name="photoView"/>
193</item>
194
195<item>
196<title>vplay</title>
197<link><?php echo $host; ?>/scripts/filme/php/vplay_main_main.php</link>
198<annotation>http://vplay.ro/coll</annotation>
199<mediaDisplay name="threePartsView"/>
200</item>
201
202<item>
203<title>iPlay - seriale HD</title>
204<link><?php echo $host; ?>/scripts/filme/php/iplay_main.php?query=0</link>
205<annotation>http://iplay.ro</annotation>
206<mediaDisplay name="threePartsView"/>
207</item>
208
209<item>
210<title>filmeonline - seriale</title>
211<link><?php echo $host; ?>/scripts/filme/php/filmeonlines_main.php</link>
212<annotation>http://www.filmeonline.org/seriale-online-subtitrate-in-romana/</annotation>
213<mediaDisplay name="threePartsView"/>
214</item>
215
216<item>
217<title>veziserialeonline</title>
218<link><?php echo $host; ?>/scripts/filme/php/veziserialeonline_main.php</link>
219<annotation>http://www.veziserialeonline.info/tv-shows</annotation>
220<mediaDisplay name="threePartsView"/>
221</item>
222
223<item>
224<title>serialulmeu</title>
225<link><?php echo $host; ?>/scripts/filme/php/serialulmeu_main.php</link>
226<annotation>http://www.serialulmeu.ro/</annotation>
227<mediaDisplay name="threePartsView"/>
228</item>
229<!--
230<item>
231<title>seriale.subtitrate</title>
232<link><?php echo $host; ?>/scripts/filme/php/seriale_subtitrate_info_l.php</link>
233<annotation>http://seriale.subtitrate.info/tv-shows</annotation>
234<mediaDisplay name="threePartsView"/>
235</item>
236-->
237<!--
238<item>
239<title>cinemaro</title>
240<link><?php echo $host; ?>/scripts/filme/php/cinemaro_main.php</link>
241<annotation>http://www.cinemaro.ro</annotation>
242<mediaDisplay name="threePartsView"/>
243</item>
244-->
245<item>
246<title>seriale-filme</title>
247<link><?php echo $host; ?>/scripts/filme/php/seriale-filme_info_main.php</link>
248<annotation>http://www.seriale-filme.info/tv-shows</annotation>
249<mediaDisplay name="threePartsView"/>
250</item>
251
252<item>
253<title>990</title>
254<link><?php echo $host; ?>/scripts/filme/990.php</link>
255<annotation>http://www.990.ro</annotation>
256<mediaDisplay name="threePartsView"/>
257</item>
258
259
260<item>
261<title>seriale.doi10</title>
262<link><?php echo $host; ?>/scripts/filme/php/seriale_doi10_main.php</link>
263<annotation>http://seriale.doi10.com/seriale</annotation>
264<mediaDisplay name="threePartsView"/>
265</item>
266
267<!--
268<item>
269<title>wserialetvonline</title>
270<link><?php echo $host; ?>/scripts/filme/php/serialetvonline_main.php</link>
271<annotation>http://www.serialetvonline.info/tv-shows</annotation>
272<mediaDisplay name="threePartsView"/>
273</item>
274
275
276<item>
277<title>serialeonline</title>
278<link><?php echo $host; ?>/scripts/filme/php/serialeonlinero_main.php</link>
279<annotation>http://serialeonline.ro/index.php/tv-shows</annotation>
280<mediaDisplay name="threePartsView"/>
281</item>
282
283
284<item>
285<title>serialeonline</title>
286<link><?php echo $host; ?>/scripts/filme/php/serialeonline_main.php</link>
287<annotation>http://www.serialeonline.tv/</annotation>
288<mediaDisplay name="threePartsView"/>
289</item>
290-->
291
292<item>
293<title>seriale coreene</title>
294<link><?php echo $host; ?>/scripts/filme/php/serialecoreene_main.php</link>
295<annotation>http://www.serialecoreene.com</annotation>
296<mediaDisplay name="threePartsView"/>
297</item>
298
299<item>
300<title>movie2k - series</title>
301<link><?php echo $host; ?>/scripts/filme/php/movie2ks_main.php</link>
302<annotation>http://www.movie2k.to</annotation>
303<mediaDisplay name="threePartsView"/>
304</item>
305
306
307</channel>
308</rss>