From f27608f2695d51f563adb6ebc8c475c6a8df53ba Mon Sep 17 00:00:00 2001 From: root Date: Wed, 17 Feb 2010 23:14:37 +0100 Subject: 0.3.5-dev --- COPYING | 340 +++++++++++ HISTORY | 61 ++ README | 101 ++++ config.php | 25 + css/developer-style.css | 1159 +++++++++++++++++++++++++++++++++++++ css/style.css | 1159 +++++++++++++++++++++++++++++++++++++ error.php | 71 +++ images/0stars.png | Bin 0 -> 314 bytes images/0starsborder.png | Bin 0 -> 363 bytes images/1stars.png | Bin 0 -> 456 bytes images/1starsborder.png | Bin 0 -> 482 bytes images/2stars.png | Bin 0 -> 467 bytes images/2starsborder.png | Bin 0 -> 501 bytes images/3stars.png | Bin 0 -> 470 bytes images/3starsborder.png | Bin 0 -> 506 bytes images/4stars.png | Bin 0 -> 455 bytes images/4starsborder.png | Bin 0 -> 503 bytes images/5stars.png | Bin 0 -> 393 bytes images/arrow.png | Bin 0 -> 361 bytes images/background.png | Bin 0 -> 155 bytes images/checkbox.png | Bin 0 -> 3300 bytes images/home.png | Bin 0 -> 361 bytes images/istreamdev.png | Bin 0 -> 7468 bytes images/navbutton.png | Bin 0 -> 571 bytes images/navbuttonblack.png | Bin 0 -> 493 bytes images/navbuttonblue.png | Bin 0 -> 664 bytes images/navleft.png | Bin 0 -> 826 bytes images/navleftblack.png | Bin 0 -> 810 bytes images/navlinkleft.png | Bin 0 -> 786 bytes images/navlinkleftblack.png | Bin 0 -> 737 bytes images/navlinkright.png | Bin 0 -> 804 bytes images/navlinkrightblack.png | Bin 0 -> 738 bytes images/navright.png | Bin 0 -> 845 bytes images/navrightblack.png | Bin 0 -> 861 bytes images/pictos/media.png | Bin 0 -> 997 bytes images/pictos/record.png | Bin 0 -> 930 bytes images/pictos/tv.png | Bin 0 -> 922 bytes images/play.gif | Bin 0 -> 103 bytes images/radiobutton.png | Bin 0 -> 373 bytes images/searchfield.png | Bin 0 -> 1548 bytes images/startup.png | Bin 0 -> 22107 bytes images/tributton.png | Bin 0 -> 476 bytes includes/inc_auth.php | 32 + includes/inc_cat.php | 17 + includes/inc_chan.php | 24 + includes/inc_home.php | 20 + includes/inc_media.php | 16 + includes/inc_rec.php | 62 ++ includes/inc_stream.php | 177 ++++++ includes/inc_streaminfo.php | 61 ++ includes/inc_svdrp.php | 446 ++++++++++++++ includes/inc_vdr.php | 204 +++++++ includes/include.php | 112 ++++ index.php | 62 ++ istream.sh | 41 ++ javascript/ajax.js | 27 + javascript/developer-functions.js | 24 + javascript/functions.js | 1 + logos/13EME RUE.png | Bin 0 -> 5454 bytes logos/AB 1.png | Bin 0 -> 4409 bytes logos/AB MOTEURS.png | Bin 0 -> 2722 bytes logos/ACTION.png | Bin 0 -> 1564 bytes logos/AL JAZEERA ENG.png | Bin 0 -> 5083 bytes logos/ANIMAUX.png | Bin 0 -> 5964 bytes logos/ARTE HD.png | Bin 0 -> 2990 bytes logos/ARTE.png | Bin 0 -> 2696 bytes logos/BABY TV.png | Bin 0 -> 4412 bytes logos/BBC PRIME.png | Bin 0 -> 4678 bytes logos/BBC WORLD.png | Bin 0 -> 6169 bytes logos/BFM TV.png | Bin 0 -> 5947 bytes logos/BLOOMBERG TV.png | Bin 0 -> 2715 bytes logos/BOOMERANG.png | Bin 0 -> 4263 bytes logos/BravaHDTV.png | Bin 0 -> 6081 bytes logos/C CINEMA CLASSIC.png | Bin 0 -> 5231 bytes logos/C CINEMA CLUB.png | Bin 0 -> 4859 bytes logos/C CINEMA EMOTION.png | Bin 0 -> 5033 bytes logos/C CINEMA FAMIZ.png | Bin 0 -> 4756 bytes logos/C CINEMA FRISSON.png | Bin 0 -> 5412 bytes logos/C CINEMA PREMIER.png | Bin 0 -> 5385 bytes logos/C CINEMA STAR.png | Bin 0 -> 4951 bytes logos/CANAL J.png | Bin 0 -> 3991 bytes logos/CANAL+ CINEMA.png | Bin 0 -> 2889 bytes logos/CANAL+ DECALE.png | Bin 0 -> 2911 bytes logos/CANAL+ FAMILY.png | Bin 0 -> 2850 bytes logos/CANAL+ HD.png | Bin 0 -> 2958 bytes logos/CANAL+ SPORT.png | Bin 0 -> 2900 bytes logos/CANAL+.png | Bin 0 -> 2569 bytes logos/CARTOON NETWORK.png | Bin 0 -> 5415 bytes logos/CHASSE ET PECHE.png | Bin 0 -> 4438 bytes logos/CINE FX.png | Bin 0 -> 4494 bytes logos/CINE POLAR.png | Bin 0 -> 4293 bytes logos/CNBC EUROPE.png | Bin 0 -> 6262 bytes logos/CNN.png | Bin 0 -> 5228 bytes logos/COMEDIE !.png | Bin 0 -> 2684 bytes logos/CUISINE TV.png | Bin 0 -> 3309 bytes logos/DIRECT 8.png | Bin 0 -> 3794 bytes logos/DISNEY CHANNEL+1.png | Bin 0 -> 6329 bytes logos/DISNEY CHANNEL.png | Bin 0 -> 6042 bytes logos/DISNEY CINEMAGIC+1.png | Bin 0 -> 7891 bytes logos/DISNEY CINEMAGIC.png | Bin 0 -> 7840 bytes logos/DISNEY MAGIC HD.png | Bin 0 -> 7840 bytes logos/E! ENTERTAINMENT.png | Bin 0 -> 4697 bytes logos/ENCYCLOPEDIA.png | Bin 0 -> 2176 bytes logos/ESCALES.png | Bin 0 -> 3643 bytes logos/ESPN CLASSIC EUROPE.png | Bin 0 -> 6568 bytes logos/ESPN CLASSIC.png | Bin 0 -> 6568 bytes logos/EUREKA!.png | Bin 0 -> 3869 bytes logos/EURONEWS.png | Bin 0 -> 2895 bytes logos/EUROSPORT.png | Bin 0 -> 5214 bytes logos/EXTREME SPORTS.png | Bin 0 -> 5713 bytes logos/FILLES TV.png | Bin 0 -> 2952 bytes logos/FIT.png | Bin 0 -> 7892 bytes logos/FOOT+ 1.png | Bin 0 -> 3018 bytes logos/FOOT+ 2.png | Bin 0 -> 3018 bytes logos/FOOT+ 3.png | Bin 0 -> 3018 bytes logos/FOOT+ 4.png | Bin 0 -> 3018 bytes logos/FOOT+ 5.png | Bin 0 -> 3018 bytes logos/FOOT+ 6.png | Bin 0 -> 3018 bytes logos/FOOT+ 7.png | Bin 0 -> 3018 bytes logos/FOX LIFE.png | Bin 0 -> 3559 bytes logos/FRANCE 0.png | Bin 0 -> 3346 bytes logos/FRANCE 2 HD.png | Bin 0 -> 3490 bytes logos/FRANCE 2.png | Bin 0 -> 3490 bytes logos/FRANCE 24.png | Bin 0 -> 6276 bytes logos/FRANCE 4.png | Bin 0 -> 3351 bytes logos/FRANCE 5.png | Bin 0 -> 3380 bytes logos/FUN TV.png | Bin 0 -> 7243 bytes logos/France 3 SAT.png | Bin 0 -> 3382 bytes logos/France 3.png | Bin 0 -> 3382 bytes logos/GAME ONE.png | Bin 0 -> 2405 bytes logos/GULLI.png | Bin 0 -> 5257 bytes logos/HD1.png | Bin 0 -> 2344 bytes logos/HISTOIRE.png | Bin 0 -> 2831 bytes logos/HUSTLER TV.png | Bin 0 -> 2943 bytes logos/I CONCERTS.png | Bin 0 -> 5934 bytes logos/I TELEVISION.png | Bin 0 -> 3906 bytes logos/INFOSPORT.png | Bin 0 -> 2766 bytes logos/JETIX.png | Bin 0 -> 4787 bytes logos/JIMMY.png | Bin 0 -> 2697 bytes logos/KTO.png | Bin 0 -> 4391 bytes logos/L'EQUIPE TV.png | Bin 0 -> 3610 bytes logos/LA CHAINE METEO.png | Bin 0 -> 6964 bytes logos/LCI.png | Bin 0 -> 2526 bytes logos/LUXE TV HD.png | Bin 0 -> 2004 bytes logos/Live 1.png | Bin 0 -> 6989 bytes logos/M6 BOUTIQUE LA CHAINE.png | Bin 0 -> 6022 bytes logos/M6 HD.png | Bin 0 -> 4266 bytes logos/M6 MUSIC BLACK.png | Bin 0 -> 7390 bytes logos/M6 MUSIC HITS.png | Bin 0 -> 5922 bytes logos/M6 MUSIC ROCK.png | Bin 0 -> 7102 bytes logos/M6.png | Bin 0 -> 4679 bytes logos/MA CHAINE SPORT.png | Bin 0 -> 3243 bytes logos/MANGAS.png | Bin 0 -> 6030 bytes logos/MATCH TV.png | Bin 0 -> 6911 bytes logos/MCM POP.png | Bin 0 -> 5301 bytes logos/MCM TOP.png | Bin 0 -> 3894 bytes logos/MCM.png | Bin 0 -> 3116 bytes logos/MELODY ZEN HD.png | Bin 0 -> 2870 bytes logos/MOTORS TV.png | Bin 0 -> 4273 bytes logos/MTV 2.png | Bin 0 -> 2166 bytes logos/MTV BASE.png | Bin 0 -> 5583 bytes logos/MTV HD.png | Bin 0 -> 5337 bytes logos/MTV HITS.png | Bin 0 -> 5899 bytes logos/MTV IDOL.png | Bin 0 -> 5190 bytes logos/MTV PULSE.png | Bin 0 -> 5582 bytes logos/MTV.png | Bin 0 -> 5993 bytes logos/MUSIQUE CLASSIQUE.png | Bin 0 -> 6347 bytes logos/Mezzo.png | Bin 0 -> 3505 bytes logos/NATIONAL GEO HD.png | Bin 0 -> 4186 bytes logos/NATIONAL GEO.png | Bin 0 -> 5334 bytes logos/NBA+.png | Bin 0 -> 3585 bytes logos/NICKELODEON.png | Bin 0 -> 7050 bytes logos/NRJ 12 HD.png | Bin 0 -> 3622 bytes logos/NRJ 12.png | Bin 0 -> 4572 bytes logos/NT1.png | Bin 0 -> 5202 bytes logos/ODYSSEE.png | Bin 0 -> 3372 bytes logos/OL TV.png | Bin 0 -> 2821 bytes logos/OLTV.png | Bin 0 -> 2821 bytes logos/OM TV.png | Bin 0 -> 5312 bytes logos/OM'TV.png | Bin 0 -> 5312 bytes logos/PARIS PREMIERE.png | Bin 0 -> 4003 bytes logos/PINK TV.png | Bin 0 -> 4188 bytes logos/PIWI.png | Bin 0 -> 4893 bytes logos/PLANETE JUNIORS.png | Bin 0 -> 6816 bytes logos/PLANETE JUSTICE.png | Bin 0 -> 5184 bytes logos/PLANETE NO LIMIT.png | Bin 0 -> 5318 bytes logos/PLANETE THALASSA.png | Bin 0 -> 5771 bytes logos/PLANETE.png | Bin 0 -> 4155 bytes logos/PLAYHOUSE DISNEY.png | Bin 0 -> 5968 bytes logos/PLAYIN' TV.png | Bin 0 -> 3085 bytes logos/POKER CHANNEL.png | Bin 0 -> 4378 bytes logos/RAI 1.png | Bin 0 -> 2206 bytes logos/REAL TIME.png | Bin 0 -> 4144 bytes logos/RTL9.png | Bin 0 -> 4652 bytes logos/RTPI.png | Bin 0 -> 2669 bytes logos/SCI-FI.png | Bin 0 -> 3088 bytes logos/SEASONS.png | Bin 0 -> 7611 bytes logos/SERIE CLUB.png | Bin 0 -> 4440 bytes logos/SIC.png | Bin 0 -> 6480 bytes logos/SPORT+.png | Bin 0 -> 3421 bytes logos/TCM.png | Bin 0 -> 4960 bytes logos/TELESSONNE.png | Bin 0 -> 9002 bytes logos/TELETOON+1.png | Bin 0 -> 8709 bytes logos/TELETOON.png | Bin 0 -> 8499 bytes logos/TEVA.png | Bin 0 -> 5374 bytes logos/TF1 HD.png | Bin 0 -> 2557 bytes logos/TF1.png | Bin 0 -> 1809 bytes logos/TF6.png | Bin 0 -> 3434 bytes logos/TFJ.png | Bin 0 -> 4134 bytes logos/TIJI.png | Bin 0 -> 6735 bytes logos/TMC.png | Bin 0 -> 4327 bytes logos/TPS STAR.png | Bin 0 -> 4065 bytes logos/TRACE TV.png | Bin 0 -> 5101 bytes logos/TV BREIZH.png | Bin 0 -> 3918 bytes logos/TV5.png | Bin 0 -> 2682 bytes logos/VIRGIN 17.png | Bin 0 -> 4897 bytes logos/VOYAGE.png | Bin 0 -> 3229 bytes logos/W9.png | Bin 0 -> 5806 bytes logos/XXL.png | Bin 0 -> 4785 bytes logos/ZDF.png | Bin 0 -> 3045 bytes logos/iConcertsHD_6Mbps.png | Bin 0 -> 5934 bytes logos/nologo.png | Bin 0 -> 145 bytes logos/nologo2.png | Bin 0 -> 332 bytes logos/readme.txt | 3 + streamstatus.php | 21 + 225 files changed, 4266 insertions(+) create mode 100755 COPYING create mode 100755 HISTORY create mode 100755 README create mode 100755 config.php create mode 100755 css/developer-style.css create mode 100755 css/style.css create mode 100755 error.php create mode 100755 images/0stars.png create mode 100755 images/0starsborder.png create mode 100755 images/1stars.png create mode 100755 images/1starsborder.png create mode 100755 images/2stars.png create mode 100755 images/2starsborder.png create mode 100755 images/3stars.png create mode 100755 images/3starsborder.png create mode 100755 images/4stars.png create mode 100755 images/4starsborder.png create mode 100755 images/5stars.png create mode 100755 images/arrow.png create mode 100755 images/background.png create mode 100755 images/checkbox.png create mode 100755 images/home.png create mode 100755 images/istreamdev.png create mode 100755 images/navbutton.png create mode 100755 images/navbuttonblack.png create mode 100755 images/navbuttonblue.png create mode 100755 images/navleft.png create mode 100755 images/navleftblack.png create mode 100755 images/navlinkleft.png create mode 100755 images/navlinkleftblack.png create mode 100755 images/navlinkright.png create mode 100755 images/navlinkrightblack.png create mode 100755 images/navright.png create mode 100755 images/navrightblack.png create mode 100755 images/pictos/media.png create mode 100755 images/pictos/record.png create mode 100755 images/pictos/tv.png create mode 100755 images/play.gif create mode 100755 images/radiobutton.png create mode 100755 images/searchfield.png create mode 100755 images/startup.png create mode 100755 images/tributton.png create mode 100755 includes/inc_auth.php create mode 100755 includes/inc_cat.php create mode 100755 includes/inc_chan.php create mode 100755 includes/inc_home.php create mode 100755 includes/inc_media.php create mode 100755 includes/inc_rec.php create mode 100755 includes/inc_stream.php create mode 100755 includes/inc_streaminfo.php create mode 100755 includes/inc_svdrp.php create mode 100755 includes/inc_vdr.php create mode 100755 includes/include.php create mode 100755 index.php create mode 100755 istream.sh create mode 100755 javascript/ajax.js create mode 100755 javascript/developer-functions.js create mode 100755 javascript/functions.js create mode 100755 logos/13EME RUE.png create mode 100755 logos/AB 1.png create mode 100755 logos/AB MOTEURS.png create mode 100755 logos/ACTION.png create mode 100755 logos/AL JAZEERA ENG.png create mode 100755 logos/ANIMAUX.png create mode 100755 logos/ARTE HD.png create mode 100755 logos/ARTE.png create mode 100755 logos/BABY TV.png create mode 100755 logos/BBC PRIME.png create mode 100755 logos/BBC WORLD.png create mode 100755 logos/BFM TV.png create mode 100755 logos/BLOOMBERG TV.png create mode 100755 logos/BOOMERANG.png create mode 100755 logos/BravaHDTV.png create mode 100755 logos/C CINEMA CLASSIC.png create mode 100755 logos/C CINEMA CLUB.png create mode 100755 logos/C CINEMA EMOTION.png create mode 100755 logos/C CINEMA FAMIZ.png create mode 100755 logos/C CINEMA FRISSON.png create mode 100755 logos/C CINEMA PREMIER.png create mode 100755 logos/C CINEMA STAR.png create mode 100755 logos/CANAL J.png create mode 100755 logos/CANAL+ CINEMA.png create mode 100755 logos/CANAL+ DECALE.png create mode 100755 logos/CANAL+ FAMILY.png create mode 100755 logos/CANAL+ HD.png create mode 100755 logos/CANAL+ SPORT.png create mode 100755 logos/CANAL+.png create mode 100755 logos/CARTOON NETWORK.png create mode 100755 logos/CHASSE ET PECHE.png create mode 100755 logos/CINE FX.png create mode 100755 logos/CINE POLAR.png create mode 100755 logos/CNBC EUROPE.png create mode 100755 logos/CNN.png create mode 100755 logos/COMEDIE !.png create mode 100755 logos/CUISINE TV.png create mode 100755 logos/DIRECT 8.png create mode 100755 logos/DISNEY CHANNEL+1.png create mode 100755 logos/DISNEY CHANNEL.png create mode 100755 logos/DISNEY CINEMAGIC+1.png create mode 100755 logos/DISNEY CINEMAGIC.png create mode 100755 logos/DISNEY MAGIC HD.png create mode 100755 logos/E! ENTERTAINMENT.png create mode 100755 logos/ENCYCLOPEDIA.png create mode 100755 logos/ESCALES.png create mode 100755 logos/ESPN CLASSIC EUROPE.png create mode 100755 logos/ESPN CLASSIC.png create mode 100755 logos/EUREKA!.png create mode 100755 logos/EURONEWS.png create mode 100755 logos/EUROSPORT.png create mode 100755 logos/EXTREME SPORTS.png create mode 100755 logos/FILLES TV.png create mode 100755 logos/FIT.png create mode 100755 logos/FOOT+ 1.png create mode 100755 logos/FOOT+ 2.png create mode 100755 logos/FOOT+ 3.png create mode 100755 logos/FOOT+ 4.png create mode 100755 logos/FOOT+ 5.png create mode 100755 logos/FOOT+ 6.png create mode 100755 logos/FOOT+ 7.png create mode 100755 logos/FOX LIFE.png create mode 100755 logos/FRANCE 0.png create mode 100755 logos/FRANCE 2 HD.png create mode 100755 logos/FRANCE 2.png create mode 100755 logos/FRANCE 24.png create mode 100755 logos/FRANCE 4.png create mode 100755 logos/FRANCE 5.png create mode 100755 logos/FUN TV.png create mode 100755 logos/France 3 SAT.png create mode 100755 logos/France 3.png create mode 100755 logos/GAME ONE.png create mode 100755 logos/GULLI.png create mode 100755 logos/HD1.png create mode 100755 logos/HISTOIRE.png create mode 100755 logos/HUSTLER TV.png create mode 100755 logos/I CONCERTS.png create mode 100755 logos/I TELEVISION.png create mode 100755 logos/INFOSPORT.png create mode 100755 logos/JETIX.png create mode 100755 logos/JIMMY.png create mode 100755 logos/KTO.png create mode 100755 logos/L'EQUIPE TV.png create mode 100755 logos/LA CHAINE METEO.png create mode 100755 logos/LCI.png create mode 100755 logos/LUXE TV HD.png create mode 100755 logos/Live 1.png create mode 100755 logos/M6 BOUTIQUE LA CHAINE.png create mode 100755 logos/M6 HD.png create mode 100755 logos/M6 MUSIC BLACK.png create mode 100755 logos/M6 MUSIC HITS.png create mode 100755 logos/M6 MUSIC ROCK.png create mode 100755 logos/M6.png create mode 100755 logos/MA CHAINE SPORT.png create mode 100755 logos/MANGAS.png create mode 100755 logos/MATCH TV.png create mode 100755 logos/MCM POP.png create mode 100755 logos/MCM TOP.png create mode 100755 logos/MCM.png create mode 100755 logos/MELODY ZEN HD.png create mode 100755 logos/MOTORS TV.png create mode 100755 logos/MTV 2.png create mode 100755 logos/MTV BASE.png create mode 100755 logos/MTV HD.png create mode 100755 logos/MTV HITS.png create mode 100755 logos/MTV IDOL.png create mode 100755 logos/MTV PULSE.png create mode 100755 logos/MTV.png create mode 100755 logos/MUSIQUE CLASSIQUE.png create mode 100755 logos/Mezzo.png create mode 100755 logos/NATIONAL GEO HD.png create mode 100755 logos/NATIONAL GEO.png create mode 100755 logos/NBA+.png create mode 100755 logos/NICKELODEON.png create mode 100755 logos/NRJ 12 HD.png create mode 100755 logos/NRJ 12.png create mode 100755 logos/NT1.png create mode 100755 logos/ODYSSEE.png create mode 100755 logos/OL TV.png create mode 100755 logos/OLTV.png create mode 100755 logos/OM TV.png create mode 100755 logos/OM'TV.png create mode 100755 logos/PARIS PREMIERE.png create mode 100755 logos/PINK TV.png create mode 100755 logos/PIWI.png create mode 100755 logos/PLANETE JUNIORS.png create mode 100755 logos/PLANETE JUSTICE.png create mode 100755 logos/PLANETE NO LIMIT.png create mode 100755 logos/PLANETE THALASSA.png create mode 100755 logos/PLANETE.png create mode 100755 logos/PLAYHOUSE DISNEY.png create mode 100755 logos/PLAYIN' TV.png create mode 100755 logos/POKER CHANNEL.png create mode 100755 logos/RAI 1.png create mode 100755 logos/REAL TIME.png create mode 100755 logos/RTL9.png create mode 100755 logos/RTPI.png create mode 100755 logos/SCI-FI.png create mode 100755 logos/SEASONS.png create mode 100755 logos/SERIE CLUB.png create mode 100755 logos/SIC.png create mode 100755 logos/SPORT+.png create mode 100755 logos/TCM.png create mode 100755 logos/TELESSONNE.png create mode 100755 logos/TELETOON+1.png create mode 100755 logos/TELETOON.png create mode 100755 logos/TEVA.png create mode 100755 logos/TF1 HD.png create mode 100755 logos/TF1.png create mode 100755 logos/TF6.png create mode 100755 logos/TFJ.png create mode 100755 logos/TIJI.png create mode 100755 logos/TMC.png create mode 100755 logos/TPS STAR.png create mode 100755 logos/TRACE TV.png create mode 100755 logos/TV BREIZH.png create mode 100755 logos/TV5.png create mode 100755 logos/VIRGIN 17.png create mode 100755 logos/VOYAGE.png create mode 100755 logos/W9.png create mode 100755 logos/XXL.png create mode 100755 logos/ZDF.png create mode 100755 logos/iConcertsHD_6Mbps.png create mode 100755 logos/nologo.png create mode 100755 logos/nologo2.png create mode 100755 logos/readme.txt create mode 100755 streamstatus.php diff --git a/COPYING b/COPYING new file mode 100755 index 0000000..5b6e7c6 --- /dev/null +++ b/COPYING @@ -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. + + + Copyright (C) + + 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. + + , 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. diff --git a/HISTORY b/HISTORY new file mode 100755 index 0000000..d903f01 --- /dev/null +++ b/HISTORY @@ -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 ) + + diff --git a/README b/README new file mode 100755 index 0000000..834c202 --- /dev/null +++ b/README @@ -0,0 +1,101 @@ + ________________________________________________________ +| | +| [ iStreamdev ] | +|________________________________________________________| + + Written by: + Alib + + 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 @@ + '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 @@ + + + + + + + + + + + +iStreamdev + + + + + + +\r\n"; + print "
\r\n"; + print "
\r\n"; + print "Back
\r\n"; + print "
iStream
\r\n"; + print "
\r\n"; + print "
\r\n"; + print " Stream error\r\n"; + print "
    \r\n"; + print " Streaming not started. Something went wrong. Perhaps VDR couldn't decode the channel."; + print "
