diff options
author | root <root@mediaserver.Belkin> | 2010-02-17 23:14:37 +0100 |
---|---|---|
committer | root <root@mediaserver.Belkin> | 2010-02-17 23:14:37 +0100 |
commit | f27608f2695d51f563adb6ebc8c475c6a8df53ba (patch) | |
tree | c1a909a310b10f267221029e3ba50462dbd3a63f | |
download | istreamdev-f27608f2695d51f563adb6ebc8c475c6a8df53ba.tar.gz istreamdev-f27608f2695d51f563adb6ebc8c475c6a8df53ba.tar.bz2 |
0.3.5-dev
-rwxr-xr-x | COPYING | 340 | ||||
-rwxr-xr-x | HISTORY | 61 | ||||
-rwxr-xr-x | README | 101 | ||||
-rwxr-xr-x | config.php | 25 | ||||
-rwxr-xr-x | css/developer-style.css | 1159 | ||||
-rwxr-xr-x | css/style.css | 1159 | ||||
-rwxr-xr-x | error.php | 71 | ||||
-rwxr-xr-x | images/0stars.png | bin | 0 -> 314 bytes | |||
-rwxr-xr-x | images/0starsborder.png | bin | 0 -> 363 bytes | |||
-rwxr-xr-x | images/1stars.png | bin | 0 -> 456 bytes | |||
-rwxr-xr-x | images/1starsborder.png | bin | 0 -> 482 bytes | |||
-rwxr-xr-x | images/2stars.png | bin | 0 -> 467 bytes | |||
-rwxr-xr-x | images/2starsborder.png | bin | 0 -> 501 bytes | |||
-rwxr-xr-x | images/3stars.png | bin | 0 -> 470 bytes | |||
-rwxr-xr-x | images/3starsborder.png | bin | 0 -> 506 bytes | |||
-rwxr-xr-x | images/4stars.png | bin | 0 -> 455 bytes | |||
-rwxr-xr-x | images/4starsborder.png | bin | 0 -> 503 bytes | |||
-rwxr-xr-x | images/5stars.png | bin | 0 -> 393 bytes | |||
-rwxr-xr-x | images/arrow.png | bin | 0 -> 361 bytes | |||
-rwxr-xr-x | images/background.png | bin | 0 -> 155 bytes | |||
-rwxr-xr-x | images/checkbox.png | bin | 0 -> 3300 bytes | |||
-rwxr-xr-x | images/home.png | bin | 0 -> 361 bytes | |||
-rwxr-xr-x | images/istreamdev.png | bin | 0 -> 7468 bytes | |||
-rwxr-xr-x | images/navbutton.png | bin | 0 -> 571 bytes | |||
-rwxr-xr-x | images/navbuttonblack.png | bin | 0 -> 493 bytes | |||
-rwxr-xr-x | images/navbuttonblue.png | bin | 0 -> 664 bytes | |||
-rwxr-xr-x | images/navleft.png | bin | 0 -> 826 bytes | |||
-rwxr-xr-x | images/navleftblack.png | bin | 0 -> 810 bytes | |||
-rwxr-xr-x | images/navlinkleft.png | bin | 0 -> 786 bytes | |||
-rwxr-xr-x | images/navlinkleftblack.png | bin | 0 -> 737 bytes | |||
-rwxr-xr-x | images/navlinkright.png | bin | 0 -> 804 bytes | |||
-rwxr-xr-x | images/navlinkrightblack.png | bin | 0 -> 738 bytes | |||
-rwxr-xr-x | images/navright.png | bin | 0 -> 845 bytes | |||
-rwxr-xr-x | images/navrightblack.png | bin | 0 -> 861 bytes | |||
-rwxr-xr-x | images/pictos/media.png | bin | 0 -> 997 bytes | |||
-rwxr-xr-x | images/pictos/record.png | bin | 0 -> 930 bytes | |||
-rwxr-xr-x | images/pictos/tv.png | bin | 0 -> 922 bytes | |||
-rwxr-xr-x | images/play.gif | bin | 0 -> 103 bytes | |||
-rwxr-xr-x | images/radiobutton.png | bin | 0 -> 373 bytes | |||
-rwxr-xr-x | images/searchfield.png | bin | 0 -> 1548 bytes | |||
-rwxr-xr-x | images/startup.png | bin | 0 -> 22107 bytes | |||
-rwxr-xr-x | images/tributton.png | bin | 0 -> 476 bytes | |||
-rwxr-xr-x | includes/inc_auth.php | 32 | ||||
-rwxr-xr-x | includes/inc_cat.php | 17 | ||||
-rwxr-xr-x | includes/inc_chan.php | 24 | ||||
-rwxr-xr-x | includes/inc_home.php | 20 | ||||
-rwxr-xr-x | includes/inc_media.php | 16 | ||||
-rwxr-xr-x | includes/inc_rec.php | 62 | ||||
-rwxr-xr-x | includes/inc_stream.php | 177 | ||||
-rwxr-xr-x | includes/inc_streaminfo.php | 61 | ||||
-rwxr-xr-x | includes/inc_svdrp.php | 446 | ||||
-rwxr-xr-x | includes/inc_vdr.php | 204 | ||||
-rwxr-xr-x | includes/include.php | 112 | ||||
-rwxr-xr-x | index.php | 62 | ||||
-rwxr-xr-x | istream.sh | 41 | ||||
-rwxr-xr-x | javascript/ajax.js | 27 | ||||
-rwxr-xr-x | javascript/developer-functions.js | 24 | ||||
-rwxr-xr-x | javascript/functions.js | 1 | ||||
-rwxr-xr-x | logos/13EME RUE.png | bin | 0 -> 5454 bytes | |||
-rwxr-xr-x | logos/AB 1.png | bin | 0 -> 4409 bytes | |||
-rwxr-xr-x | logos/AB MOTEURS.png | bin | 0 -> 2722 bytes | |||
-rwxr-xr-x | logos/ACTION.png | bin | 0 -> 1564 bytes | |||
-rwxr-xr-x | logos/AL JAZEERA ENG.png | bin | 0 -> 5083 bytes | |||
-rwxr-xr-x | logos/ANIMAUX.png | bin | 0 -> 5964 bytes | |||
-rwxr-xr-x | logos/ARTE HD.png | bin | 0 -> 2990 bytes | |||
-rwxr-xr-x | logos/ARTE.png | bin | 0 -> 2696 bytes | |||
-rwxr-xr-x | logos/BABY TV.png | bin | 0 -> 4412 bytes | |||
-rwxr-xr-x | logos/BBC PRIME.png | bin | 0 -> 4678 bytes | |||
-rwxr-xr-x | logos/BBC WORLD.png | bin | 0 -> 6169 bytes | |||
-rwxr-xr-x | logos/BFM TV.png | bin | 0 -> 5947 bytes | |||
-rwxr-xr-x | logos/BLOOMBERG TV.png | bin | 0 -> 2715 bytes | |||
-rwxr-xr-x | logos/BOOMERANG.png | bin | 0 -> 4263 bytes | |||
-rwxr-xr-x | logos/BravaHDTV.png | bin | 0 -> 6081 bytes | |||
-rwxr-xr-x | logos/C CINEMA CLASSIC.png | bin | 0 -> 5231 bytes | |||
-rwxr-xr-x | logos/C CINEMA CLUB.png | bin | 0 -> 4859 bytes | |||
-rwxr-xr-x | logos/C CINEMA EMOTION.png | bin | 0 -> 5033 bytes | |||
-rwxr-xr-x | logos/C CINEMA FAMIZ.png | bin | 0 -> 4756 bytes | |||
-rwxr-xr-x | logos/C CINEMA FRISSON.png | bin | 0 -> 5412 bytes | |||
-rwxr-xr-x | logos/C CINEMA PREMIER.png | bin | 0 -> 5385 bytes | |||
-rwxr-xr-x | logos/C CINEMA STAR.png | bin | 0 -> 4951 bytes | |||
-rwxr-xr-x | logos/CANAL J.png | bin | 0 -> 3991 bytes | |||
-rwxr-xr-x | logos/CANAL+ CINEMA.png | bin | 0 -> 2889 bytes | |||
-rwxr-xr-x | logos/CANAL+ DECALE.png | bin | 0 -> 2911 bytes | |||
-rwxr-xr-x | logos/CANAL+ FAMILY.png | bin | 0 -> 2850 bytes | |||
-rwxr-xr-x | logos/CANAL+ HD.png | bin | 0 -> 2958 bytes | |||
-rwxr-xr-x | logos/CANAL+ SPORT.png | bin | 0 -> 2900 bytes | |||
-rwxr-xr-x | logos/CANAL+.png | bin | 0 -> 2569 bytes | |||
-rwxr-xr-x | logos/CARTOON NETWORK.png | bin | 0 -> 5415 bytes | |||
-rwxr-xr-x | logos/CHASSE ET PECHE.png | bin | 0 -> 4438 bytes | |||
-rwxr-xr-x | logos/CINE FX.png | bin | 0 -> 4494 bytes | |||
-rwxr-xr-x | logos/CINE POLAR.png | bin | 0 -> 4293 bytes | |||
-rwxr-xr-x | logos/CNBC EUROPE.png | bin | 0 -> 6262 bytes | |||
-rwxr-xr-x | logos/CNN.png | bin | 0 -> 5228 bytes | |||
-rwxr-xr-x | logos/COMEDIE !.png | bin | 0 -> 2684 bytes | |||
-rwxr-xr-x | logos/CUISINE TV.png | bin | 0 -> 3309 bytes | |||
-rwxr-xr-x | logos/DIRECT 8.png | bin | 0 -> 3794 bytes | |||
-rwxr-xr-x | logos/DISNEY CHANNEL+1.png | bin | 0 -> 6329 bytes | |||
-rwxr-xr-x | logos/DISNEY CHANNEL.png | bin | 0 -> 6042 bytes | |||
-rwxr-xr-x | logos/DISNEY CINEMAGIC+1.png | bin | 0 -> 7891 bytes | |||
-rwxr-xr-x | logos/DISNEY CINEMAGIC.png | bin | 0 -> 7840 bytes | |||
-rwxr-xr-x | logos/DISNEY MAGIC HD.png | bin | 0 -> 7840 bytes | |||
-rwxr-xr-x | logos/E! ENTERTAINMENT.png | bin | 0 -> 4697 bytes | |||
-rwxr-xr-x | logos/ENCYCLOPEDIA.png | bin | 0 -> 2176 bytes | |||
-rwxr-xr-x | logos/ESCALES.png | bin | 0 -> 3643 bytes | |||
-rwxr-xr-x | logos/ESPN CLASSIC EUROPE.png | bin | 0 -> 6568 bytes | |||
-rwxr-xr-x | logos/ESPN CLASSIC.png | bin | 0 -> 6568 bytes | |||
-rwxr-xr-x | logos/EUREKA!.png | bin | 0 -> 3869 bytes | |||
-rwxr-xr-x | logos/EURONEWS.png | bin | 0 -> 2895 bytes | |||
-rwxr-xr-x | logos/EUROSPORT.png | bin | 0 -> 5214 bytes | |||
-rwxr-xr-x | logos/EXTREME SPORTS.png | bin | 0 -> 5713 bytes | |||
-rwxr-xr-x | logos/FILLES TV.png | bin | 0 -> 2952 bytes | |||
-rwxr-xr-x | logos/FIT.png | bin | 0 -> 7892 bytes | |||
-rwxr-xr-x | logos/FOOT+ 1.png | bin | 0 -> 3018 bytes | |||
-rwxr-xr-x | logos/FOOT+ 2.png | bin | 0 -> 3018 bytes | |||
-rwxr-xr-x | logos/FOOT+ 3.png | bin | 0 -> 3018 bytes | |||
-rwxr-xr-x | logos/FOOT+ 4.png | bin | 0 -> 3018 bytes | |||
-rwxr-xr-x | logos/FOOT+ 5.png | bin | 0 -> 3018 bytes | |||
-rwxr-xr-x | logos/FOOT+ 6.png | bin | 0 -> 3018 bytes | |||
-rwxr-xr-x | logos/FOOT+ 7.png | bin | 0 -> 3018 bytes | |||
-rwxr-xr-x | logos/FOX LIFE.png | bin | 0 -> 3559 bytes | |||
-rwxr-xr-x | logos/FRANCE 0.png | bin | 0 -> 3346 bytes | |||
-rwxr-xr-x | logos/FRANCE 2 HD.png | bin | 0 -> 3490 bytes | |||
-rwxr-xr-x | logos/FRANCE 2.png | bin | 0 -> 3490 bytes | |||
-rwxr-xr-x | logos/FRANCE 24.png | bin | 0 -> 6276 bytes | |||
-rwxr-xr-x | logos/FRANCE 4.png | bin | 0 -> 3351 bytes | |||
-rwxr-xr-x | logos/FRANCE 5.png | bin | 0 -> 3380 bytes | |||
-rwxr-xr-x | logos/FUN TV.png | bin | 0 -> 7243 bytes | |||
-rwxr-xr-x | logos/France 3 SAT.png | bin | 0 -> 3382 bytes | |||
-rwxr-xr-x | logos/France 3.png | bin | 0 -> 3382 bytes | |||
-rwxr-xr-x | logos/GAME ONE.png | bin | 0 -> 2405 bytes | |||
-rwxr-xr-x | logos/GULLI.png | bin | 0 -> 5257 bytes | |||
-rwxr-xr-x | logos/HD1.png | bin | 0 -> 2344 bytes | |||
-rwxr-xr-x | logos/HISTOIRE.png | bin | 0 -> 2831 bytes | |||
-rwxr-xr-x | logos/HUSTLER TV.png | bin | 0 -> 2943 bytes | |||
-rwxr-xr-x | logos/I CONCERTS.png | bin | 0 -> 5934 bytes | |||
-rwxr-xr-x | logos/I TELEVISION.png | bin | 0 -> 3906 bytes | |||
-rwxr-xr-x | logos/INFOSPORT.png | bin | 0 -> 2766 bytes | |||
-rwxr-xr-x | logos/JETIX.png | bin | 0 -> 4787 bytes | |||
-rwxr-xr-x | logos/JIMMY.png | bin | 0 -> 2697 bytes | |||
-rwxr-xr-x | logos/KTO.png | bin | 0 -> 4391 bytes | |||
-rwxr-xr-x | logos/L'EQUIPE TV.png | bin | 0 -> 3610 bytes | |||
-rwxr-xr-x | logos/LA CHAINE METEO.png | bin | 0 -> 6964 bytes | |||
-rwxr-xr-x | logos/LCI.png | bin | 0 -> 2526 bytes | |||
-rwxr-xr-x | logos/LUXE TV HD.png | bin | 0 -> 2004 bytes | |||
-rwxr-xr-x | logos/Live 1.png | bin | 0 -> 6989 bytes | |||
-rwxr-xr-x | logos/M6 BOUTIQUE LA CHAINE.png | bin | 0 -> 6022 bytes | |||
-rwxr-xr-x | logos/M6 HD.png | bin | 0 -> 4266 bytes | |||
-rwxr-xr-x | logos/M6 MUSIC BLACK.png | bin | 0 -> 7390 bytes | |||
-rwxr-xr-x | logos/M6 MUSIC HITS.png | bin | 0 -> 5922 bytes | |||
-rwxr-xr-x | logos/M6 MUSIC ROCK.png | bin | 0 -> 7102 bytes | |||
-rwxr-xr-x | logos/M6.png | bin | 0 -> 4679 bytes | |||
-rwxr-xr-x | logos/MA CHAINE SPORT.png | bin | 0 -> 3243 bytes | |||
-rwxr-xr-x | logos/MANGAS.png | bin | 0 -> 6030 bytes | |||
-rwxr-xr-x | logos/MATCH TV.png | bin | 0 -> 6911 bytes | |||
-rwxr-xr-x | logos/MCM POP.png | bin | 0 -> 5301 bytes | |||
-rwxr-xr-x | logos/MCM TOP.png | bin | 0 -> 3894 bytes | |||
-rwxr-xr-x | logos/MCM.png | bin | 0 -> 3116 bytes | |||
-rwxr-xr-x | logos/MELODY ZEN HD.png | bin | 0 -> 2870 bytes | |||
-rwxr-xr-x | logos/MOTORS TV.png | bin | 0 -> 4273 bytes | |||
-rwxr-xr-x | logos/MTV 2.png | bin | 0 -> 2166 bytes | |||
-rwxr-xr-x | logos/MTV BASE.png | bin | 0 -> 5583 bytes | |||
-rwxr-xr-x | logos/MTV HD.png | bin | 0 -> 5337 bytes | |||
-rwxr-xr-x | logos/MTV HITS.png | bin | 0 -> 5899 bytes | |||
-rwxr-xr-x | logos/MTV IDOL.png | bin | 0 -> 5190 bytes | |||
-rwxr-xr-x | logos/MTV PULSE.png | bin | 0 -> 5582 bytes | |||
-rwxr-xr-x | logos/MTV.png | bin | 0 -> 5993 bytes | |||
-rwxr-xr-x | logos/MUSIQUE CLASSIQUE.png | bin | 0 -> 6347 bytes | |||
-rwxr-xr-x | logos/Mezzo.png | bin | 0 -> 3505 bytes | |||
-rwxr-xr-x | logos/NATIONAL GEO HD.png | bin | 0 -> 4186 bytes | |||
-rwxr-xr-x | logos/NATIONAL GEO.png | bin | 0 -> 5334 bytes | |||
-rwxr-xr-x | logos/NBA+.png | bin | 0 -> 3585 bytes | |||
-rwxr-xr-x | logos/NICKELODEON.png | bin | 0 -> 7050 bytes | |||
-rwxr-xr-x | logos/NRJ 12 HD.png | bin | 0 -> 3622 bytes | |||
-rwxr-xr-x | logos/NRJ 12.png | bin | 0 -> 4572 bytes | |||
-rwxr-xr-x | logos/NT1.png | bin | 0 -> 5202 bytes | |||
-rwxr-xr-x | logos/ODYSSEE.png | bin | 0 -> 3372 bytes | |||
-rwxr-xr-x | logos/OL TV.png | bin | 0 -> 2821 bytes | |||
-rwxr-xr-x | logos/OLTV.png | bin | 0 -> 2821 bytes | |||
-rwxr-xr-x | logos/OM TV.png | bin | 0 -> 5312 bytes | |||
-rwxr-xr-x | logos/OM'TV.png | bin | 0 -> 5312 bytes | |||
-rwxr-xr-x | logos/PARIS PREMIERE.png | bin | 0 -> 4003 bytes | |||
-rwxr-xr-x | logos/PINK TV.png | bin | 0 -> 4188 bytes | |||
-rwxr-xr-x | logos/PIWI.png | bin | 0 -> 4893 bytes | |||
-rwxr-xr-x | logos/PLANETE JUNIORS.png | bin | 0 -> 6816 bytes | |||
-rwxr-xr-x | logos/PLANETE JUSTICE.png | bin | 0 -> 5184 bytes | |||
-rwxr-xr-x | logos/PLANETE NO LIMIT.png | bin | 0 -> 5318 bytes | |||
-rwxr-xr-x | logos/PLANETE THALASSA.png | bin | 0 -> 5771 bytes | |||
-rwxr-xr-x | logos/PLANETE.png | bin | 0 -> 4155 bytes | |||
-rwxr-xr-x | logos/PLAYHOUSE DISNEY.png | bin | 0 -> 5968 bytes | |||
-rwxr-xr-x | logos/PLAYIN' TV.png | bin | 0 -> 3085 bytes | |||
-rwxr-xr-x | logos/POKER CHANNEL.png | bin | 0 -> 4378 bytes | |||
-rwxr-xr-x | logos/RAI 1.png | bin | 0 -> 2206 bytes | |||
-rwxr-xr-x | logos/REAL TIME.png | bin | 0 -> 4144 bytes | |||
-rwxr-xr-x | logos/RTL9.png | bin | 0 -> 4652 bytes | |||
-rwxr-xr-x | logos/RTPI.png | bin | 0 -> 2669 bytes | |||
-rwxr-xr-x | logos/SCI-FI.png | bin | 0 -> 3088 bytes | |||
-rwxr-xr-x | logos/SEASONS.png | bin | 0 -> 7611 bytes | |||
-rwxr-xr-x | logos/SERIE CLUB.png | bin | 0 -> 4440 bytes | |||
-rwxr-xr-x | logos/SIC.png | bin | 0 -> 6480 bytes | |||
-rwxr-xr-x | logos/SPORT+.png | bin | 0 -> 3421 bytes | |||
-rwxr-xr-x | logos/TCM.png | bin | 0 -> 4960 bytes | |||
-rwxr-xr-x | logos/TELESSONNE.png | bin | 0 -> 9002 bytes | |||
-rwxr-xr-x | logos/TELETOON+1.png | bin | 0 -> 8709 bytes | |||
-rwxr-xr-x | logos/TELETOON.png | bin | 0 -> 8499 bytes | |||
-rwxr-xr-x | logos/TEVA.png | bin | 0 -> 5374 bytes | |||
-rwxr-xr-x | logos/TF1 HD.png | bin | 0 -> 2557 bytes | |||
-rwxr-xr-x | logos/TF1.png | bin | 0 -> 1809 bytes | |||
-rwxr-xr-x | logos/TF6.png | bin | 0 -> 3434 bytes | |||
-rwxr-xr-x | logos/TFJ.png | bin | 0 -> 4134 bytes | |||
-rwxr-xr-x | logos/TIJI.png | bin | 0 -> 6735 bytes | |||
-rwxr-xr-x | logos/TMC.png | bin | 0 -> 4327 bytes | |||
-rwxr-xr-x | logos/TPS STAR.png | bin | 0 -> 4065 bytes | |||
-rwxr-xr-x | logos/TRACE TV.png | bin | 0 -> 5101 bytes | |||
-rwxr-xr-x | logos/TV BREIZH.png | bin | 0 -> 3918 bytes | |||
-rwxr-xr-x | logos/TV5.png | bin | 0 -> 2682 bytes | |||
-rwxr-xr-x | logos/VIRGIN 17.png | bin | 0 -> 4897 bytes | |||
-rwxr-xr-x | logos/VOYAGE.png | bin | 0 -> 3229 bytes | |||
-rwxr-xr-x | logos/W9.png | bin | 0 -> 5806 bytes | |||
-rwxr-xr-x | logos/XXL.png | bin | 0 -> 4785 bytes | |||
-rwxr-xr-x | logos/ZDF.png | bin | 0 -> 3045 bytes | |||
-rwxr-xr-x | logos/iConcertsHD_6Mbps.png | bin | 0 -> 5934 bytes | |||
-rwxr-xr-x | logos/nologo.png | bin | 0 -> 145 bytes | |||
-rwxr-xr-x | logos/nologo2.png | bin | 0 -> 332 bytes | |||
-rwxr-xr-x | logos/readme.txt | 3 | ||||
-rwxr-xr-x | streamstatus.php | 21 |
225 files changed, 4266 insertions, 0 deletions
@@ -0,0 +1,340 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. @@ -0,0 +1,61 @@ +iStreamdev History +------------------ + + +dev: + +- fix SHELL environment necessary for apache account when login shell is /sbin/nologin (cf. cron manual) ( thanks alex ) +- fix logos channels oversized in channels list ( thanks alex ) +- fix memory buffer issue in svdrp php implementation causing timeout ( thanks hendrikw01 ) +- backend rework to ease future evolutions ( TheTroll ) +- No more 'ps aux | grep segmenter' calls to check if server is running, and less svdrp call. Now a status file is present in ram folder while broadcast is running. ( TheTroll ) + + +15.02.2010 - V.0.3.3 + +- added support for VDR recordings (recordings in sub folders are supported) +- fixed channels with ' char +- better handling of stream availibility. Now based on first ts file ready and not m3u8 playlist. Should always works now. +- changed stream timeout to 25 seconds in case of vdr can't tune to the channel. +- no more svdrpsend.pl dependency. Now svdrp request are made with svdrpphp lib. + + +15.02.2010 - V.0.3.2 + +- fixed problem with some channels name with a "," in the name +- added default background for channels without logos. + + +15.02.2010 - V.0.3.1 + +- fixed error in README for testing istream.sh +- added Ajax based server callback for stream availibility. Now if after 15 seconds VDR still send nothing, it redirect to an error page. When stream is available, the play icon appear based on ajax server push. + + +14.02.2010 - v.0.3.0 + +- Massive rewrite & optimisations. +- added Category page +- added Channel list per Category with channels logo & epg +- adapted in php many shell call. +- configuration from config.php file only +- encoding bitrate and resolution configurable +- solved many race conditions with simultaneous users. +- channel list now parsed from channels.conf and not streamdev version dependant anymore +- better video quality for low bitrates +- menu icons +- remove loading.ts temporary video. +- now the video play button appear only when the video feed is ready, no need of the loading trick anymore. + + +09.02.2010 - v. 0.2 + +- Initial revision + + +To do: + + - Access to vdr recordings + - Access to stored media ( xvid, mp3, etc ) + + @@ -0,0 +1,101 @@ + ________________________________________________________ +| | +| [ iStreamdev ] | +|________________________________________________________| + + Written by: + Alib <aliboba@free.fr> + + Contributors + The Troll + + Project's homepage: + http://xmltv.free.fr/istreamdev/ + + + Latest version available at: + http://xmltv.free.fr/istreamdev + + See the file COPYING for license information. + + About: + ----- + + iStreamdev lets you stream TV channels from VDR to your + unjailbroken iPhone Quicktime player. + + Your iPhone needs to have at least firmware 3.0 to support + HTTP Live Streaming protocol. + + It gets vdr-streamdev plugins TS feeds, and recodes it + to TS mux with h264 level 3.0 video and mp3 audio using + ffmpeg. Segmenter receives output from pipe, cuts it in + 10 seconds video file and updates the m3u8 playlist in + live. + + + Features: + --------- + + - 100% webapp compatible user interface using iWebkit framework ( http://iwebkit.net ) + - Channel selection throught categories + - Channels listed with logo and current epg. + - Streaming format selection: Edge, 3g, Wifi + - Recording streaming + + Webapp: + ------- + + Add iStreamdev to your iPhone home menu to launch it in + fullscreen mode as a normal app. + + Usage: + ------ + + Really simple. Select a channels category, then a channel. + Select your stream mode: Edge , 3g or Wifi. The Play icon + will appear automatically after few seconds when the feed is + ready. + To Stop the stream server, hit Stop stream button. + If a stream encoding is already running, to prevent multiple + users asking for different channels, it will automaticaly + redirect any access to iStreamdev on the current streaming + channel page. + + + What you need: + -------------- + + - an http server with PHP5 enabled like apache or lighthttpd + - having "at" package. + - www-data user should allowed to use "at". + Check on your /etc/at/deny if www-data is there, and remove it if so. + - PHP is allowed to use exec() function. + - ffmpeg compiled with x264 support + - segmenter: follow the instruction here to install it: + http://www.ioncannon.net/programming/452/iphone-http-streaming-with-ffmpeg-and-an-open-source-segmenter/ + + + Install iStreamdev: + ------------------- + + Copy the file in your webfolder. /istreamdev for example. + Edit config.php. + $httpath can point to your istreamdev http path or the full url + ( '/istreamdev/' or "http://mydomain.com/istreamdev/' ) + + the ram folder should be writable. If you want to prevent hard disk + usage, you can mount it as ram disk. + + Check everything is ok with ffmpeg by launching the above + command logued as your http server user ( www-data ) : + + ./istream.sh http://localhost:3000/TS/1 512 64 480x360 ram/ + + You should see ffmpeg access streamdev http://localhost:3000/TS/1 and + encode the stream. + + Now everything is ok you can login from your iphone: http://yourip/istreamdev + + + diff --git a/config.php b/config.php new file mode 100755 index 0000000..7a83f09 --- /dev/null +++ b/config.php @@ -0,0 +1,25 @@ +<?php + global $user, $pass, $vdrchannels, $vdrstreamdev, $quality, $httppath, $svdrpip, $svdrpport; + + // Http configuration + $user = 'istreamdev'; // Login + $pass = 'iguest'; // Password + $httppath = '/istreamdev/'; // Path to the index.php file + + // VDR configuration + $vdrchannels='/etc/vdr/channels.conf'; // VDR channel list + $svdrpport=2001; // SVDRP port + $svdrpip='127.0.0.1'; // SVDRP ip + $vdrstreamdev='http://127.0.0.1:3000/TS/'; // VDR streamdev URL + $vdrrecpath='/video/'; + + // Encoding + // Name Video Audio Audio channels Resolution + $quality = array( 'Edge' => '128k 64k 1 240x160', + '3g' => '350k 64k 1 408x272', + 'Wifi' => '512k 128k 2 480x320' + ); + + // Version + $isdversion = "0.3.5-dev"; +?> diff --git a/css/developer-style.css b/css/developer-style.css new file mode 100755 index 0000000..517fefe --- /dev/null +++ b/css/developer-style.css @@ -0,0 +1,1159 @@ +body { + position: relative; + margin: 0; + -webkit-text-size-adjust: none; + min-height: 416px; + font-family: helvetica,sans-serif; + background: url("../images/background.png") repeat; + -webkit-touch-callout: none; +} +.center { + margin: auto; + display: block; + text-align:center!important +} +img { + border: 0; +} +a:hover span.arrow { + background-position: 0 -13px!important; +} +@media screen and (max-width: 320px) +{ +#topbar { + height: 44px; +} +#title { + line-height: 44px; + height: 44px; + font-size: 16pt; +} +#tributton a:first-child, #duobutton a:first-child { + width: 101px; +} +#tributton a:last-child, #duobutton a:last-child { + width: 101px; +} +#tributton a { + width: 106px; +} +#duobutton .links { + width: 195px; +} +#tributton .links { + width: 302px; +} +#doublead { + width: 300px!important; +} +#duoselectionbuttons { + width: 191px; + height: 30px; + top: 7px; +} +#triselectionbuttons { + width: 290px; + height: 30px; + top: 7px; +} +#triselectionbuttons a:first-child, #duoselectionbuttons a:first-child { + width: 99px; + height: 28px; + line-height: 28px; +} +#triselectionbuttons a { + width: 98px; + height: 28px; + line-height: 28px; +} +#triselectionbuttons a:last-child, #duoselectionbuttons a:last-child { + width: 99px; + height: 28px; + line-height: 28px; +} +.searchbox form { + width: 272px; +} +.searchbox input[type="text"] { + width: 275px; +} +li.menu span.name { + max-width: 77%; +} +li.checkbox .name { + max-width: 190px; +} +li.radiobutton .name { + max-width: 190px; +} +#leftnav a, #rightnav a, #leftbutton a, #rightbutton a, #blueleftbutton a, #bluerightbutton a { + line-height: 30px; + height: 30px; +} +#leftnav img, #rightnav img { + margin-top: 4px; +} +#leftnav, #leftbutton, #blueleftbutton { + top: 7px; +} +#rightnav, #rightbutton, #bluerightbutton { + top: 7px; +} +body.musiclist ul li span.name { + max-width:55% +} +.textbox textarea { + width: 280px; +} +} +@media screen and (min-width: 321px) +{ +#topbar { + height: 32px; +} +#title { + line-height: 32px; + height: 32px; + font-size: 13pt; +} +li.menu span.name { + max-width: 85%; +} +li.checkbox .name { + max-width: 75%; +} +li.radiobutton .name { + max-width: 75%; +} +#leftnav a, #rightnav a, #leftbutton a, #rightbutton a, #blueleftbutton a, #bluerightbutton a { + line-height: 24px; + height: 24px; +} +#leftnav img, #rightnav img { + margin-top: 4px; + height: 70%; +} +#leftnav, #leftbutton, #blueleftbutton { + top: 4px; +} +#rightnav, #rightbutton, #bluerightbutton { + top: 4px; +} +body.musiclist ul li span.name { + max-width:70% +} +.textbox textarea { + width: 440px; +} +#tributton a:first-child, #duobutton a:first-child { + width: 152px; +} +#tributton a:last-child, #duobutton a:last-child { + width: 152px; +} +#tributton a { + width: 154px; +} +#tributton .links { + width: 452px; +} +#duobutton .links { + width: 298px; +} +#doublead { + width: 350px!important; +} +#duoselectionbuttons { + width: 293px; + height: 24px; + top: 4px; +} +#triselectionbuttons { + width: 450px; + height: 24px; + top: 4px; +} +#triselectionbuttons a:first-child, #duoselectionbuttons a:first-child { + width: 150px; + height: 22px; + line-height: 22px; +} +#triselectionbuttons a { + width: 156px; + height: 22px; + line-height: 22px; +} +#triselectionbuttons a:last-child, #duoselectionbuttons a:last-child { + width: 150px; + height: 22px; + line-height: 22px; +} +.searchbox form { + width: 432px; +} +.searchbox input[type="text"] { + width: 435px; +} +} +#topbar.black { + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#858585), color-stop(3%, #636363), color-stop(50%, #202020), color-stop(51%, black), color-stop(97%, black), to(#262626)); +} +#topbar.transparent { + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgba(133,133,133,0.7)), color-stop(3%, rgba(99,99,99,0.7)), color-stop(50%, rgba(32,32,32,0.7)), color-stop(51%, rgba(0,0,0,0.7)), color-stop(97%, rgba(0,0,0,0.7)), to(rgba(38,38,38,0.7))); +} +#topbar { + position: relative; + left: 0; + top: 0; + width: auto; + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#cdd5df), color-stop(3%, #b0bccd), color-stop(50%, #889bb3), color-stop(51%, #8195af), color-stop(97%, #6d84a2), to(#2d3642)); + margin-bottom: 13px; +} +#title { + position: absolute; + font-weight: bold; + top: 0; + left: 0; + right: 0; + padding: 0 10px; + text-align: center; + text-overflow: ellipsis; + white-space: nowrap; + overflow: hidden; + color: #FFF; + text-shadow: rgba(0,0,0,0.6) 0 -1px 0; +} +} +#content { + width: 100%; + position: relative; + min-height: 250px; + margin-top: 10px; + height: auto; + z-index: 0; + overflow: hidden; +} +#footer { + text-align: center; + position: relative; + margin: 20px 10px 0; + height: auto; + width: auto; + bottom: 10px; +} +body.ipodlist #footer, body.ipodlist #footer a { + text-shadow: #FFF 0 -1px 0; +} +#footer a, #footer { + text-decoration: none; + font-size: 9pt; + color: #4C4C4C; + text-shadow: #FFF 0 1px 0; +} +.pageitem { + -webkit-border-radius: 8px; + background-color: #fff; + border: #878787 solid 1px; + font-size: 12pt; + overflow: hidden; + padding: 0; + position: relative; + display: block; + height: auto; + width: auto; + margin: 3px 9px 17px; + list-style: none; +} +.textbox { + padding: 5px 9px; + position: relative; + overflow: hidden; + border-top: 1px solid #878787; +} +#tributton, #duobutton { + height: 44px; + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#cdd4d9), color-stop(3%, #c0c9cf), color-stop(97%, #abb7bf),to(#81929f)); + margin: -13px 0 13px 0; + text-align: center; +} +#tributton .links, #duobutton .links { + height: 30px; + -webkit-border-image: url("../images/tributton.png") 0 4 0 4; + border-width: 0 4px 0 4px; + margin: 0 auto 0px auto; + position: relative; + top: 7px; +} +#tributton a:first-child, #duobutton a:first-child { + border-right: 1px solid #6d7e91; + -webkit-border-top-left-radius: 5px; + -webkit-border-bottom-left-radius: 5px; + margin-left: -4px; +} +#tributton a, #duobutton a { + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + height: 27px; + display: inline-block; + line-height: 27px; + margin-top: 1px; + font: bold 13px; + text-decoration: none; + color: #3f5c84; + text-shadow: #FFF 0 1px 0; +} +#duobutton a:last-child { + border: 0; +} +#tributton a:last-child { + border-left: 1px solid #6d7e91; +} +#tributton a:last-child, #duobutton a:last-child { + -webkit-border-top-right-radius: 5px; + -webkit-border-bottom-right-radius: 5px; + margin-right: -4px; +} +#tributton a:hover, #tributton a#pressed, #duobutton a:hover, #duobutton a#pressed { + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#7b8b9f), color-stop(3%, #8c9baf), to(#647792)); + color: white; + text-shadow: black 0 -1px 0; +} +#triselectionbuttons, #duoselectionbuttons { + -webkit-border-image: url('../images/navbutton.png') 0 5 0 5; + border-width: 0 5px 0 5px; + position: relative; + margin: auto; +} +#duoselectionbuttons a:first-child { + border: 0; +} +#triselectionbuttons a:first-child { + border-right: solid 1px #556984; +} +#triselectionbuttons a:first-child, #duoselectionbuttons a:first-child { + margin-left: -4px; + -webkit-border-top-left-radius: 6px; + -webkit-border-bottom-left-radius: 6px; +} +#triselectionbuttons a, #duoselectionbuttons a { + display: inline-block; + text-align: center; + color: white; + text-decoration: none; + margin-top: 1px; + text-shadow: black 0 -1px 0; + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#909baa), color-stop(3%, #a5b4c6), color-stop(50%, #798eaa), color-stop(51%, #6b83a1), color-stop(97%, #6e85a3), to(#526379)); +} +#triselectionbuttons a:last-child, #duoselectionbuttons a:last-child { + border-left: solid 1px #556984; + margin-right: -4px; + -webkit-border-top-right-radius: 6px; + -webkit-border-bottom-right-radius: 6px; +} +#triselectionbuttons a:hover, #triselectionbuttons a#pressed, #duoselectionbuttons a:hover, #duoselectionbuttons a#pressed { + background: none; +} +#doublead { + height: 83px!important; + position: relative; + margin: 0 auto 13px auto; +} +#doublead a:first-child { + left: 0!important; +} +#doublead a:last-child { + right: 0!important; +} +#doublead a { + width: 147px!important; + height: 83px!important; + position: absolute; + -webkit-border-radius: 8px; + display: block; + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#7c7c7c), color-stop(3%, #858585), color-stop(97%, #a4a4a4),to(#c2c2c2)); +} +li#doublead { + margin-top: 25px; + margin-bottom: 10px!important; + background: none; +} +li#doublead:hover { + background: none; +} +.searchbox { + height: 44px; + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#f1f3f4), color-stop(3%, #e0e4e7), color-stop(50%, #c7cfd4), color-stop(51%, #bec7cd), color-stop(97%, #b4bec6), to(#8999a5)); + margin: -13px 0 13px 0; + width: 100%; +} +.searchbox form { + height: 24px; + -webkit-border-image: url('../images/searchfield.png') 4 14 1 24; + border-width: 4px 14px 1px 24px; + display: block; + position: relative; + top: 8px; + margin: auto; +} +fieldset { + border: 0; + margin: 0; + padding: 0; +} +.searchbox input[type="text"] { + border: 0; + -webkit-appearance: none; + height: 18px; + float: left; + font-size: 13px; + padding: 0; + position: relative; + top: 2px; + left: 2px; +} +.textbox img { + max-width: 100%; +} +.textbox p { + margin-top: 2px; +} +.textbox p { + margin-top: 2px; + color: #000; + margin-bottom: 2px; + text-align: justify; +} +.textbox img { + max-width: 100%; +} +.textbox ul { + margin: 3px 0 3px 0; + list-style: circle!important; +} +.textbox li { + margin: 0!important; +} +.pageitem li:first-child, .pageitem li.form:first-child { + border-top: 0; +} +li.menu, li.checkbox, li.radiobutton, li.select, li.button, li.bigfield, li.smallfield { + position: relative; + list-style-type: none; + display: block; + height: 43px; + overflow: hidden; + border-top: 1px solid #878787; + width: auto; +} +ul.pageitem li:first-child:hover, .pageitem li:first-child a, li.radiobutton:first-child input, li.select:first-child select, li.button:first-child input, .bigfield:first-child input { + -webkit-border-top-left-radius: 8px; + -webkit-border-top-right-radius: 8px; +} +ul.pageitem li:last-child:hover, .pageitem li:last-child a, li.radiobutton:last-child input, li.select:last-child select, li.button:last-child input, .bigfiel:last-child input { + -webkit-border-bottom-left-radius: 8px; + -webkit-border-bottom-right-radius: 8px; +} +li.menu:hover, li.store:hover, body.list div#content li a:hover, body.list li.withimage:hover, body.applist li:hover:nth-child(n),body.ipodlist li:hover:nth-child(n) { + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#058cf5), to(#015fe6)); +} +body.ipodlist li:hover:nth-child(n) .name,body.ipodlist li:hover:nth-child(n) .time{border:0} +li.menu a:hover span.name, li.menu a:hover span.comment, li.store:hover .starcomment, li.store:hover .name, li.store:hover .comment, body.list li.withimage a:hover .comment { + color: #fff; +} +li.menu a:hover span.comment { + color: #CCF; +} +li.menu a { + display: block; + height: 43px; + width: auto; + text-decoration: none; +} +li.menu a img { + width: auto; + height: 32px; + margin: 5px 0 0 5px; + float: left; +} +li.menu span.name, li.checkbox .name, li.radiobutton .name { + margin: 11px 0 0 7px; + width: auto; + color: #000; + font-weight: bold; + font-size: 17px; + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + float: left; +} +li.menu span.comment { + margin: 11px 30px 0 0; + width: auto; + font-size: 17px; + text-overflow: ellipsis; + overflow: hidden; + max-width: 75%; + white-space: nowrap; + float: right; + color: #324f85; +} +li.menu span.arrow, li.store span.arrow, body.musiclist span.arrow, body.list span.arrow { + position: absolute; + width: 8px!important; + height: 13px!important; + right: 10px; + top: 15px; + margin: 0!important; + background: url("../images/arrow.png") 0 0 no-repeat; +} +body.applist span.arrow { + position: absolute; + width: 8px!important; + height: 13px!important; + right: 10px; + top: 29px; + margin: 0!important; + background: url("../images/arrow.png") 0 0 no-repeat; +} +li.store { + height: 90px; + border-top: #878787 solid 1px; + overflow: hidden; + position: relative; +} +li.store a { + width: 100%; + height: 90px; + display: block; + text-decoration: none; + position: absolute; +} +li.store .image { + position: absolute; + left: 0; + top: 0; + height: 80px; + width: 80px; + display: block; + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#eff1f5), to(#d6dce6)); + -webkit-background-size: 90px; +} +body.applist .image { + width: 57px; + height: 57px; + display: block; + position: absolute; + top: 7px; + left: 11px; + -webkit-border-radius: 8px; + -webkit-box-shadow: 0 2px 3px rgb(0,0,0); + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#7c7c7c), color-stop(3%, #858585), color-stop(97%, #a4a4a4),to(#c2c2c2)); + -webkit-background-size: 57px; +} +li:first-child.store .image, li.store:first-child a { + -webkit-border-top-left-radius: 8px 8px; +} +li:last-child.store .image, li.store:last-child a { + -webkit-border-bottom-left-radius: 8px 8px; +} +li.store .name, body.applist .name { + font-size: 15px; + white-space: nowrap; + display: block; + overflow: hidden; + color: #000; + max-width: 60%; + text-overflow: ellipsis; + font-weight: bold; +} +li.store .name { + position: absolute; + left: 95px; + top: 35px; +} +body.applist .name { + position: absolute; + top: 27px; + left: 80px; + text-shadow: #eeeeee 0 1px 0; +} +li.store .comment, body.list li.withimage .comment, body.applist .comment, body.applist .price { + font-size: 12px; + color: #7f7f7f; + display: block; + width: 60%; + font-weight: bold; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; +} +li.store .comment, body.list li.withimage .comment { + margin: 16px 0 0 95px; +} +body.applist .comment { + position: absolute; + top: 9px; + left: 80px; + text-shadow: #eeeeee 0 1px 0; + color: #3b3b3b; +} +body.applist .price { + position: absolute; + top: 29px; + right: 26px; + text-shadow: #eeeeee 0 1px 0; + text-align: right; + color: #3b3b3b; +} +li.store .arrow, body.list li.withimage .arrow { + top: 39px!important; +} +li.store .stars0, li.store .stars1, li.store .stars2, li.store .stars3, li.store .stars4, li.store .stars5 { + position: absolute; + top: 56px; + left: 95px; + width: 65px; + height: 18px; + display: block!important; +} +li.store .stars0 { + background: url('../images/0starsborder.png'); +} +li.store .stars1 { + background: url('../images/1starsborder.png'); +} +li.store .stars2 { + background: url('../images/2starsborder.png'); +} +li.store .stars3 { + background: url('../images/3starsborder.png'); +} +li.store .stars4 { + background: url('../images/4starsborder.png'); +} +li.store .stars5, body.applist .stars5 { + background: url('../images/5stars.png'); +} +body.applist .stars0, body.applist .stars1, body.applist .stars2, body.applist .stars3, body.applist .stars4, body.applist .stars5 { + position: absolute; + top: 46px; + left: 79px; + width: 65px; + height: 18px; + display: block!important; +} +body.applist .stars0 { + background: url('../images/0stars.png'); +} +body.applist .stars1 { + background: url('../images/1stars.png'); +} +body.applist .stars2 { + background: url('../images/2stars.png'); +} +body.applist .stars3 { + background: url('../images/3stars.png'); +} +body.applist .stars4 { + background: url('../images/4stars.png'); +} +body.applist .starcomment { + left: 147px; + top: 46px; + color: #3b3b3b; +} +.starcomment { + position: absolute; + left: 165px; + top: 56px; + font-size: 12px; + color: #7f7f7f; + font-weight: lighter; +} +body.applist a:hover .name, body.applist a:hover .starcomment, body.applist a:hover .comment, body.applist a:hover .price { + color: white; + text-shadow: none; +} +.graytitle { + position: relative; + font-weight: bold; + font-size: 17px; + right: 20px; + left: 9px; + color: #4C4C4C; + text-shadow: #FFF 0 1px 0; + padding: 1px 0 3px 8px; +} +.header { + display: block; + font-weight: bold; + color: rgb(73,102,145); + font-size: 12pt; + margin-bottom: 6px; + line-height: 14pt; +} +body.musiclist div#content, body.ipodlist div#content, body.applist div#content { + width: auto; + margin: -16px auto auto -40px; +} +body.musiclist li:nth-child(odd) { + background: #dddee0 +} +body.applist li:nth-child(even) { + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#adadb0), color-stop(98%, #adadb0), to(#898a8d)) +} +body.applist li:nth-child(odd) { + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#98989c), color-stop(98%, #98989c), to(#898a8d)) + +} +body.ipodlist li:nth-child(even) { + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#414041), color-stop(3%, rgba(45,45,45,0.2)), to(rgba(45,45,45,0.2))) +} +body.ipodlist li:nth-child(odd) { + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#414041), color-stop(3%, rgba(50,50,50,0.4)), to(rgba(50,50,50,0.4))) +} +body.musiclist div#content ul li, body.ipodlist div#content ul li, body.applist div#content ul li { + list-style: none; + width: auto; + position: relative; +} +body.musiclist div#content ul li { + height: 44px; + border-bottom: 1px solid #e6e6e6; +} +body.applist div#content ul li { + height: 70px; + margin-bottom: 1px; +} +body.ipodlist div#content ul li { + height: 42px; +} +body.ipodlist div#content { + background: -webkit-gradient(radial, 50% -70, 0, 50% 0, 200, from(#444444), to(rgb(13, 13, 13))) rgb(13, 13, 13); +} +body.musiclist div#content ul li a, body.ipodlist div#content ul li a { + text-decoration: none; + color: #000; + width: 100%!important; + height: 100%; + display: block; +} +body.applist div#content ul li a { + text-decoration: none; + color: #000; + width: 100%; + height: 100%; + display: block; +} +body.musiclist ul li .number, body.musiclist .name, body.musiclist .time { + display: inline-block; + height: 44px; + font-weight: bold; + font-size: large; + width: 44px; + text-align: center; + line-height: 46px; +} +body.musiclist ul li .name { + margin-left: 0; + width: auto!important; + font-size: medium; + padding-left: 5px; + border-left: solid 1px #e6e6e6; +} +body.musiclist ul li .time { + color: #848484; + font-size: medium; + margin-left: 4px; + width: auto!important; + font-weight: normal; +} +body.musiclist { + background-image: none!important; + background-color: #cbcccf; +} +body.ipodlist { + background-image: none!important; + background-color: black; +} +body.applist { + background-image: none!important; + background-color: #98989c; +} +body.ipodlist span { + color: white; + font-weight: bold; + font-size: 14px; +} +body.musiclist ul li span.name { + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; +} +body.musiclist a:hover span.name { + color: #0380f2; +} +body.ipodlist .number { + width: 23px; + display: block; + float: left; + height: 42px; + margin-right: 3px; + text-align: right; + line-height: 43px; +} +body.ipodlist .stop, body.ipodlist .auto, body.ipodlist .play { + width: 18px; + display: block; + float: left; + height: 10px; + text-align: right; + line-height: 43px; + margin-top: 16px; +} +body.ipodlist .play { + background: url('../images/play.gif') no-repeat; +} +body.ipodlist a:hover .auto, body.ipodlist a:hover .play { + background: url('../images/play.gif') no-repeat; + background-position: 0 -10px; +} +body.ipodlist .time { + width: 48px; + float: right; + border-left: solid #414041 1px; + display: block; + height: 42px; + text-align: center; + line-height: 43px; +} +body.ipodlist .name { + display: block; + float: left; + width: inherit; + height: 42px; + text-overflow: ellipsis; + line-height: 42px; + padding-left: 5px; + overflow: hidden; + white-space: nowrap; + max-width: 62%; + border-left: solid #414041 1px; +} +body.list ul li.title { + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#a5b1ba), color-stop(3%, #909faa), color-stop(97%, #b5bfc6), to(#989ea4)); + height: 22px!important; + width: 100%; + color: #fff; + font-weight: bold; + font-size: 16px; + text-shadow: gray 0 1px 0; + line-height: 22px; + padding-left: 20px; + border-bottom: none!important; +} +body.list ul { + background-color: #fff; + width: 100%; + overflow: hidden; + padding: 0; + margin: 0; +} +body.list div#content li { + height: 40px; + border-bottom: 1px solid #e1e1e1; + list-style: none; +} +body.list { + background-color: #fff; + background-image: none!important; +} +body.list div#footer { + margin-top: 24px!important; +} +body.list div#content li a { + padding: 9px 0 0 20px; + font-size: large; + font-weight: bold; + position: relative; + display: block; + color: #000; + text-decoration: none; + height: 32px; +} +body.list div#content li a span.name { + text-overflow: ellipsis; + overflow: hidden; + max-width: 93%; + white-space: nowrap; + display: block; +} +body.list div#content li a:hover { + color: #fff; +} +body.list div#content { + margin-top: -13px!important; +} +body.list ul img { + width: 90px; + height: 90px; + position: absolute; + left: 0; + top: 0; +} +body.list li.withimage { + height: 90px!important; +} +body.list li.withimage span.name { + margin: 13px 0 0 90px; + text-overflow: ellipsis; + overflow: hidden; + max-width: 63%!important; + white-space: nowrap; +} +body.list li.withimage .comment { + margin: 10px auto auto 90px !important; + max-width: 63%!important; +} +body.list li.withimage a, body.list li.withimage:hover a { + height: 81px!important; +} +#leftnav, #leftbutton, #blueleftbutton { + position: absolute; + font-size: 12px; + left: 9px; + font-weight: bold; +} +#leftnav, #leftbutton, #rightnav, #rightbutton, #blueleftbutton, #bluerightbutton { + z-index: 5000; +} +#leftnav a, #rightnav a, #leftbutton a, #rightbutton a, #blueleftbutton a, #bluerightbutton a { + display: block; + color: #fff; + text-shadow: rgba(0,0,0,0.6) 0 -1px 0; + text-decoration: none; +} +.black #leftnav a:first-child, .transparent #leftnav a:first-child { + -webkit-border-image: url("../images/navleftblack.png") 0 5 0 13; +} +.black #leftnav a, .transparent #leftnav a { + -webkit-border-image: url("../images/navlinkleftblack.png") 0 5 0 13; +} +.black #rightnav a:first-child, .transparent #rightnav a:first-child { + -webkit-border-image: url("../images/navrightblack.png") 0 13 0 5; +} +.black #rightnav a, .transparent #rightnav a { + -webkit-border-image: url("../images/navlinkrightblack.png") 0 13 0 5; +} +.black #leftbutton a, .black #rightbutton a, .transparent #leftbutton a, .transparent #rightbutton a { + -webkit-border-image: url("../images/navbuttonblack.png") 0 5 0 5; +} +#leftnav a:first-child { + z-index: 2; + -webkit-border-image: url("../images/navleft.png") 0 5 0 13; + border-width: 0 5px 0 13px; + -webkit-border-top-left-radius: 16px; + -webkit-border-bottom-left-radius: 16px; + -webkit-border-top-right-radius: 6px; + -webkit-border-bottom-right-radius: 6px; + width: auto; +} +#leftnav a { + -webkit-border-image: url("../images/navlinkleft.png") 0 5 0 13; + z-index: 3; + margin-left: -4px; + border-width: 0 5px 0 13px; + padding-right: 4px; + -webkit-border-top-left-radius: 16px; + -webkit-border-bottom-left-radius: 16px; + -webkit-border-top-right-radius: 6px; + -webkit-border-bottom-right-radius: 6px; + float: left; +} +#rightnav, #rightbutton, #bluerightbutton { + position: absolute; + font-size: 12px; + right: 9px; + font-weight: bold; +} +#rightnav a { + -webkit-border-image: url("../images/navlinkright.png") 0 13 0 5; + z-index: 3; + margin-right: -4px; + border-width: 0 13px 0 5px; + padding-left: 4px; + -webkit-border-top-left-radius: 6px; + -webkit-border-bottom-left-radius: 6px; + float: right; + -webkit-border-top-right-radius: 16px; + -webkit-border-bottom-right-radius: 16px; +} +#rightnav a:first-child { + z-index: 2; + -webkit-border-top-left-radius: 6px; + -webkit-border-bottom-left-radius: 6px; + -webkit-border-image: url("../images/navright.png") 0 13 0 5; + border-width: 0 13px 0 5px; + -webkit-border-top-right-radius: 16px; + -webkit-border-bottom-right-radius: 16px; +} +#leftbutton a, #rightbutton a { + -webkit-border-image: url("../images/navbutton.png") 0 5 0 5; + border-width: 0 5px; + -webkit-border-radius: 6px; +} +#blueleftbutton a, #bluerightbutton a { + -webkit-border-image: url("../images/navbuttonblue.png") 0 5 0 5; + border-width: 0 5px; + -webkit-border-radius: 6px; +} +.rssxpresschannel { + font-family: helvetica,sans-serif; + border: 0; +} +} +.rssxpresschtitle { + text-align: center; +} +.rssxpresschdesc { + color: #000; + text-align: center; + border-bottom: 1px solid #000; + padding-bottom: 5px; +} +.rssxpressittitle { + display: block; + font-size: 12pt; + background: #fff; + margin: 5px 0 2px; +} +.rssxpressittitle a { + text-decoration: none!important; + font-weight: bold; + color: rgb(73,102,145); + line-height: 10pt; +} +.rssxpressitdesc { + background: #fff; + font-size: 10pt; +} +.rssxpressdivider { + display: none; +} +input[type="checkbox"] { + width: 94px; + height: 27px; + background: url('../images/checkbox.png'); + -webkit-appearance: none; + border: 0; + float: right; + margin: 8px 4px 0 0; +} +input[type="checkbox"]:checked { + background-position: 0 27px; +} +input[type="radio"] { + -webkit-appearance: none; + border: 0; + width: 100%; + height: 100%; + z-index: 2; + position: absolute; + left: 0; + margin: 0; + -webkit-border-radius: 0; +} +input[type="radio"]:checked { + background: url('../images/radiobutton.png') no-repeat; + background-position: right center; +} +.radiobutton .name { + z-index: 1; +} +select { + -webkit-appearance: none; + height: 100%; + width: 100%; + border: 0; +} +li.select select { + -webkit-border-radius: 0; + color: #000; + font-weight: bold; + font-size: 17px; +} +li.select option { + max-width: 90%; +} +li.select .arrow { + background: url('../images/arrow.png'); + width: 8px; + height: 13px; + display: block; + -webkit-transform: rotate(90deg); + position: absolute; + right: 10px; + top: 18px; +} +.button input { + width: 100%; + height: 100%; + -webkit-appearance: none; + border: 0; + -webkit-border-radius: 0; + font-weight: bold; + font-size: 17px; + text-overflow: ellipsis; + white-space: nowrap; + overflow: hidden; +} +.textbox textarea { + text-align: center; + padding: 0; + margin-top: 5px; +} +.bigfield input { + -webkit-appearance: none; + border: 0; + width: 100%; + height: 100%; + padding: 0; + -webkit-border-radius: 0; + background: transparent; + font-weight: bold; + font-size: 17px; + padding-left: 5px; +} +.smallfield .name { + width: 48%; + position: absolute; + left: 0; + font-size: 17px; + text-overflow: ellipsis; + white-space: nowrap; + font-weight: bold; + line-height: 44px; + font-size: 17px; + padding-left: 5px; + overflow: hidden; +} +.smallfield input { + width: 50%; + position: absolute; + right: 0; + height: 44px; + -webkit-appearance: none; + border: none; + padding: 0; + background: transparent; + -webkit-border-radius: 0; + font-weight: bold; + font-size: 17px; +} +.smallfield:first-child input { + -webkit-border-top-right-radius: 8px; +} +.smallfield:last-child input { + -webkit-border-bottom-right-radius: 8px; +} diff --git a/css/style.css b/css/style.css new file mode 100755 index 0000000..517fefe --- /dev/null +++ b/css/style.css @@ -0,0 +1,1159 @@ +body { + position: relative; + margin: 0; + -webkit-text-size-adjust: none; + min-height: 416px; + font-family: helvetica,sans-serif; + background: url("../images/background.png") repeat; + -webkit-touch-callout: none; +} +.center { + margin: auto; + display: block; + text-align:center!important +} +img { + border: 0; +} +a:hover span.arrow { + background-position: 0 -13px!important; +} +@media screen and (max-width: 320px) +{ +#topbar { + height: 44px; +} +#title { + line-height: 44px; + height: 44px; + font-size: 16pt; +} +#tributton a:first-child, #duobutton a:first-child { + width: 101px; +} +#tributton a:last-child, #duobutton a:last-child { + width: 101px; +} +#tributton a { + width: 106px; +} +#duobutton .links { + width: 195px; +} +#tributton .links { + width: 302px; +} +#doublead { + width: 300px!important; +} +#duoselectionbuttons { + width: 191px; + height: 30px; + top: 7px; +} +#triselectionbuttons { + width: 290px; + height: 30px; + top: 7px; +} +#triselectionbuttons a:first-child, #duoselectionbuttons a:first-child { + width: 99px; + height: 28px; + line-height: 28px; +} +#triselectionbuttons a { + width: 98px; + height: 28px; + line-height: 28px; +} +#triselectionbuttons a:last-child, #duoselectionbuttons a:last-child { + width: 99px; + height: 28px; + line-height: 28px; +} +.searchbox form { + width: 272px; +} +.searchbox input[type="text"] { + width: 275px; +} +li.menu span.name { + max-width: 77%; +} +li.checkbox .name { + max-width: 190px; +} +li.radiobutton .name { + max-width: 190px; +} +#leftnav a, #rightnav a, #leftbutton a, #rightbutton a, #blueleftbutton a, #bluerightbutton a { + line-height: 30px; + height: 30px; +} +#leftnav img, #rightnav img { + margin-top: 4px; +} +#leftnav, #leftbutton, #blueleftbutton { + top: 7px; +} +#rightnav, #rightbutton, #bluerightbutton { + top: 7px; +} +body.musiclist ul li span.name { + max-width:55% +} +.textbox textarea { + width: 280px; +} +} +@media screen and (min-width: 321px) +{ +#topbar { + height: 32px; +} +#title { + line-height: 32px; + height: 32px; + font-size: 13pt; +} +li.menu span.name { + max-width: 85%; +} +li.checkbox .name { + max-width: 75%; +} +li.radiobutton .name { + max-width: 75%; +} +#leftnav a, #rightnav a, #leftbutton a, #rightbutton a, #blueleftbutton a, #bluerightbutton a { + line-height: 24px; + height: 24px; +} +#leftnav img, #rightnav img { + margin-top: 4px; + height: 70%; +} +#leftnav, #leftbutton, #blueleftbutton { + top: 4px; +} +#rightnav, #rightbutton, #bluerightbutton { + top: 4px; +} +body.musiclist ul li span.name { + max-width:70% +} +.textbox textarea { + width: 440px; +} +#tributton a:first-child, #duobutton a:first-child { + width: 152px; +} +#tributton a:last-child, #duobutton a:last-child { + width: 152px; +} +#tributton a { + width: 154px; +} +#tributton .links { + width: 452px; +} +#duobutton .links { + width: 298px; +} +#doublead { + width: 350px!important; +} +#duoselectionbuttons { + width: 293px; + height: 24px; + top: 4px; +} +#triselectionbuttons { + width: 450px; + height: 24px; + top: 4px; +} +#triselectionbuttons a:first-child, #duoselectionbuttons a:first-child { + width: 150px; + height: 22px; + line-height: 22px; +} +#triselectionbuttons a { + width: 156px; + height: 22px; + line-height: 22px; +} +#triselectionbuttons a:last-child, #duoselectionbuttons a:last-child { + width: 150px; + height: 22px; + line-height: 22px; +} +.searchbox form { + width: 432px; +} +.searchbox input[type="text"] { + width: 435px; +} +} +#topbar.black { + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#858585), color-stop(3%, #636363), color-stop(50%, #202020), color-stop(51%, black), color-stop(97%, black), to(#262626)); +} +#topbar.transparent { + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgba(133,133,133,0.7)), color-stop(3%, rgba(99,99,99,0.7)), color-stop(50%, rgba(32,32,32,0.7)), color-stop(51%, rgba(0,0,0,0.7)), color-stop(97%, rgba(0,0,0,0.7)), to(rgba(38,38,38,0.7))); +} +#topbar { + position: relative; + left: 0; + top: 0; + width: auto; + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#cdd5df), color-stop(3%, #b0bccd), color-stop(50%, #889bb3), color-stop(51%, #8195af), color-stop(97%, #6d84a2), to(#2d3642)); + margin-bottom: 13px; +} +#title { + position: absolute; + font-weight: bold; + top: 0; + left: 0; + right: 0; + padding: 0 10px; + text-align: center; + text-overflow: ellipsis; + white-space: nowrap; + overflow: hidden; + color: #FFF; + text-shadow: rgba(0,0,0,0.6) 0 -1px 0; +} +} +#content { + width: 100%; + position: relative; + min-height: 250px; + margin-top: 10px; + height: auto; + z-index: 0; + overflow: hidden; +} +#footer { + text-align: center; + position: relative; + margin: 20px 10px 0; + height: auto; + width: auto; + bottom: 10px; +} +body.ipodlist #footer, body.ipodlist #footer a { + text-shadow: #FFF 0 -1px 0; +} +#footer a, #footer { + text-decoration: none; + font-size: 9pt; + color: #4C4C4C; + text-shadow: #FFF 0 1px 0; +} +.pageitem { + -webkit-border-radius: 8px; + background-color: #fff; + border: #878787 solid 1px; + font-size: 12pt; + overflow: hidden; + padding: 0; + position: relative; + display: block; + height: auto; + width: auto; + margin: 3px 9px 17px; + list-style: none; +} +.textbox { + padding: 5px 9px; + position: relative; + overflow: hidden; + border-top: 1px solid #878787; +} +#tributton, #duobutton { + height: 44px; + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#cdd4d9), color-stop(3%, #c0c9cf), color-stop(97%, #abb7bf),to(#81929f)); + margin: -13px 0 13px 0; + text-align: center; +} +#tributton .links, #duobutton .links { + height: 30px; + -webkit-border-image: url("../images/tributton.png") 0 4 0 4; + border-width: 0 4px 0 4px; + margin: 0 auto 0px auto; + position: relative; + top: 7px; +} +#tributton a:first-child, #duobutton a:first-child { + border-right: 1px solid #6d7e91; + -webkit-border-top-left-radius: 5px; + -webkit-border-bottom-left-radius: 5px; + margin-left: -4px; +} +#tributton a, #duobutton a { + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + height: 27px; + display: inline-block; + line-height: 27px; + margin-top: 1px; + font: bold 13px; + text-decoration: none; + color: #3f5c84; + text-shadow: #FFF 0 1px 0; +} +#duobutton a:last-child { + border: 0; +} +#tributton a:last-child { + border-left: 1px solid #6d7e91; +} +#tributton a:last-child, #duobutton a:last-child { + -webkit-border-top-right-radius: 5px; + -webkit-border-bottom-right-radius: 5px; + margin-right: -4px; +} +#tributton a:hover, #tributton a#pressed, #duobutton a:hover, #duobutton a#pressed { + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#7b8b9f), color-stop(3%, #8c9baf), to(#647792)); + color: white; + text-shadow: black 0 -1px 0; +} +#triselectionbuttons, #duoselectionbuttons { + -webkit-border-image: url('../images/navbutton.png') 0 5 0 5; + border-width: 0 5px 0 5px; + position: relative; + margin: auto; +} +#duoselectionbuttons a:first-child { + border: 0; +} +#triselectionbuttons a:first-child { + border-right: solid 1px #556984; +} +#triselectionbuttons a:first-child, #duoselectionbuttons a:first-child { + margin-left: -4px; + -webkit-border-top-left-radius: 6px; + -webkit-border-bottom-left-radius: 6px; +} +#triselectionbuttons a, #duoselectionbuttons a { + display: inline-block; + text-align: center; + color: white; + text-decoration: none; + margin-top: 1px; + text-shadow: black 0 -1px 0; + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#909baa), color-stop(3%, #a5b4c6), color-stop(50%, #798eaa), color-stop(51%, #6b83a1), color-stop(97%, #6e85a3), to(#526379)); +} +#triselectionbuttons a:last-child, #duoselectionbuttons a:last-child { + border-left: solid 1px #556984; + margin-right: -4px; + -webkit-border-top-right-radius: 6px; + -webkit-border-bottom-right-radius: 6px; +} +#triselectionbuttons a:hover, #triselectionbuttons a#pressed, #duoselectionbuttons a:hover, #duoselectionbuttons a#pressed { + background: none; +} +#doublead { + height: 83px!important; + position: relative; + margin: 0 auto 13px auto; +} +#doublead a:first-child { + left: 0!important; +} +#doublead a:last-child { + right: 0!important; +} +#doublead a { + width: 147px!important; + height: 83px!important; + position: absolute; + -webkit-border-radius: 8px; + display: block; + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#7c7c7c), color-stop(3%, #858585), color-stop(97%, #a4a4a4),to(#c2c2c2)); +} +li#doublead { + margin-top: 25px; + margin-bottom: 10px!important; + background: none; +} +li#doublead:hover { + background: none; +} +.searchbox { + height: 44px; + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#f1f3f4), color-stop(3%, #e0e4e7), color-stop(50%, #c7cfd4), color-stop(51%, #bec7cd), color-stop(97%, #b4bec6), to(#8999a5)); + margin: -13px 0 13px 0; + width: 100%; +} +.searchbox form { + height: 24px; + -webkit-border-image: url('../images/searchfield.png') 4 14 1 24; + border-width: 4px 14px 1px 24px; + display: block; + position: relative; + top: 8px; + margin: auto; +} +fieldset { + border: 0; + margin: 0; + padding: 0; +} +.searchbox input[type="text"] { + border: 0; + -webkit-appearance: none; + height: 18px; + float: left; + font-size: 13px; + padding: 0; + position: relative; + top: 2px; + left: 2px; +} +.textbox img { + max-width: 100%; +} +.textbox p { + margin-top: 2px; +} +.textbox p { + margin-top: 2px; + color: #000; + margin-bottom: 2px; + text-align: justify; +} +.textbox img { + max-width: 100%; +} +.textbox ul { + margin: 3px 0 3px 0; + list-style: circle!important; +} +.textbox li { + margin: 0!important; +} +.pageitem li:first-child, .pageitem li.form:first-child { + border-top: 0; +} +li.menu, li.checkbox, li.radiobutton, li.select, li.button, li.bigfield, li.smallfield { + position: relative; + list-style-type: none; + display: block; + height: 43px; + overflow: hidden; + border-top: 1px solid #878787; + width: auto; +} +ul.pageitem li:first-child:hover, .pageitem li:first-child a, li.radiobutton:first-child input, li.select:first-child select, li.button:first-child input, .bigfield:first-child input { + -webkit-border-top-left-radius: 8px; + -webkit-border-top-right-radius: 8px; +} +ul.pageitem li:last-child:hover, .pageitem li:last-child a, li.radiobutton:last-child input, li.select:last-child select, li.button:last-child input, .bigfiel:last-child input { + -webkit-border-bottom-left-radius: 8px; + -webkit-border-bottom-right-radius: 8px; +} +li.menu:hover, li.store:hover, body.list div#content li a:hover, body.list li.withimage:hover, body.applist li:hover:nth-child(n),body.ipodlist li:hover:nth-child(n) { + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#058cf5), to(#015fe6)); +} +body.ipodlist li:hover:nth-child(n) .name,body.ipodlist li:hover:nth-child(n) .time{border:0} +li.menu a:hover span.name, li.menu a:hover span.comment, li.store:hover .starcomment, li.store:hover .name, li.store:hover .comment, body.list li.withimage a:hover .comment { + color: #fff; +} +li.menu a:hover span.comment { + color: #CCF; +} +li.menu a { + display: block; + height: 43px; + width: auto; + text-decoration: none; +} +li.menu a img { + width: auto; + height: 32px; + margin: 5px 0 0 5px; + float: left; +} +li.menu span.name, li.checkbox .name, li.radiobutton .name { + margin: 11px 0 0 7px; + width: auto; + color: #000; + font-weight: bold; + font-size: 17px; + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + float: left; +} +li.menu span.comment { + margin: 11px 30px 0 0; + width: auto; + font-size: 17px; + text-overflow: ellipsis; + overflow: hidden; + max-width: 75%; + white-space: nowrap; + float: right; + color: #324f85; +} +li.menu span.arrow, li.store span.arrow, body.musiclist span.arrow, body.list span.arrow { + position: absolute; + width: 8px!important; + height: 13px!important; + right: 10px; + top: 15px; + margin: 0!important; + background: url("../images/arrow.png") 0 0 no-repeat; +} +body.applist span.arrow { + position: absolute; + width: 8px!important; + height: 13px!important; + right: 10px; + top: 29px; + margin: 0!important; + background: url("../images/arrow.png") 0 0 no-repeat; +} +li.store { + height: 90px; + border-top: #878787 solid 1px; + overflow: hidden; + position: relative; +} +li.store a { + width: 100%; + height: 90px; + display: block; + text-decoration: none; + position: absolute; +} +li.store .image { + position: absolute; + left: 0; + top: 0; + height: 80px; + width: 80px; + display: block; + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#eff1f5), to(#d6dce6)); + -webkit-background-size: 90px; +} +body.applist .image { + width: 57px; + height: 57px; + display: block; + position: absolute; + top: 7px; + left: 11px; + -webkit-border-radius: 8px; + -webkit-box-shadow: 0 2px 3px rgb(0,0,0); + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#7c7c7c), color-stop(3%, #858585), color-stop(97%, #a4a4a4),to(#c2c2c2)); + -webkit-background-size: 57px; +} +li:first-child.store .image, li.store:first-child a { + -webkit-border-top-left-radius: 8px 8px; +} +li:last-child.store .image, li.store:last-child a { + -webkit-border-bottom-left-radius: 8px 8px; +} +li.store .name, body.applist .name { + font-size: 15px; + white-space: nowrap; + display: block; + overflow: hidden; + color: #000; + max-width: 60%; + text-overflow: ellipsis; + font-weight: bold; +} +li.store .name { + position: absolute; + left: 95px; + top: 35px; +} +body.applist .name { + position: absolute; + top: 27px; + left: 80px; + text-shadow: #eeeeee 0 1px 0; +} +li.store .comment, body.list li.withimage .comment, body.applist .comment, body.applist .price { + font-size: 12px; + color: #7f7f7f; + display: block; + width: 60%; + font-weight: bold; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; +} +li.store .comment, body.list li.withimage .comment { + margin: 16px 0 0 95px; +} +body.applist .comment { + position: absolute; + top: 9px; + left: 80px; + text-shadow: #eeeeee 0 1px 0; + color: #3b3b3b; +} +body.applist .price { + position: absolute; + top: 29px; + right: 26px; + text-shadow: #eeeeee 0 1px 0; + text-align: right; + color: #3b3b3b; +} +li.store .arrow, body.list li.withimage .arrow { + top: 39px!important; +} +li.store .stars0, li.store .stars1, li.store .stars2, li.store .stars3, li.store .stars4, li.store .stars5 { + position: absolute; + top: 56px; + left: 95px; + width: 65px; + height: 18px; + display: block!important; +} +li.store .stars0 { + background: url('../images/0starsborder.png'); +} +li.store .stars1 { + background: url('../images/1starsborder.png'); +} +li.store .stars2 { + background: url('../images/2starsborder.png'); +} +li.store .stars3 { + background: url('../images/3starsborder.png'); +} +li.store .stars4 { + background: url('../images/4starsborder.png'); +} +li.store .stars5, body.applist .stars5 { + background: url('../images/5stars.png'); +} +body.applist .stars0, body.applist .stars1, body.applist .stars2, body.applist .stars3, body.applist .stars4, body.applist .stars5 { + position: absolute; + top: 46px; + left: 79px; + width: 65px; + height: 18px; + display: block!important; +} +body.applist .stars0 { + background: url('../images/0stars.png'); +} +body.applist .stars1 { + background: url('../images/1stars.png'); +} +body.applist .stars2 { + background: url('../images/2stars.png'); +} +body.applist .stars3 { + background: url('../images/3stars.png'); +} +body.applist .stars4 { + background: url('../images/4stars.png'); +} +body.applist .starcomment { + left: 147px; + top: 46px; + color: #3b3b3b; +} +.starcomment { + position: absolute; + left: 165px; + top: 56px; + font-size: 12px; + color: #7f7f7f; + font-weight: lighter; +} +body.applist a:hover .name, body.applist a:hover .starcomment, body.applist a:hover .comment, body.applist a:hover .price { + color: white; + text-shadow: none; +} +.graytitle { + position: relative; + font-weight: bold; + font-size: 17px; + right: 20px; + left: 9px; + color: #4C4C4C; + text-shadow: #FFF 0 1px 0; + padding: 1px 0 3px 8px; +} +.header { + display: block; + font-weight: bold; + color: rgb(73,102,145); + font-size: 12pt; + margin-bottom: 6px; + line-height: 14pt; +} +body.musiclist div#content, body.ipodlist div#content, body.applist div#content { + width: auto; + margin: -16px auto auto -40px; +} +body.musiclist li:nth-child(odd) { + background: #dddee0 +} +body.applist li:nth-child(even) { + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#adadb0), color-stop(98%, #adadb0), to(#898a8d)) +} +body.applist li:nth-child(odd) { + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#98989c), color-stop(98%, #98989c), to(#898a8d)) + +} +body.ipodlist li:nth-child(even) { + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#414041), color-stop(3%, rgba(45,45,45,0.2)), to(rgba(45,45,45,0.2))) +} +body.ipodlist li:nth-child(odd) { + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#414041), color-stop(3%, rgba(50,50,50,0.4)), to(rgba(50,50,50,0.4))) +} +body.musiclist div#content ul li, body.ipodlist div#content ul li, body.applist div#content ul li { + list-style: none; + width: auto; + position: relative; +} +body.musiclist div#content ul li { + height: 44px; + border-bottom: 1px solid #e6e6e6; +} +body.applist div#content ul li { + height: 70px; + margin-bottom: 1px; +} +body.ipodlist div#content ul li { + height: 42px; +} +body.ipodlist div#content { + background: -webkit-gradient(radial, 50% -70, 0, 50% 0, 200, from(#444444), to(rgb(13, 13, 13))) rgb(13, 13, 13); +} +body.musiclist div#content ul li a, body.ipodlist div#content ul li a { + text-decoration: none; + color: #000; + width: 100%!important; + height: 100%; + display: block; +} +body.applist div#content ul li a { + text-decoration: none; + color: #000; + width: 100%; + height: 100%; + display: block; +} +body.musiclist ul li .number, body.musiclist .name, body.musiclist .time { + display: inline-block; + height: 44px; + font-weight: bold; + font-size: large; + width: 44px; + text-align: center; + line-height: 46px; +} +body.musiclist ul li .name { + margin-left: 0; + width: auto!important; + font-size: medium; + padding-left: 5px; + border-left: solid 1px #e6e6e6; +} +body.musiclist ul li .time { + color: #848484; + font-size: medium; + margin-left: 4px; + width: auto!important; + font-weight: normal; +} +body.musiclist { + background-image: none!important; + background-color: #cbcccf; +} +body.ipodlist { + background-image: none!important; + background-color: black; +} +body.applist { + background-image: none!important; + background-color: #98989c; +} +body.ipodlist span { + color: white; + font-weight: bold; + font-size: 14px; +} +body.musiclist ul li span.name { + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; +} +body.musiclist a:hover span.name { + color: #0380f2; +} +body.ipodlist .number { + width: 23px; + display: block; + float: left; + height: 42px; + margin-right: 3px; + text-align: right; + line-height: 43px; +} +body.ipodlist .stop, body.ipodlist .auto, body.ipodlist .play { + width: 18px; + display: block; + float: left; + height: 10px; + text-align: right; + line-height: 43px; + margin-top: 16px; +} +body.ipodlist .play { + background: url('../images/play.gif') no-repeat; +} +body.ipodlist a:hover .auto, body.ipodlist a:hover .play { + background: url('../images/play.gif') no-repeat; + background-position: 0 -10px; +} +body.ipodlist .time { + width: 48px; + float: right; + border-left: solid #414041 1px; + display: block; + height: 42px; + text-align: center; + line-height: 43px; +} +body.ipodlist .name { + display: block; + float: left; + width: inherit; + height: 42px; + text-overflow: ellipsis; + line-height: 42px; + padding-left: 5px; + overflow: hidden; + white-space: nowrap; + max-width: 62%; + border-left: solid #414041 1px; +} +body.list ul li.title { + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#a5b1ba), color-stop(3%, #909faa), color-stop(97%, #b5bfc6), to(#989ea4)); + height: 22px!important; + width: 100%; + color: #fff; + font-weight: bold; + font-size: 16px; + text-shadow: gray 0 1px 0; + line-height: 22px; + padding-left: 20px; + border-bottom: none!important; +} +body.list ul { + background-color: #fff; + width: 100%; + overflow: hidden; + padding: 0; + margin: 0; +} +body.list div#content li { + height: 40px; + border-bottom: 1px solid #e1e1e1; + list-style: none; +} +body.list { + background-color: #fff; + background-image: none!important; +} +body.list div#footer { + margin-top: 24px!important; +} +body.list div#content li a { + padding: 9px 0 0 20px; + font-size: large; + font-weight: bold; + position: relative; + display: block; + color: #000; + text-decoration: none; + height: 32px; +} +body.list div#content li a span.name { + text-overflow: ellipsis; + overflow: hidden; + max-width: 93%; + white-space: nowrap; + display: block; +} +body.list div#content li a:hover { + color: #fff; +} +body.list div#content { + margin-top: -13px!important; +} +body.list ul img { + width: 90px; + height: 90px; + position: absolute; + left: 0; + top: 0; +} +body.list li.withimage { + height: 90px!important; +} +body.list li.withimage span.name { + margin: 13px 0 0 90px; + text-overflow: ellipsis; + overflow: hidden; + max-width: 63%!important; + white-space: nowrap; +} +body.list li.withimage .comment { + margin: 10px auto auto 90px !important; + max-width: 63%!important; +} +body.list li.withimage a, body.list li.withimage:hover a { + height: 81px!important; +} +#leftnav, #leftbutton, #blueleftbutton { + position: absolute; + font-size: 12px; + left: 9px; + font-weight: bold; +} +#leftnav, #leftbutton, #rightnav, #rightbutton, #blueleftbutton, #bluerightbutton { + z-index: 5000; +} +#leftnav a, #rightnav a, #leftbutton a, #rightbutton a, #blueleftbutton a, #bluerightbutton a { + display: block; + color: #fff; + text-shadow: rgba(0,0,0,0.6) 0 -1px 0; + text-decoration: none; +} +.black #leftnav a:first-child, .transparent #leftnav a:first-child { + -webkit-border-image: url("../images/navleftblack.png") 0 5 0 13; +} +.black #leftnav a, .transparent #leftnav a { + -webkit-border-image: url("../images/navlinkleftblack.png") 0 5 0 13; +} +.black #rightnav a:first-child, .transparent #rightnav a:first-child { + -webkit-border-image: url("../images/navrightblack.png") 0 13 0 5; +} +.black #rightnav a, .transparent #rightnav a { + -webkit-border-image: url("../images/navlinkrightblack.png") 0 13 0 5; +} +.black #leftbutton a, .black #rightbutton a, .transparent #leftbutton a, .transparent #rightbutton a { + -webkit-border-image: url("../images/navbuttonblack.png") 0 5 0 5; +} +#leftnav a:first-child { + z-index: 2; + -webkit-border-image: url("../images/navleft.png") 0 5 0 13; + border-width: 0 5px 0 13px; + -webkit-border-top-left-radius: 16px; + -webkit-border-bottom-left-radius: 16px; + -webkit-border-top-right-radius: 6px; + -webkit-border-bottom-right-radius: 6px; + width: auto; +} +#leftnav a { + -webkit-border-image: url("../images/navlinkleft.png") 0 5 0 13; + z-index: 3; + margin-left: -4px; + border-width: 0 5px 0 13px; + padding-right: 4px; + -webkit-border-top-left-radius: 16px; + -webkit-border-bottom-left-radius: 16px; + -webkit-border-top-right-radius: 6px; + -webkit-border-bottom-right-radius: 6px; + float: left; +} +#rightnav, #rightbutton, #bluerightbutton { + position: absolute; + font-size: 12px; + right: 9px; + font-weight: bold; +} +#rightnav a { + -webkit-border-image: url("../images/navlinkright.png") 0 13 0 5; + z-index: 3; + margin-right: -4px; + border-width: 0 13px 0 5px; + padding-left: 4px; + -webkit-border-top-left-radius: 6px; + -webkit-border-bottom-left-radius: 6px; + float: right; + -webkit-border-top-right-radius: 16px; + -webkit-border-bottom-right-radius: 16px; +} +#rightnav a:first-child { + z-index: 2; + -webkit-border-top-left-radius: 6px; + -webkit-border-bottom-left-radius: 6px; + -webkit-border-image: url("../images/navright.png") 0 13 0 5; + border-width: 0 13px 0 5px; + -webkit-border-top-right-radius: 16px; + -webkit-border-bottom-right-radius: 16px; +} +#leftbutton a, #rightbutton a { + -webkit-border-image: url("../images/navbutton.png") 0 5 0 5; + border-width: 0 5px; + -webkit-border-radius: 6px; +} +#blueleftbutton a, #bluerightbutton a { + -webkit-border-image: url("../images/navbuttonblue.png") 0 5 0 5; + border-width: 0 5px; + -webkit-border-radius: 6px; +} +.rssxpresschannel { + font-family: helvetica,sans-serif; + border: 0; +} +} +.rssxpresschtitle { + text-align: center; +} +.rssxpresschdesc { + color: #000; + text-align: center; + border-bottom: 1px solid #000; + padding-bottom: 5px; +} +.rssxpressittitle { + display: block; + font-size: 12pt; + background: #fff; + margin: 5px 0 2px; +} +.rssxpressittitle a { + text-decoration: none!important; + font-weight: bold; + color: rgb(73,102,145); + line-height: 10pt; +} +.rssxpressitdesc { + background: #fff; + font-size: 10pt; +} +.rssxpressdivider { + display: none; +} +input[type="checkbox"] { + width: 94px; + height: 27px; + background: url('../images/checkbox.png'); + -webkit-appearance: none; + border: 0; + float: right; + margin: 8px 4px 0 0; +} +input[type="checkbox"]:checked { + background-position: 0 27px; +} +input[type="radio"] { + -webkit-appearance: none; + border: 0; + width: 100%; + height: 100%; + z-index: 2; + position: absolute; + left: 0; + margin: 0; + -webkit-border-radius: 0; +} +input[type="radio"]:checked { + background: url('../images/radiobutton.png') no-repeat; + background-position: right center; +} +.radiobutton .name { + z-index: 1; +} +select { + -webkit-appearance: none; + height: 100%; + width: 100%; + border: 0; +} +li.select select { + -webkit-border-radius: 0; + color: #000; + font-weight: bold; + font-size: 17px; +} +li.select option { + max-width: 90%; +} +li.select .arrow { + background: url('../images/arrow.png'); + width: 8px; + height: 13px; + display: block; + -webkit-transform: rotate(90deg); + position: absolute; + right: 10px; + top: 18px; +} +.button input { + width: 100%; + height: 100%; + -webkit-appearance: none; + border: 0; + -webkit-border-radius: 0; + font-weight: bold; + font-size: 17px; + text-overflow: ellipsis; + white-space: nowrap; + overflow: hidden; +} +.textbox textarea { + text-align: center; + padding: 0; + margin-top: 5px; +} +.bigfield input { + -webkit-appearance: none; + border: 0; + width: 100%; + height: 100%; + padding: 0; + -webkit-border-radius: 0; + background: transparent; + font-weight: bold; + font-size: 17px; + padding-left: 5px; +} +.smallfield .name { + width: 48%; + position: absolute; + left: 0; + font-size: 17px; + text-overflow: ellipsis; + white-space: nowrap; + font-weight: bold; + line-height: 44px; + font-size: 17px; + padding-left: 5px; + overflow: hidden; +} +.smallfield input { + width: 50%; + position: absolute; + right: 0; + height: 44px; + -webkit-appearance: none; + border: none; + padding: 0; + background: transparent; + -webkit-border-radius: 0; + font-weight: bold; + font-size: 17px; +} +.smallfield:first-child input { + -webkit-border-top-right-radius: 8px; +} +.smallfield:last-child input { + -webkit-border-bottom-right-radius: 8px; +} diff --git a/error.php b/error.php new file mode 100755 index 0000000..79f4648 --- /dev/null +++ b/error.php @@ -0,0 +1,71 @@ +<?php +include('includes/include.php'); +?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + +<head> +<meta content="yes" name="apple-mobile-web-app-capable" /> +<meta content="text/html; charset=utf8" http-equiv="Content-Type" /> +<meta content="minimum-scale=1.0, width=device-width, maximum-scale=0.6667, user-scalable=no" name="viewport" /> +<link href="css/style.css" rel="stylesheet" type="text/css" /> +<script src="javascript/functions.js" type="text/javascript"></script> +<script src="javascript/ajax.js" type="text/javascript"></script> +<title>iStreamdev</title> +<link href="images/startup.png" rel="apple-touch-startup-image" /> +<link rel="apple-touch-icon" href="images/istreamdev.png"/> +<script type="text/javascript"> +function updateOrientation() { + switch(window.orientation) { + case 0: + orient = "portrait"; + break; + case -90: + orient = "landscape"; + break; + case 90: + orient = "landscape"; + break; + case 180: + orient = "portrait"; + break; + } + document.body.setAttribute("orient", orient); + window.scrollTo(0, 1); + + } +function sendForm(formid) { + var frm; + frm = document.getElementById(formid); + frm.submit(); +} +</script> +</head> + + +<?php + print "<body onorientationchange=\"updateOrientation();\" onload=\"updateOrientation();\">\r\n"; + print "<div id=\"topbar\" class=\"transparent\">\r\n"; + print "<div id=\"leftnav\">\r\n"; + print "<a href=\"javascript:sendForm('stopstream');\">Back</a></div>\r\n"; + print "<div id=\"title\">iStream</div>\r\n"; + print "</div>\r\n"; + print "<div id=\"content\">\r\n"; + print " <span class=\"graytitle\">Stream error</span>\r\n"; + print " <ul class=\"pageitem\">\r\n"; + print " Streaming not started. Something went wrong. Perhaps VDR couldn't decode the channel."; + print "</div>\r\n"; + print " <form name=\"stopstream\" id=\"stopstream\" method=\"post\" action=\"index.php\"><input name =\"action\" type=\"hidden\" id=\"action\" value=\"stopstream\" /><input name=\"cat\" type=\"hidden\" id=\"cat\" value=\"{$_SESSION['currentcat']}\" /></form>\r\n"; + +?> + +<div id="footer"> + + iStreamdev version: <? print $isdversion; ?> +</div> + +</body> + +</html> + + diff --git a/images/0stars.png b/images/0stars.png Binary files differnew file mode 100755 index 0000000..81947f7 --- /dev/null +++ b/images/0stars.png diff --git a/images/0starsborder.png b/images/0starsborder.png Binary files differnew file mode 100755 index 0000000..f4d2314 --- /dev/null +++ b/images/0starsborder.png diff --git a/images/1stars.png b/images/1stars.png Binary files differnew file mode 100755 index 0000000..12dd9c6 --- /dev/null +++ b/images/1stars.png diff --git a/images/1starsborder.png b/images/1starsborder.png Binary files differnew file mode 100755 index 0000000..ad21998 --- /dev/null +++ b/images/1starsborder.png diff --git a/images/2stars.png b/images/2stars.png Binary files differnew file mode 100755 index 0000000..fa7e2b9 --- /dev/null +++ b/images/2stars.png diff --git a/images/2starsborder.png b/images/2starsborder.png Binary files differnew file mode 100755 index 0000000..10a2b91 --- /dev/null +++ b/images/2starsborder.png diff --git a/images/3stars.png b/images/3stars.png Binary files differnew file mode 100755 index 0000000..7136c3f --- /dev/null +++ b/images/3stars.png diff --git a/images/3starsborder.png b/images/3starsborder.png Binary files differnew file mode 100755 index 0000000..22c5a92 --- /dev/null +++ b/images/3starsborder.png diff --git a/images/4stars.png b/images/4stars.png Binary files differnew file mode 100755 index 0000000..0714156 --- /dev/null +++ b/images/4stars.png diff --git a/images/4starsborder.png b/images/4starsborder.png Binary files differnew file mode 100755 index 0000000..4a17cee --- /dev/null +++ b/images/4starsborder.png diff --git a/images/5stars.png b/images/5stars.png Binary files differnew file mode 100755 index 0000000..370c60b --- /dev/null +++ b/images/5stars.png diff --git a/images/arrow.png b/images/arrow.png Binary files differnew file mode 100755 index 0000000..9993a06 --- /dev/null +++ b/images/arrow.png diff --git a/images/background.png b/images/background.png Binary files differnew file mode 100755 index 0000000..8c4f527 --- /dev/null +++ b/images/background.png diff --git a/images/checkbox.png b/images/checkbox.png Binary files differnew file mode 100755 index 0000000..75f0ede --- /dev/null +++ b/images/checkbox.png diff --git a/images/home.png b/images/home.png Binary files differnew file mode 100755 index 0000000..0fc49fc --- /dev/null +++ b/images/home.png diff --git a/images/istreamdev.png b/images/istreamdev.png Binary files differnew file mode 100755 index 0000000..f4153e4 --- /dev/null +++ b/images/istreamdev.png diff --git a/images/navbutton.png b/images/navbutton.png Binary files differnew file mode 100755 index 0000000..c786de4 --- /dev/null +++ b/images/navbutton.png diff --git a/images/navbuttonblack.png b/images/navbuttonblack.png Binary files differnew file mode 100755 index 0000000..b7a9bab --- /dev/null +++ b/images/navbuttonblack.png diff --git a/images/navbuttonblue.png b/images/navbuttonblue.png Binary files differnew file mode 100755 index 0000000..97a2c98 --- /dev/null +++ b/images/navbuttonblue.png diff --git a/images/navleft.png b/images/navleft.png Binary files differnew file mode 100755 index 0000000..a6c05dd --- /dev/null +++ b/images/navleft.png diff --git a/images/navleftblack.png b/images/navleftblack.png Binary files differnew file mode 100755 index 0000000..e1eb70f --- /dev/null +++ b/images/navleftblack.png diff --git a/images/navlinkleft.png b/images/navlinkleft.png Binary files differnew file mode 100755 index 0000000..5e59302 --- /dev/null +++ b/images/navlinkleft.png diff --git a/images/navlinkleftblack.png b/images/navlinkleftblack.png Binary files differnew file mode 100755 index 0000000..82d1022 --- /dev/null +++ b/images/navlinkleftblack.png diff --git a/images/navlinkright.png b/images/navlinkright.png Binary files differnew file mode 100755 index 0000000..df5131f --- /dev/null +++ b/images/navlinkright.png diff --git a/images/navlinkrightblack.png b/images/navlinkrightblack.png Binary files differnew file mode 100755 index 0000000..ef55084 --- /dev/null +++ b/images/navlinkrightblack.png diff --git a/images/navright.png b/images/navright.png Binary files differnew file mode 100755 index 0000000..afa269d --- /dev/null +++ b/images/navright.png diff --git a/images/navrightblack.png b/images/navrightblack.png Binary files differnew file mode 100755 index 0000000..80c5b83 --- /dev/null +++ b/images/navrightblack.png diff --git a/images/pictos/media.png b/images/pictos/media.png Binary files differnew file mode 100755 index 0000000..647578f --- /dev/null +++ b/images/pictos/media.png diff --git a/images/pictos/record.png b/images/pictos/record.png Binary files differnew file mode 100755 index 0000000..c0a1d79 --- /dev/null +++ b/images/pictos/record.png diff --git a/images/pictos/tv.png b/images/pictos/tv.png Binary files differnew file mode 100755 index 0000000..74f9fdc --- /dev/null +++ b/images/pictos/tv.png diff --git a/images/play.gif b/images/play.gif Binary files differnew file mode 100755 index 0000000..7447d05 --- /dev/null +++ b/images/play.gif diff --git a/images/radiobutton.png b/images/radiobutton.png Binary files differnew file mode 100755 index 0000000..45e68fd --- /dev/null +++ b/images/radiobutton.png diff --git a/images/searchfield.png b/images/searchfield.png Binary files differnew file mode 100755 index 0000000..05eb98a --- /dev/null +++ b/images/searchfield.png diff --git a/images/startup.png b/images/startup.png Binary files differnew file mode 100755 index 0000000..e095c82 --- /dev/null +++ b/images/startup.png diff --git a/images/tributton.png b/images/tributton.png Binary files differnew file mode 100755 index 0000000..f5c8f55 --- /dev/null +++ b/images/tributton.png diff --git a/includes/inc_auth.php b/includes/inc_auth.php new file mode 100755 index 0000000..92f0fc8 --- /dev/null +++ b/includes/inc_auth.php @@ -0,0 +1,32 @@ +<?php + +global $user, $pass; + +session_start(); + +if (isset($_COOKIE['istream'])) +{ + $authorized=true; +} + +# checkup login and password +if (isset($_SERVER['PHP_AUTH_USER']) && isset($_SERVER['PHP_AUTH_PW'])) +{ + if (($user == $_SERVER['PHP_AUTH_USER']) && ($pass == ($_SERVER['PHP_AUTH_PW'])) && isset($_SESSION['auth'])) + { + $authorized = true; + setcookie ("istream", "true", time()+60*60*24*30); + } +} + +# login +if (!$authorized) +{ + header('WWW-Authenticate: Basic Realm="Login please"'); + header('HTTP/1.0 401 Unauthorized'); + $_SESSION['auth'] = true; + echo "Login"; + exit; +} + +?> diff --git a/includes/inc_cat.php b/includes/inc_cat.php new file mode 100755 index 0000000..0b107d3 --- /dev/null +++ b/includes/inc_cat.php @@ -0,0 +1,17 @@ +<?php + +print "<body onorientationchange=\"updateOrientation();\" onload=\"updateOrientation();\">\r\n"; +print "<div id=\"topbar\" class=\"transparent\">\r\n"; +print "<div id=\"leftnav\">\r\n"; +print "<a href=\"index.php\"><img alt=\"home\" src=\"images/home.png\" /></a></div>\r\n"; +print "<div id=\"title\">iStreamdev</div>\r\n"; +print "</div>\r\n"; +print "<div id=\"content\">\r\n"; +print " <span class=\"graytitle\">Category</span>\r\n"; +print " <ul class=\"pageitem\">\r\n"; + +vdrlistcategories(); + +print " </ul>"; +print "</div>\r\n"; +?> diff --git a/includes/inc_chan.php b/includes/inc_chan.php new file mode 100755 index 0000000..02cb80e --- /dev/null +++ b/includes/inc_chan.php @@ -0,0 +1,24 @@ +<?php + +$cat = $_REQUEST['cat']; + +$_SESSION['currentcat'] = $cat; + +print "<body class=\"list\" onorientationchange=\"updateOrientation();\" onload=\"updateOrientation();\">\r\n"; +print "<div id=\"topbar\" class=\"transparent\">\r\n"; + +print "<div id=\"leftnav\">\r\n"; +print "<a href=\"javascript:sendForm('getback')\">Back</a></div>\r\n"; +print "<div id=\"rightnav\">\r\n"; +print "<a href=\"index.php\"><img alt=\"home\" src=\"images/home.png\" /></a></div>\r\n"; +print "<div id=\"title\">iStreamdev</div>\r\n"; +print "</div>\r\n"; +print "<div id=\"content\">\r\n"; +print " <ul><li class=\"title\">Channels</li>\r\n"; + +vdrlistchannels($cat); + +print " </ul>"; +print "</div>\r\n"; +print " <form name=\"getback\" id=\"getback\" method=\"post\" action=\"index.php\"><input name=\"action\" type=\"hidden\" id=\"action\" value=\"listcategory\" /></form>\r\n"; +?> diff --git a/includes/inc_home.php b/includes/inc_home.php new file mode 100755 index 0000000..8fcf513 --- /dev/null +++ b/includes/inc_home.php @@ -0,0 +1,20 @@ +<?php
+
+global $vdrrecpath;
+
+print "<body onorientationchange=\"updateOrientation();\" onload=\"updateOrientation();\">\r\n";
+print "<div id=\"topbar\" class=\"transparent\">\r\n";
+print "<div id=\"title\">iStreamdev</div>\r\n";
+print "</div>\r\n";
+print "<div id=\"content\">\r\n";
+print " <span class=\"graytitle\">Home</span>\r\n";
+print " <ul class=\"pageitem\">\r\n";
+print " <li class=\"menu\"><a href=\"javascript:sendForm('channels');\"><img src=\"images/pictos/tv.png\" /><span class=\"name\">Channels</span><span class=\"arrow\"></span></a></li>\r\n";
+print " <form name=\"channels\" id=\"channels\" method=\"post\" action=\"index.php\"><input name=\"action\" type=\"hidden\" id=\"action\" value=\"listcategory\" /></form>\r\n";
+print " <li class=\"menu\"><a class=\"noeffect\" href=\"javascript:sendForm('recordings');\"><img src=\"images/pictos/record.png\" /><span class=\"name\">Recordings</span><span class=\"arrow\"></span></a></li>\r\n";
+print " <form name=\"recordings\" id=\"recordings\" method=\"post\" action=\"index.php\"><input name=\"action\" type=\"hidden\" id=\"action\" value=\"recordings\" /><input name=\"dir\" type=\"hidden\" id=\"dir\" value=\"{$vdrrecpath}\" /></form>\r\n";
+print " <li class=\"menu\"><a class=\"noeffect\" href=\"javascript:sendForm('media');\"><img src=\"images/pictos/media.png\" /><span class=\"name\">Medias</span><span class=\"arrow\"></span></a></li>\r\n";
+print " <form name=\"media\" id=\"media\" method=\"post\" action=\"index.php\"><input name=\"action\" type=\"hidden\" id=\"action\" value=\"media\" /></form>\r\n";
+print " </ul>";
+print "</div>";
+?>
diff --git a/includes/inc_media.php b/includes/inc_media.php new file mode 100755 index 0000000..b946e09 --- /dev/null +++ b/includes/inc_media.php @@ -0,0 +1,16 @@ +<?php + +print "<body onorientationchange=\"updateOrientation();\" onload=\"updateOrientation();\">\r\n"; +print "<div id=\"topbar\" class=\"transparent\">\r\n"; +print "<div id=\"leftnav\">\r\n"; +print "<a href=\"index.php\"><img alt=\"home\" src=\"images/home.png\" /></a></div>\r\n"; +print "<div id=\"title\">iStreamdev</div>\r\n"; +print "</div>\r\n"; +print "<div id=\"content\">\r\n"; +print " <span class=\"graytitle\">Media</span>\r\n"; +print " <ul class=\"pageitem\">"; +print " <li class=\"textbox\"><span class=\"header\">Incoming feature</span"; +print " <p>To do...</p></li>"; +print "</div>\r\n"; + +?> diff --git a/includes/inc_rec.php b/includes/inc_rec.php new file mode 100755 index 0000000..42ab455 --- /dev/null +++ b/includes/inc_rec.php @@ -0,0 +1,62 @@ +<?php + +global $vdrrecpath; + +$dir = $_REQUEST['dir']; +if ($dir == "") + $dir = $vdrrecpath; + +// Get current subdir +$subdir = preg_replace("'" .quotemeta($vdrrecpath) ."'", '', $dir); + +print "<body onorientationchange=\"updateOrientation();\" onload=\"updateOrientation();\">\r\n"; +print "<div id=\"topbar\" class=\"transparent\">\r\n"; +print "<div id=\"leftnav\">\r\n"; +if ($dir == $vdrrecpath) + print "<a href=\"index.php\"><img alt=\"home\" src=\"images/home.png\" /></a></div>\r\n"; +else + print "<a href=\"javascript:sendForm('getback')\">Back</a></div>\r\n"; + +print "<div id=\"title\">iStreamdev</div>\r\n"; +print "</div>\r\n"; +print "<div id=\"content\">\r\n"; +print " <span class=\"graytitle\">Recordings</span>\r\n"; +print "<br>"; +print " <span class=\"graytitle\">{$subdir}</span>\r\n"; +print " <ul class=\"pageitem\">"; + +$dir_handle = @opendir($dir) or die("Unable to open $dir"); + +while ($recname = readdir($dir_handle)) +{ + if($recname == "." || $recname == ".." || $recname == "epg.data" || $recname == 'lost+found') + continue; + + $recname2=addslashes($recname); + + if (strstr($recname, ".rec") == ".rec") + { + print "<li class=\"menu\"><a class=\"noeffect\" href=\"javascript:sendForm('$recname2');\"><span class=\"name\">$recname</span><span class=\"arrow\"></span></a></li>\r\n"; + print "<form name=\"$recname\" id=\"$recname\" method=\"post\" action=\"index.php\">"; + print " <input name=\"action\" type=\"hidden\" id=\"action\" value=\"stream\"/>"; + print " <input name=\"type\" type=\"hidden\" id=\"type\" value=2 />"; + print " <input name=\"name\" type=\"hidden\" id=\"name\" value=\"{$subdir}/{$recname}\" />"; + print "</form>\r\n"; + } + else + { + print "<li class=\"menu\"><a class=\"noeffect\" href=\"javascript:sendForm('$recname2');\"><span class=\"name\">$recname</span><span class=\"arrow\"></span></a></li>\r\n"; + print "<form name=\"$recname\" id=\"$recname\" method=\"post\" action=\"index.php\">"; + print " <input name=\"action\" type=\"hidden\" id=\"action\" value=\"recordings\"/>"; + print " <input name=\"dir\" type=\"hidden\" id=\"dir\" value=\"{$dir}/{$recname}\" />"; + print "</form>\r\n"; + } +} + +$updir = dirname($dir); + +print "<form name=\"getback\" id=\"getback\" method=\"post\" action=\"index.php\"><input name=\"action\" type=\"hidden\" id=\"action\" value=\"recordings\"/><input name=\"dir\" type=\"hidden\" id=\"dir\" value=\"{$updir}/\" /></form>\r\n"; +closedir($dir_handle); + +print "</ul></div>\r\n"; +?> diff --git a/includes/inc_stream.php b/includes/inc_stream.php new file mode 100755 index 0000000..84d621f --- /dev/null +++ b/includes/inc_stream.php @@ -0,0 +1,177 @@ +<?php + +global $vdrstreamdev, $vdrrecpath, $quality; + +// Check if we are running +if (infostreamexist()) +{ + // Get current stream info + list($type, $realname, $title, $desc, $mode, $category, $url) = readinfostream(); + + print "<body onorientationchange=\"updateOrientation();\" onload=\"ajax();\">\r\n"; + + print "<div id=\"topbar\" class=\"transparent\">\r\n"; + print "<div id=\"leftnav\">\r\n"; + print "<a href=\"javascript:sendForm('stopstream');\">Stop Stream</a></div>\r\n"; + print "<div id=\"title\">iStreamdev</div>\r\n"; + print "</div>\r\n"; + + print "<div id=\"content\">\r\n"; + print " <span class=\"graytitle\">Now streaming</span>\r\n"; + + // Print the right logo + print " <ul class=\"pageitem\">\r\n"; + if ($type <= 2) + { + if (!file_exists('logos/'.$realname.'.png')) + print " <center><video id=\"videofeed\" poster=\"logos/nologo2.png\" width='80' height='80' /></center>\r\n"; + else + print " <center><video id=\"videofeed\" poster=\"logos/{$realname}.png\" width='80' height='80' /></center>\r\n"; + } + else + print " <center><video id=\"videofeed\" poster=\"logos/nologo2.png\" width='80' height='80' /></center>\r\n"; + print " </ul>\r\n"; + + print " <ul class=\"pageitem\">\r\n"; + print " <li class=\"textbox\"><span class=\"header\">{$realname}</span><p><strong>{$title}</strong>\r\n"; + print " <br>{$desc}</p></li></ul>\r\n"; + + print " <ul class=\"pageitem\">\r\n"; + print " <li id=\"modetext\" class=\"textbox\"><span class=\"header\">Mode</span>\r\n"; + print " <p id='streamtitle'>{$mode}</p></li></ul>\r\n"; + + print " </div>\r\n"; + + print " <form name=\"stopstream\" id=\"stopstream\" method=\"post\" action=\"index.php\">"; + print " <input name =\"action\" type=\"hidden\" id=\"action\" value=\"stopstream\" />"; + switch ($type) + { + case 1: + print " <input name =\"actionafterstop\" type=\"hidden\" id=\"actionafterstop\" value=\"listchannels\" />"; + print " <input name =\"cat\"type=\"hidden\" id=\"cat\" value=\"{$category}\" />"; + break; + default: + case 2: + $dir = dirname($url); + print " <input name =\"actionafterstop\" type=\"hidden\" id=\"actionafterstop\" value=\"recordings\" />"; + print " <input name =\"dir\"type=\"hidden\" id=\"dir\" value=\"{$dir}\" />"; + break; + } + print " </form>\r\n"; +} +else +{ + $category = $_SESSION['currentcat']; + + $type = $_REQUEST['type']; + $name = $_REQUEST['name']; + + switch ($type) + { + // Live TV + case 1: + list($title, $desc, $realname) = vdrgetinfostream($name, 1); + $channum = vdrgetchannum($realname); + break; + // Recording + case 2: + list($title, $desc, $realname) = vdrgetinfostream($name, 0); + break; + case 3: + default: + $realname = ""; + $title = ""; + $desc = ""; + $channame = $name; + } + + print "<body onorientationchange=\"updateOrientation();\" onload=\"updateOrientation();\">\r\n"; + + print "<div id=\"topbar\" class=\"transparent\">\r\n"; + print "<div id=\"leftnav\">\r\n"; + + print "<a href=\"javascript:sendForm('getback')\">Back</a></div>\r\n"; + print "<div id=\"rightnav\">\r\n"; + print "<a href=\"index.php\"><img alt=\"home\" src=\"images/home.png\" /></a></div>\r\n"; + + print "<div id=\"title\">iStreamdev</div>\r\n"; + print "</div>\r\n"; + + print "<div id=\"content\">\r\n"; + + print " <span class=\"graytitle\">Select stream mode</span>\r\n"; + + print " <ul class=\"pageitem\">\r\n"; + + // Print the right logo + if ($type <= 2) + { + if (!file_exists('logos/'.$realname.'.png')) + print " <center><img src=\"logos/nologo2.png\"></img></center>\r\n"; + else + print " <center><img src=\"logos/{$realname}.png\"></img></center>\r\n"; + } + else + print " <center><img src=\"logos/nologo2.png\"></img></center>\r\n"; + + print " </ul>\r\n"; + + // Check if running to display the start buttons + print " <div id=\"tributton\">\r\n"; + print " <div class=\"links\">\r\n"; + + foreach ($quality as $qname => $qparams) + print "<a href=\"javascript:sendForm('$qname')\">{$qname}</a>"; + print "\r\n"; + + print " </div></div>\r\n"; + + print " <ul class=\"pageitem\">\r\n"; + print " <li class=\"textbox\"><span class=\"header\">{$realname}</span><p><strong>{$title}</strong>\r\n"; + print " <br>{$desc}</p></li></ul>\r\n"; + + print " </div>\r\n"; + + foreach ($quality as $qname => $qparams) + { + print " <form name=\"{$qname}\" id=\"{$qname}\" method=\"post\" action=\"index.php\">\r\n"; + print " <input name =\"action\" type=\"hidden\" id=\"action\" value=\"startstream\" />\r\n"; + print " <input name =\"type\" type=\"hidden\" id=\"type\" value={$type} />\r\n"; + print " <input name =\"name\" type=\"hidden\" id=\"name\" value=\"{$realname}\" />\r\n"; + print " <input name =\"title\" type=\"hidden\" id=\"title\" value=\"{$title}\" />\r\n"; + print " <input name =\"desc\" type=\"hidden\" id=\"desc\" value=\"{$desc}\" />\r\n"; + print " <input name =\"qname\" type=\"hidden\" id=\"qname\" value=\"{$qname}\" />\r\n"; + print " <input name =\"qparams\" type=\"hidden\" id=\"qparams\" value=\"{$qparams}\" />\r\n"; + print " <input name =\"category\" type=\"hidden\" id=\"category\" value=\"{$category}\" />\r\n"; + switch ($type) + { + case 1: + print " <input name =\"url\" type=\"hidden\" id=\"url\" value=\"{$vdrstreamdev}{$channum}\" />\r\n"; + break; + case 2: + default: + print " <input name =\"url\" type=\"hidden\" id=\"url\" value=\"{$vdrrecpath}{$name}\" />\r\n"; + break; + } + print " </form>"; + } + + print " <form name=\"getback\" id=\"getback\" method=\"post\" action=\"index.php\">"; + switch ($type) + { + case 1: + print " <input name =\"action\" type=\"hidden\" id=\"action\" value=\"listchannels\" />"; + print " <input name =\"cat\"type=\"hidden\" id=\"cat\" value=\"{$category}\" />"; + break; + default: + case 2: + $dir = dirname($vdrrecpath .$name); + print " <input name =\"action\" type=\"hidden\" id=\"action\" value=\"recordings\" />"; + print " <input name =\"dir\"type=\"hidden\" id=\"dir\" value=\"{$dir}\" />"; + break; + } + print " </form>\r\n"; + +} + +?> diff --git a/includes/inc_streaminfo.php b/includes/inc_streaminfo.php new file mode 100755 index 0000000..a45920c --- /dev/null +++ b/includes/inc_streaminfo.php @@ -0,0 +1,61 @@ +<?php + +/* + Types: + 0 : Not running + 1 : VDR live + 2 : VDR recording + 3 : Media +*/ + +function writeinfostream($type=0, $name="", $title="", $desc="", $mode="", $category="", $url="") +{ + $infofile = fopen("ram/streaminfo", 'w'); + + fwrite($infofile, "type=" .$type ."\n"); + fwrite($infofile, "name=" .$name ."\n"); + fwrite($infofile, "title=" .$title ."\n"); + fwrite($infofile, "desc=" .$desc ."\n"); + fwrite($infofile, "mode=" .$mode ."\n"); + fwrite($infofile, "category=" .$category ."\n"); + fwrite($infofile, "url=" .$url ."\n"); + + fclose($infofile); +} + + +function readinfostream() +{ + $infofile = fopen("ram/streaminfo", 'r'); + if (!$infofile) + return array(0, "", "", "", ""); + + while ($line = fgets($infofile, 1024)) + { + if (!strncmp($line, "type=", strlen("type="))) + $type = substr($line, strlen("type="), -1); + else if (!strncmp($line, "name=", strlen("name="))) + $name = substr($line, strlen("name="), -1); + else if (!strncmp($line, "title=", strlen("title="))) + $title = substr($line, strlen("title="), -1); + else if (!strncmp($line, "desc=", strlen("desc="))) + $desc = substr($line, strlen("desc="), -1); + else if (!strncmp($line, "mode=", strlen("mode="))) + $mode = substr($line, strlen("mode="), -1); + else if (!strncmp($line, "category=", strlen("category="))) + $category = substr($line, strlen("category="), -1); + else if (!strncmp($line, "url=", strlen("url="))) + $url = substr($line, strlen("url="), -1); + } + + fclose($infofile); + + return array($type, $name, $title, $desc, $mode, $category, $url); +} + +function infostreamexist() +{ + return file_exists("ram/streaminfo"); +} + +?> diff --git a/includes/inc_svdrp.php b/includes/inc_svdrp.php new file mode 100755 index 0000000..da83b49 --- /dev/null +++ b/includes/inc_svdrp.php @@ -0,0 +1,446 @@ +<?php + +// SVDRP is a class do communicate with a vdr via svdrp +class SVDRP +{ + var $cfgServer; + var $cfgPort; + var $cfgTimeOut; + + var $handle; + var $debug; + + function SVDRP($server = "localhost", $port=2001, $timeout = 30, $debug = 0) + { + $this->cfgServer = $server; + $this->cfgPort = $port; + $this->cfgTimeOut = $timeout; + $this->debug = $debug; + $this->handle = 0; + } + + function DebugMessage($msg) + { + if($this->debug) echo ($msg); + } + + function Connect() + { + if($this->handle) Disconnect(); + $errno = 0; + $errstr = ""; + $this->handle = fsockopen($this->cfgServer, $this->cfgPort, &$errno, &$errstr, $this->cfgTimeOut); + + if(!$this->handle) + { + $this->DebugMessage("error $errno: $errstr"); + return false; + } + + $this->DebugMessage("handle: $this->handle<br>\n"); + + + $input = fgets($this->handle,128); + + if(!preg_match("/^220 /", $input) || $input == "") + { + $this->DebugMessage("wrong welcome message: '$input'<br>\n"); + $this->Disconnect(); + return false; + } + + + $this->DebugMessage("Welcome message: $input<br><br>\n"); + + return true; + } + + function Command($cmd) + { + if(!$this->handle) return false; + + $ret = array(); + + $this->DebugMessage("Kommando $cmd<br><pr"."e>"); + fputs($this->handle, $cmd . "\n"); + $s = ""; + $nline = 0; + while($s .= fgets($this->handle,4096)) + { + $nline++; + + $this->DebugMessage($s); + if(!preg_match("/^(\\d{3})([ -])(.*)$/", $s, $data)) + { + continue; + } + + + + + $number = $data[1]; + // TODO: Fehlernummer bearbeiten + $ret[] = $data[3]; + if($data[2] != "-" && $nline == 1) $ret = $data[3] ; + if($data[2] != "-") break; + $s = ""; + + } + + $this->DebugMessage("</pr"."e>"); + return $ret; + } + + function ListChannels($numberorname="") + { + if(!$this->handle) return false; + $channels = array(); + $lines = $this->Command("LSTC$numberorname"); + if(!$lines) return false; + foreach($lines as $a => $l) + { + $a = split(":", $l); + $name = $a[0]; + $freq = $a[1]; + $b = split(";", $name); + $name = $b[0]; + if(!isset($b[1])) $b[1] = $name; + $group = $b[1]; + + + $c["name"] = $name; + $c["group"] = $group; + $c["frequency"] = $freq; + + $channels[] = $c; + + + } + return $channels; + } + + function Help() + { + return $this->Command("HELP"); + } + function Disconnect() + { + if(!$this->handle) return; + $this->Command("QUIT"); + + fclose($this->handle); + $this->handle = 0; + $this->DebugMessage("disconnected"); + } + function ClearEpg() + { + if(!$this->handle) return false; + $this->Command("CLRE"); + return true; + } + function SwitchUp() + { + if(!$this->handle) return false; + $this->Command("CHAN +"); + return true; + } + function SwitchDown() + { + if(!$this->handle) return false; + $this->Command("CHAN -"); + return true; + } + function SwitchChannel($channel) + { + if(!$this->handle) return false; + $this->Command("CHAN $channel"); + return true; + } + function DeleteChannel($id) + { + if(!$this->handle) return false; + $this->Command("DELC $id"); + return true; + } + function DeleteRecord($id) + { + if(!$this->handle) return false; + $this->Command("DELR $id"); + return true; + } + + function GrabImage($filename, $type="jpeg", $quality="", $width="", $height) + { + if(!$this->handle) return false; + $this->Command("GRAB $filename $type $quality $width $height"); + return true; + } + function HitKey($key) + { + if(!$this->handle) return false; + $this->Command("HITK $key"); + return true; + } + function PowerOff() + { + if(!$this->handle) return false; + $this->Command("HITK Power"); + return true; + + } + function GetKeys() + { + if(!$this->handle) return false; + + $lines = $this->Command("HITK"); + $keys = array(); + foreach($lines as $l) + { + if(!preg_match("/^ {4}(.*)$/", $l, $m)) continue; + $keys[] = $m[1]; + } + + return $keys; + } + function ListEPG($pStrChannel="", $pStrTime="") + { + if(!$this->handle) return false; + $lines = $this->Command("LSTE"); + + $epg = array (); + $channel = array(); + $event = array(); + + $channelname = ""; + foreach($lines as $l) + { + preg_match("/^(.)\\s*(.*)$/", $l, $m); + $type = $m[1]; + $text = $m[2]; + switch($type) + { + case 'C': // Channel + list( $channeldata, $channelname ) = explode( ' ', $text, 2 ); + + break; + case 'E': // new Event + sscanf($text, "%u %ld %d %X", $event["EventID"], $event["StartTime"], $event["Duration"], $event["TableID"]); + + break; + case 'T': // Title + $event["Title"] = $text; + break; + case 'S': // Short text + $event["Shottext"] = $text; + break; + case 'D': // Description + $event["Desc"] = $text; + break; + case 'V': // VPS + $event["VPS"] = $text; + break; + case 'e': // Event end + if ((trim($pStrTime) != '') && (( $event['StartTime'] > $pStrTime ) || ($event['StartTime'] + $event["Duration"] < $pStrTime))) + continue; + + $channel[] = $event; + $event = array(); + + break; + case 'c': // Channel end + if ((trim($pStrChannel) != '') && ($channelname != $pStrChannel)) + continue; + + $epg[$channelname] = $channel; + $channel = array(); + + break; + } + + } + if ((trim($pStrTime) == '') || (( $event['StartTime'] < $pStrTime ) && ($event['StartTime'] + $event["Duration"] > $pStrTime))) + $channel[] = $event; + + if ((trim($pStrChannel) != '') || ($channelname == $pStrChannel)) + $epg[$channelname] = $channel; + + return $epg; + } + + function Message($msg) + { + if(!$this->handle) return false; + $this->Command("MESG $msg"); + return true; + } + + + // Volume commands + function ToggleMute() + { + if(!$this->handle) return false; + $this->Command("VOLU mute"); + return true; + } + function VolumeUp() + { + if(!$this->handle) return false; + $this->Command("VOLU +"); + return true; + } + function VolumeDown() + { + if(!$this->handle) return false; + $this->Command("VOLU -"); + return true; + } + function SetVolume($v) + { + if(!$this->handle) return false; + $this->Command("VOLU $v"); + return true; + } + function GetVolume() + { + if(!$this->handle) return false; + $v = $this->Command("VOLU"); + if($v == "Audio is mute") return 0; + if(!preg_match("/Audio volume is (.*)/", $v, $m)) return false; + + return $m[1]; + } + function GetDiskStat() + { + if(!$this->handle) return false; + $stat = $this->Command("STAT DISK"); + sscanf($stat, "%dMB %dMB %d%%", $FreeMUsedMB, $FreeMB, $Percent); + $ret["FreeMB + UsedMB"] = $FreeMUsedMB; + $ret["FreeMB"] = $FreeMB; + $ret["UsedMB"] = $FreeMUsedMB - $FreeMB; + $ret["Percent"] = $Percent; + return $ret; + } + function StartScan() + { + if(!$this->handle) return false; + $this->Command("SCAN"); + return true; + } + function MoveChannel($number, $to) + { + if(!$this->handle) return false; + $this->Command("MOVC $number $to"); + return true; + + } + + function DeleteTimer($id) + { + if(!$this->handle) return false; + $this->Command("DELT $id"); + return true; + } + + function MoveTimer($number, $to) + { + if(!$this->handle) return false; + $this->Command("MOVT $number $to"); + return true; + } + + function TimerOnOff($n, $state = "on") + { + if(!$this->handle) return false; + //if($state == "1") $state = "on"; + //if($state == "0") $state = "off"; + //if($state == false) $state = "off"; + // if($state == true) $state = "on"; + switch($state) + { + case false: + case "off": + case "0": + $state = "off"; + break; + default: + $state = "on"; + break; + } + + return $this->Command("MODT $n $state"); + } + + function ListTimers() + { + + } + + function ShowMessage($msg = "") + { + if(!$this->handle) return false; + return $this->Command("MESG $msg"); + } + + function ListRecords() + { + if(!$this->handle) return false; + + $lines = $this->Command("LSTR"); + $records = array(); + foreach($lines as $l) + { + + if(!preg_match("/^(\\d)\s(\\d*)\\.(\\d*)\\.(\\d*) (\\d*)\\:(\\d*).\s(.*)$/", $l, $m)) continue; + $id = $m[1]; + $m["id"] = $m[1]; + $m["day"] = $m[2]; + $m["month"] = $m[3]; + $m["year"] = $m[4]; + $m["hour"] = $m[5]; + $m["minute"] = $m[6]; + $m["desc"] = $m[7]; + + $records[$id] = $m; + } + + return $records; + + } + + // TODO: perhaps better implementation + function ListRecord($n) + { + if(!$this->handle) return false; + $m = $this->Command("LSTR $n"); + return $m[0]; + } + + + + //TODO: Implement following commands: + /* + + + LSTT MODT NEWT UPDT + MODC NEWC + NEXT + PUTE + + */ +} + +// Small Example +/* +echo "<pr"."e>"; +$a = new SVDRP(); +$a->Connect(); +print_r($a->Help()); +print_r($a->ListChannels()); +$a->GetKeys(); +print_r($a->GetVolume()); +print_r($a->GetDiskStat()); +$a->Disconnect(); +*/ +?> + + diff --git a/includes/inc_vdr.php b/includes/inc_vdr.php new file mode 100755 index 0000000..d36c8cc --- /dev/null +++ b/includes/inc_vdr.php @@ -0,0 +1,204 @@ +<?php +include ('includes/inc_svdrp.php'); + +function vdrgetinfostream($stream = "NULL", $ischan = 1) +{ + global $allepg, $allepgfilled, $svdrpip, $svdrpport, $vdrrecpath; + + if ($ischan) + { + // Fill epg if not yet done + if ($allepgfilled == 0) + { + $svdrp = new SVDRP($svdrpip, $svdrpport); + $svdrp->Connect(); + $allepg = $svdrp->Command("LSTE NOW"); + $svdrp->Disconnect(); + $allepgfilled = 1; + } + + $channame = $stream; + } + else + { + $infofile = $vdrrecpath .$stream ."/info"; + if (file_exists($infofile)) + $info= file_get_contents($infofile); + else + { + $infofile = $vdrrecpath .$stream ."/info.vdr"; + if (file_exists($infofile)) + $info= file_get_contents($infofile); + else + $info=""; + } + + $allepg = explode("\n", $info); + } + + if ($ischan) + $chanfound = 0; + else + $chanfound = 1; + $epgtitlefound = 0; + + $epgtitle=""; + $epgdesc=""; + + // For all epg + $count = count($allepg); + for ($i = 0; $i < $count; $i++) + { + // Find the right chan (take the first one) + if ($chanfound == 0) + { + if (strstr($allepg[$i], $stream) == $stream) + $chanfound = 1; + } + else + { + // Now find T or C + if(ereg("^C", $allepg[$i])) + { + // Check if it is our chan too, else search again + if ($ischan) + { + if(!ereg("$stream$", $allepg[$i])) + { + $chanfound = 0; + continue; + } + } + else + { + $channame = substr($allepg[$i], 2); + $channames = explode(" ", $channame); + $channame = substr($channame, strlen($channames[0])); + } + } + else if(ereg("^T", $allepg[$i])) + $epgtitle=substr($allepg[$i], 2); + else if(ereg("^D", $allepg[$i])) + $epgdesc=substr($allepg[$i], 2); + } + } + + return array($epgtitle, $epgdesc, $channame); +} + +function vdrgetchannum($chan = "NULL") +{ + global $svdrpip, $svdrpport; + + $svdrp = new SVDRP($svdrpip, $svdrpport); + $svdrp->Connect(); + $channels = $svdrp->Command("LSTC"); + $svdrp->Disconnect(); + + // Get channel number + $channels = preg_grep(quotemeta('"'.$chan.';|'.$chan.':"'), $channels); + reset($channels); + + $channels = explode(" ", $channels[key($channels)]); + $channum = $channels[0]; + + return $channum; +} + +function vdrlistcategories() +{ + global $vdrchannels; + + // All chans + print "<li class=\"menu\"><a class=\"noeffect\" href=\"javascript:sendForm('All');\"><span class=\"name\">All channels</span><span class=\"arrow\"></span></a></li>\r\n"; + print "<form name=\"All channels\" id=\"All\" method=\"post\" action=\"index.php\"><input name=\"action\" type=\"hidden\" id=\"action\" value=\"listchannels\"/><input name=\"cat\" type=\"hidden\" id=\"cat\" value=\"All\" /></form>\r\n"; + + $fp = fopen ($vdrchannels,"r"); + while ($line = fgets($fp, 1024)) + { + // Check if it is a categorie + if ($line[0] == ":") + { + // Remove : and @ + $cat = substr($line, 1, -1); + if($cat[0] == '@') + { + $cat_array = explode(' ', $cat); + $cat = substr($cat, strlen($cat_array[0])+1); + } + + $cat2 = addslashes($cat); + + print "<li class=\"menu\"><a class=\"noeffect\" href=\"javascript:sendForm('$cat2');\"><span class=\"name\">$cat</span><span class=\"arrow\"></span></a></li>\r\n"; + print "<form name=\"$cat\" id=\"$cat\" method=\"post\" action=\"index.php\"><input name=\"action\" type=\"hidden\" id=\"action\" value=\"listchannels\"/><input name=\"cat\" type=\"hidden\" id=\"cat\" value=\"$cat\" /></form>\r\n"; + } + } + fclose($fp); +} + +function vdrlistchannels($category = "NULL") +{ + global $epgtitle; + global $vdrchannels; + + if ($category == "All") + $cat_found=1; + else + $cat_found=0; + + $fp = fopen ($vdrchannels,"r"); + while ($line = fgets($fp, 1024)) + { + if ($cat_found) + { + if ($line[0] == ":") + { + if ($category == "All") + continue; + else + break; + } + + $channels = explode(":", $line); + $channels = explode(";", $channels[0]); + $chan = $channels[0]; + + // Get EPG title + $epgtitle = NULL; + list($epgtitle, $epgdesc, $channame) = vdrgetinfostream($chan, 1); + print "<li class=\"withimage\">"; + $chan2=addslashes($chan); + print " <a class=\"noeffect\" href=\"javascript:sendForm('$chan2');\">\r\n"; + if (!file_exists('logos/'.$chan.'.png')) + print " <img src=\"logos/nologo.png\" />\r\n"; + else + print " <img src=\"logos/{$chan}.png\" />\r\n"; + print " <span class=\"name\">$chan</span>\r\n"; + print " <span class=\"comment\">$epgtitle</span><span class=\"arrow\"></span></a>\r\n</li>\r\n"; + print " <form name=\"$chan\" id=\"$chan\" method=\"post\" action=\"index.php\">"; + print " <input name=\"action\" type=\"hidden\" id=\"action\" value=\"stream\" />"; + print " <input name=\"type\" type=\"hidden\" id=\"type\" value=1 />"; + print " <input name=\"name\" type=\"hidden\" id=\"name\" value=\"$chan\" />"; + print " </form>\r\n"; + } + else + { + if ($line[0] == ":") + { + // Remove : and @ + $cat = substr($line, 1, -1); + if($cat[0] == '@') + { + $cat_array = explode(' ', $cat); + $cat = substr($cat, strlen($cat_array[0])+1); + } + + // Check category + if ("$cat" == "$category") + $cat_found = 1; + } + } + } + fclose($fp); +} +?> diff --git a/includes/include.php b/includes/include.php new file mode 100755 index 0000000..9078aad --- /dev/null +++ b/includes/include.php @@ -0,0 +1,112 @@ +<?php + +include ('config.php'); +include ('includes/inc_auth.php'); +include ('includes/inc_vdr.php'); +include ('includes/inc_streaminfo.php'); + +function selectpage() +{ + $action = $_REQUEST['action']; + + if ($action == "stopstream") + { + $cmd= "killall segmenter && killall -9 ffmpeg ; rm ram/stream*"; + exec ($cmd); + + $action = $_REQUEST['actionafterstop']; + } + + if (infostreamexist()) + $action = "stream"; + + switch ($action) + { + case ("stream"): + gen_stream(); + break; + case ("listcategory"): + gen_category(); + break; + case ("listchannels"): + gen_channels(); + break; + case ("recordings"): + gen_recordings(); + break; + case ("media"): + gen_media(); + break; + case ("startstream"): + $type = $_REQUEST['type']; + $name = $_REQUEST['name']; + $title = $_REQUEST['title']; + $desc = $_REQUEST['desc']; + $qname = $_REQUEST['qname']; + $qparams = $_REQUEST['qparams']; + $category = $_REQUEST['category']; + $url = $_REQUEST['url']; + start_stream($type, $name, $title, $desc, $qname, $qparams, $category, $url); + break; + default: + gen_home(); + break; + } +} + +function gen_home() +{ + $_SESSION['currentcat'] = NULL; + include('includes/inc_home.php'); +} + +function gen_category() +{ + include('includes/inc_cat.php'); +} + +function gen_channels() +{ + include('includes/inc_chan.php'); +} + +function gen_stream() +{ + include('includes/inc_stream.php'); +} + + +function gen_recordings() +{ + include('includes/inc_rec.php'); +} + +function gen_media() +{ + include('includes/inc_media.php'); +} + +function start_stream($type, $name, $title, $desc, $qname, $qparams, $category, $url) +{ + global $httppath; + + switch ($type) + { + case 1: + $cmd = "export SHELL=\"/bin/sh\";printf \"./istream.sh '" .$url ."' " .$qparams ." " .$httppath ." 2 \" | at now"; + break; + case 2: + $cmd = "export SHELL=\"/bin/sh\";printf \"cat \\\"" .$url ."\\\"/0* | ./istream.sh - " .$qparams ." " .$httppath ." 1260 \" | at now"; + break; + default: + $cmd = ""; + } + exec ($cmd); + + // Write streaminfo + writeinfostream($type, $name, $title, $desc, $qname, $category, $url); + + include('includes/inc_stream.php'); +} + +?> diff --git a/index.php b/index.php new file mode 100755 index 0000000..dcb1cf7 --- /dev/null +++ b/index.php @@ -0,0 +1,62 @@ +<?php +include('includes/include.php'); +?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + +<head> +<meta content="yes" name="apple-mobile-web-app-capable" /> +<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta content="minimum-scale=1.0, width=device-width, maximum-scale=0.6667, user-scalable=no" name="viewport" /> +<link href="css/style.css" rel="stylesheet" type="text/css" /> +<script src="javascript/functions.js" type="text/javascript"></script> +<script src="javascript/ajax.js" type="text/javascript"></script> +<title>iStreamdev</title> +<link href="images/startup.png" rel="apple-touch-startup-image" /> +<link rel="apple-touch-icon" href="images/istreamdev.png"/> +<script type="text/javascript"> +function updateOrientation() { + switch(window.orientation) { + case 0: + orient = "portrait"; + break; + case -90: + orient = "landscape"; + break; + case 90: + orient = "landscape"; + break; + case 180: + orient = "portrait"; + break; + } + document.body.setAttribute("orient", orient); + window.scrollTo(0, 1); + + } +function sendForm(formid) { + var frm; + frm = document.getElementById(formid); + frm.submit(); +} +function swapPic() { + document.getElementById('videofeed').src = "ram/stream.m3u8"; + } +</script> +</head> + + +<?php +selectpage(); +?> + +<div id="footer"> + + iStreamdev version: <? print $isdversion; ?> +</div> + +</body> + +</html> + + diff --git a/istream.sh b/istream.sh new file mode 100755 index 0000000..434208c --- /dev/null +++ b/istream.sh @@ -0,0 +1,41 @@ +#!/bin/bash + +FFPATH="/usr/bin/ffmpeg" +STREAM=$1 +VRATE=$2 +ARATE=$3 +ACHANNELS=$4 +XY=$5 +HTTP_PATH="$6ram/" + +SEGDUR=10 # Length of Segments produced (between 10 and 30) +SEGWIN=$7 # Amount of Segments to produce +PREFIX=stream + +if [ $# -eq 0 ] +then +echo "You must supply a valid channel!" +exit 1 +fi + +############################################################# +# start dumping the TS via Streamdev into a pipe for ffmpeg +# and store baseline 3.0 mpegts to outputfile +# sending it to the segmenter via a PIPE +############################################################## + +res=`ps ax|grep "segmenter" | grep -v grep` + +if test -z "$res" +then + +cd ram +2> /dev/null rm "$PREFIX"*.ts + +2> /dev/null $FFPATH -i $STREAM -deinterlace -f mpegts -acodec libmp3lame -ab $ARATE -ac $ACHANNELS -s $XY -vcodec libx264 -b $VRATE -flags +loop \ + -cmp \+chroma -partitions +parti4x4+partp8x8+partb8x8 -subq 5 -trellis 1 -refs 1 -coder 0 -me_range 16 -keyint_min 25 \ + -sc_threshold 40 -i_qfactor 0.71 -bt $VRATE -maxrate $VRATE -bufsize $VRATE -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 \ + -qmin 10 -qmax 51 -qdiff 4 -level 30 -g 30 -async 2 -threads 4 - | \ +segmenter - $SEGDUR $PREFIX $PREFIX.m3u8 $HTTP_PATH $SEGWIN & + +fi diff --git a/javascript/ajax.js b/javascript/ajax.js new file mode 100755 index 0000000..7ccafe2 --- /dev/null +++ b/javascript/ajax.js @@ -0,0 +1,27 @@ +function ajax() +{ + var xhr=null; + + xhr = new XMLHttpRequest(); + //on définit l'appel de la fonction au retour serveur + xhr.onreadystatechange = function() { alert_ajax(xhr); }; + + xhr.open("GET", "streamstatus.php", true); + xhr.send(null); +} + +function alert_ajax(xhr) +{ + if (xhr.readyState==4) + { + var docXML= xhr.responseXML; + var streamstatus = null; + var items = docXML.getElementsByTagName("streamstatus") + + streamstatus = items.item(0).firstChild.data; + if ( streamstatus == 'error' ) + this.location.href = 'error.php'; + else + swapPic(); + } +} diff --git a/javascript/developer-functions.js b/javascript/developer-functions.js new file mode 100755 index 0000000..244c900 --- /dev/null +++ b/javascript/developer-functions.js @@ -0,0 +1,24 @@ +function fullscreen() {
+ var a = document.getElementsByTagName("a");
+ for (var i = 0; i < a.length;i++) {
+ if (a[i].className.match("noeffect")) {
+ }
+ else {
+ a[i].onclick = function () {
+ window.location = this.getAttribute("href");
+ return false;
+ };
+ }
+ }
+}
+
+function hideURLbar() {
+ window.scrollTo(0, 0.9);
+}
+
+
+window.onload = function () {
+ fullscreen();
+ hideURLbar();
+};
+
diff --git a/javascript/functions.js b/javascript/functions.js new file mode 100755 index 0000000..65d0f2f --- /dev/null +++ b/javascript/functions.js @@ -0,0 +1 @@ +function fullscreen(){var a=document.getElementsByTagName("a");for(var i=0;i<a.length;i++){if(a[i].className.match("noeffect")){}else{a[i].onclick=function(){window.location=this.getAttribute("href");return false}}}}function hideURLbar(){window.scrollTo(0,0.9)}window.onload=function(){fullscreen();hideURLbar()};
\ No newline at end of file diff --git a/logos/13EME RUE.png b/logos/13EME RUE.png Binary files differnew file mode 100755 index 0000000..cc27f3a --- /dev/null +++ b/logos/13EME RUE.png diff --git a/logos/AB 1.png b/logos/AB 1.png Binary files differnew file mode 100755 index 0000000..604d90f --- /dev/null +++ b/logos/AB 1.png diff --git a/logos/AB MOTEURS.png b/logos/AB MOTEURS.png Binary files differnew file mode 100755 index 0000000..e780742 --- /dev/null +++ b/logos/AB MOTEURS.png diff --git a/logos/ACTION.png b/logos/ACTION.png Binary files differnew file mode 100755 index 0000000..087e26c --- /dev/null +++ b/logos/ACTION.png diff --git a/logos/AL JAZEERA ENG.png b/logos/AL JAZEERA ENG.png Binary files differnew file mode 100755 index 0000000..ffde7c0 --- /dev/null +++ b/logos/AL JAZEERA ENG.png diff --git a/logos/ANIMAUX.png b/logos/ANIMAUX.png Binary files differnew file mode 100755 index 0000000..cb8e782 --- /dev/null +++ b/logos/ANIMAUX.png diff --git a/logos/ARTE HD.png b/logos/ARTE HD.png Binary files differnew file mode 100755 index 0000000..ee74b7d --- /dev/null +++ b/logos/ARTE HD.png diff --git a/logos/ARTE.png b/logos/ARTE.png Binary files differnew file mode 100755 index 0000000..4058410 --- /dev/null +++ b/logos/ARTE.png diff --git a/logos/BABY TV.png b/logos/BABY TV.png Binary files differnew file mode 100755 index 0000000..86d1226 --- /dev/null +++ b/logos/BABY TV.png diff --git a/logos/BBC PRIME.png b/logos/BBC PRIME.png Binary files differnew file mode 100755 index 0000000..0aef568 --- /dev/null +++ b/logos/BBC PRIME.png diff --git a/logos/BBC WORLD.png b/logos/BBC WORLD.png Binary files differnew file mode 100755 index 0000000..a6c94d5 --- /dev/null +++ b/logos/BBC WORLD.png diff --git a/logos/BFM TV.png b/logos/BFM TV.png Binary files differnew file mode 100755 index 0000000..632d350 --- /dev/null +++ b/logos/BFM TV.png diff --git a/logos/BLOOMBERG TV.png b/logos/BLOOMBERG TV.png Binary files differnew file mode 100755 index 0000000..71082e3 --- /dev/null +++ b/logos/BLOOMBERG TV.png diff --git a/logos/BOOMERANG.png b/logos/BOOMERANG.png Binary files differnew file mode 100755 index 0000000..1d55ced --- /dev/null +++ b/logos/BOOMERANG.png diff --git a/logos/BravaHDTV.png b/logos/BravaHDTV.png Binary files differnew file mode 100755 index 0000000..2089284 --- /dev/null +++ b/logos/BravaHDTV.png diff --git a/logos/C CINEMA CLASSIC.png b/logos/C CINEMA CLASSIC.png Binary files differnew file mode 100755 index 0000000..eefa688 --- /dev/null +++ b/logos/C CINEMA CLASSIC.png diff --git a/logos/C CINEMA CLUB.png b/logos/C CINEMA CLUB.png Binary files differnew file mode 100755 index 0000000..f1fb7ef --- /dev/null +++ b/logos/C CINEMA CLUB.png diff --git a/logos/C CINEMA EMOTION.png b/logos/C CINEMA EMOTION.png Binary files differnew file mode 100755 index 0000000..7f1f29b --- /dev/null +++ b/logos/C CINEMA EMOTION.png diff --git a/logos/C CINEMA FAMIZ.png b/logos/C CINEMA FAMIZ.png Binary files differnew file mode 100755 index 0000000..fe04546 --- /dev/null +++ b/logos/C CINEMA FAMIZ.png diff --git a/logos/C CINEMA FRISSON.png b/logos/C CINEMA FRISSON.png Binary files differnew file mode 100755 index 0000000..0c93aa2 --- /dev/null +++ b/logos/C CINEMA FRISSON.png diff --git a/logos/C CINEMA PREMIER.png b/logos/C CINEMA PREMIER.png Binary files differnew file mode 100755 index 0000000..4a584a0 --- /dev/null +++ b/logos/C CINEMA PREMIER.png diff --git a/logos/C CINEMA STAR.png b/logos/C CINEMA STAR.png Binary files differnew file mode 100755 index 0000000..7ce3619 --- /dev/null +++ b/logos/C CINEMA STAR.png diff --git a/logos/CANAL J.png b/logos/CANAL J.png Binary files differnew file mode 100755 index 0000000..6d408f2 --- /dev/null +++ b/logos/CANAL J.png diff --git a/logos/CANAL+ CINEMA.png b/logos/CANAL+ CINEMA.png Binary files differnew file mode 100755 index 0000000..b6246cd --- /dev/null +++ b/logos/CANAL+ CINEMA.png diff --git a/logos/CANAL+ DECALE.png b/logos/CANAL+ DECALE.png Binary files differnew file mode 100755 index 0000000..16194cf --- /dev/null +++ b/logos/CANAL+ DECALE.png diff --git a/logos/CANAL+ FAMILY.png b/logos/CANAL+ FAMILY.png Binary files differnew file mode 100755 index 0000000..4dab0bf --- /dev/null +++ b/logos/CANAL+ FAMILY.png diff --git a/logos/CANAL+ HD.png b/logos/CANAL+ HD.png Binary files differnew file mode 100755 index 0000000..0921b25 --- /dev/null +++ b/logos/CANAL+ HD.png diff --git a/logos/CANAL+ SPORT.png b/logos/CANAL+ SPORT.png Binary files differnew file mode 100755 index 0000000..87c8dfc --- /dev/null +++ b/logos/CANAL+ SPORT.png diff --git a/logos/CANAL+.png b/logos/CANAL+.png Binary files differnew file mode 100755 index 0000000..4851d93 --- /dev/null +++ b/logos/CANAL+.png diff --git a/logos/CARTOON NETWORK.png b/logos/CARTOON NETWORK.png Binary files differnew file mode 100755 index 0000000..5756bc8 --- /dev/null +++ b/logos/CARTOON NETWORK.png diff --git a/logos/CHASSE ET PECHE.png b/logos/CHASSE ET PECHE.png Binary files differnew file mode 100755 index 0000000..375f194 --- /dev/null +++ b/logos/CHASSE ET PECHE.png diff --git a/logos/CINE FX.png b/logos/CINE FX.png Binary files differnew file mode 100755 index 0000000..8cd93f9 --- /dev/null +++ b/logos/CINE FX.png diff --git a/logos/CINE POLAR.png b/logos/CINE POLAR.png Binary files differnew file mode 100755 index 0000000..863d904 --- /dev/null +++ b/logos/CINE POLAR.png diff --git a/logos/CNBC EUROPE.png b/logos/CNBC EUROPE.png Binary files differnew file mode 100755 index 0000000..09d14bc --- /dev/null +++ b/logos/CNBC EUROPE.png diff --git a/logos/CNN.png b/logos/CNN.png Binary files differnew file mode 100755 index 0000000..54f0b37 --- /dev/null +++ b/logos/CNN.png diff --git a/logos/COMEDIE !.png b/logos/COMEDIE !.png Binary files differnew file mode 100755 index 0000000..35878e6 --- /dev/null +++ b/logos/COMEDIE !.png diff --git a/logos/CUISINE TV.png b/logos/CUISINE TV.png Binary files differnew file mode 100755 index 0000000..b3d4358 --- /dev/null +++ b/logos/CUISINE TV.png diff --git a/logos/DIRECT 8.png b/logos/DIRECT 8.png Binary files differnew file mode 100755 index 0000000..b4ad4fd --- /dev/null +++ b/logos/DIRECT 8.png diff --git a/logos/DISNEY CHANNEL+1.png b/logos/DISNEY CHANNEL+1.png Binary files differnew file mode 100755 index 0000000..ffc0fed --- /dev/null +++ b/logos/DISNEY CHANNEL+1.png diff --git a/logos/DISNEY CHANNEL.png b/logos/DISNEY CHANNEL.png Binary files differnew file mode 100755 index 0000000..f41c27e --- /dev/null +++ b/logos/DISNEY CHANNEL.png diff --git a/logos/DISNEY CINEMAGIC+1.png b/logos/DISNEY CINEMAGIC+1.png Binary files differnew file mode 100755 index 0000000..191f699 --- /dev/null +++ b/logos/DISNEY CINEMAGIC+1.png diff --git a/logos/DISNEY CINEMAGIC.png b/logos/DISNEY CINEMAGIC.png Binary files differnew file mode 100755 index 0000000..63e1175 --- /dev/null +++ b/logos/DISNEY CINEMAGIC.png diff --git a/logos/DISNEY MAGIC HD.png b/logos/DISNEY MAGIC HD.png Binary files differnew file mode 100755 index 0000000..63e1175 --- /dev/null +++ b/logos/DISNEY MAGIC HD.png diff --git a/logos/E! ENTERTAINMENT.png b/logos/E! ENTERTAINMENT.png Binary files differnew file mode 100755 index 0000000..6a6bf9d --- /dev/null +++ b/logos/E! ENTERTAINMENT.png diff --git a/logos/ENCYCLOPEDIA.png b/logos/ENCYCLOPEDIA.png Binary files differnew file mode 100755 index 0000000..6850169 --- /dev/null +++ b/logos/ENCYCLOPEDIA.png diff --git a/logos/ESCALES.png b/logos/ESCALES.png Binary files differnew file mode 100755 index 0000000..fd80ef7 --- /dev/null +++ b/logos/ESCALES.png diff --git a/logos/ESPN CLASSIC EUROPE.png b/logos/ESPN CLASSIC EUROPE.png Binary files differnew file mode 100755 index 0000000..e284e9b --- /dev/null +++ b/logos/ESPN CLASSIC EUROPE.png diff --git a/logos/ESPN CLASSIC.png b/logos/ESPN CLASSIC.png Binary files differnew file mode 100755 index 0000000..e284e9b --- /dev/null +++ b/logos/ESPN CLASSIC.png diff --git a/logos/EUREKA!.png b/logos/EUREKA!.png Binary files differnew file mode 100755 index 0000000..b826435 --- /dev/null +++ b/logos/EUREKA!.png diff --git a/logos/EURONEWS.png b/logos/EURONEWS.png Binary files differnew file mode 100755 index 0000000..d2d8d1f --- /dev/null +++ b/logos/EURONEWS.png diff --git a/logos/EUROSPORT.png b/logos/EUROSPORT.png Binary files differnew file mode 100755 index 0000000..c97af71 --- /dev/null +++ b/logos/EUROSPORT.png diff --git a/logos/EXTREME SPORTS.png b/logos/EXTREME SPORTS.png Binary files differnew file mode 100755 index 0000000..392c8cb --- /dev/null +++ b/logos/EXTREME SPORTS.png diff --git a/logos/FILLES TV.png b/logos/FILLES TV.png Binary files differnew file mode 100755 index 0000000..cb1bbed --- /dev/null +++ b/logos/FILLES TV.png diff --git a/logos/FIT.png b/logos/FIT.png Binary files differnew file mode 100755 index 0000000..ef49ae6 --- /dev/null +++ b/logos/FIT.png diff --git a/logos/FOOT+ 1.png b/logos/FOOT+ 1.png Binary files differnew file mode 100755 index 0000000..277b93e --- /dev/null +++ b/logos/FOOT+ 1.png diff --git a/logos/FOOT+ 2.png b/logos/FOOT+ 2.png Binary files differnew file mode 100755 index 0000000..277b93e --- /dev/null +++ b/logos/FOOT+ 2.png diff --git a/logos/FOOT+ 3.png b/logos/FOOT+ 3.png Binary files differnew file mode 100755 index 0000000..277b93e --- /dev/null +++ b/logos/FOOT+ 3.png diff --git a/logos/FOOT+ 4.png b/logos/FOOT+ 4.png Binary files differnew file mode 100755 index 0000000..277b93e --- /dev/null +++ b/logos/FOOT+ 4.png diff --git a/logos/FOOT+ 5.png b/logos/FOOT+ 5.png Binary files differnew file mode 100755 index 0000000..277b93e --- /dev/null +++ b/logos/FOOT+ 5.png diff --git a/logos/FOOT+ 6.png b/logos/FOOT+ 6.png Binary files differnew file mode 100755 index 0000000..277b93e --- /dev/null +++ b/logos/FOOT+ 6.png diff --git a/logos/FOOT+ 7.png b/logos/FOOT+ 7.png Binary files differnew file mode 100755 index 0000000..277b93e --- /dev/null +++ b/logos/FOOT+ 7.png diff --git a/logos/FOX LIFE.png b/logos/FOX LIFE.png Binary files differnew file mode 100755 index 0000000..5a6b47c --- /dev/null +++ b/logos/FOX LIFE.png diff --git a/logos/FRANCE 0.png b/logos/FRANCE 0.png Binary files differnew file mode 100755 index 0000000..166bea3 --- /dev/null +++ b/logos/FRANCE 0.png diff --git a/logos/FRANCE 2 HD.png b/logos/FRANCE 2 HD.png Binary files differnew file mode 100755 index 0000000..c77d725 --- /dev/null +++ b/logos/FRANCE 2 HD.png diff --git a/logos/FRANCE 2.png b/logos/FRANCE 2.png Binary files differnew file mode 100755 index 0000000..c77d725 --- /dev/null +++ b/logos/FRANCE 2.png diff --git a/logos/FRANCE 24.png b/logos/FRANCE 24.png Binary files differnew file mode 100755 index 0000000..8f611c0 --- /dev/null +++ b/logos/FRANCE 24.png diff --git a/logos/FRANCE 4.png b/logos/FRANCE 4.png Binary files differnew file mode 100755 index 0000000..f4f054d --- /dev/null +++ b/logos/FRANCE 4.png diff --git a/logos/FRANCE 5.png b/logos/FRANCE 5.png Binary files differnew file mode 100755 index 0000000..c286b57 --- /dev/null +++ b/logos/FRANCE 5.png diff --git a/logos/FUN TV.png b/logos/FUN TV.png Binary files differnew file mode 100755 index 0000000..8a55394 --- /dev/null +++ b/logos/FUN TV.png diff --git a/logos/France 3 SAT.png b/logos/France 3 SAT.png Binary files differnew file mode 100755 index 0000000..8f20d16 --- /dev/null +++ b/logos/France 3 SAT.png diff --git a/logos/France 3.png b/logos/France 3.png Binary files differnew file mode 100755 index 0000000..8f20d16 --- /dev/null +++ b/logos/France 3.png diff --git a/logos/GAME ONE.png b/logos/GAME ONE.png Binary files differnew file mode 100755 index 0000000..56b3c5f --- /dev/null +++ b/logos/GAME ONE.png diff --git a/logos/GULLI.png b/logos/GULLI.png Binary files differnew file mode 100755 index 0000000..17713f5 --- /dev/null +++ b/logos/GULLI.png diff --git a/logos/HD1.png b/logos/HD1.png Binary files differnew file mode 100755 index 0000000..216d2ef --- /dev/null +++ b/logos/HD1.png diff --git a/logos/HISTOIRE.png b/logos/HISTOIRE.png Binary files differnew file mode 100755 index 0000000..36be92e --- /dev/null +++ b/logos/HISTOIRE.png diff --git a/logos/HUSTLER TV.png b/logos/HUSTLER TV.png Binary files differnew file mode 100755 index 0000000..e6cf9ae --- /dev/null +++ b/logos/HUSTLER TV.png diff --git a/logos/I CONCERTS.png b/logos/I CONCERTS.png Binary files differnew file mode 100755 index 0000000..d0d05cb --- /dev/null +++ b/logos/I CONCERTS.png diff --git a/logos/I TELEVISION.png b/logos/I TELEVISION.png Binary files differnew file mode 100755 index 0000000..e8d2aeb --- /dev/null +++ b/logos/I TELEVISION.png diff --git a/logos/INFOSPORT.png b/logos/INFOSPORT.png Binary files differnew file mode 100755 index 0000000..5cd185c --- /dev/null +++ b/logos/INFOSPORT.png diff --git a/logos/JETIX.png b/logos/JETIX.png Binary files differnew file mode 100755 index 0000000..658fe7c --- /dev/null +++ b/logos/JETIX.png diff --git a/logos/JIMMY.png b/logos/JIMMY.png Binary files differnew file mode 100755 index 0000000..5b07fbf --- /dev/null +++ b/logos/JIMMY.png diff --git a/logos/KTO.png b/logos/KTO.png Binary files differnew file mode 100755 index 0000000..2e16945 --- /dev/null +++ b/logos/KTO.png diff --git a/logos/L'EQUIPE TV.png b/logos/L'EQUIPE TV.png Binary files differnew file mode 100755 index 0000000..0d84f26 --- /dev/null +++ b/logos/L'EQUIPE TV.png diff --git a/logos/LA CHAINE METEO.png b/logos/LA CHAINE METEO.png Binary files differnew file mode 100755 index 0000000..482fcb9 --- /dev/null +++ b/logos/LA CHAINE METEO.png diff --git a/logos/LCI.png b/logos/LCI.png Binary files differnew file mode 100755 index 0000000..dc76259 --- /dev/null +++ b/logos/LCI.png diff --git a/logos/LUXE TV HD.png b/logos/LUXE TV HD.png Binary files differnew file mode 100755 index 0000000..0bb78b8 --- /dev/null +++ b/logos/LUXE TV HD.png diff --git a/logos/Live 1.png b/logos/Live 1.png Binary files differnew file mode 100755 index 0000000..937dee4 --- /dev/null +++ b/logos/Live 1.png diff --git a/logos/M6 BOUTIQUE LA CHAINE.png b/logos/M6 BOUTIQUE LA CHAINE.png Binary files differnew file mode 100755 index 0000000..cd72525 --- /dev/null +++ b/logos/M6 BOUTIQUE LA CHAINE.png diff --git a/logos/M6 HD.png b/logos/M6 HD.png Binary files differnew file mode 100755 index 0000000..a7a501d --- /dev/null +++ b/logos/M6 HD.png diff --git a/logos/M6 MUSIC BLACK.png b/logos/M6 MUSIC BLACK.png Binary files differnew file mode 100755 index 0000000..9a5e55d --- /dev/null +++ b/logos/M6 MUSIC BLACK.png diff --git a/logos/M6 MUSIC HITS.png b/logos/M6 MUSIC HITS.png Binary files differnew file mode 100755 index 0000000..586e2a1 --- /dev/null +++ b/logos/M6 MUSIC HITS.png diff --git a/logos/M6 MUSIC ROCK.png b/logos/M6 MUSIC ROCK.png Binary files differnew file mode 100755 index 0000000..a3d28e6 --- /dev/null +++ b/logos/M6 MUSIC ROCK.png diff --git a/logos/M6.png b/logos/M6.png Binary files differnew file mode 100755 index 0000000..5a02503 --- /dev/null +++ b/logos/M6.png diff --git a/logos/MA CHAINE SPORT.png b/logos/MA CHAINE SPORT.png Binary files differnew file mode 100755 index 0000000..cc75af6 --- /dev/null +++ b/logos/MA CHAINE SPORT.png diff --git a/logos/MANGAS.png b/logos/MANGAS.png Binary files differnew file mode 100755 index 0000000..5c3dca6 --- /dev/null +++ b/logos/MANGAS.png diff --git a/logos/MATCH TV.png b/logos/MATCH TV.png Binary files differnew file mode 100755 index 0000000..09bbf52 --- /dev/null +++ b/logos/MATCH TV.png diff --git a/logos/MCM POP.png b/logos/MCM POP.png Binary files differnew file mode 100755 index 0000000..7d6e8eb --- /dev/null +++ b/logos/MCM POP.png diff --git a/logos/MCM TOP.png b/logos/MCM TOP.png Binary files differnew file mode 100755 index 0000000..c466781 --- /dev/null +++ b/logos/MCM TOP.png diff --git a/logos/MCM.png b/logos/MCM.png Binary files differnew file mode 100755 index 0000000..38a8382 --- /dev/null +++ b/logos/MCM.png diff --git a/logos/MELODY ZEN HD.png b/logos/MELODY ZEN HD.png Binary files differnew file mode 100755 index 0000000..68090d6 --- /dev/null +++ b/logos/MELODY ZEN HD.png diff --git a/logos/MOTORS TV.png b/logos/MOTORS TV.png Binary files differnew file mode 100755 index 0000000..e288d22 --- /dev/null +++ b/logos/MOTORS TV.png diff --git a/logos/MTV 2.png b/logos/MTV 2.png Binary files differnew file mode 100755 index 0000000..4dbb1bf --- /dev/null +++ b/logos/MTV 2.png diff --git a/logos/MTV BASE.png b/logos/MTV BASE.png Binary files differnew file mode 100755 index 0000000..fc6f509 --- /dev/null +++ b/logos/MTV BASE.png diff --git a/logos/MTV HD.png b/logos/MTV HD.png Binary files differnew file mode 100755 index 0000000..3772733 --- /dev/null +++ b/logos/MTV HD.png diff --git a/logos/MTV HITS.png b/logos/MTV HITS.png Binary files differnew file mode 100755 index 0000000..9b50918 --- /dev/null +++ b/logos/MTV HITS.png diff --git a/logos/MTV IDOL.png b/logos/MTV IDOL.png Binary files differnew file mode 100755 index 0000000..5dbbd79 --- /dev/null +++ b/logos/MTV IDOL.png diff --git a/logos/MTV PULSE.png b/logos/MTV PULSE.png Binary files differnew file mode 100755 index 0000000..d20c300 --- /dev/null +++ b/logos/MTV PULSE.png diff --git a/logos/MTV.png b/logos/MTV.png Binary files differnew file mode 100755 index 0000000..1ea1863 --- /dev/null +++ b/logos/MTV.png diff --git a/logos/MUSIQUE CLASSIQUE.png b/logos/MUSIQUE CLASSIQUE.png Binary files differnew file mode 100755 index 0000000..49e8daa --- /dev/null +++ b/logos/MUSIQUE CLASSIQUE.png diff --git a/logos/Mezzo.png b/logos/Mezzo.png Binary files differnew file mode 100755 index 0000000..48aa979 --- /dev/null +++ b/logos/Mezzo.png diff --git a/logos/NATIONAL GEO HD.png b/logos/NATIONAL GEO HD.png Binary files differnew file mode 100755 index 0000000..97eef82 --- /dev/null +++ b/logos/NATIONAL GEO HD.png diff --git a/logos/NATIONAL GEO.png b/logos/NATIONAL GEO.png Binary files differnew file mode 100755 index 0000000..2c47950 --- /dev/null +++ b/logos/NATIONAL GEO.png diff --git a/logos/NBA+.png b/logos/NBA+.png Binary files differnew file mode 100755 index 0000000..b18c2ea --- /dev/null +++ b/logos/NBA+.png diff --git a/logos/NICKELODEON.png b/logos/NICKELODEON.png Binary files differnew file mode 100755 index 0000000..e64bc7f --- /dev/null +++ b/logos/NICKELODEON.png diff --git a/logos/NRJ 12 HD.png b/logos/NRJ 12 HD.png Binary files differnew file mode 100755 index 0000000..2881ff8 --- /dev/null +++ b/logos/NRJ 12 HD.png diff --git a/logos/NRJ 12.png b/logos/NRJ 12.png Binary files differnew file mode 100755 index 0000000..8e29c15 --- /dev/null +++ b/logos/NRJ 12.png diff --git a/logos/NT1.png b/logos/NT1.png Binary files differnew file mode 100755 index 0000000..60f426d --- /dev/null +++ b/logos/NT1.png diff --git a/logos/ODYSSEE.png b/logos/ODYSSEE.png Binary files differnew file mode 100755 index 0000000..4a4b294 --- /dev/null +++ b/logos/ODYSSEE.png diff --git a/logos/OL TV.png b/logos/OL TV.png Binary files differnew file mode 100755 index 0000000..5697bb7 --- /dev/null +++ b/logos/OL TV.png diff --git a/logos/OLTV.png b/logos/OLTV.png Binary files differnew file mode 100755 index 0000000..5697bb7 --- /dev/null +++ b/logos/OLTV.png diff --git a/logos/OM TV.png b/logos/OM TV.png Binary files differnew file mode 100755 index 0000000..9677ae6 --- /dev/null +++ b/logos/OM TV.png diff --git a/logos/OM'TV.png b/logos/OM'TV.png Binary files differnew file mode 100755 index 0000000..9677ae6 --- /dev/null +++ b/logos/OM'TV.png diff --git a/logos/PARIS PREMIERE.png b/logos/PARIS PREMIERE.png Binary files differnew file mode 100755 index 0000000..ceda0af --- /dev/null +++ b/logos/PARIS PREMIERE.png diff --git a/logos/PINK TV.png b/logos/PINK TV.png Binary files differnew file mode 100755 index 0000000..56ff1f0 --- /dev/null +++ b/logos/PINK TV.png diff --git a/logos/PIWI.png b/logos/PIWI.png Binary files differnew file mode 100755 index 0000000..8245cf8 --- /dev/null +++ b/logos/PIWI.png diff --git a/logos/PLANETE JUNIORS.png b/logos/PLANETE JUNIORS.png Binary files differnew file mode 100755 index 0000000..1128c7d --- /dev/null +++ b/logos/PLANETE JUNIORS.png diff --git a/logos/PLANETE JUSTICE.png b/logos/PLANETE JUSTICE.png Binary files differnew file mode 100755 index 0000000..2fd9ca0 --- /dev/null +++ b/logos/PLANETE JUSTICE.png diff --git a/logos/PLANETE NO LIMIT.png b/logos/PLANETE NO LIMIT.png Binary files differnew file mode 100755 index 0000000..f2419e9 --- /dev/null +++ b/logos/PLANETE NO LIMIT.png diff --git a/logos/PLANETE THALASSA.png b/logos/PLANETE THALASSA.png Binary files differnew file mode 100755 index 0000000..d1db779 --- /dev/null +++ b/logos/PLANETE THALASSA.png diff --git a/logos/PLANETE.png b/logos/PLANETE.png Binary files differnew file mode 100755 index 0000000..00ac961 --- /dev/null +++ b/logos/PLANETE.png diff --git a/logos/PLAYHOUSE DISNEY.png b/logos/PLAYHOUSE DISNEY.png Binary files differnew file mode 100755 index 0000000..adf7bb4 --- /dev/null +++ b/logos/PLAYHOUSE DISNEY.png diff --git a/logos/PLAYIN' TV.png b/logos/PLAYIN' TV.png Binary files differnew file mode 100755 index 0000000..cb398b1 --- /dev/null +++ b/logos/PLAYIN' TV.png diff --git a/logos/POKER CHANNEL.png b/logos/POKER CHANNEL.png Binary files differnew file mode 100755 index 0000000..6731afc --- /dev/null +++ b/logos/POKER CHANNEL.png diff --git a/logos/RAI 1.png b/logos/RAI 1.png Binary files differnew file mode 100755 index 0000000..a00bed5 --- /dev/null +++ b/logos/RAI 1.png diff --git a/logos/REAL TIME.png b/logos/REAL TIME.png Binary files differnew file mode 100755 index 0000000..19209cf --- /dev/null +++ b/logos/REAL TIME.png diff --git a/logos/RTL9.png b/logos/RTL9.png Binary files differnew file mode 100755 index 0000000..12568bc --- /dev/null +++ b/logos/RTL9.png diff --git a/logos/RTPI.png b/logos/RTPI.png Binary files differnew file mode 100755 index 0000000..95a152d --- /dev/null +++ b/logos/RTPI.png diff --git a/logos/SCI-FI.png b/logos/SCI-FI.png Binary files differnew file mode 100755 index 0000000..f008c7c --- /dev/null +++ b/logos/SCI-FI.png diff --git a/logos/SEASONS.png b/logos/SEASONS.png Binary files differnew file mode 100755 index 0000000..0829cec --- /dev/null +++ b/logos/SEASONS.png diff --git a/logos/SERIE CLUB.png b/logos/SERIE CLUB.png Binary files differnew file mode 100755 index 0000000..f4f0878 --- /dev/null +++ b/logos/SERIE CLUB.png diff --git a/logos/SIC.png b/logos/SIC.png Binary files differnew file mode 100755 index 0000000..961ff1b --- /dev/null +++ b/logos/SIC.png diff --git a/logos/SPORT+.png b/logos/SPORT+.png Binary files differnew file mode 100755 index 0000000..54daeba --- /dev/null +++ b/logos/SPORT+.png diff --git a/logos/TCM.png b/logos/TCM.png Binary files differnew file mode 100755 index 0000000..40bd7c0 --- /dev/null +++ b/logos/TCM.png diff --git a/logos/TELESSONNE.png b/logos/TELESSONNE.png Binary files differnew file mode 100755 index 0000000..d84b993 --- /dev/null +++ b/logos/TELESSONNE.png diff --git a/logos/TELETOON+1.png b/logos/TELETOON+1.png Binary files differnew file mode 100755 index 0000000..f6d1281 --- /dev/null +++ b/logos/TELETOON+1.png diff --git a/logos/TELETOON.png b/logos/TELETOON.png Binary files differnew file mode 100755 index 0000000..e431e3a --- /dev/null +++ b/logos/TELETOON.png diff --git a/logos/TEVA.png b/logos/TEVA.png Binary files differnew file mode 100755 index 0000000..0cd6796 --- /dev/null +++ b/logos/TEVA.png diff --git a/logos/TF1 HD.png b/logos/TF1 HD.png Binary files differnew file mode 100755 index 0000000..6a35d2a --- /dev/null +++ b/logos/TF1 HD.png diff --git a/logos/TF1.png b/logos/TF1.png Binary files differnew file mode 100755 index 0000000..56b1a74 --- /dev/null +++ b/logos/TF1.png diff --git a/logos/TF6.png b/logos/TF6.png Binary files differnew file mode 100755 index 0000000..1dfa6b7 --- /dev/null +++ b/logos/TF6.png diff --git a/logos/TFJ.png b/logos/TFJ.png Binary files differnew file mode 100755 index 0000000..4dc5740 --- /dev/null +++ b/logos/TFJ.png diff --git a/logos/TIJI.png b/logos/TIJI.png Binary files differnew file mode 100755 index 0000000..84ee4dc --- /dev/null +++ b/logos/TIJI.png diff --git a/logos/TMC.png b/logos/TMC.png Binary files differnew file mode 100755 index 0000000..8e958a3 --- /dev/null +++ b/logos/TMC.png diff --git a/logos/TPS STAR.png b/logos/TPS STAR.png Binary files differnew file mode 100755 index 0000000..afcf868 --- /dev/null +++ b/logos/TPS STAR.png diff --git a/logos/TRACE TV.png b/logos/TRACE TV.png Binary files differnew file mode 100755 index 0000000..0bab9b2 --- /dev/null +++ b/logos/TRACE TV.png diff --git a/logos/TV BREIZH.png b/logos/TV BREIZH.png Binary files differnew file mode 100755 index 0000000..fcb86f5 --- /dev/null +++ b/logos/TV BREIZH.png diff --git a/logos/TV5.png b/logos/TV5.png Binary files differnew file mode 100755 index 0000000..a8dfa01 --- /dev/null +++ b/logos/TV5.png diff --git a/logos/VIRGIN 17.png b/logos/VIRGIN 17.png Binary files differnew file mode 100755 index 0000000..a0d4a6f --- /dev/null +++ b/logos/VIRGIN 17.png diff --git a/logos/VOYAGE.png b/logos/VOYAGE.png Binary files differnew file mode 100755 index 0000000..d1c24fc --- /dev/null +++ b/logos/VOYAGE.png diff --git a/logos/W9.png b/logos/W9.png Binary files differnew file mode 100755 index 0000000..22a9be5 --- /dev/null +++ b/logos/W9.png diff --git a/logos/XXL.png b/logos/XXL.png Binary files differnew file mode 100755 index 0000000..c54797d --- /dev/null +++ b/logos/XXL.png diff --git a/logos/ZDF.png b/logos/ZDF.png Binary files differnew file mode 100755 index 0000000..2cf13c6 --- /dev/null +++ b/logos/ZDF.png diff --git a/logos/iConcertsHD_6Mbps.png b/logos/iConcertsHD_6Mbps.png Binary files differnew file mode 100755 index 0000000..d0d05cb --- /dev/null +++ b/logos/iConcertsHD_6Mbps.png diff --git a/logos/nologo.png b/logos/nologo.png Binary files differnew file mode 100755 index 0000000..7b5b555 --- /dev/null +++ b/logos/nologo.png diff --git a/logos/nologo2.png b/logos/nologo2.png Binary files differnew file mode 100755 index 0000000..e122d3c --- /dev/null +++ b/logos/nologo2.png diff --git a/logos/readme.txt b/logos/readme.txt new file mode 100755 index 0000000..7d77d39 --- /dev/null +++ b/logos/readme.txt @@ -0,0 +1,3 @@ +Put your own channels logo here. +Png format, 80x80 pixel. +Same name than your channels.conf ones. diff --git a/streamstatus.php b/streamstatus.php new file mode 100755 index 0000000..4582dc6 --- /dev/null +++ b/streamstatus.php @@ -0,0 +1,21 @@ +<?php + header('Content-Type: text/xml'); + echo "<?xml version=\"1.0\"?>\n"; + echo "<status>\n"; + $cnt = 0; + + while ( ( count(glob('ram/*.ts')) < 2 ) && ( $cnt < 25 ) ) + { + // wait for stream available + sleep(1); + $cnt++; + } + + if ( count(glob('ram/*.ts')) < 2 ) + echo "<streamstatus>error</streamstatus>\n"; + else + echo "<streamstatus>ok</streamstatus>\n"; + + echo "</status>\n"; + +?> |