From: <gu...@us...> - 2007-05-01 15:27:02
|
Revision: 139 http://svn.sourceforge.net/easybox-mod/?rev=139&view=rev Author: guyou Date: 2007-05-01 08:26:59 -0700 (Tue, 01 May 2007) Log Message: ----------- Ajout svn:eol-style=native sur fichiers .php (#1699723) Modified Paths: -------------- trunk/_framework/aide/help.php trunk/_framework/bouton/bouton_general.php trunk/_framework/cartouche.php trunk/_framework/cr_xml.php trunk/_framework/dwl.php trunk/_framework/favoris_touches.php trunk/_framework/img2fbx.php trunk/_framework/init_version.php trunk/_framework/lib/date.php trunk/_framework/lib/get_info.php trunk/_framework/lib/img_cr.php trunk/_framework/lib/ini.php trunk/_framework/lib/plugins/function.attribbouton.php trunk/_framework/lib/plugins/function.attribmeta.php trunk/_framework/lib/plugins/function.setbackground.php trunk/_framework/lib/zip.php trunk/_framework/login.php trunk/configuration/addimage.php trunk/configuration/ajout_evenement.php trunk/configuration/class/class.id3.php trunk/configuration/class/class.ogg.php trunk/configuration/config_agenda.php trunk/configuration/configajout.php trunk/configuration/configmodif.php trunk/configuration/configuration.php trunk/configuration/demarrage.php trunk/configuration/edit.php trunk/configuration/editrss.php trunk/configuration/fonctions_agenda.php trunk/configuration/general.php trunk/configuration/index1.php trunk/configuration/modules.php trunk/configuration/nav.php trunk/configuration/podcast.php trunk/configuration/rss.php trunk/configuration/save_config.php trunk/configuration/scan.php trunk/configuration/scan_amc.php trunk/configuration/scan_audio.php trunk/configuration/scan_video.php trunk/configuration/screensaver.php trunk/configuration/skin.php trunk/configuration/sup_evenement.php trunk/configuration/temp.php trunk/configuration/verif_config.php trunk/copyright.php trunk/erreur.php trunk/lecteur/lunch_rec.php trunk/lecteur/stop_rec.php trunk/module/_explorateur/index1.php trunk/module/agenda/config.php trunk/module/agenda/description.php trunk/module/agenda/enregistrements.php trunk/module/agenda/evenements.php trunk/module/agenda/fonctions/create_db.php trunk/module/agenda/fonctions/db.php trunk/module/agenda/fonctions/fonctions.php trunk/module/agenda/index1.php trunk/module/agenda/outlook.php trunk/module/allocine/index1.php trunk/module/allocine/jf_extralib.php trunk/module/allocine/playba_allocine.php trunk/module/cac40/index1.php trunk/module/cinefil/index1.php trunk/module/clips/play_clip.php trunk/module/dailymotion/play_dailymotion.php trunk/module/dvd/playrep.php trunk/module/ephemeride/anivdujour.php trunk/module/ephemeride/index1.php trunk/module/eteindre/index1.php trunk/module/films/catalogue.php trunk/module/films/fichefilm.php trunk/module/films/play.php trunk/module/films/playba.php trunk/module/films/playrep.php trunk/module/freeboxtv/content.php trunk/module/freeboxtv/epg.php trunk/module/freeboxtv/freeboxtv.php trunk/module/guidetv/tvprogram.php trunk/module/horloge/index1.php trunk/module/infotrafic/create_image.php trunk/module/infotrafic/index1.php trunk/module/infotrafic/legende.php trunk/module/jt/chaine.php trunk/module/jt/index1.php trunk/module/livescore/classement.php trunk/module/livescore/index1.php trunk/module/livescore/journee.php trunk/module/loto/euromillions.php trunk/module/loto/images/num.php trunk/module/loto/images/numero.php trunk/module/loto/index1.php trunk/module/loto/loto.php trunk/module/mail/index1.php trunk/module/meteo/imgmeteoft.php trunk/module/meteo/index1.php trunk/module/modules/index1.php trunk/module/mp3/catalogue.php trunk/module/mp3/class.id3.php trunk/module/mp3/class.ogg.php trunk/module/mp3/index1.php trunk/module/mp3/jaquette.php trunk/module/mp3/lecteuraudio.php trunk/module/mp3/paroles.php trunk/module/mp3/webradios.php trunk/module/multiposte/add.php trunk/module/multiposte/index1.php trunk/module/othello/index1.php trunk/module/pendu/img_pendu.php trunk/module/pendu/index1.php trunk/module/recettes/index1.php trunk/module/recettes/recettes.php trunk/module/reseaufree/idf.php trunk/module/reseaufree/index1.php trunk/module/reseaufree/phpinfo.php trunk/module/reseaufree/province.php trunk/module/reseaufree/provincene.php trunk/module/reseaufree/provincese.php trunk/module/reseaufree/provinceso.php trunk/module/rss/index1.php trunk/module/screensaver/index1.php trunk/module/seances/index1.php trunk/module/seances/listesalle.php trunk/module/seances/listeville.php trunk/module/seances/voirsalle.php trunk/module/signet/index1.php trunk/module/signet/signetsav.php trunk/module/signet/supall.php trunk/module/signet/supsignet.php trunk/module/sudoku/index1.php trunk/module/webmedia/index1.php trunk/module/youtube/play_youtube.php trunk/remplir bdd.php trunk/skin/mediacenter/aide.php trunk/skin/mediacenter/config_skin.php trunk/skin/mediacenter/framework_skin.php trunk/skin/simple/aide.php trunk/skin/simple/config_skin.php trunk/skin/simple/framework_skin.php trunk/skin/simplegreen/aide.php trunk/skin/simplegreen/config_skin.php trunk/skin/simplegreen/framework_skin.php trunk/testeur.php Property Changed: ---------------- trunk/_framework/aide/help.php trunk/_framework/aide/tutorial.php trunk/_framework/bouton/bouton_general.php trunk/_framework/cartouche.php trunk/_framework/cr_xml.php trunk/_framework/demarrage.php trunk/_framework/dwl.php trunk/_framework/favoris_touches.php trunk/_framework/fonctions_partagees.inc.php trunk/_framework/framework.php trunk/_framework/img2fbx.php trunk/_framework/init_version.php trunk/_framework/lib/Config_File.class.php trunk/_framework/lib/Smarty.class.php trunk/_framework/lib/Smarty_Compiler.class.php trunk/_framework/lib/date.php trunk/_framework/lib/get_info.php trunk/_framework/lib/img_cr.php trunk/_framework/lib/ini.php trunk/_framework/lib/internals/core.assemble_plugin_filepath.php trunk/_framework/lib/internals/core.assign_smarty_interface.php trunk/_framework/lib/internals/core.create_dir_structure.php trunk/_framework/lib/internals/core.display_debug_console.php trunk/_framework/lib/internals/core.get_include_path.php trunk/_framework/lib/internals/core.get_microtime.php trunk/_framework/lib/internals/core.get_php_resource.php trunk/_framework/lib/internals/core.is_secure.php trunk/_framework/lib/internals/core.is_trusted.php trunk/_framework/lib/internals/core.load_plugins.php trunk/_framework/lib/internals/core.load_resource_plugin.php trunk/_framework/lib/internals/core.process_cached_inserts.php trunk/_framework/lib/internals/core.process_compiled_include.php trunk/_framework/lib/internals/core.read_cache_file.php trunk/_framework/lib/internals/core.rm_auto.php trunk/_framework/lib/internals/core.rmdir.php trunk/_framework/lib/internals/core.run_insert_handler.php trunk/_framework/lib/internals/core.smarty_include_php.php trunk/_framework/lib/internals/core.write_cache_file.php trunk/_framework/lib/internals/core.write_compiled_include.php trunk/_framework/lib/internals/core.write_compiled_resource.php trunk/_framework/lib/internals/core.write_file.php trunk/_framework/lib/plugins/block.textformat.php trunk/_framework/lib/plugins/compiler.assign.php trunk/_framework/lib/plugins/function.assign_debug_info.php trunk/_framework/lib/plugins/function.attribbouton.php trunk/_framework/lib/plugins/function.attribmeta.php trunk/_framework/lib/plugins/function.config_load.php trunk/_framework/lib/plugins/function.counter.php trunk/_framework/lib/plugins/function.cycle.php trunk/_framework/lib/plugins/function.debug.php trunk/_framework/lib/plugins/function.eval.php trunk/_framework/lib/plugins/function.fetch.php trunk/_framework/lib/plugins/function.html_checkboxes.php trunk/_framework/lib/plugins/function.html_image.php trunk/_framework/lib/plugins/function.html_options.php trunk/_framework/lib/plugins/function.html_radios.php trunk/_framework/lib/plugins/function.html_select_date.php trunk/_framework/lib/plugins/function.html_select_time.php trunk/_framework/lib/plugins/function.html_table.php trunk/_framework/lib/plugins/function.mailto.php trunk/_framework/lib/plugins/function.math.php trunk/_framework/lib/plugins/function.popup.php trunk/_framework/lib/plugins/function.popup_init.php trunk/_framework/lib/plugins/function.setbackground.php trunk/_framework/lib/plugins/modifier.capitalize.php trunk/_framework/lib/plugins/modifier.cat.php trunk/_framework/lib/plugins/modifier.count_characters.php trunk/_framework/lib/plugins/modifier.count_paragraphs.php trunk/_framework/lib/plugins/modifier.count_sentences.php trunk/_framework/lib/plugins/modifier.count_words.php trunk/_framework/lib/plugins/modifier.date_format.php trunk/_framework/lib/plugins/modifier.debug_print_var.php trunk/_framework/lib/plugins/modifier.default.php trunk/_framework/lib/plugins/modifier.escape.php trunk/_framework/lib/plugins/modifier.indent.php trunk/_framework/lib/plugins/modifier.lower.php trunk/_framework/lib/plugins/modifier.nl2br.php trunk/_framework/lib/plugins/modifier.regex_replace.php trunk/_framework/lib/plugins/modifier.replace.php trunk/_framework/lib/plugins/modifier.spacify.php trunk/_framework/lib/plugins/modifier.string_format.php trunk/_framework/lib/plugins/modifier.strip.php trunk/_framework/lib/plugins/modifier.strip_tags.php trunk/_framework/lib/plugins/modifier.truncate.php trunk/_framework/lib/plugins/modifier.upper.php trunk/_framework/lib/plugins/modifier.wordwrap.php trunk/_framework/lib/plugins/outputfilter.trimwhitespace.php trunk/_framework/lib/plugins/shared.escape_special_chars.php trunk/_framework/lib/plugins/shared.make_timestamp.php trunk/_framework/lib/zip.php trunk/_framework/login.php trunk/_utilisateur/test.php trunk/configuration/addimage.php trunk/configuration/ajout_evenement.php trunk/configuration/class/class.id3.php trunk/configuration/class/class.ogg.php trunk/configuration/config_agenda.php trunk/configuration/configajout.php trunk/configuration/configliste.php trunk/configuration/configmodif.php trunk/configuration/configuration.php trunk/configuration/demarrage.php trunk/configuration/edit.php trunk/configuration/editrss.php trunk/configuration/fonctions_agenda.php trunk/configuration/general.php trunk/configuration/index1.php trunk/configuration/modules.php trunk/configuration/nav.php trunk/configuration/podcast.php trunk/configuration/rss.php trunk/configuration/save_config.php trunk/configuration/scan.php trunk/configuration/scan_amc.php trunk/configuration/scan_audio.php trunk/configuration/scan_video.php trunk/configuration/screensaver.php trunk/configuration/skin.php trunk/configuration/sup_evenement.php trunk/configuration/temp.php trunk/configuration/verif_config.php trunk/copyright.php trunk/erreur.php trunk/lecteur/lunch_rec.php trunk/lecteur/stop_rec.php trunk/module/_explorateur/index1.php trunk/module/_menu/menu.php trunk/module/agenda/config.php trunk/module/agenda/description.php trunk/module/agenda/enregistrements.php trunk/module/agenda/evenements.php trunk/module/agenda/fonctions/create_db.php trunk/module/agenda/fonctions/db.php trunk/module/agenda/fonctions/fonctions.php trunk/module/agenda/index1.php trunk/module/agenda/outlook.php trunk/module/allocine/index1.php trunk/module/allocine/jf_extralib.php trunk/module/allocine/playba_allocine.php trunk/module/cac40/index1.php trunk/module/cinefil/index1.php trunk/module/clips/index1.php trunk/module/clips/play_clip.php trunk/module/dailymotion/index1.php trunk/module/dailymotion/play_dailymotion.php trunk/module/diaporama/index1.php trunk/module/dvd/index1.php trunk/module/dvd/playrep.php trunk/module/ephemeride/anivdujour.php trunk/module/ephemeride/index1.php trunk/module/eteindre/index1.php trunk/module/favoris/index1.php trunk/module/films/catalogue.php trunk/module/films/fichefilm.php trunk/module/films/index1.php trunk/module/films/info.php trunk/module/films/lecture.php trunk/module/films/play.php trunk/module/films/playba.php trunk/module/films/playrep.php trunk/module/freeboxtv/content.php trunk/module/freeboxtv/epg.php trunk/module/freeboxtv/freeboxtv.php trunk/module/guidetv/tvprogram.php trunk/module/horloge/horloge.php trunk/module/horloge/index1.php trunk/module/horoscope/index1.php trunk/module/infotrafic/create_image.php trunk/module/infotrafic/index1.php trunk/module/infotrafic/legende.php trunk/module/jt/chaine.php trunk/module/jt/index1.php trunk/module/livescore/classement.php trunk/module/livescore/index1.php trunk/module/livescore/journee.php trunk/module/loto/euromillions.php trunk/module/loto/images/num.php trunk/module/loto/images/numero.php trunk/module/loto/index1.php trunk/module/loto/keno.php trunk/module/loto/loto.php trunk/module/mail/index1.php trunk/module/messagerie/index1.php trunk/module/meteo/imgmeteoft.php trunk/module/meteo/index1.php trunk/module/modules/index1.php trunk/module/morpion/index1.php trunk/module/mp3/catalogue.php trunk/module/mp3/class.id3.php trunk/module/mp3/class.ogg.php trunk/module/mp3/index1.php trunk/module/mp3/jaquette.php trunk/module/mp3/lecteuraudio.php trunk/module/mp3/paroles.php trunk/module/mp3/playdb.php trunk/module/mp3/podcast.php trunk/module/mp3/webradios.php trunk/module/multiposte/add.php trunk/module/multiposte/index1.php trunk/module/othello/index1.php trunk/module/pendu/img_pendu.php trunk/module/pendu/index1.php trunk/module/recettes/index1.php trunk/module/recettes/recettes.php trunk/module/reseaufree/idf.php trunk/module/reseaufree/index1.php trunk/module/reseaufree/libchart/classes/Axis.php trunk/module/reseaufree/libchart/classes/BarChart.php trunk/module/reseaufree/libchart/classes/Chart.php trunk/module/reseaufree/libchart/classes/Color.php trunk/module/reseaufree/libchart/classes/HorizontalChart.php trunk/module/reseaufree/libchart/classes/LineChart.php trunk/module/reseaufree/libchart/classes/PieChart.php trunk/module/reseaufree/libchart/classes/Point.php trunk/module/reseaufree/libchart/classes/Primitive.php trunk/module/reseaufree/libchart/classes/Text.php trunk/module/reseaufree/libchart/classes/VerticalChart.php trunk/module/reseaufree/libchart/libchart.php trunk/module/reseaufree/phpinfo.php trunk/module/reseaufree/province.php trunk/module/reseaufree/provincene.php trunk/module/reseaufree/provinceno.php trunk/module/reseaufree/provincese.php trunk/module/reseaufree/provinceso.php trunk/module/reseaufree/speedtest.php trunk/module/rss/index1.php trunk/module/screensaver/index1.php trunk/module/seances/index1.php trunk/module/seances/listesalle.php trunk/module/seances/listeville.php trunk/module/seances/voirsalle.php trunk/module/signet/index1.php trunk/module/signet/playsignet.php trunk/module/signet/signetsav.php trunk/module/signet/supall.php trunk/module/signet/supsignet.php trunk/module/sudoku/index1.php trunk/module/webmedia/index1.php trunk/module/youtube/index1.php trunk/module/youtube/play_youtube.php trunk/remplir bdd.php trunk/skin/mediacenter/aide.php trunk/skin/mediacenter/config_skin.php trunk/skin/mediacenter/framework_skin.php trunk/skin/simple/aide.php trunk/skin/simple/config_skin.php trunk/skin/simple/framework_skin.php trunk/skin/simplegreen/aide.php trunk/skin/simplegreen/config_skin.php trunk/skin/simplegreen/framework_skin.php trunk/testeur.php Modified: trunk/_framework/aide/help.php =================================================================== --- trunk/_framework/aide/help.php 2007-05-01 15:20:56 UTC (rev 138) +++ trunk/_framework/aide/help.php 2007-05-01 15:26:59 UTC (rev 139) @@ -1,35 +1,35 @@ -<?php - $RACINE_REP = "../../"; - require($RACINE_REP.'_framework/framework.php'); - - if ($vers_fbx==5) $typeTel = 'telehd'; - else $typeTel = 'tele'; - - if (isset($_GET['affichage'])) $affichage = $_GET['affichage']; - else $affichage = 'telehd'; - - - $MENU_ALT=array(array('lien'=>'tutorial.php', 'nom'=>'Tutoriel', 'selected'=>false), - array('lien'=>'help.php?affichage='.$typeTel, 'nom'=>'T\xE9l\xE9commande', 'selected'=>$affichage=='telehd'), - array('lien'=>'help.php?affichage=video', 'nom'=>'Module vid\xE9o', 'selected'=>$affichage=='video'), - array('lien'=>'help.php?affichage=photo', 'nom'=>'Module photo', 'selected'=>$affichage=='photo'), - array('lien'=>'help.php?affichage=audio', 'nom'=>'Module audio', 'selected'=>$affichage=='audio') - ); - - $LINK['red']= $MODULE.'_menu/menu.php'; - - if ($affichage=="photo") - $CON = '<center>L\'usage du module photo est assez simple. Entrez dans le dossier o\xF9 se trouve vos photos gr\xE2ce \xE0 l\'explorateur. Les touches verte et bleue permettent de passer de page en page. La touche rouge permet de revenir en arri\xE8re. La touche jaune permet de revenir au dossier parent. Une fois que vous avez affich\xE9 une image seule, vous pouvez passer \xE0 la pr\xE9c\xE9dente ou \xE0 la suivante gr\xE2ce aux touches verte et bleue. En remplissant la case avec un nombre puis en appuyant sur OK, le diaporama se lance et montre les photos dans l\'ordre et enchain\xE9e, en continue. La touche stop arr\xEAte ce diaporama. La touche play lance le diaporama avec un intervalle de temps par d\xE9faut. Pendant l\'affichage d\'une image seule, la touche rouge permet de revenir \xE0 l\'explorateur dans le dossier en cours.</center>'; - elseif ($affichage=="audio") - $CON = '<center>Le module audio est divis\xE9 en sous-modules. Les modules biblioth\xE8que et explorateur vous permettent d\'ajouter des fichiers \xE0 la playlist. Le bouton rouge fait revenir \xE0 la playlist. Les touches habituelles servent \xE0 naviguer dans la biblioth\xE8que tout comme dans toutes les autres listes.</center>'; - elseif ($affichage=="video") - $CON = '<center>Le module vid\xE9o ses divise en trois panneau : quand on ne voit aucune informations (cach\xE9e), seul un OSD s\'affiche pour vous informer quand vous appuyez sur la t\xE9l\xE9commande ou autre. Vous pouvez alors, avec les touches haut et bas, avancer ou reculer d\'une minute dans le flux. En particulier, le menu des options se trouve en haut de cette page, qui permet de visualiser les options sur les sous-titres, les chapitres... Dans le module vid\xE9o, la touche rouge sert \xE0 changer la piste sous-titre pour passer \xE0 la suivante. La touche jaune sert \xE0 visualiser les informations sur le fichier en cours (fiche allocin\xE9). La touche bleue sert \xE0 enregistrer un signet.</center>'; - elseif ($affichage=="telehd" AND $typeTel == 'telehd') - $CON = '<center><img src="images/easyboxhd.gif"></center>'; - else - $CON = '<center><img src="images/easybox.gif"></center>'; - - $smarty->assign('TITRE','Aide'); - $smarty->assign('CONTENT',$CON); - $smarty->display('interface.tpl'); -?> +<?php + $RACINE_REP = "../../"; + require($RACINE_REP.'_framework/framework.php'); + + if ($vers_fbx==5) $typeTel = 'telehd'; + else $typeTel = 'tele'; + + if (isset($_GET['affichage'])) $affichage = $_GET['affichage']; + else $affichage = 'telehd'; + + + $MENU_ALT=array(array('lien'=>'tutorial.php', 'nom'=>'Tutoriel', 'selected'=>false), + array('lien'=>'help.php?affichage='.$typeTel, 'nom'=>'T\xE9l\xE9commande', 'selected'=>$affichage=='telehd'), + array('lien'=>'help.php?affichage=video', 'nom'=>'Module vid\xE9o', 'selected'=>$affichage=='video'), + array('lien'=>'help.php?affichage=photo', 'nom'=>'Module photo', 'selected'=>$affichage=='photo'), + array('lien'=>'help.php?affichage=audio', 'nom'=>'Module audio', 'selected'=>$affichage=='audio') + ); + + $LINK['red']= $MODULE.'_menu/menu.php'; + + if ($affichage=="photo") + $CON = '<center>L\'usage du module photo est assez simple. Entrez dans le dossier o\xF9 se trouve vos photos gr\xE2ce \xE0 l\'explorateur. Les touches verte et bleue permettent de passer de page en page. La touche rouge permet de revenir en arri\xE8re. La touche jaune permet de revenir au dossier parent. Une fois que vous avez affich\xE9 une image seule, vous pouvez passer \xE0 la pr\xE9c\xE9dente ou \xE0 la suivante gr\xE2ce aux touches verte et bleue. En remplissant la case avec un nombre puis en appuyant sur OK, le diaporama se lance et montre les photos dans l\'ordre et enchain\xE9e, en continue. La touche stop arr\xEAte ce diaporama. La touche play lance le diaporama avec un intervalle de temps par d\xE9faut. Pendant l\'affichage d\'une image seule, la touche rouge permet de revenir \xE0 l\'explorateur dans le dossier en cours.</center>'; + elseif ($affichage=="audio") + $CON = '<center>Le module audio est divis\xE9 en sous-modules. Les modules biblioth\xE8que et explorateur vous permettent d\'ajouter des fichiers \xE0 la playlist. Le bouton rouge fait revenir \xE0 la playlist. Les touches habituelles servent \xE0 naviguer dans la biblioth\xE8que tout comme dans toutes les autres listes.</center>'; + elseif ($affichage=="video") + $CON = '<center>Le module vid\xE9o ses divise en trois panneau : quand on ne voit aucune informations (cach\xE9e), seul un OSD s\'affiche pour vous informer quand vous appuyez sur la t\xE9l\xE9commande ou autre. Vous pouvez alors, avec les touches haut et bas, avancer ou reculer d\'une minute dans le flux. En particulier, le menu des options se trouve en haut de cette page, qui permet de visualiser les options sur les sous-titres, les chapitres... Dans le module vid\xE9o, la touche rouge sert \xE0 changer la piste sous-titre pour passer \xE0 la suivante. La touche jaune sert \xE0 visualiser les informations sur le fichier en cours (fiche allocin\xE9). La touche bleue sert \xE0 enregistrer un signet.</center>'; + elseif ($affichage=="telehd" AND $typeTel == 'telehd') + $CON = '<center><img src="images/easyboxhd.gif"></center>'; + else + $CON = '<center><img src="images/easybox.gif"></center>'; + + $smarty->assign('TITRE','Aide'); + $smarty->assign('CONTENT',$CON); + $smarty->display('interface.tpl'); +?> Property changes on: trunk/_framework/aide/help.php ___________________________________________________________________ Name: svn:eol-style + native Property changes on: trunk/_framework/aide/tutorial.php ___________________________________________________________________ Name: svn:eol-style + native Modified: trunk/_framework/bouton/bouton_general.php =================================================================== --- trunk/_framework/bouton/bouton_general.php 2007-05-01 15:20:56 UTC (rev 138) +++ trunk/_framework/bouton/bouton_general.php 2007-05-01 15:26:59 UTC (rev 139) @@ -1,41 +1,41 @@ -<?php - - $pageact = substr($_SERVER["REQUEST_URI"],0,strpos($_SERVER["REQUEST_URI"].'?', "?")); - - //-- Active les favoris touches - $n='0'; $trouve ='0'; - while ($n <= '9'){ if ($ini['favoris']['touche'.$n]!=".") { $trouve = '1'; } $n++; } - //-- On active les touches si trouve = 1 - if ($trouve == '1' AND $TOUCHE_FAVORIS!="NON") { - $META['nochannel_page']=$FRAMEWORK_REP.'favoris_touches.php?favoris_touche=%d'; - } - - $LINK['help']=$FRAMEWORK_REP.'aide/help.php?page='.urlencode($_SERVER["SCRIPT_NAME"]); - - if($VLC['etat']=='playing' && !eregi('background.jpg',$VLC['url_current'])){ - $LINK['stop']=$MODULE.'films/lecture.php?control=stop'; - $LINK['play']=$MODULE.'films/lecture.php?control=pause'; - $LINK['pause']=$MODULE.'films/lecture.php?control=pause'; - $LINK['info']=$MODULE.'films/info.php'; - - if($VLC['type_current']=='video' OR $VLC['type_current']=='dvd' OR $VLC['type_current']=='stream' OR $VLC['type_current']==''){ - $LINK['info']=$MODULE.'films/info.php'; - }elseif($VLC['type_current']=='audio' || $VLC['type_current']=='cd'){ - $LINK['info']=$MODULE.'mp3/lecteuraudio.php'; - } - - }else{ - $LINK['stop']='none'; - $LINK['play']='none'; - $LINK['pause']='none'; - $LINK['info']='none'; - } - - $LINK['guide']=$MODULE.'_menu/menu.php'; - $META['home_page']=$MODULE.'_menu/menu.php'; - $META['love_page']=$MODULE.'favoris/index1.php'; - $META['mail_page']=$MODULE.'mail/index1.php'; - - $smarty->assign_by_ref('META',$META); - $smarty->assign_by_ref('LINK',$LINK); -?> +<?php + + $pageact = substr($_SERVER["REQUEST_URI"],0,strpos($_SERVER["REQUEST_URI"].'?', "?")); + + //-- Active les favoris touches + $n='0'; $trouve ='0'; + while ($n <= '9'){ if ($ini['favoris']['touche'.$n]!=".") { $trouve = '1'; } $n++; } + //-- On active les touches si trouve = 1 + if ($trouve == '1' AND $TOUCHE_FAVORIS!="NON") { + $META['nochannel_page']=$FRAMEWORK_REP.'favoris_touches.php?favoris_touche=%d'; + } + + $LINK['help']=$FRAMEWORK_REP.'aide/help.php?page='.urlencode($_SERVER["SCRIPT_NAME"]); + + if($VLC['etat']=='playing' && !eregi('background.jpg',$VLC['url_current'])){ + $LINK['stop']=$MODULE.'films/lecture.php?control=stop'; + $LINK['play']=$MODULE.'films/lecture.php?control=pause'; + $LINK['pause']=$MODULE.'films/lecture.php?control=pause'; + $LINK['info']=$MODULE.'films/info.php'; + + if($VLC['type_current']=='video' OR $VLC['type_current']=='dvd' OR $VLC['type_current']=='stream' OR $VLC['type_current']==''){ + $LINK['info']=$MODULE.'films/info.php'; + }elseif($VLC['type_current']=='audio' || $VLC['type_current']=='cd'){ + $LINK['info']=$MODULE.'mp3/lecteuraudio.php'; + } + + }else{ + $LINK['stop']='none'; + $LINK['play']='none'; + $LINK['pause']='none'; + $LINK['info']='none'; + } + + $LINK['guide']=$MODULE.'_menu/menu.php'; + $META['home_page']=$MODULE.'_menu/menu.php'; + $META['love_page']=$MODULE.'favoris/index1.php'; + $META['mail_page']=$MODULE.'mail/index1.php'; + + $smarty->assign_by_ref('META',$META); + $smarty->assign_by_ref('LINK',$LINK); +?> Property changes on: trunk/_framework/bouton/bouton_general.php ___________________________________________________________________ Name: svn:eol-style + native Modified: trunk/_framework/cartouche.php =================================================================== --- trunk/_framework/cartouche.php 2007-05-01 15:20:56 UTC (rev 138) +++ trunk/_framework/cartouche.php 2007-05-01 15:26:59 UTC (rev 139) @@ -1,86 +1,86 @@ -<?php - -$cacher = array('Guide','Interface','Lien info','Lien film'); - - foreach($xml_aide->channel->all->fonction as $fonc) { - switch($fonc->title) { - case 'Stop': - $titre = '<font family="Symbol">Z</font>'; - break; - case 'Play': - $titre = '<font family="Symbol">A</font>'; - break; - case 'Pause': - $titre = '<font family="Symbol">Y</font>'; - break; - case 'Fleches': - $titre = '<font family="Symbol">L</font>'; - break; - case 'Bouton bleu': - $titre = '<img src="'.$AIDE_REP.'images/btn_bleu.gif">'; - break; - case 'Bouton jaune': - $titre = '<img src="'.$AIDE_REP.'images/btn_jaune.gif">'; - break; - case 'Bouton vert': - $titre = '<img src="'.$AIDE_REP.'images/btn_vert.gif">'; - break; - case 'Bouton rouge': - $titre = '<img src="'.$AIDE_REP.'images/btn_rouge.gif">'; - break; - case 'avance': - $titre = '<font family="Symbol">AA</font>'; - break; - case 'recule': - $titre = '<font family="Symbol">@@</font>'; - break; - case 'Bouton 5': - $titre = '<font family="Symbol">[</font>'; - break; - case 'Bouton 6': - $titre = '<font family="Symbol">%</font>'; - break; - case 'Bouton trefle': - $titre = '<font family="Symbol">\xA7</font>'; - break; - case 'Fleches': - $titre = '<font family="Symbol">L</font>'; - break; - case 'Aide (?)': - $titre = '<img src="'.$AIDE_REP.'images/help.gif">'; - break; - case 'OK': - $titre = '<img src="'.$AIDE_REP.'images/ok.gif">'; - break; - case 'Coeur': - $titre = '<img src="'.$AIDE_REP.'images/coeur.gif">'; - break; - case 'Enveloppe': - $titre = '<img src="'.$AIDE_REP.'images/mail.gif">'; - break; - case 'Home': - $titre = '<img src="'.$AIDE_REP.'images/home.gif">'; - break; - default: - $titre = $fonc->title; - } - if(!in_array($titre,$cacher)){ - $show[]=array($titre,$fonc->description); - } - } - - -$number= rand(0,(count($show)-1)); - -$logo = utf8_decode($show[$number][0]); - -$text = utf8_decode($show[$number][1]); -if(strlen($text)>=50){ - $text=substr($text,0,50)."..."; -} - -$smarty->assign('logo',$logo); -$smarty->assign('text',$text); - -?> - +<?php + +$cacher = array('Guide','Interface','Lien info','Lien film'); + + foreach($xml_aide->channel->all->fonction as $fonc) { + switch($fonc->title) { + case 'Stop': + $titre = '<font family="Symbol">Z</font>'; + break; + case 'Play': + $titre = '<font family="Symbol">A</font>'; + break; + case 'Pause': + $titre = '<font family="Symbol">Y</font>'; + break; + case 'Fleches': + $titre = '<font family="Symbol">L</font>'; + break; + case 'Bouton bleu': + $titre = '<img src="'.$AIDE_REP.'images/btn_bleu.gif">'; + break; + case 'Bouton jaune': + $titre = '<img src="'.$AIDE_REP.'images/btn_jaune.gif">'; + break; + case 'Bouton vert': + $titre = '<img src="'.$AIDE_REP.'images/btn_vert.gif">'; + break; + case 'Bouton rouge': + $titre = '<img src="'.$AIDE_REP.'images/btn_rouge.gif">'; + break; + case 'avance': + $titre = '<font family="Symbol">AA</font>'; + break; + case 'recule': + $titre = '<font family="Symbol">@@</font>'; + break; + case 'Bouton 5': + $titre = '<font family="Symbol">[</font>'; + break; + case 'Bouton 6': + $titre = '<font family="Symbol">%</font>'; + break; + case 'Bouton trefle': + $titre = '<font family="Symbol">\xA7</font>'; + break; + case 'Fleches': + $titre = '<font family="Symbol">L</font>'; + break; + case 'Aide (?)': + $titre = '<img src="'.$AIDE_REP.'images/help.gif">'; + break; + case 'OK': + $titre = '<img src="'.$AIDE_REP.'images/ok.gif">'; + break; + case 'Coeur': + $titre = '<img src="'.$AIDE_REP.'images/coeur.gif">'; + break; + case 'Enveloppe': + $titre = '<img src="'.$AIDE_REP.'images/mail.gif">'; + break; + case 'Home': + $titre = '<img src="'.$AIDE_REP.'images/home.gif">'; + break; + default: + $titre = $fonc->title; + } + if(!in_array($titre,$cacher)){ + $show[]=array($titre,$fonc->description); + } + } + + +$number= rand(0,(count($show)-1)); + +$logo = utf8_decode($show[$number][0]); + +$text = utf8_decode($show[$number][1]); +if(strlen($text)>=50){ + $text=substr($text,0,50)."..."; +} + +$smarty->assign('logo',$logo); +$smarty->assign('text',$text); + +?> + Property changes on: trunk/_framework/cartouche.php ___________________________________________________________________ Name: svn:eol-style + native Modified: trunk/_framework/cr_xml.php =================================================================== --- trunk/_framework/cr_xml.php 2007-05-01 15:20:56 UTC (rev 138) +++ trunk/_framework/cr_xml.php 2007-05-01 15:26:59 UTC (rev 139) @@ -1,125 +1,125 @@ -<?php - //// Constructeur XML - $rec_xml = '<?xml version="1.0" encoding="iso-8859-1"?> -<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"> -<channel> -'; - $rec_xml.= ' <categorie name="Multim\xE9dia" repertoire="cinefil.gif"> -'; - $y = 0; - $u = 0; - while ($u <= $l_module[$y]) { - $rec_xml.=' <module> - <name>'.$l_module_name[$y][$u].'</name> - <repertoire>'.$l_module_repertoire[$y][$u].'</repertoire> - <lien>'.$l_module_lien[$y][$u].'</lien> - <actif1>'.$l_module_a1[$y][$u].'</actif1> - <actif2>'.$l_module_a2[$y][$u].'</actif2> - <actif3>'.$l_module_a3[$y][$u].'</actif3> - <actif4>'.$l_module_a4[$y][$u].'</actif4> - <actif5>'.$l_module_a5[$y][$u].'</actif5> - <version>'.$l_module_version[$y][$u].'</version> - </module> -'; - $u++; - } - $rec_xml.= ' </categorie> - <categorie name="Cin\xE9ma" repertoire="cinefil.gif"> -'; - $y++; - $u = 0; - while ($u <= $l_module[$y]) { - $rec_xml.=' <module> - <name>'.$l_module_name[$y][$u].'</name> - <repertoire>'.$l_module_repertoire[$y][$u].'</repertoire> - <lien>'.$l_module_lien[$y][$u].'</lien> - <actif1>'.$l_module_a1[$y][$u].'</actif1> - <actif2>'.$l_module_a2[$y][$u].'</actif2> - <actif3>'.$l_module_a3[$y][$u].'</actif3> - <actif4>'.$l_module_a4[$y][$u].'</actif4> - <actif5>'.$l_module_a5[$y][$u].'</actif5> - <version>'.$l_module_version[$y][$u].'</version> - </module> -'; - $u++; - } - $rec_xml.= ' </categorie> - <categorie name="Internet" repertoire="firefox.gif"> -'; - $y++; - $u = 0; - while ($u <= $l_module[$y]) { - $rec_xml.=' <module> - <name>'.$l_module_name[$y][$u].'</name> - <repertoire>'.$l_module_repertoire[$y][$u].'</repertoire> - <lien>'.$l_module_lien[$y][$u].'</lien> - <actif1>'.$l_module_a1[$y][$u].'</actif1> - <actif2>'.$l_module_a2[$y][$u].'</actif2> - <actif3>'.$l_module_a3[$y][$u].'</actif3> - <actif4>'.$l_module_a4[$y][$u].'</actif4> - <actif5>'.$l_module_a5[$y][$u].'</actif5> - <version>'.$l_module_version[$y][$u].'</version> - </module> -'; $u++; - } - $rec_xml.= ' </categorie> - <categorie name="Infos" repertoire="menunews.gif"> -'; - $y++; - $u = 0; - while ($u <= $l_module[$y]) { - $rec_xml.=' <module> - <name>'.$l_module_name[$y][$u].'</name> - <repertoire>'.$l_module_repertoire[$y][$u].'</repertoire> - <lien>'.$l_module_lien[$y][$u].'</lien> - <actif1>'.$l_module_a1[$y][$u].'</actif1> - <actif2>'.$l_module_a2[$y][$u].'</actif2> - <actif3>'.$l_module_a3[$y][$u].'</actif3> - <actif4>'.$l_module_a4[$y][$u].'</actif4> - <actif5>'.$l_module_a5[$y][$u].'</actif5> - <version>'.$l_module_version[$y][$u].'</version> - </module> -'; - $u++; - } - $rec_xml.= ' </categorie> - <categorie name="Pratique" repertoire="horloge.gif"> -'; - $y++; - $u = 0; - while ($u <= $l_module[$y]) { - $rec_xml.=' <module> - <name>'.$l_module_name[$y][$u].'</name> - <repertoire>'.$l_module_repertoire[$y][$u].'</repertoire> - <lien>'.$l_module_lien[$y][$u].'</lien> - <actif1>'.$l_module_a1[$y][$u].'</actif1> - <actif2>'.$l_module_a2[$y][$u].'</actif2> - <actif3>'.$l_module_a3[$y][$u].'</actif3> - <actif4>'.$l_module_a4[$y][$u].'</actif4> - <actif5>'.$l_module_a5[$y][$u].'</actif5> - <version>'.$l_module_version[$y][$u].'</version> - </module> -'; - $u++; - } - $rec_xml.= ' </categorie> - <categorie name="Suplement">'; - $y++; - $u = 0; - while ($u <= $l_module[$y]) { - $rec_xml.=' <module> - <name>'.$l_module_name[$y][$u].'</name> - <repertoire>.</repertoire> - <lien>.</lien> - <version>'.$l_module_version[$y][$u].'</version> - </module> -'; - $u++; - } - - $rec_xml.=' </categorie> -</channel> -</rss>'; - - +<?php + //// Constructeur XML + $rec_xml = '<?xml version="1.0" encoding="iso-8859-1"?> +<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"> +<channel> +'; + $rec_xml.= ' <categorie name="Multim\xE9dia" repertoire="cinefil.gif"> +'; + $y = 0; + $u = 0; + while ($u <= $l_module[$y]) { + $rec_xml.=' <module> + <name>'.$l_module_name[$y][$u].'</name> + <repertoire>'.$l_module_repertoire[$y][$u].'</repertoire> + <lien>'.$l_module_lien[$y][$u].'</lien> + <actif1>'.$l_module_a1[$y][$u].'</actif1> + <actif2>'.$l_module_a2[$y][$u].'</actif2> + <actif3>'.$l_module_a3[$y][$u].'</actif3> + <actif4>'.$l_module_a4[$y][$u].'</actif4> + <actif5>'.$l_module_a5[$y][$u].'</actif5> + <version>'.$l_module_version[$y][$u].'</version> + </module> +'; + $u++; + } + $rec_xml.= ' </categorie> + <categorie name="Cin\xE9ma" repertoire="cinefil.gif"> +'; + $y++; + $u = 0; + while ($u <= $l_module[$y]) { + $rec_xml.=' <module> + <name>'.$l_module_name[$y][$u].'</name> + <repertoire>'.$l_module_repertoire[$y][$u].'</repertoire> + <lien>'.$l_module_lien[$y][$u].'</lien> + <actif1>'.$l_module_a1[$y][$u].'</actif1> + <actif2>'.$l_module_a2[$y][$u].'</actif2> + <actif3>'.$l_module_a3[$y][$u].'</actif3> + <actif4>'.$l_module_a4[$y][$u].'</actif4> + <actif5>'.$l_module_a5[$y][$u].'</actif5> + <version>'.$l_module_version[$y][$u].'</version> + </module> +'; + $u++; + } + $rec_xml.= ' </categorie> + <categorie name="Internet" repertoire="firefox.gif"> +'; + $y++; + $u = 0; + while ($u <= $l_module[$y]) { + $rec_xml.=' <module> + <name>'.$l_module_name[$y][$u].'</name> + <repertoire>'.$l_module_repertoire[$y][$u].'</repertoire> + <lien>'.$l_module_lien[$y][$u].'</lien> + <actif1>'.$l_module_a1[$y][$u].'</actif1> + <actif2>'.$l_module_a2[$y][$u].'</actif2> + <actif3>'.$l_module_a3[$y][$u].'</actif3> + <actif4>'.$l_module_a4[$y][$u].'</actif4> + <actif5>'.$l_module_a5[$y][$u].'</actif5> + <version>'.$l_module_version[$y][$u].'</version> + </module> +'; $u++; + } + $rec_xml.= ' </categorie> + <categorie name="Infos" repertoire="menunews.gif"> +'; + $y++; + $u = 0; + while ($u <= $l_module[$y]) { + $rec_xml.=' <module> + <name>'.$l_module_name[$y][$u].'</name> + <repertoire>'.$l_module_repertoire[$y][$u].'</repertoire> + <lien>'.$l_module_lien[$y][$u].'</lien> + <actif1>'.$l_module_a1[$y][$u].'</actif1> + <actif2>'.$l_module_a2[$y][$u].'</actif2> + <actif3>'.$l_module_a3[$y][$u].'</actif3> + <actif4>'.$l_module_a4[$y][$u].'</actif4> + <actif5>'.$l_module_a5[$y][$u].'</actif5> + <version>'.$l_module_version[$y][$u].'</version> + </module> +'; + $u++; + } + $rec_xml.= ' </categorie> + <categorie name="Pratique" repertoire="horloge.gif"> +'; + $y++; + $u = 0; + while ($u <= $l_module[$y]) { + $rec_xml.=' <module> + <name>'.$l_module_name[$y][$u].'</name> + <repertoire>'.$l_module_repertoire[$y][$u].'</repertoire> + <lien>'.$l_module_lien[$y][$u].'</lien> + <actif1>'.$l_module_a1[$y][$u].'</actif1> + <actif2>'.$l_module_a2[$y][$u].'</actif2> + <actif3>'.$l_module_a3[$y][$u].'</actif3> + <actif4>'.$l_module_a4[$y][$u].'</actif4> + <actif5>'.$l_module_a5[$y][$u].'</actif5> + <version>'.$l_module_version[$y][$u].'</version> + </module> +'; + $u++; + } + $rec_xml.= ' </categorie> + <categorie name="Suplement">'; + $y++; + $u = 0; + while ($u <= $l_module[$y]) { + $rec_xml.=' <module> + <name>'.$l_module_name[$y][$u].'</name> + <repertoire>.</repertoire> + <lien>.</lien> + <version>'.$l_module_version[$y][$u].'</version> + </module> +'; + $u++; + } + + $rec_xml.=' </categorie> +</channel> +</rss>'; + + ?> \ No newline at end of file Property changes on: trunk/_framework/cr_xml.php ___________________________________________________________________ Name: svn:eol-style + native Property changes on: trunk/_framework/demarrage.php ___________________________________________________________________ Name: svn:eol-style + native Modified: trunk/_framework/dwl.php =================================================================== --- trunk/_framework/dwl.php 2007-05-01 15:20:56 UTC (rev 138) +++ trunk/_framework/dwl.php 2007-05-01 15:26:59 UTC (rev 139) @@ -1,57 +1,57 @@ -<?php -$RACINE_REP = "../"; - -?><html> -<head> -<title>T\xE9l\xE9chargement en cours</title> -<meta name="refresh" content="2;url=/module/maj/index1.php"> -</head> -<body> -<?php -require_once($RACINE_REP.'_framework/framework.php'); - -$liens = urldecode($_GET['fichier']); -$nom = urldecode($_GET['nom']); -$version = urldecode($_GET['version']); -$description = urldecode($_GET['description']); -$categorie = urldecode($_GET['categorie']); -$dwl = $_GET['dwl']; - -if($liens){ - if ($dwl== "Skin") { - $plus = 'skin/'.strtolower(supprime_accents($nom)); - if(module_exists($nom)){ - sup_module(get_id_of_module($nom)); - } - add_module($nom, $nom.'/', '', '', '', '', '', '', $version, $description, 'Skin', 'Alone', ''); - $txt_dwl = "T\xE9l\xE9chargement de la skin termin\xE9e."; - $nom = ''; - }elseif($dwl == "Module"){ - $plus = 'module/'.strtolower(str_replace(' ','',supprime_accents($nom))); - if(module_exists($nom)){ - sup_module(get_id_of_module($nom)); - } - add_module($nom, strtolower(str_replace(' ','',supprime_accents($nom))).'/', 'index1.php', '1', '1', '1', '1', '1', $version, $description, 'Module', 'Alone', get_id_of_categorie($categorie)); - $txt_dwl = "T\xE9l\xE9chargement du module."; - }else{ - $plus = ''; - $txt_dwl = "T\xE9l\xE9chargement du patch termin\xE9."; - change_version('Easybox', $version); - $nom = ''; - } - -///////// T\xE9l\xE9chargement directe pour les skins - download_file($liens, $RACINE_REP.$plus, $nom); - - echo "<center>"; - echo $txt_dwl; - echo "</center>"; - -} - -?> -<center><a href="/configuration/configuration.php">Retour \xE0 la configuration</a></center> - -</body> -</html> - +<?php +$RACINE_REP = "../"; + +?><html> +<head> +<title>T\xE9l\xE9chargement en cours</title> +<meta name="refresh" content="2;url=/module/maj/index1.php"> +</head> +<body> +<?php +require_once($RACINE_REP.'_framework/framework.php'); + +$liens = urldecode($_GET['fichier']); +$nom = urldecode($_GET['nom']); +$version = urldecode($_GET['version']); +$description = urldecode($_GET['description']); +$categorie = urldecode($_GET['categorie']); +$dwl = $_GET['dwl']; + +if($liens){ + if ($dwl== "Skin") { + $plus = 'skin/'.strtolower(supprime_accents($nom)); + if(module_exists($nom)){ + sup_module(get_id_of_module($nom)); + } + add_module($nom, $nom.'/', '', '', '', '', '', '', $version, $description, 'Skin', 'Alone', ''); + $txt_dwl = "T\xE9l\xE9chargement de la skin termin\xE9e."; + $nom = ''; + }elseif($dwl == "Module"){ + $plus = 'module/'.strtolower(str_replace(' ','',supprime_accents($nom))); + if(module_exists($nom)){ + sup_module(get_id_of_module($nom)); + } + add_module($nom, strtolower(str_replace(' ','',supprime_accents($nom))).'/', 'index1.php', '1', '1', '1', '1', '1', $version, $description, 'Module', 'Alone', get_id_of_categorie($categorie)); + $txt_dwl = "T\xE9l\xE9chargement du module."; + }else{ + $plus = ''; + $txt_dwl = "T\xE9l\xE9chargement du patch termin\xE9."; + change_version('Easybox', $version); + $nom = ''; + } + +///////// T\xE9l\xE9chargement directe pour les skins + download_file($liens, $RACINE_REP.$plus, $nom); + + echo "<center>"; + echo $txt_dwl; + echo "</center>"; + +} + +?> +<center><a href="/configuration/configuration.php">Retour \xE0 la configuration</a></center> + +</body> +</html> + Property changes on: trunk/_framework/dwl.php ___________________________________________________________________ Name: svn:eol-style + native Modified: trunk/_framework/favoris_touches.php =================================================================== --- trunk/_framework/favoris_touches.php 2007-05-01 15:20:56 UTC (rev 138) +++ trunk/_framework/favoris_touches.php 2007-05-01 15:26:59 UTC (rev 139) @@ -1,32 +1,32 @@ -<?php -$RACINE_REP = "../"; -require($RACINE_REP.'_framework/framework.php'); - -$touche = 'touche'.$_GET['favoris_touche']; -if ($touche == "touche0" AND $ini['screensaver']['scr_actif']=='oui') { - /*$redir = $MODULE."screensaver/index1.php"; - $texte1= "SCREENSAVER<br />";*/ -}else{ - if (($ini['favoris'][$touche] != "." AND $ini['favoris'][$touche]!="") AND $_GET['favoris_touche']) { - if (@is_dir($ini['favoris'][$touche]) == TRUE) { - $redir = $RACINE_REP."module/films/index1.php?directory=".$ini['favoris'][$touche]; - $texte1 = 'Redirection vers le dossier demand\xE9.'; - }else{ - $redir = $RACINE_REP."module/".$ini['favoris'][$touche]; - $texte1 = 'Redirection vers le module demand\xE9'; - } - }else{ - $redir = 'back'; - $texte1 = "Cette touche n'est pas programm\xE9e. Retour \xE0 la page pr\xE9c\xE9dente."; - } -} - -$LINK['red']= '../module/_menu/menu.php'; -$META['refresh']= '0;url='.$redir; - - -$smarty->assign('TITRE','Redirection en cours...'); -$smarty->assign('AVERTISSEMENT',$texte1); -$smarty->display('avertissement.tpl'); - -?> +<?php +$RACINE_REP = "../"; +require($RACINE_REP.'_framework/framework.php'); + +$touche = 'touche'.$_GET['favoris_touche']; +if ($touche == "touche0" AND $ini['screensaver']['scr_actif']=='oui') { + /*$redir = $MODULE."screensaver/index1.php"; + $texte1= "SCREENSAVER<br />";*/ +}else{ + if (($ini['favoris'][$touche] != "." AND $ini['favoris'][$touche]!="") AND $_GET['favoris_touche']) { + if (@is_dir($ini['favoris'][$touche]) == TRUE) { + $redir = $RACINE_REP."module/films/index1.php?directory=".$ini['favoris'][$touche]; + $texte1 = 'Redirection vers le dossier demand\xE9.'; + }else{ + $redir = $RACINE_REP."module/".$ini['favoris'][$touche]; + $texte1 = 'Redirection vers le module demand\xE9'; + } + }else{ + $redir = 'back'; + $texte1 = "Cette touche n'est pas programm\xE9e. Retour \xE0 la page pr\xE9c\xE9dente."; + } +} + +$LINK['red']= '../module/_menu/menu.php'; +$META['refresh']= '0;url='.$redir; + + +$smarty->assign('TITRE','Redirection en cours...'); +$smarty->assign('AVERTISSEMENT',$texte1); +$smarty->display('avertissement.tpl'); + +?> Property changes on: trunk/_framework/favoris_touches.php ___________________________________________________________________ Name: svn:eol-style + native Property changes on: trunk/_framework/fonctions_partagees.inc.php ___________________________________________________________________ Name: svn:eol-style + native Property changes on: trunk/_framework/framework.php ___________________________________________________________________ Name: svn:eol-style + native Modified: trunk/_framework/img2fbx.php =================================================================== --- trunk/_framework/img2fbx.php 2007-05-01 15:20:56 UTC (rev 138) +++ trunk/_framework/img2fbx.php 2007-05-01 15:26:59 UTC (rev 139) @@ -1,79 +1,79 @@ -<?php -$RACINE_REP = realpath("../"); -$CACHE_IMAGE = $RACINE_REP."/_utilisateur/cache/"; - -$sURL=urldecode($_REQUEST['sURL']); - -list($width, $height, $type) = getimagesize($sURL); - -if (isset($_REQUEST['nbcouleurs'])) { - $nbcouleurs = $_REQUEST['nbcouleurs']; -} else { - $nbcouleurs = 128; -} - -function is_cached($url){ -global $CACHE_IMAGE; - if(file_exists($CACHE_IMAGE.md5($url).'.gif')){ - RETURN True; - }else{ - RETURN False; - } -} - -//R\xE9cup\xE8re l'image dans le cache si il faut -if(is_cached($sURL.$_REQUEST['new_width'].$_REQUEST['new_height']) && $_REQUEST['cache']==1){ - $oIm = imagecreatefromgif($CACHE_IMAGE.md5($sURL.$_REQUEST['new_width'].$_REQUEST['new_height']).'.gif'); - if(!headers_sent()){ - header('Content-Type: image/gif'); - imagegif($oIm); - imagedestroy($oIm); - die(); - } -}else{ - -switch($type){ - case 1 : //GIF - $oIm = imagecreatefromgif($sURL); - break; - case 2 : //JPG - $oIm = imagecreatefromjpeg($sURL); - break; - case 3 : // PNG - $oIm = imagecreatefrompng($sURL); - break; -} - - if(isset($_REQUEST['new_width']) && isset($_REQUEST['new_height'])){ - - $colors_handle = ImageCreatetruecolor($_REQUEST['new_width'],$_REQUEST['new_height']); - imagecopyresampled( $colors_handle, $oIm, 0, 0, 0, 0, $_REQUEST['new_width'], $_REQUEST['new_height'],$width, $height ); - ImageTrueColorToPalette( $colors_handle, false, $nbcouleurs ); - - if($_REQUEST['cache']==1){ - imagegif($colors_handle,$CACHE_IMAGE.md5($sURL.$_REQUEST['new_width'].$_REQUEST['new_height']).'.gif'); - } - - if(!headers_sent()){ - header('Content-Type: image/gif'); - imagegif($colors_handle); - imagedestroy($oIm); - ImageDestroy( $colors_handle ); - die(); - } - }else{ - imagetruecolortopalette($oIm, false, $nbcouleurs); - - if($_REQUEST['cache']==1){ - imagegif($oIm,$CACHE_IMAGE.md5($sURL).'.gif'); - } - - if(!headers_sent()) { - header('Content-Type: image/gif'); - imagegif($oIm); - imagedestroy($oIm); - die(); - } - } -} -?> +<?php +$RACINE_REP = realpath("../"); +$CACHE_IMAGE = $RACINE_REP."/_utilisateur/cache/"; + +$sURL=urldecode($_REQUEST['sURL']); + +list($width, $height, $type) = getimagesize($sURL); + +if (isset($_REQUEST['nbcouleurs'])) { + $nbcouleurs = $_REQUEST['nbcouleurs']; +} else { + $nbcouleurs = 128; +} + +function is_cached($url){ +global $CACHE_IMAGE; + if(file_exists($CACHE_IMAGE.md5($url).'.gif')){ + RETURN True; + }else{ + RETURN False; + } +} + +//R\xE9cup\xE8re l'image dans le cache si il faut +if(is_cached($sURL.$_REQUEST['new_width'].$_REQUEST['new_height']) && $_REQUEST['cache']==1){ + $oIm = imagecreatefromgif($CACHE_IMAGE.md5($sURL.$_REQUEST['new_width'].$_REQUEST['new_height']).'.gif'); + if(!headers_sent()){ + header('Content-Type: image/gif'); + imagegif($oIm); + imagedestroy($oIm); + die(); + } +}else{ + +switch($type){ + case 1 : //GIF + $oIm = imagecreatefromgif($sURL); + break; + case 2 : //JPG + $oIm = imagecreatefromjpeg($sURL); + break; + case 3 : // PNG + $oIm = imagecreatefrompng($sURL); + break; +} + + if(isset($_REQUEST['new_width']) && isset($_REQUEST['new_height'])){ + + $colors_handle = ImageCreatetruecolor($_REQUEST['new_width'],$_REQUEST['new_height']); + imagecopyresampled( $colors_handle, $oIm, 0, 0, 0, 0, $_REQUEST['new_width'], $_REQUEST['new_height'],$width, $height ); + ImageTrueColorToPalette( $colors_handle, false, $nbcouleurs ); + + if($_REQUEST['cache']==1){ + imagegif($colors_handle,$CACHE_IMAGE.md5($sURL.$_REQUEST['new_width'].$_REQUEST['new_height']).'.gif'); + } + + if(!headers_sent()){ + header('Content-Type: image/gif'); + imagegif($colors_handle); + imagedestroy($oIm); + ImageDestroy( $colors_handle ); + die(); + } + }else{ + imagetruecolortopalette($oIm, false, $nbcouleurs); + + if($_REQUEST['cache']==1){ + imagegif($oIm,$CACHE_IMAGE.md5($sURL).'.gif'); + } + + if(!headers_sent()) { + header('Content-Type: image/gif'); + imagegif($oIm); + imagedestroy($oIm); + die(); + } + } +} +?> Property changes on: trunk/_framework/img2fbx.php ___________________________________________________________________ Name: svn:eol-style + native Modified: trunk/_framework/init_version.php =================================================================== --- trunk/_framework/init_version.php 2007-05-01 15:20:56 UTC (rev 138) +++ trunk/_framework/init_version.php 2007-05-01 15:26:59 UTC (rev 139) @@ -1,24 +1,24 @@ -<?php - -//////// R\xE9cuperation des donnees donn\xE9es local -$mod_name = 'Easybox'; -$mod_version = get_version('Easybox'); - -$data = " -<html> -<head> -</head> -<body> -<h1>".$mod_name."</h1> -<h2>".$mod_version."</h2> -</body> -</html>"; - -$file = $_SERVER['DOCUMENT_ROOT'].'/version.html'; - -if ($file_handle = fopen($file,"w")) { - fwrite($file_handle, $data); - fclose($file_handle); -} - -?> +<?php + +//////// R\xE9cuperation des donnees donn\xE9es local +$mod_name = 'Easybox'; +$mod_version = get_version('Easybox'); + +$data = " +<html> +<head> +</head> +<body> +<h1>".$mod_name."</h1> +<h2>".$mod_version."</h2> +</body> +</html>"; + +$file = $_SERVER['DOCUMENT_ROOT'].'/version.html'; + +if ($file_handle = fopen($file,"w")) { + fwrite($file_handle, $data); + fclose($file_handle); +} + +?> Property changes on: trunk/_framework/init_version.php ___________________________________________________________________ Name: svn:eol-style + native Property changes on: trunk/_framework/lib/Config_File.class.php ___________________________________________________________________ Name: svn:eol-style + native Property changes on: trunk/_framework/lib/Smarty.class.php ___________________________________________________________________ Name: svn:eol-style + native Property changes on: trunk/_framework/lib/Smarty_Compiler.class.php ___________________________________________________________________ Name: svn:eol-style + native Modified: trunk/_framework/lib/date.php =================================================================== --- trunk/_framework/lib/date.php 2007-05-01 15:20:56 UTC (rev 138) +++ trunk/_framework/lib/date.php 2007-05-01 15:26:59 UTC (rev 139) @@ -1,119 +1,119 @@ -<? -/* - * string dateFr(string format, int timestamp) - * string dateFr(string format) - * - * Retourne une date sous forme d'une cha\xEEne, au format donn\xE9 par la cha\xEEne format. - * La date est fournie sous la forme d'un timestamp. Par d\xE9faut, la date courante est utilis\xE9e. - * Les caract\xE8res suivants sont utilis\xE9s pour sp\xE9cifier le format : - * - * \xB7 D - Jour de la semaine, en trois lettres : par exemple "Ven" (pour Vendredi) - * \xB7 l - Jour de la semaine, textuel, version longue; ex: Vendredi - * - * \xB7 j - Jour du mois sans les z\xE9ros initiaux: "1" \xE0 "31" - * \xB7 d - Jour du mois, sur deux chiffres (\xE9ventuellement avec un z\xE9ros) : "01" \xE0 "31" - * - * \xB7 n - Mois sans les z\xE9ros initiaux; i.e. "1" \xE0 "12" - * \xB7 m - Mois; i.e. "01" \xE0 "12" - * \xB7 M - Mois, en trois lettres : par exemple "Jan" (pour Janvier) - * \xB7 F - Mois, textuel, version longue; ex: Janvier - * - * \xB7 y - Ann\xE9e, 2 chiffres; i.e. "99" - * \xB7 Y - Ann\xE9e, 4 chiffres; i.e. "1999" - * - * \xB7 g - Heure, au format 12h sans les z\xE9ros initiaux, "1" \xE0 "12" - * \xB7 e - Heure, au format 12h, "01" \xE0 "12" - * \xB7 G - Heure, au format 24h sans les z\xE9ros initiaux, "0" \xE0 "23" - * \xB7 E - heure, au format 24h, "00" \xE0 "23" - * - * \xB7 i - Minutes; "00" \xE0 "59" - * - * \xB7 s - Secondes; i.e. "00" \xE0 "59" - * - */ - -function dateFr($format, $date= '') { - $dateRetour = ""; - if ($date=='') - $date = mktime(date('H'), date('i'), date('s'), date('m'), date('d'), date('Y'), -1); - $TJour = array("Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"); - $TMois = array("Janvier","Fevrier","Mars","Avril","Mai","Juin","Juillet","Aout","Septembre","Octobre","Novembre","D\xE9cembre"); - - for($i=0; $i<strlen($format); $i++) { - $char = substr($format, $i, 1); - switch($char) { - case 'd' : $dateRetour .= date('d', $date); break; - case 'D' : $dateRetour .= substr($TJour[date('w', $date)],0,3); break; - case 'F' : $dateRetour .= $TMois[date('n', $date)-1]; break; - case 'e' : $dateRetour .= date('h', $date); break; - case 'E' : $dateRetour .= date('H', $date); break; - case 'g' : $dateRetour .= date('g', $date); break; - case 'G' : $dateRetour .= date('G', $date); break; - case 'i' : $dateRetour .= date('i', $date); break; - case 'j' : $dateRetour .= date('j', $date); break; - case 'l' : $dateRetour .= $TJour[date('w', $date)]; break; - case 'm' : $dateRetour .= date('m', $date); break; - case 'n' : $dateRetour .= date('n', $date); break; - case 'M' : $dateRetour .= substr($TMois[date('n', $date)-1],0,3); break; - case 's' : $dateRetour .= date('s', $date); break; - case 'Y' : $dateRetour .= date('Y', $date); break; - case 'y' : $dateRetour .= date('y', $date); break; - default : $dateRetour .= $char; - } - } - return($dateRetour); -} - -/* - * int mkdate(String date) - * - * Retourne une date sous forme d'un entier timestamp \xE0 partir d'une chaine de la forme "AAAAMMJJ". - */ - -function mkDate($chaineDate) { - return(mktime(0, 0, 0, substr($chaineDate,4,2), substr($chaineDate,6,2), substr($chaineDate,0,4), -1)); -} - -/* - * int mkDateHeure(String date) - * - * Retourne une date sous forme d'un entier timestamp \xE0 partir d'une chaine de la forme "AAAAMMJJHHMMSS". - */ - -function mkDateHeure($chaineDate) { - return(mktime(substr($chaineDate,8,2), substr($chaineDate,10,2), substr($chaineDate,12,2), substr($chaineDate,4,2), substr($chaineDate,6,2), substr($chaineDate,0,4), -1)); -} - -/* - * int nbJour(String mois) - * int nbJour(String mois, String ann\xE9e) - * - * Retourne le nombre de jour du mois pass\xE9 en param\xE8tre - * mois compris entre 1 et 12 - * - */ - -function nbJour($Mois, $Annee) { - return(date("t", mktime(0,0,0,$Mois,1,$Annee))); -} - -/* - * String mois(String date) - * - * Retourne le numero de mois "MM" d'une date de la forme "AAAAMMJJ" - */ - -function mois($date) { - return(substr($date,4,2)); -} - -/* - * String jour(String date) - * - * Retourne le numero du jour "JJ" d'une date de la forme "AAAAMMJJ" - */ - -function jour($date) { - return(substr($date,6,2)); -} +<? +/* + * string dateFr(string format, int timestamp) + * string dateFr(string format) + * + * Retourne une date sous forme d'une cha\xEEne, au format donn\xE9 par la cha\xEEne format. + * La date est fournie sous la forme d'un timestamp. Par d\xE9faut, la date courante est utilis\xE9e. + * Les caract\xE8res suivants sont utilis\xE9s pour sp\xE9cifier le format : + * + * \xB7 D - Jour de la semaine, en trois lettres : par exemple "Ven" (pour Vendredi) + * \xB7 l - Jour de la semaine, textuel, version longue; ex: Vendredi + * + * \xB7 j - Jour du mois sans les z\xE9ros initiaux: "1" \xE0 "31" + * \xB7 d - Jour du mois, sur deux chiffres (\xE9ventuellement avec un z\xE9ros) : "01" \xE0 "31" + * + * \xB7 n - Mois sans les z\xE9ros initiaux; i.e. "1" \xE0 "12" + * \xB7 m - Mois; i.e. "01" \xE0 "12" + * \xB7 M - Mois, en trois lettres : par exemple "Jan" (pour Janvier) + * \xB7 F - Mois, textuel, version longue; ex: Janvier + * + * \xB7 y - Ann\xE9e, 2 chiffres; i.e. "99" + * \xB7 Y - Ann\xE9e, 4 chiffres; i.e. "1999" + * + * \xB7 g - Heure, au format 12h sans les z\xE9ros initiaux, "1" \xE0 "12" + * \xB7 e - Heure, au format 12h, "01" \xE0 "12" + * \xB7 G - Heure, au format 24h sans les z\xE9ros initiaux, "0" \xE0 "23" + * \xB7 E - heure, au format 24h, "00" \xE0 "23" + * + * \xB7 i - Minutes; "00" \xE0 "59" + * + * \xB7 s - Secondes; i.e. "00" \xE0 "59" + * + */ + +function dateFr($format, $date= '') { + $dateRetour = ""; + if ($date=='') + $date = mktime(date('H'), date('i'), date('s'), date('m'), date('d'), date('Y'), -1); + $TJour = array("Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"); + $TMois = array("Janvier","Fevrier","Mars","Avril","Mai","Juin","Juillet","Aout","Septembre","Octobre","Novembre","D\xE9cembre"); + + for($i=0; $i<strlen($format); $i++) { + $char = substr($format, $i, 1); + switch($char) { + case 'd' : $dateRetour .= date('d', $date); break; + case 'D' : $dateRetour .= substr($TJour[date('w', $date)],0,3); break; + case 'F' : $dateRetour .= $TMois[date('n', $date)-1]; break; + case 'e' : $dateRetour .= date('h', $date); break; + case 'E' : $dateRetour .= date('H', $date); break; + case 'g' : $dateRetour .= date('g', $date); break; + case 'G' : $dateRetour .= date('G', $date); break; + case 'i' : $dateRetour .= date('i', $date); break; + case 'j' : $dateRetour .= date('j', $date); break; + case 'l' : $dateRetour .= $TJour[date('w', $date)]; break; + case 'm' : $dateRetour .= date('m', $date); break; + case 'n' : $dateRetour .= date('n', $date); break; + case 'M' : $dateRetour .= substr($TMois[date('n', $date)-1],0,3); break; + case 's' : $dateRetour .= date('s', $date); break; + case 'Y' : $dateRetour .= date('Y', $date); break; + case 'y' : $dateRetour .= date('y', $date); break; + default : $dateRetour .= $char; + } + } + return($dateRetour); +} + +/* + * int mkdate(String date) + * + * Retourne une date sous forme d'un entier timestamp \xE0 partir d'un... [truncated message content] |