\r\n"; + print "
\r\n"; + +?> + + + + + + + + diff --git a/images/0stars.png b/images/0stars.png new file mode 100755 index 0000000..81947f7 Binary files /dev/null and b/images/0stars.png differ diff --git a/images/0starsborder.png b/images/0starsborder.png new file mode 100755 index 0000000..f4d2314 Binary files /dev/null and b/images/0starsborder.png differ diff --git a/images/1stars.png b/images/1stars.png new file mode 100755 index 0000000..12dd9c6 Binary files /dev/null and b/images/1stars.png differ diff --git a/images/1starsborder.png b/images/1starsborder.png new file mode 100755 index 0000000..ad21998 Binary files /dev/null and b/images/1starsborder.png differ diff --git a/images/2stars.png b/images/2stars.png new file mode 100755 index 0000000..fa7e2b9 Binary files /dev/null and b/images/2stars.png differ diff --git a/images/2starsborder.png b/images/2starsborder.png new file mode 100755 index 0000000..10a2b91 Binary files /dev/null and b/images/2starsborder.png differ diff --git a/images/3stars.png b/images/3stars.png new file mode 100755 index 0000000..7136c3f Binary files /dev/null and b/images/3stars.png differ diff --git a/images/3starsborder.png b/images/3starsborder.png new file mode 100755 index 0000000..22c5a92 Binary files /dev/null and b/images/3starsborder.png differ diff --git a/images/4stars.png b/images/4stars.png new file mode 100755 index 0000000..0714156 Binary files /dev/null and b/images/4stars.png differ diff --git a/images/4starsborder.png b/images/4starsborder.png new file mode 100755 index 0000000..4a17cee Binary files /dev/null and b/images/4starsborder.png differ diff --git a/images/5stars.png b/images/5stars.png new file mode 100755 index 0000000..370c60b Binary files /dev/null and b/images/5stars.png differ diff --git a/images/arrow.png b/images/arrow.png new file mode 100755 index 0000000..9993a06 Binary files /dev/null and b/images/arrow.png differ diff --git a/images/background.png b/images/background.png new file mode 100755 index 0000000..8c4f527 Binary files /dev/null and b/images/background.png differ diff --git a/images/checkbox.png b/images/checkbox.png new file mode 100755 index 0000000..75f0ede Binary files /dev/null and b/images/checkbox.png differ diff --git a/images/home.png b/images/home.png new file mode 100755 index 0000000..0fc49fc Binary files /dev/null and b/images/home.png differ diff --git a/images/istreamdev.png b/images/istreamdev.png new file mode 100755 index 0000000..f4153e4 Binary files /dev/null and b/images/istreamdev.png differ diff --git a/images/navbutton.png b/images/navbutton.png new file mode 100755 index 0000000..c786de4 Binary files /dev/null and b/images/navbutton.png differ diff --git a/images/navbuttonblack.png b/images/navbuttonblack.png new file mode 100755 index 0000000..b7a9bab Binary files /dev/null and b/images/navbuttonblack.png differ diff --git a/images/navbuttonblue.png b/images/navbuttonblue.png new file mode 100755 index 0000000..97a2c98 Binary files /dev/null and b/images/navbuttonblue.png differ diff --git a/images/navleft.png b/images/navleft.png new file mode 100755 index 0000000..a6c05dd Binary files /dev/null and b/images/navleft.png differ diff --git a/images/navleftblack.png b/images/navleftblack.png new file mode 100755 index 0000000..e1eb70f Binary files /dev/null and b/images/navleftblack.png differ diff --git a/images/navlinkleft.png b/images/navlinkleft.png new file mode 100755 index 0000000..5e59302 Binary files /dev/null and b/images/navlinkleft.png differ diff --git a/images/navlinkleftblack.png b/images/navlinkleftblack.png new file mode 100755 index 0000000..82d1022 Binary files /dev/null and b/images/navlinkleftblack.png differ diff --git a/images/navlinkright.png b/images/navlinkright.png new file mode 100755 index 0000000..df5131f Binary files /dev/null and b/images/navlinkright.png differ diff --git a/images/navlinkrightblack.png b/images/navlinkrightblack.png new file mode 100755 index 0000000..ef55084 Binary files /dev/null and b/images/navlinkrightblack.png differ diff --git a/images/navright.png b/images/navright.png new file mode 100755 index 0000000..afa269d Binary files /dev/null and b/images/navright.png differ diff --git a/images/navrightblack.png b/images/navrightblack.png new file mode 100755 index 0000000..80c5b83 Binary files /dev/null and b/images/navrightblack.png differ diff --git a/images/pictos/media.png b/images/pictos/media.png new file mode 100755 index 0000000..647578f Binary files /dev/null and b/images/pictos/media.png differ diff --git a/images/pictos/record.png b/images/pictos/record.png new file mode 100755 index 0000000..c0a1d79 Binary files /dev/null and b/images/pictos/record.png differ diff --git a/images/pictos/tv.png b/images/pictos/tv.png new file mode 100755 index 0000000..74f9fdc Binary files /dev/null and b/images/pictos/tv.png differ diff --git a/images/play.gif b/images/play.gif new file mode 100755 index 0000000..7447d05 Binary files /dev/null and b/images/play.gif differ diff --git a/images/radiobutton.png b/images/radiobutton.png new file mode 100755 index 0000000..45e68fd Binary files /dev/null and b/images/radiobutton.png differ diff --git a/images/searchfield.png b/images/searchfield.png new file mode 100755 index 0000000..05eb98a Binary files /dev/null and b/images/searchfield.png differ diff --git a/images/startup.png b/images/startup.png new file mode 100755 index 0000000..e095c82 Binary files /dev/null and b/images/startup.png differ diff --git a/images/tributton.png b/images/tributton.png new file mode 100755 index 0000000..f5c8f55 Binary files /dev/null and b/images/tributton.png differ 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 @@ + 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 @@ +\r\n"; +print "
\r\n"; +print "
\r\n"; +print "\"home\"
\r\n"; +print "
iStreamdev
\r\n"; +print "
\r\n"; +print "
\r\n"; +print " Category\r\n"; +print "
    \r\n"; + +vdrlistcategories(); + +print "
"; +print "
\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 @@ +\r\n"; +print "
\r\n"; + +print "
\r\n"; +print "Back
\r\n"; +print "
\r\n"; +print "\"home\"
\r\n"; +print "
iStreamdev
\r\n"; +print "
\r\n"; +print "
\r\n"; +print "
  • Channels
  • \r\n"; + +vdrlistchannels($cat); + +print "
"; +print "
\r\n"; +print "
\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 @@ +\r\n"; +print "
\r\n"; +print "
iStreamdev
\r\n"; +print "
\r\n"; +print "
\r\n"; +print " Home\r\n"; +print "
    \r\n"; +print "
  • Channels
  • \r\n"; +print "
    \r\n"; +print "
  • Recordings
  • \r\n"; +print "
    \r\n"; +print "
  • Medias
  • \r\n"; +print "
    \r\n"; +print "
"; +print "
"; +?> 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 @@ +\r\n"; +print "
\r\n"; +print "
\r\n"; +print "\"home\"
\r\n"; +print "
iStreamdev
\r\n"; +print "
\r\n"; +print "
\r\n"; +print " Media\r\n"; +print "
    "; +print "
  • Incoming featureTo do...

  • "; +print "
\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 @@ +\r\n"; +print "
\r\n"; +print "
\r\n"; +if ($dir == $vdrrecpath) + print "\"home\"
\r\n"; +else + print "Back
\r\n"; + +print "
iStreamdev
\r\n"; +print "\r\n"; +print "
\r\n"; +print " Recordings\r\n"; +print "
"; +print " {$subdir}\r\n"; +print "
    "; + +$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 "
  • $recname
  • \r\n"; + print "
    "; + print " "; + print " "; + print " "; + print "
    \r\n"; + } + else + { + print "
  • $recname
  • \r\n"; + print "
    "; + print " "; + print " "; + print "
    \r\n"; + } +} + +$updir = dirname($dir); + +print "
    \r\n"; +closedir($dir_handle); + +print "
\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 @@ +\r\n"; + + print "
\r\n"; + print "
\r\n"; + print "Stop Stream
\r\n"; + print "
iStreamdev
\r\n"; + print "
\r\n"; + + print "
\r\n"; + print " Now streaming\r\n"; + + // Print the right logo + print "
    \r\n"; + if ($type <= 2) + { + if (!file_exists('logos/'.$realname.'.png')) + print "
    \r\n"; + else + print "
    \r\n"; + } + else + print "
    \r\n"; + print "
\r\n"; + + print "
    \r\n"; + print "
  • {$realname}

    {$title}\r\n"; + print "
    {$desc}

\r\n"; + + print "
    \r\n"; + print "
  • Mode\r\n"; + print "

    {$mode}

\r\n"; + + print "
\r\n"; + + print "
"; + print " "; + switch ($type) + { + case 1: + print " "; + print " "; + break; + default: + case 2: + $dir = dirname($url); + print " "; + print " "; + break; + } + print "
\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 "\r\n"; + + print "
\r\n"; + print "
\r\n"; + + print "Back
\r\n"; + print "
\r\n"; + print "\"home\"
\r\n"; + + print "
iStreamdev
\r\n"; + print "
\r\n"; + + print "
\r\n"; + + print " Select stream mode\r\n"; + + print "
    \r\n"; + + // Print the right logo + if ($type <= 2) + { + if (!file_exists('logos/'.$realname.'.png')) + print "
    \r\n"; + else + print "
    \r\n"; + } + else + print "
    \r\n"; + + print "
\r\n"; + + // Check if running to display the start buttons + print "
\r\n"; + print "
\r\n"; + + foreach ($quality as $qname => $qparams) + print "{$qname}"; + print "\r\n"; + + print "
\r\n"; + + print "
    \r\n"; + print "
  • {$realname}

    {$title}\r\n"; + print "
    {$desc}

\r\n"; + + print "
\r\n"; + + foreach ($quality as $qname => $qparams) + { + print "
\r\n"; + print " \r\n"; + print " \r\n"; + print " \r\n"; + print " \r\n"; + print " \r\n"; + print " \r\n"; + print " \r\n"; + print " \r\n"; + switch ($type) + { + case 1: + print " \r\n"; + break; + case 2: + default: + print " \r\n"; + break; + } + print "
"; + } + + print "
"; + switch ($type) + { + case 1: + print " "; + print " "; + break; + default: + case 2: + $dir = dirname($vdrrecpath .$name); + print " "; + print " "; + break; + } + print "
\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 @@ + 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 @@ +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
\n"); + + + $input = fgets($this->handle,128); + + if(!preg_match("/^220 /", $input) || $input == "") + { + $this->DebugMessage("wrong welcome message: '$input'
\n"); + $this->Disconnect(); + return false; + } + + + $this->DebugMessage("Welcome message: $input

\n"); + + return true; + } + + function Command($cmd) + { + if(!$this->handle) return false; + + $ret = array(); + + $this->DebugMessage("Kommando $cmd
"); + 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(""); + 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 ""; +$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 @@ +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 "
  • All channels
  • \r\n"; + print "
    \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 "
  • $cat
  • \r\n"; + print "
    \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 "
  • "; + $chan2=addslashes($chan); + print " \r\n"; + if (!file_exists('logos/'.$chan.'.png')) + print " \r\n"; + else + print " \r\n"; + print " $chan\r\n"; + print " $epgtitle\r\n
  • \r\n"; + print "
    "; + print " "; + print " "; + print " "; + print "
    \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 @@ + diff --git a/index.php b/index.php new file mode 100755 index 0000000..dcb1cf7 --- /dev/null +++ b/index.php @@ -0,0 +1,62 @@ + + + + + + + + + + + +iStreamdev + + + + + + + + + + + + + + + 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\n"; + echo "\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 "error\n"; + else + echo "ok\n"; + + echo "\n"; + +?> -- cgit v1.2.3