From: <ara...@us...> - 2006-12-15 21:57:53
|
Revision: 59 http://svn.sourceforge.net/easybox-mod/?rev=59&view=rev Author: aragornis Date: 2006-12-15 13:57:50 -0800 (Fri, 15 Dec 2006) Log Message: ----------- Si le site ne r?\195?\169pond pas, pas de maj auto Alignements des boutons dans la s?\195?\169quence de boot Modified Paths: -------------- trunk/_framework/demarrage.php trunk/skin/simple/demarrage.tpl Modified: trunk/_framework/demarrage.php =================================================================== --- trunk/_framework/demarrage.php 2006-12-15 21:13:44 UTC (rev 58) +++ trunk/_framework/demarrage.php 2006-12-15 21:57:50 UTC (rev 59) @@ -80,7 +80,59 @@ // Phase de mise \xE0 jour case 3: - get_all_maj(); + + function url_validate( $link ) + { + $url_parts = @parse_url( $link ); + + if ( empty( $url_parts["host"] ) ) return( false ); + + if ( !empty( $url_parts["path"] ) ) + { + $documentpath = $url_parts["path"]; + } + else + { + $documentpath = "/"; + } + + if ( !empty( $url_parts["query"] ) ) + { + $documentpath .= "?" . $url_parts["query"]; + } + + $host = $url_parts["host"]; + $port = $url_parts["port"]; + // Now (HTTP-)GET $documentpath at $host"; + + if (empty( $port ) ) $port = "80"; + $socket = @fsockopen( $host, $port, $errno, $errstr, 30 ); + if (!$socket) + { + return(false); + } + else + { + fwrite ($socket, "HEAD ".$documentpath." HTTP/1.0\r\nHost: $host\r\n\r\n"); + $http_response = fgets( $socket, 22 ); + + if ( ereg("200 OK", $http_response, $regs ) ) + { + return(true); + fclose( $socket ); + } else + { +// echo "HTTP-Response: $http_response<br>"; + return(false); + } + } + } + if(url_validate($ini['download']['xml'])){ + get_all_maj(); + } else{ + echo 'noooooooooooooo'; + } + require('init_version.php'); $META['refresh']= '1;url=demarrage.php?etape=4'; break; Modified: trunk/skin/simple/demarrage.tpl =================================================================== --- trunk/skin/simple/demarrage.tpl 2006-12-15 21:13:44 UTC (rev 58) +++ trunk/skin/simple/demarrage.tpl 2006-12-15 21:57:50 UTC (rev 59) @@ -10,9 +10,12 @@ <img src="{$INTERFACE_REP}boot.gif" width="527" height="209" border="0"> </td></tr> <tr><td> -<img src="{$INTERFACE_REP}{if $etape>1}done{else}while{/if}.gif" width="50" height="50" border="0"> Initilisation<br> -<img src="{$INTERFACE_REP}{if $etape>2}done{elseif $etape<2}wait{else}while{/if}.gif" width="50" height="50" border="0"> Mise \xE0 jour<br> -<img src="{$INTERFACE_REP}{if $etape>3}done{elseif $etape<3}wait{else}while{/if}{if $ask_mdp}key{/if}.gif" width="50" height="50" border="0"> Identification</td> + <table border="0" cellpadding="0" cellspacing="0"> + <tr><td width="125" align="right" valign="middle"><img src="{$INTERFACE_REP}{if $etape>1}done{else}while{/if}.gif" width="50" height="50" border="0"></td><td valign="middle"> Initilisation</td></tr> + <tr><td width="125" align="right" valign="middle"><img src="{$INTERFACE_REP}{if $etape>2}done{elseif $etape<2}wait{else}while{/if}.gif" width="50" height="50" border="0"></td><td valign="middle"> Mise \xE0 jour</td></tr> + <tr><td width="125" align="right" valign="middle"><img src="{$INTERFACE_REP}{if $etape>3}done{elseif $etape<3}wait{else}while{/if}{if $ask_mdp}key{/if}.gif" width="50" height="50" border="0"></td><td valign="middle"> Identification</td></tr> + </table> +</td> <td> {if $ask_mdp} <form action="demarrage.php" method="get"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2006-12-17 18:14:50
|
Revision: 61 http://svn.sourceforge.net/easybox-mod/?rev=61&view=rev Author: aragornis Date: 2006-12-17 10:14:46 -0800 (Sun, 17 Dec 2006) Log Message: ----------- Patch titou Modified Paths: -------------- trunk/_utilisateur/podcast.db trunk/module/dvd/index1.php Modified: trunk/_utilisateur/podcast.db =================================================================== (Binary files differ) Modified: trunk/module/dvd/index1.php =================================================================== --- trunk/module/dvd/index1.php 2006-12-16 22:37:12 UTC (rev 60) +++ trunk/module/dvd/index1.php 2006-12-17 18:14:46 UTC (rev 61) @@ -25,7 +25,7 @@ $DISQUES = unserialize(get_variable('disques')); $disques_dispo = array(); foreach($DISQUES as $d){ - if($d['type'] == 'Disque optique'){ + if($d['type'] == 'Disque optique' OR $d['type'] == 'Disque r\xE9seau'){ $disques_dispo[] = $d; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2006-12-21 15:41:35
|
Revision: 62 http://svn.sourceforge.net/easybox-mod/?rev=62&view=rev Author: aragornis Date: 2006-12-21 07:41:32 -0800 (Thu, 21 Dec 2006) Log Message: ----------- Petits ajustements sur la gestion de la playlist audio Modified Paths: -------------- trunk/_framework/demarrage.php trunk/_framework/framework.php trunk/module/mp3/lecteuraudio.php trunk/module/mp3/playdb.php Added Paths: ----------- trunk/_utilisateur/audiotemp/ Modified: trunk/_framework/demarrage.php =================================================================== --- trunk/_framework/demarrage.php 2006-12-17 18:14:46 UTC (rev 61) +++ trunk/_framework/demarrage.php 2006-12-21 15:41:32 UTC (rev 62) @@ -6,16 +6,17 @@ $FRAMEWORK_REP = $RACINE_REP."_framework/"; $LIBRARIES_REP = $FRAMEWORK_REP."lib/"; - $BOUTON = $FRAMEWORK_REP."bouton/"; - $GESTION = $RACINE_REP."configuration/"; - $USER = $RACINE_REP."_utilisateur/"; - $CACHE_IMAGE = $RACINE_REP."_utilisateur/cache/"; - $MODULE = $RACINE_REP."module/"; - $LECTEUR = $RACINE_REP."lecteur/"; - $IMG2FBX = $FRAMEWORK_REP."img2fbx.php?sURL="; - $EXPLORATEUR= $MODULE."_explorateur/index1.php"; - $PLAYLIST = $USER."playlist/"; - $AIDE_REP = $RACINE_REP."_framework/aide/"; + $BOUTON = $FRAMEWORK_REP."bouton/"; + $GESTION = $RACINE_REP."configuration/"; + $USER = $RACINE_REP."_utilisateur/"; + $AUDIOTEMP = $USER."audiotemp/"; + $CACHE_IMAGE = $RACINE_REP."_utilisateur/cache/"; + $MODULE = $RACINE_REP."module/"; + $LECTEUR = $RACINE_REP."lecteur/"; + $IMG2FBX = $FRAMEWORK_REP."img2fbx.php?sURL="; + $EXPLORATEUR = $MODULE."_explorateur/index1.php"; + $PLAYLIST = $USER."playlist/"; + $AIDE_REP = $RACINE_REP."_framework/aide/"; require($GESTION."verif_config.php"); @@ -54,6 +55,16 @@ case 1: list_templates(); + function RemoveDir($dir) { + if(!$dh = @opendir($dir)) return; + while (($obj = readdir($dh))) { + if($obj=='.' || $obj=='..') continue; + @unlink($dir.'/'.$obj); + } + @closedir($dh); + } + RemoveDir($AUDIOTEMP); + break; // Phase d'initialisation case 2: Modified: trunk/_framework/framework.php =================================================================== --- trunk/_framework/framework.php 2006-12-17 18:14:46 UTC (rev 61) +++ trunk/_framework/framework.php 2006-12-21 15:41:32 UTC (rev 62) @@ -29,6 +29,9 @@ $USER = $RACINE_REP."_utilisateur/"; $smarty->assign('USER',$USER); + $AUDIOTEMP = $USER."audiotemp/"; + $smarty->assign('AUDIOTEMP',$AUDIOTEMP); + $CACHE_IMAGE = $RACINE_REP."_utilisateur/cache/"; $smarty->assign('CACHE_IMAGE',$CACHE_IMAGE); Modified: trunk/module/mp3/lecteuraudio.php =================================================================== --- trunk/module/mp3/lecteuraudio.php 2006-12-17 18:14:46 UTC (rev 61) +++ trunk/module/mp3/lecteuraudio.php 2006-12-21 15:41:32 UTC (rev 62) @@ -45,7 +45,7 @@ foreach($pl as $morceau){ if($morceau[3] == $toplay){ if(array_pop(explode(".", $morceau[2]))=='m3u'){ - $supplement = '?toplaybis='.$_GET['url']; + $supplement = '?toplaybis='.urlencode(realpath($_GET['url'])); } } } Modified: trunk/module/mp3/playdb.php =================================================================== --- trunk/module/mp3/playdb.php 2006-12-17 18:14:46 UTC (rev 61) +++ trunk/module/mp3/playdb.php 2006-12-21 15:41:32 UTC (rev 62) @@ -151,11 +151,11 @@ ".utf8_encode(realpath(stripslashes($basename))); } //Cr\xE9ation de la playlist temporaire - $fp = fopen($USER.'audiotemp'.get_variable('num_playlist').'.m3u',"w+"); + $fp = fopen($AUDIOTEMP.'audiotemp'.get_variable('num_playlist').'.m3u',"w+"); fputs($fp,"#EXTM3U"); fputs($fp,$variable); fclose($fp); - play_fichier($page,$USER.'audiotemp'.get_variable('num_playlist').'.m3u',1,'mp3'); + play_fichier($page,$AUDIOTEMP.'audiotemp'.get_variable('num_playlist').'.m3u',1,'mp3'); save_variable('num_playlist', get_variable('num_playlist')+1); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2007-01-14 08:38:42
|
Revision: 65 http://svn.sourceforge.net/easybox-mod/?rev=65&view=rev Author: aragornis Date: 2007-01-14 00:38:36 -0800 (Sun, 14 Jan 2007) Log Message: ----------- Mise ?\195?\160 jour de la lib allocine Modified Paths: -------------- trunk/_framework/lib/get_info.php trunk/_utilisateur/multiposte.m3u trunk/module/seances/voirsalle.php Modified: trunk/_framework/lib/get_info.php =================================================================== --- trunk/_framework/lib/get_info.php 2007-01-06 12:15:31 UTC (rev 64) +++ trunk/_framework/lib/get_info.php 2007-01-14 08:38:36 UTC (rev 65) @@ -116,7 +116,7 @@ $res['critique_presse'] = round(ereg_replace(",", ".", $valeur[2])); //R\xE9cup\xE9ration de l'adresse de l'image - $ereg = '<img src="http:\/\/a69.g.akamai.net\/n\/69\/10688\/v1\/img5.allocine.fr\/(.{1,70})" border="0" alt="" \/>'; + $ereg = '<img src="http:\/\/a69.g.akamai.net\/n\/69\/10688\/v1\/img5.allocine.fr\/(.{1,70})" border="0" alt="" class="affichette" \/>'; preg_match("/$ereg/s", $filmrecherche, $valeur); if(trim($valeur[1])==''){ $res['image'] = 'http://a69.g.akamai.net/n/69/10688/v1/img5.allocine.fr/acmedia/skin/AlloCineV5/habillage/AffichetteAllocine.gif'; @@ -172,6 +172,7 @@ // R\xE9cup\xE9ration des bandes annonces $ba=array(); + if($pagerecherche = @file_get_contents('http://www.cinemovies.fr/resultat_recherche.php?cherche='.urlencode($res['nom']))){ $ereg = '<a href="fiche_film.php\?IDfilm=(.{1,6})" class="bodyFont5"><b>(.{1,300})<\/b><\/a> '; @@ -190,8 +191,8 @@ break; } } + - if($filmrecherche = @file_get_contents('http://www.cinemovies.fr/players/media.php?IDfilm='.$id)){ if(PHP_OS == "WIN32" || PHP_OS == "WINNT"){ $ereg = 'align="absmiddle" width="25" height="11">(.{1,25})<\/b>(.{1,2200})windows player(.{1,1300})<\/table><\/td><\/tr><tr><td'; @@ -225,7 +226,6 @@ } } - function info_personnalite($acteur){ if($pagerecherche = @file_get_contents('http://www.allocine.fr/recherche/?motcle='.urlencode($acteur).'&f=3&rub=2')){ Modified: trunk/_utilisateur/multiposte.m3u =================================================================== --- trunk/_utilisateur/multiposte.m3u 2007-01-06 12:15:31 UTC (rev 64) +++ trunk/_utilisateur/multiposte.m3u 2007-01-14 08:38:36 UTC (rev 65) @@ -1,18 +1,22 @@ #EXTM3U +#EXTINF:0,1 - TF1 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=612 #EXTINF:0,2 - France 2 rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=201 #EXTINF:0,3 - France 3 national rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=202 #EXTINF:0,5 - France 5 rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=203 -#EXTINF:0,6 - Euronews -rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=205 +#EXTINF:0,6 - M6 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=613 #EXTINF:0,7 - Arte rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=204 #EXTINF:0,8 - Direct 8 rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=372 #EXTINF:0,9 - W9 rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=373 +#EXTINF:0,10 - TMC +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=497 #EXTINF:0,11 - NT1 rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=374 #EXTINF:0,12 - NRJ 12 5.1 @@ -31,10 +35,8 @@ rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=416 #EXTINF:0,18 - Gulli rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=419 -#EXTINF:0,19 - Paris Première VF VF -rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=351 -#EXTINF:0,19 - Paris Première VO VO -rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=305 +#EXTINF:0,19 - Paris Première +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=213 #EXTINF:0,20 - TEVA rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=404 #EXTINF:0,21 - RTL9 @@ -47,8 +49,8 @@ rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=238 #EXTINF:0,25 - RTBF Sat rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=448 -#EXTINF:0,26 - France Télévisions HD -rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=491 +#EXTINF:0,27 - JET +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=496 #EXTINF:0,36 - Mangas rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=253 #EXTINF:0,37 - Game One @@ -85,8 +87,6 @@ rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=254 #EXTINF:0,57 - Mizik Tropical rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=468 -#EXTINF:0,58 - Star Academy 6 -rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=406 #EXTINF:0,61 - Equidia rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=212 #EXTINF:0,62 - ESPN Classic Sport @@ -95,6 +95,8 @@ rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=222 #EXTINF:0,64 - Motors TV rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=216 +#EXTINF:0,69 - Euronews +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=205 #EXTINF:0,70 - Bloomberg TV rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=207 #EXTINF:0,72 - Al Jazeera International @@ -109,8 +111,8 @@ rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=483 #EXTINF:0,80 - KTO rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=223 -#EXTINF:0,81 - TFJ -rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=224 +#EXTINF:0,81 - Berbère TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=256 #EXTINF:0,82 - Beur TV rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=225 #EXTINF:0,83 - Demain ! @@ -135,8 +137,6 @@ rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=250 #EXTINF:0,93 - Histoire rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=235 -#EXTINF:0,94 - Berbère TV -rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=256 #EXTINF:0,95 - 3A Telesud rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=356 #EXTINF:0,96 - Teleplaisance.org @@ -155,8 +155,6 @@ rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=358 #EXTINF:0,131 - M6 Boutique rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=359 -#EXTINF:0,132 - Ark-TV -rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=492 #EXTINF:0,133 - Astro Center TV rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=415 #EXTINF:0,150 - TLM @@ -175,7 +173,7 @@ rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=363 #EXTINF:0,157 - Normandie TV rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=383 -#EXTINF:0,158 - Télénantes/Nantes 7 +#EXTINF:0,158 - Télénantes Nantes 7 rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=389 #EXTINF:0,159 - La Chaîne Marseille rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=414 Modified: trunk/module/seances/voirsalle.php =================================================================== --- trunk/module/seances/voirsalle.php 2007-01-06 12:15:31 UTC (rev 64) +++ trunk/module/seances/voirsalle.php 2007-01-14 08:38:36 UTC (rev 65) @@ -54,19 +54,19 @@ preg_match("/$debut(.{1,150})$fin/s", $value, $name); $debut = '<img src="'; - $fin = '" border="0" width="120" alt='; + $fin = '" border="0" alt='; preg_match("/$debut(.{1,250})$fin/s", $value, $img); $debut = '<tr style="padding: 5 0 0 0"><td><h5>'; - $fin = '<\/h5><\/td><\/tr><tr style="padding: 5 0 0 0">'; + $fin = '<\/h5><\/td><\/tr><tr style="padding: 5 0 0 0;">'; preg_match("/$debut(.{1,50})$fin/s", $value, $genre); //Critique visiteurs - $ereg = 'Spectateurs<\/a> : <img src="http:\/\/a69.g.akamai.net\/n\/69\/10688\/v1\/img5.allocine.fr\/acmedia\/skin\/allocinev5\/icone\/etoile_(.{1,3}).gif" border="0" \/><\/h4>'; + $ereg = 'Spectateurs<\/a> : <img src="http:\/\/a69.g.akamai.net\/n\/69\/10688\/v1\/img5.allocine.fr\/acmedia\/skin\/empty.gif" width="52" height="13" class="etoile_(.{1,2})"'; preg_match("/$ereg/s", $value, $spec); //Critique presse (nouvelle notation et ancienne) - $ereg = 'Presse<\/a> : <img src="http:\/\/a69.g.akamai.net\/n\/69\/10688\/v1\/img5.allocine.fr\/acmedia\/skin\/allocinev5\/icone\/etoile_(.{1,3}).gif" border="0" title='; + $ereg = 'Presse<\/a> : <img src="http:\/\/a69.g.akamai.net\/n\/69\/10688\/v1\/img5.allocine.fr\/acmedia\/skin\/empty.gif" width="52" height="13" class="etoile_(.{1,2})"'; preg_match("/$ereg/s", $value, $press); $debut = '<h4 style="color:#D20000">'; @@ -82,7 +82,13 @@ $FILMS[]=array($name[2], $all, $img[1], $genre[1], $spec[1], $press[1], $name[1]); } } +/* +<img src="http://a69.g.akamai.net/n/69/10688/v1/img5.allocine.fr/acmedia/skin/empty.gif" width="52" height="13" class="etoile_3" border="0" /> +<img src="http://a69.g.akamai.net/n/69/10688/v1/img5.allocine.fr/acmedia/skin/empty.gif" width="52" height="13" class="etoile_3" border="0" /> +*/ + + if($_GET['add']){ $db = sqlite_open($USER.'utilisateur.db', 0666); sqlite_query($db,'DELETE FROM cinemas WHERE cinema="'.sqlite_escape_string($cine).'"'); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2007-01-20 22:31:27
|
Revision: 67 http://svn.sourceforge.net/easybox-mod/?rev=67&view=rev Author: aragornis Date: 2007-01-20 14:31:24 -0800 (Sat, 20 Jan 2007) Log Message: ----------- Gros patch de fjandot sur le module d'enregistrement Modif des compteurs de la playlist audio Modified Paths: -------------- trunk/_framework/fonctions_partagees.inc.php trunk/module/mp3/playlist_audio.tpl trunk/module/multiposte/add.php trunk/module/multiposte/enregistrement.tpl trunk/module/multiposte/enregistrement_add.tpl trunk/module/multiposte/index1.php Modified: trunk/_framework/fonctions_partagees.inc.php =================================================================== --- trunk/_framework/fonctions_partagees.inc.php 2007-01-19 19:27:20 UTC (rev 66) +++ trunk/_framework/fonctions_partagees.inc.php 2007-01-20 22:31:24 UTC (rev 67) @@ -54,6 +54,22 @@ RETURN($result[0]['value']); } +//Supprime les variables de session +function clean_vars(){ +global $USER; + $db = sqlite_open($USER.'utilisateur.db', 0666); + sqlite_query($db,'DELETE FROM var'); + sqlite_close($db); +} + +//Supprime une variable de session +function del_variable($var){ +global $USER; + $db = sqlite_open($USER.'utilisateur.db', 0666); + sqlite_query($db,'DELETE FROM var WHERE var=\''.$var.'\''); + sqlite_close($db); +} + //Programmer une action cron function save_cron($timestamp, $exec){ global $USER; @@ -82,22 +98,6 @@ RETURN($result[0]['value']); } -//Supprime les variables de session -function clean_vars(){ -global $USER; - $db = sqlite_open($USER.'utilisateur.db', 0666); - sqlite_query($db,'DELETE FROM var'); - sqlite_close($db); -} - -//Supprime une variable de session -function del_variable($var){ -global $USER; - $db = sqlite_open($USER.'utilisateur.db', 0666); - sqlite_query($db,'DELETE FROM var WHERE var=\''.$var.'\''); - sqlite_close($db); -} - //Fournit le lien ou doit retourner EB \xE0 la fin du fichier en cours function page_retour_film(){ global $RACINE_REP; Modified: trunk/module/mp3/playlist_audio.tpl =================================================================== --- trunk/module/mp3/playlist_audio.tpl 2007-01-19 19:27:20 UTC (rev 66) +++ trunk/module/mp3/playlist_audio.tpl 2007-01-20 22:31:24 UTC (rev 67) @@ -46,10 +46,9 @@ {assign var=temp value=$min-16} {attribbouton touche="green" lien="lecteuraudio.php?min=$temp"} {/if} - {counter name=indice start=$min print=false} {section name=playlist loop=$pl start=$min max=16} - <font size="1">{counter name=indice print=true}. </font> + <font size="1">{counter name=indice print=true start=$min}. </font> <font size="1"> {if $pl[playlist].1}<u>{/if} <a href=lecteuraudio.php?toplay={$pl[playlist].3}&url={$pl[playlist].2|urlencode}>{$pl[playlist].0|truncate:130:''|strip_delimiters}</a> Modified: trunk/module/multiposte/add.php =================================================================== --- trunk/module/multiposte/add.php 2007-01-19 19:27:20 UTC (rev 66) +++ trunk/module/multiposte/add.php 2007-01-20 22:31:24 UTC (rev 67) @@ -17,93 +17,225 @@ $smarty->assign('CONTENT',$smarty->fetch('enregistrement_add.tpl')); $smarty->display('interface.tpl'); break; - + + case 'modif' : + $chaine = explode("|",urldecode($_GET['chaine'])); + $deb = $_GET['deb']; + $end = $_GET['end']; + $id = $_GET['id']; + + // Suppression des commandes et fichiers + $at=shell_exec('at'); + if(eregi(urldecode($_GET['fichierbat']),$at)) + { + $at=exec('at '.$_GET['task'].' /delete'); + $at.=exec('at '.$_GET['taskend'].' /delete'); + } + @unlink(urldecode($_GET['fichierbat'])); + @unlink(ereg_replace(".bat","-end.bat",urldecode($_GET['fichierbat']))); + + // Modification des commandes at et des fichiers bat + $fichier = realpath($ini[multiposte][multiposte]).'\\'.$chaine[1].' - '.date("d-m-y H\hi", $deb).'.mpg'; + $fichierbat = $chaine[1].' - '.date("d-m-y H\hi", $deb).'.bat'; + $fichierbat2 = $chaine[1].' - '.date("d-m-y H\hi", $deb).'-end.bat'; + + //Cr\xE9ation du fichier bat de lancement + + $contenu_html = @file_get_contents ($USER.'multiposte.m3u'); + if(eregi('stream?id=', $contenu_html)){ + $moreinfo = 'stream?id='; + } + + //Profils d'encodage + if($ini[multiposte][cvid]!='none' AND $ini[multiposte][caud]!='none'){ + $link = 'start vlc\vlc.exe --wx-systray --intf=dummy --extraintf=http --http-src="'.realpath(realpath("../../").'/http-vlc').'" --http-host=:8082 --http-charset=ISO-8859-1 --quiet --dummy-quiet -vvv rtsp://mafreebox.freebox.fr/freeboxtv/'.$moreinfo.$chaine[2].' --sout=#transcode{vcodec='.$ini[multiposte][cvid].',vb='.$ini[multiposte][bvid].',scale=1,acodec='.$ini[multiposte][caud].',ab='.$ini[multiposte][baud].',channels=2} --sout=#duplicate{dst=std{access=file,mux='.$ini[multiposte][muxer].',url="'.$fichier.'"} + start http://localhost:8080/lecteur/lunch_rec.php?id='.$id; + }elseif($ini[multiposte][cvid]=='none' AND $ini[multiposte][caud]=='none'){ + $link = 'start vlc\vlc.exe --wx-systray --intf=dummy --extraintf=http --http-src="'.realpath(realpath("../../").'/http-vlc').'" --http-host=:8082 --http-charset=ISO-8859-1 --quiet --dummy-quiet -vvv rtsp://mafreebox.freebox.fr/freeboxtv/'.$moreinfo.$chaine[2].' --sout=#duplicate{dst=std{access=file,mux='.$ini[multiposte][muxer].',url="'.$fichier.'"} + start http://localhost:8080/lecteur/lunch_rec.php?id='.$id; + }elseif($ini[multiposte][cvid]!='none' AND $ini[multiposte][caud]=='none'){ + $link = 'start vlc\vlc.exe --wx-systray --intf=dummy --extraintf=http --http-src="'.realpath(realpath("../../").'/http-vlc').'" --http-host=:8082 --http-charset=ISO-8859-1 --quiet --dummy-quiet -vvv rtsp://mafreebox.freebox.fr/freeboxtv/'.$moreinfo.$chaine[2].' --sout=#transcode{vcodec='.$ini[multiposte][cvid].',vb='.$ini[multiposte][bvid].',scale=1} --sout=#duplicate{dst=std{access=file,mux='.$ini[multiposte][muxer].',url="'.$fichier.'"} + start http://localhost:8080/lecteur/lunch_rec.php?id='.$id; + }elseif($ini[multiposte][cvid]!='none' AND $ini[multiposte][caud]=='none'){ + $link = 'start vlc\vlc.exe --wx-systray --intf=dummy --extraintf=http --http-src="'.realpath(realpath("../../").'/http-vlc').'" --http-host=:8082 --http-charset=ISO-8859-1 --quiet --dummy-quiet -vvv rtsp://mafreebox.freebox.fr/freeboxtv/'.$moreinfo.$chaine[2].' --sout=#transcode{acodec='.$ini[multiposte][caud].',ab='.$ini[multiposte][baud].',channels=2} --sout=#duplicate{dst=std{access=file,mux='.$ini[multiposte][muxer].',url="'.$fichier.'"} + start http://localhost:8080/lecteur/lunch_rec.php?id='.$id; + } + + $variable = 'SET vlcpath="'.realpath("../../../").'" + CD %vlcpath% + '.$link.' + exit'; + + $fp = fopen(realpath($USER).'\\'.$fichierbat,"a+"); + fputs($fp,$variable); + fclose($fp); + + //Cr\xE9ation du fichier bat de fermeture + $link2 = 'start http://localhost:8080/lecteur/stop_rec.php?id='.$id; + $variable = 'SET vlcpath="'.realpath("../../../").'" + CD %vlcpath% + '.$link2.' + exit'; + + $fp = fopen($USER.$fichierbat2,"w+"); + fputs($fp,$variable); + fclose($fp); + + //Enregistrement des taches + $output = exec('at '.date("H:i", $deb).' /interactive /next:'.date("d", $deb).' "'.realpath($USER.$fichierbat).'"'); + $output2 = exec('at '.date("H:i", $end).' /interactive /next:'.date("d", $end).' "'.realpath($USER.$fichierbat2).'"'); + $debut = 'ID = '; + $fin = ''; + preg_match("/$debut(.{1,2})$fin/s", $output, $valeur); + preg_match("/$debut(.{1,2})$fin/s", $output2, $valeur2); + + // Modification de end dans SQLite + $db = sqlite_open('../../_utilisateur/records.db', 0666); + $requete='DELETE FROM records WHERE id='.$id; + $result = sqlite_query($db,$requete); + sqlite_query($db,'INSERT INTO records VALUES ("'.$id.'","'.urldecode($_GET['chaine']).'","'.$deb.'","'.$end.'","'.realpath($USER.$fichierbat).'","'.$valeur[1].'","'.$valeur2[1].'","En attente")'); + + sqlite_close($db); + + // Redirection page see + $META['refresh']= '3;url=index1.php?module=see'; + $msg = "<br><br>Votre enregistrement a bien \xE9t\xE9 modifi\xE9 :<br>"; + $msg .= 'Sur '.$chaine[1].' le '.date("d/m/y H:i", $deb); + $smarty->assign('AVERTISSEMENT',$msg); + $smarty->display('avertissement.tpl'); + + + break; case '4': $chaine = explode("|",$_GET['chaine']); + $j = $y = 0; + $chaine = explode('|',urldecode($_GET['chaine'])); + // Si l'heure de d\xE9but n'est pas renseign\xE9e, c'est mintenant + if( $_GET['deb_heure']) $deb_heure = $_GET['deb_heure']; else $deb_heure = date("H"); + if( $_GET['deb_min']) $deb_min = $_GET['deb_min']; else $deb_min = date("i")+1; + // Si l'heure de fin n'est pas renseign\xE9e, c'est un enregistrement d'une heure + if( $_GET['fin_heure']) $fin_heure = $_GET['fin_heure']; else $fin_heure = $deb_heure+1; + if( $_GET['fin_min']) $fin_min = $_GET['fin_min']; else $fin_min = $deb_min; + // programation sur le jour suivant + if( $_GET['deb_heure'] > $_GET['fin_heure']) $j = 1; + // Si le jour n'est pas saisi c'est aujourd'hui + if( $_GET['deb_jour']) + $jour = $_GET['deb_jour']; + else $jour = date("d"); + // Si le mois n'est pas saisi + if( $_GET['deb_mois']) + $mois = $_GET['deb_mois']; + else $mois = date("m"); + // Programmation l'ann\xE9e suivante : mois identique, jour pr\xE9c\xE9dent + if( sprintf("%02d", $mois) == date("m") && sprintf("%02d", $jour) < date("d")) $y = 1; + // programation l'ann\xE9e suivante : mois pr\xE9c\xE9dent + if( sprintf("%02d", $mois) < date("m")) $y = 1; + // cr\xE9ation des dates corrig\xE9es + $deb = mktime( $deb_heure, $deb_min, 0, $mois, $jour, date("Y")+$y); + $end = mktime($fin_heure, $fin_min, 0, $mois , $jour + $j, date("Y")+$y); + // $deb et $fin \xE0 cheval sur heure courante : debut enregistrement dans une minute + if($deb < strtotime("now") && $end > strtotime("now")) + $deb = mktime( date("H"), date("i")+1, 0, date("m"), date("d"), date("Y")); + /********************* A FAIRE ******************/ + // V\xE9rifier si il n'y a pas d\xE9j\xE0 un enregistrement programm\xE9 + $db = sqlite_open('../../_utilisateur/records.db', 0666); + $requete='SELECT * from records '; // debut et fin qui nous interresse !! + $result = sqlite_query($db,$requete); + $Heures_OK = TRUE; + while($row = sqlite_fetch_array($result)){ + if ( ($deb >= $row['debut'] && $deb < $row['fin']) || ($end > $row['debut'] && $end <= $row['fin'])){ + // Si c'est la m\xEAme chaine, proposer de concat\xE9ner les deux enregistrements + if( $_GET['chaine'] == $row['chaine']){ + ($deb < $row['debut'])?$new_deb = $deb : $new_deb = $row['debut']; + ($end > $row['fin'])?$new_end = $end : $new_end = $row['fin']; + $msg = "<br>Deux programmes sur ".$chaine[1]." se chevauchent !<br><br>"; + $msg .= 'Fusionner les deux enregistrements ?<br>'; + $msg .= '<a href="add.php?etape=modif&id='.$row['id'].'&chaine='.urlencode($row['chaine']).'&deb='.$new_deb.'&end='.$new_end.'&task='.$row['task'].'&taskend='.$row['taskend'].'&fichierbat='.urlencode($row['fichierbat']).'">OUI</a> / <a href="index1.php?module=see">NON</a>'; + } + else{ + $META['refresh']= '2;url=index1.php?module=see'; + $msg = "<br><br>Cet enregistrement entre en conflit avec un autre.<br>"; + $msg .= 'Veuillez v\xE9rifier et/ou corriger.'; + } + $Heures_OK = FALSE; + } + } + /********************* A FAIRE ******************/ + if( $Heures_OK){ + // ATTENTION Vlc a des probl\xE8mes avec les accents lors de la cr\xE9ation du fichier --- Mais \xE7a marche avec la 0.8.6 !!! + $fichier = realpath($ini[multiposte][multiposte]).'\\'.$chaine[1].' - '.date("d-m-y H\hi", $deb).'.mpg'; + $fichierbat = $chaine[1].' - '.date("d-m-y H\hi", $deb).'.bat'; + $fichierbat2 = $chaine[1].' - '.date("d-m-y H\hi", $deb).'-end.bat'; - $deb = $_GET['debtime']; - $end = $_GET['endtime']; - - if(isset($_GET['deb_heure']) || isset($_GET['deb_min']) || isset($_GET['deb_mois']) || isset($_GET['deb_jour'])){ - $deb = mktime(max($_GET['deb_heure'],1), max($_GET['deb_min'],1), 0, max($_GET['deb_mois'],1) , max($_GET['deb_jour'],1), 2007); - $end = mktime(max($_GET['fin_heure'],1), max($_GET['fin_min'],1), 0, max($_GET['fin_mois'],1) , max($_GET['fin_jour'],1), 2007); - } - - if($deb>$end){ - $META['refresh']= '2;url=?etape=4&chaine='.$_GET['chaine'].'&deb_jour='.$_GET['deb_jour'].'&deb_mois='.$_GET['deb_mois'].'&deb_heure='.$_GET['deb_heure'].'&deb_min='.$_GET['deb_min'].'&fin_jour='.$_GET['fin_jour'].'&fin_mois='.$_GET['fin_mois'].'&fin_heure='.$_GET['fin_heure'].'&fin_min='.$_GET['fin_min']; - $msg = 'Les dates ne concordent pas. Veuillez modifier votre saisie.'; - } - - $fichier = realpath($ini[multiposte][multiposte]).'\\'.$chaine[1].' - '.date("d-m-y H\hi", $deb).'.mpg'; - $fichierbat = $chaine[1].' - '.date("d-m-y H\hi", $deb).'.bat'; - $fichierbat2 = $chaine[1].' - '.date("d-m-y H\hi", $deb).'-end.bat'; - - $db = sqlite_open('../../_utilisateur/records.db', 0666); - $requete='SELECT * from records '; - $result = sqlite_query($db,$requete); + $requete='SELECT MAX(id) from records '; + $result = sqlite_query($db,$requete); + sqlite_close($db); + $row = sqlite_fetch_array($result); - //Cr\xE9ation du fichier bat de lancement + //Cr\xE9ation du fichier bat de lancement - $contenu_html = @file_get_contents ($USER.'multiposte.m3u'); - if(eregi('stream?id=', $contenu_html)){ - $moreinfo = 'stream?id='; - } - - //Profils d'encodage - if($ini[multiposte][cvid]!='none' AND $ini[multiposte][caud]!='none'){ - $link = 'start vlc\vlc.exe --wx-systray --intf=dummy --extraintf=http --http-src="'.realpath(realpath("../../").'/http-vlc').'" --http-host=:8082 --http-charset=ISO-8859-1 --quiet --dummy-quiet -vvv rtsp://mafreebox.freebox.fr/freeboxtv/'.$moreinfo.$chaine[2].' --sout=#transcode{vcodec='.$ini[multiposte][cvid].',vb='.$ini[multiposte][bvid].',scale=1,acodec='.$ini[multiposte][caud].',ab='.$ini[multiposte][baud].',channels=2} --sout=#duplicate{dst=std{access=file,mux='.$ini[multiposte][muxer].',url="'.$fichier.'"} - start http://localhost:8080/lecteur/lunch_rec.php?id='.(sqlite_num_rows($result)+1); - }elseif($ini[multiposte][cvid]=='none' AND $ini[multiposte][caud]=='none'){ - $link = 'start vlc\vlc.exe --wx-systray --intf=dummy --extraintf=http --http-src="'.realpath(realpath("../../").'/http-vlc').'" --http-host=:8082 --http-charset=ISO-8859-1 --quiet --dummy-quiet -vvv rtsp://mafreebox.freebox.fr/freeboxtv/'.$moreinfo.$chaine[2].' --sout=#duplicate{dst=std{access=file,mux='.$ini[multiposte][muxer].',url="'.$fichier.'"} - start http://localhost:8080/lecteur/lunch_rec.php?id='.(sqlite_num_rows($result)+1); - }elseif($ini[multiposte][cvid]!='none' AND $ini[multiposte][caud]=='none'){ - $link = 'start vlc\vlc.exe --wx-systray --intf=dummy --extraintf=http --http-src="'.realpath(realpath("../../").'/http-vlc').'" --http-host=:8082 --http-charset=ISO-8859-1 --quiet --dummy-quiet -vvv rtsp://mafreebox.freebox.fr/freeboxtv/'.$moreinfo.$chaine[2].' --sout=#transcode{vcodec='.$ini[multiposte][cvid].',vb='.$ini[multiposte][bvid].',scale=1} --sout=#duplicate{dst=std{access=file,mux='.$ini[multiposte][muxer].',url="'.$fichier.'"} - start http://localhost:8080/lecteur/lunch_rec.php?id='.(sqlite_num_rows($result)+1); - }elseif($ini[multiposte][cvid]!='none' AND $ini[multiposte][caud]=='none'){ - $link = 'start vlc\vlc.exe --wx-systray --intf=dummy --extraintf=http --http-src="'.realpath(realpath("../../").'/http-vlc').'" --http-host=:8082 --http-charset=ISO-8859-1 --quiet --dummy-quiet -vvv rtsp://mafreebox.freebox.fr/freeboxtv/'.$moreinfo.$chaine[2].' --sout=#transcode{acodec='.$ini[multiposte][caud].',ab='.$ini[multiposte][baud].',channels=2} --sout=#duplicate{dst=std{access=file,mux='.$ini[multiposte][muxer].',url="'.$fichier.'"} - start http://localhost:8080/lecteur/lunch_rec.php?id='.(sqlite_num_rows($result)+1); + $contenu_html = @file_get_contents ($USER.'multiposte.m3u'); + if(eregi('stream?id=', $contenu_html)){ + $moreinfo = 'stream?id='; + } + + //Profils d'encodage + if($ini[multiposte][cvid]!='none' AND $ini[multiposte][caud]!='none'){ + $link = 'start vlc\vlc.exe --wx-systray --intf=dummy --extraintf=http --http-src="'.realpath(realpath("../../").'/http-vlc').'" --http-host=:8082 --http-charset=ISO-8859-1 --quiet --dummy-quiet -vvv rtsp://mafreebox.freebox.fr/freeboxtv/'.$moreinfo.$chaine[2].' --sout=#transcode{vcodec='.$ini[multiposte][cvid].',vb='.$ini[multiposte][bvid].',scale=1,acodec='.$ini[multiposte][caud].',ab='.$ini[multiposte][baud].',channels=2} --sout=#duplicate{dst=std{access=file,mux='.$ini[multiposte][muxer].',url="'.$fichier.'"} + start http://localhost:8080/lecteur/lunch_rec.php?id='.($row[0]+1); + }elseif($ini[multiposte][cvid]=='none' AND $ini[multiposte][caud]=='none'){ + $link = 'start vlc\vlc.exe --wx-systray --intf=dummy --extraintf=http --http-src="'.realpath(realpath("../../").'/http-vlc').'" --http-host=:8082 --http-charset=ISO-8859-1 --quiet --dummy-quiet -vvv rtsp://mafreebox.freebox.fr/freeboxtv/'.$moreinfo.$chaine[2].' --sout=#duplicate{dst=std{access=file,mux='.$ini[multiposte][muxer].',url="'.$fichier.'"} + start http://localhost:8080/lecteur/lunch_rec.php?id='.($row[0]+1); + }elseif($ini[multiposte][cvid]!='none' AND $ini[multiposte][caud]=='none'){ + $link = 'start vlc\vlc.exe --wx-systray --intf=dummy --extraintf=http --http-src="'.realpath(realpath("../../").'/http-vlc').'" --http-host=:8082 --http-charset=ISO-8859-1 --quiet --dummy-quiet -vvv rtsp://mafreebox.freebox.fr/freeboxtv/'.$moreinfo.$chaine[2].' --sout=#transcode{vcodec='.$ini[multiposte][cvid].',vb='.$ini[multiposte][bvid].',scale=1} --sout=#duplicate{dst=std{access=file,mux='.$ini[multiposte][muxer].',url="'.$fichier.'"} + start http://localhost:8080/lecteur/lunch_rec.php?id='.($row[0]+1); + }elseif($ini[multiposte][cvid]!='none' AND $ini[multiposte][caud]=='none'){ + $link = 'start vlc\vlc.exe --wx-systray --intf=dummy --extraintf=http --http-src="'.realpath(realpath("../../").'/http-vlc').'" --http-host=:8082 --http-charset=ISO-8859-1 --quiet --dummy-quiet -vvv rtsp://mafreebox.freebox.fr/freeboxtv/'.$moreinfo.$chaine[2].' --sout=#transcode{acodec='.$ini[multiposte][caud].',ab='.$ini[multiposte][baud].',channels=2} --sout=#duplicate{dst=std{access=file,mux='.$ini[multiposte][muxer].',url="'.$fichier.'"} + start http://localhost:8080/lecteur/lunch_rec.php?id='.($row[0]+1); } - $variable = 'SET vlcpath="'.realpath("../../../").'" - CD %vlcpath% - '.$link.' - exit'; + $variable = 'SET vlcpath="'.realpath("../../../").'" + CD %vlcpath% + '.$link.' + exit'; - $fp = fopen(realpath($USER).'\\'.$fichierbat,"a+"); - fputs($fp,$variable); - fclose($fp); + $fp = fopen(realpath($USER).'\\'.$fichierbat,"a+"); + fputs($fp,$variable); + fclose($fp); - //Cr\xE9ation du fichier bat de fermeture - $link2 = 'start http://localhost:8080/lecteur/stop_rec.php?id='.(sqlite_num_rows($result)+1); - $variable = 'SET vlcpath="'.realpath("../../../").'" - CD %vlcpath% - '.$link2.' - exit'; + //Cr\xE9ation du fichier bat de fermeture + $link2 = 'start http://localhost:8080/lecteur/stop_rec.php?id='.($row[0]+1); + $variable = 'SET vlcpath="'.realpath("../../../").'" + CD %vlcpath% + '.$link2.' + exit'; - $fp = fopen($USER.$fichierbat2,"w+"); - fputs($fp,$variable); - fclose($fp); + $fp = fopen($USER.$fichierbat2,"w+"); + fputs($fp,$variable); + fclose($fp); - //Enregistrement des taches - $output = exec('at '.date("H:i", $deb).' /interactive /next:'.date("d", $deb).' "'.realpath($USER.$fichierbat).'"'); - $output2 = exec('at '.date("H:i", $end).' /interactive /next:'.date("d", $end).' "'.realpath($USER.$fichierbat2).'"'); + //Enregistrement des taches + $output = exec('at '.date("H:i", $deb).' /interactive /next:'.date("d", $deb).' "'.realpath($USER.$fichierbat).'"'); + $output2 = exec('at '.date("H:i", $end).' /interactive /next:'.date("d", $end).' "'.realpath($USER.$fichierbat2).'"'); - if(eregi("T\x83che ajout\x82e",$output)){ - $META['refresh']= '3;url=index1.php?module=see'; - $msg = "<br><br>Votre enregistrement a bien \xE9t\xE9 programm\xE9 :<br>"; - $msg .= 'Sur '.$chaine[1].' le '.date("d/m/y H:i", $deb); - } + //if(eregi("T\x83che ajout\x82e",$output)){ // Probl\xE8me d'encodage des accents dans le fichier !! + if(isset($output)){ // Ce test n'est pas bon test !!! + $META['refresh']= '3;url=index1.php?module=see'; + $msg = "<br><br>Votre enregistrement a bien \xE9t\xE9 programm\xE9 :<br>"; + $msg .= 'Sur '.$chaine[1].' le '.date("d/m/y H:i", $deb); + } - $debut = 'ID = '; - $fin = ''; - preg_match("/$debut(.{1,2})$fin/s", $output, $valeur); - preg_match("/$debut(.{1,2})$fin/s", $output2, $valeur2); - - sqlite_query($db,'INSERT INTO records VALUES ("'.(sqlite_num_rows($result)+1).'","'.$_GET['chaine'].'","'.$deb.'","'.$end.'","'.realpath($USER.$fichierbat).'","'.$valeur[1].'","'.$valeur2[1].'","En attente")'); - - $smarty->assign('AVERTISSEMENT',$msg); - $smarty->display('avertissement.tpl'); + $debut = 'ID = '; + $fin = ''; + preg_match("/$debut(.{1,2})$fin/s", $output, $valeur); + preg_match("/$debut(.{1,2})$fin/s", $output2, $valeur2); + + sqlite_query($db,'INSERT INTO records VALUES ("'.($row[0]+1).'","'.$_GET['chaine'].'","'.$deb.'","'.$end.'","'.realpath($USER.$fichierbat).'","'.$valeur[1].'","'.$valeur2[1].'","En attente")'); + } + $smarty->assign('AVERTISSEMENT',$msg); + $smarty->display('avertissement.tpl'); + break; @@ -134,7 +266,8 @@ } if(!eregi("Mire FREEBOX",trim(utf8_decode($valeur[2][$key])))){ - $CHAINE[]=array('id'=>trim($valeur[1][$key]), 'nom'=>trim(utf8_decode($valeur[2][$key])), 'num'=>trim($valeur[3][$key]), 'ico'=>trim(str_replace(array('>',' !',' ','\xE9','\xEE','\xF4'),array('','','','e','i','o'),$ico)).'.gif'); + // Encodage URL du nom de la chaine (utilis\xE9 en passage d'argument sur lien html) + $CHAINE[]=array('id'=>trim($valeur[1][$key]), 'nom'=>trim(utf8_decode($valeur[2][$key])), 'num'=>trim($valeur[3][$key]), 'ico'=>trim(str_replace(array('>',' !',' ','\xE9','\xEE','\xF4','\xE8','\xEA','\''),array('','','','e','i','o','e','e',''),$ico)).'.gif'); } } Modified: trunk/module/multiposte/enregistrement.tpl =================================================================== --- trunk/module/multiposte/enregistrement.tpl 2007-01-19 19:27:20 UTC (rev 66) +++ trunk/module/multiposte/enregistrement.tpl 2007-01-20 22:31:24 UTC (rev 67) @@ -5,7 +5,43 @@ <table width="450" border="0" cellpadding="0" cellspacing="0"> {/if} {cycle name=color assign=COLOR print=false values="`$smarty.config.COULEUR_INTERFACE1`,`$smarty.config.COULEUR_INTERFACE2`"} - <tr><td width=324 bgcolor="{$COLOR}">{$ENREGISTREMENT[enregistrement].num+1} - {$ENREGISTREMENT[enregistrement].chaine} du {$ENREGISTREMENT[enregistrement].d\xE9but} au {$ENREGISTREMENT[enregistrement].fin}</a></td><td width="110" bgcolor="{$COLOR}">{$ENREGISTREMENT[enregistrement].statut}</td><td width="20" bgcolor="{$COLOR}"><a href="index1.php?module=delete&id={$ENREGISTREMENT[enregistrement].num}"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{$COLOR}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}delete.gif" border="0" width="20" height="20"></td></tr></table></a></td></tr> + <tr> + <td width=324 bgcolor="{$COLOR}"> + {$ENREGISTREMENT[enregistrement].chaine} {$ENREGISTREMENT[enregistrement].dates} + </td> + <td width="110" bgcolor="{$COLOR}"> + {if $ENREGISTREMENT[enregistrement].statut != 'Enregistr\xE9'} + {$ENREGISTREMENT[enregistrement].statut} + {/if} + </td> + <td width="20" bgcolor="{$COLOR}"> + {if $ENREGISTREMENT[enregistrement].statut != 'En cours'} + <a href="index1.php?module=delete&id={$ENREGISTREMENT[enregistrement].num}"> + <table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{$COLOR}" abgcolor="{#COULEUR_ALINK#}"> + <tr height="20"> + <td align=center width="20" height="20" align="center" valign="middle"> + {if $ENREGISTREMENT[enregistrement].statut == 'En attente'} + <img src="{$INTERFACE_REP}cancelled.gif" border="0" width="20" height="20"> + {else} + <img src="{$INTERFACE_REP}finished.gif" border="0" width="20" height="20"> + {/if} + </td> + </tr> + </table> + </a> + {else} + <a href="index1.php?module=suppr&id={$ENREGISTREMENT[enregistrement].num}"> + <table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{$COLOR}" abgcolor="{#COULEUR_ALINK#}"> + <tr height="20"> + <td align=center width="20" height="20" align="center" valign="middle"> + <img src="{$INTERFACE_REP}encours.gif" border="0" width="20" height="20"> + </td> + </tr> + </table> + </a> + {/if} + </td> + </tr> {if $smarty.section.enregistrement.last} </table> {/if} Modified: trunk/module/multiposte/enregistrement_add.tpl =================================================================== --- trunk/module/multiposte/enregistrement_add.tpl 2007-01-19 19:27:20 UTC (rev 66) +++ trunk/module/multiposte/enregistrement_add.tpl 2007-01-20 22:31:24 UTC (rev 67) @@ -1,13 +1,31 @@ {if $etape==3} {attribbouton touche="red" lien="add.php?etape=2"} Choisissez les date et heure du d\xE9but et de la fin de l'enregistrement :<br> <br> - <table width="450" border="0" cellpadding="0" cellspacing="0"><tr><td align=center width="150"><img src="{$INTERFACE_REP}heure_enregistrement.gif"></td> - <td align=center> - <form action="add.php" method="get"><input type=hidden name="etape" value="4"><input type=hidden name=chaine value="{$_GET.chaine}"> - <u>D\xE9but de l'enregistrement</u> : <br> <br>Le <input bgcolor="{#COULEUR_TEXTBOX#}" type=text name=deb_jour size=2> / <input bgcolor="{#COULEUR_TEXTBOX#}" type=text name=deb_mois size=2> \xE0 <input bgcolor="{#COULEUR_TEXTBOX#}" type=text name=deb_heure size=2> h <input bgcolor="{#COULEUR_TEXTBOX#}" type=text name=deb_min size=2> min - <br> <br><u>Fin de l'enregistrement</u> : <br> <br>Le <input bgcolor="{#COULEUR_TEXTBOX#}" type=text name=fin_jour size=2> / <input bgcolor="{#COULEUR_TEXTBOX#}" type=text name=fin_mois size=2> \xE0 <input bgcolor="{#COULEUR_TEXTBOX#}" type=text name=fin_heure size=2> h <input bgcolor="{#COULEUR_TEXTBOX#}" type=text name=fin_min size=2> min - <br> <br><input bgcolor="{#COULEUR_TEXTBOX#}" type=submit value="Valider les heures d'enregistrement"></form> - </td></tr></table> + <table width="450" border="0" cellpadding="0" cellspacing="0"> + <tr> + <td align=center width="150"> + <img src="{$INTERFACE_REP}heure_enregistrement.gif"> + </td> + <td align=center> + <form action="add.php" method="get"> + <input type=hidden name="etape" value="4"> + <input type=hidden name=chaine value="{$_GET.chaine}"> + <u>D\xE9but de l'enregistrement</u> : <br> + <br>Le + <input bgcolor="{#COULEUR_TEXTBOX#}" type=text name=deb_jour size=2 focused> / + <input bgcolor="{#COULEUR_TEXTBOX#}" type=text name=deb_mois size=2> + <br> <br> + De + <input bgcolor="{#COULEUR_TEXTBOX#}" type=text name=deb_heure size=2> h + <input bgcolor="{#COULEUR_TEXTBOX#}" type=text name=deb_min size=2> min \xE0 + <input bgcolor="{#COULEUR_TEXTBOX#}" type=text name=fin_heure size=2> h + <input bgcolor="{#COULEUR_TEXTBOX#}" type=text name=fin_min size=2> min + <br> <br> + <input bgcolor="{#COULEUR_TEXTBOX#}" type=submit value="Valider les heures d'enregistrement"> + </form> + </td> + </tr> + </table> <br> <br>Utilisez la petite croix rouge de la t\xE9l\xE9commande pour effacer un champ si vous voulez corriger une valeur. {else} Choisissez la chaine a enregistrer :<br> <br> @@ -23,7 +41,7 @@ {if $smarty.section.chaine.first} <table width="480" height="400" border="0" cellpadding="0" cellspacing="0"><tr> {/if} - <td width="96" height="80"><a href="add.php?etape=3&chaine={$CHAINE[chaine].id|urlencode}|{$CHAINE[chaine].nom}|{$CHAINE[chaine].num}"><table border="0" cellpadding="0" cellspacing="0" width="96" height="80" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="40"><td align=center width="96" height="40" valign="middle"><img width="36" height="36" border="0" src="{$CHAINE_REP}{$CHAINE[chaine].ico}"></td></tr><tr height="40"><td align=center width="96" height="40"><font size="1">{$CHAINE[chaine].nom}</font></td></tr></table></a></td> + <td width="96" height="80"><a href="add.php?etape=3&chaine={$CHAINE[chaine].id}|{$CHAINE[chaine].nom|urlencode}|{$CHAINE[chaine].num}"><table border="0" cellpadding="0" cellspacing="0" width="96" height="80" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="40"><td align=center width="96" height="40" valign="middle"><img width="36" height="36" border="0" src="{$CHAINE_REP}{$CHAINE[chaine].ico}"></td></tr><tr height="40"><td align=center width="96" height="40"><font size="1">{$CHAINE[chaine].nom}</font></td></tr></table></a></td> {if $smarty.section.chaine.iteration is div by 5 AND NOT $smarty.section.chaine.last} </tr><tr> {/if} Modified: trunk/module/multiposte/index1.php =================================================================== --- trunk/module/multiposte/index1.php 2007-01-19 19:27:20 UTC (rev 66) +++ trunk/module/multiposte/index1.php 2007-01-20 22:31:24 UTC (rev 67) @@ -11,52 +11,76 @@ array('lien'=>'/module/films/index1.php?directory='.urlencode($ini['multiposte']['multiposte']), 'nom'=>'Enregistr\xE9s', 'selected'=>0)); switch($module){ -case 'see': - $db = sqlite_open('../../_utilisateur/records.db', 0666); - $requete='SELECT * from records'; - $result = sqlite_query($db,$requete); - - $at=shell_exec('at'); +case 'suppr' : //arr\xEAt d'un enregistrement en cours + if(isset($_GET['id'])){ + $db = sqlite_open('../../_utilisateur/records.db', 0666); + $requete='SELECT * from records WHERE id='.$_GET['id']; + $result = sqlite_query($db,$requete); + $result = sqlite_fetch_array($result); + + $at=exec('at '.$result['task'].' /delete'); + $at.=exec('at '.$result['taskend'].' /delete'); + + + $requete='UPDATE records SET statut=\'Enregistr\xE9\' WHERE id='.$_GET['id']; + $result = sqlite_query($db,$requete); + sqlite_close($db); + $file1 = @file_get_contents("http://127.0.0.1:8082/lecteur/action.html?control=shutdown"); + + $META['refresh']= '2;url=index1.php?module=see'; - while($row = sqlite_fetch_array($result)){ - if(eregi(addslashes($row[fichierbat]),$at) or $row[statut]!="En attente" or 1==1){ - $chaine = explode("|",$row[chaine]); - $ENREGISTREMENT[]=array('num'=>$row[id], 'chaine'=>$chaine[1], 'd\xE9but'=>date("d/m/y H:i", $row[debut]), 'fin'=>date("d/m/y H:i", $row[fin]), 'statut'=>$row[statut]); - } - } - -sqlite_close($db); - -$LINK['red']='index1.php'; - -$smarty->assign('ENREGISTREMENT',$ENREGISTREMENT); -$smarty->assign('CONTENT',$smarty->fetch('enregistrement.tpl')); -$smarty->display('interface.tpl'); + $smarty->assign('AVERTISSEMENT',"Enregistrement interrompu"); + $smarty->display('avertissement.tpl'); + } break; case 'delete': -$db = sqlite_open('../../_utilisateur/records.db', 0666); -$requete='SELECT * from records WHERE id='.$_GET['id']; -$result = sqlite_query($db,$requete); -$result = sqlite_fetch_array($result); - -$at=exec('at '.$result['task'].' /delete'); -$at.=exec('at '.$result['taskend'].' /delete'); + if(isset($_GET['id'])){ + $db = sqlite_open('../../_utilisateur/records.db', 0666); + $requete='SELECT * from records WHERE id='.$_GET['id']; + $result = sqlite_query($db,$requete); + $result = sqlite_fetch_array($result); + $at=shell_exec('at'); + if(eregi(addslashes($result['fichierbat']),$at)) + { + $at=exec('at '.$result['task'].' /delete'); + $at.=exec('at '.$result['taskend'].' /delete'); + } -@unlink($result['fichierbat']); -@unlink(ereg_replace(".bat","-end.bat",$result['fichierbat'])); -$requete='DELETE from records WHERE id='.$_GET['id']; -$result = sqlite_query($db,$requete); + @unlink($result['fichierbat']); + @unlink(ereg_replace(".bat","-end.bat",$result['fichierbat'])); + $requete='DELETE from records WHERE id='.$_GET['id']; + $result = sqlite_query($db,$requete); -$META['refresh']= '2;url=index1.php?module=see'; + $META['refresh']= '2;url=index1.php?module=see'; -$smarty->assign('AVERTISSEMENT',"Suppression de l'enregistrement effectu\xE9e"); -$smarty->display('avertissement.tpl'); + $smarty->assign('AVERTISSEMENT',"Suppression de l'enregistrement effectu\xE9e"); + $smarty->display('avertissement.tpl'); -sqlite_close($db); + sqlite_close($db); + } break; +case 'see': + + $db = sqlite_open('../../_utilisateur/records.db', 0666); + $requete='SELECT * from records ORDER BY debut'; + $result = sqlite_query($db,$requete); + + while($row = sqlite_fetch_array($result)){ + $chaine = explode("|",$row[chaine]); + $dates = Cool_Date( $row[debut], $row[fin]); + $ENREGISTREMENT[]=array('num'=>$row[id], 'chaine'=>$chaine[1], 'dates'=>$dates, 'statut'=>$row[statut]); + } + sqlite_close($db); + $LINK['red']='index1.php'; + + $smarty->assign('ENREGISTREMENT',$ENREGISTREMENT); + $smarty->assign('CONTENT',$smarty->fetch('enregistrement.tpl')); + $smarty->display('interface.tpl'); +break; + default : $LINK['red']=$MODULE.'_menu/menu.php?cat=9'; $smarty->assign('CONTENT',$smarty->fetch('enregistrement.tpl')); @@ -64,6 +88,13 @@ break; } +function Cool_Date( $debut, $fin) { +$mois = array("janvier","f\xE9vrier","mars","avril","mai","juin","juillet","ao\xFBt","septembre","octobre","novembre","d\xE9cembre"); + if (date("d m", $debut) == date("d m",mktime(0,0,0,date('m'),date('d')-1,date('Y')))) $date_deb = "hier"; + elseif (date("d m", $debut) == date("d m")) $date_deb = "aujourd'hui"; + elseif (date("d m", $debut) == date("d m",mktime(0,0,0,date('m'),date('d')+1,date('Y')))) $date_deb = "demain"; + else $date_deb = 'le '.date("d", $debut) .' '. $mois[date("n", $debut)-1]; + return sprintf("%s de %s \xE0 %s", $date_deb, date("H:i", $debut),date("H:i", $fin)); +} - ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2007-01-06 11:42:51
|
Revision: 63 http://svn.sourceforge.net/easybox-mod/?rev=63&view=rev Author: aragornis Date: 2007-01-06 03:42:46 -0800 (Sat, 06 Jan 2007) Log Message: ----------- Suppression d'un bug sur la nouvelle barre d'avance Ajout du classement par id dans le catalogue vid?\195?\169o Remise en fonction du fond d'?\195?\169cran sur freebox v4 Mise ?\195?\160 jour des scanners pour faire des scans p?\195?\169riodiques des vid?\195?\169os avec recherche r?\195?\169guli?\195?\168re et mise ?\195?\160 jour r?\195?\169guli?\195?\168re des fiches film et acteurs Mise ?\195?\160 jour des librairies de r?\195?\169cup?\195?\169ration d'infos sur allocine Modified Paths: -------------- trunk/_framework/fonctions_partagees.inc.php trunk/_framework/lib/get_info.php trunk/configuration/bases.xml trunk/configuration/configajout.php trunk/configuration/configliste.php trunk/configuration/configmodif.php trunk/configuration/scan_amc.php trunk/configuration/scan_video.php trunk/http-vlc/lecteur/play-low.html trunk/http-vlc/lecteur/play-wifi.html trunk/http-vlc/lecteur/play.html trunk/module/films/catalogue.php trunk/module/films/catalogue_video.tpl trunk/module/films/films.tpl Modified: trunk/_framework/fonctions_partagees.inc.php =================================================================== --- trunk/_framework/fonctions_partagees.inc.php 2006-12-21 15:41:32 UTC (rev 62) +++ trunk/_framework/fonctions_partagees.inc.php 2007-01-06 11:42:46 UTC (rev 63) @@ -54,6 +54,34 @@ RETURN($result[0]['value']); } +//Programmer une action cron +function save_cron($timestamp, $exec){ +global $USER; + $db = sqlite_open($USER.'utilisateur.db', 0666); + sqlite_query($db,'INSERT INTO cron VALUES("","'.$timestamp.'",\''.sqlite_escape_string($exec).'\')'); + sqlite_close($db); +} + +//R\xE9cup\xE8re les crons \xE0 executer +function get_cron(){ +global $USER; + $db = sqlite_open($USER.'utilisateur.db', 0666); + $query = sqlite_query($db,'SELECT * FROM cron WHERE timestamp<='.time()); + $result = sqlite_fetch_all($query, SQLITE_ASSOC); + sqlite_close($db); + RETURN($result[0]['value']); +} + +//Supprime une action du cron +function del_cron($var){ +global $USER; + $db = sqlite_open($USER.'utilisateur.db', 0666); + $query = sqlite_query($db,'SELECT * FROM var WHERE var=\''.$var.'\' LIMIT 1'); + $result = sqlite_fetch_all($query, SQLITE_ASSOC); + sqlite_close($db); + RETURN($result[0]['value']); +} + //Supprime les variables de session function clean_vars(){ global $USER; @@ -200,6 +228,7 @@ $obj = null; } } + print_r($lect); RETURN($lect); } Modified: trunk/_framework/lib/get_info.php =================================================================== --- trunk/_framework/lib/get_info.php 2006-12-21 15:41:32 UTC (rev 62) +++ trunk/_framework/lib/get_info.php 2007-01-06 11:42:46 UTC (rev 63) @@ -242,24 +242,44 @@ $res['nom'] = $valeur[1]; //R\xE9cup\xE9ration de la date de naissance - $ereg = '<h4><div style="padding:10 0 0 0">(.{1,100})<\/h4><\/div><div style="padding:15 0 0 0">'; + $ereg = '<h4><div style="padding:10 0 0 0">(.{1,200})<\/h4><\/div><div style="padding:15 0 0 0">'; preg_match("/$ereg/s", $acteurrecherche, $valeur); + $searchstring = $valeur[1]; - $expl=explode(" ",trim($valeur[1])); - foreach($expl as $exp){ - $new.=trim($exp).' '; - } - - $ereg = 'N\xE9 le (.{1,18}) \xE0 (.{1,150})<br \/>'; - preg_match("/$ereg/s", trim($new), $valeur); + $ereg = 'N\xE9e? ((le|en) (.{1,18}))? \xE0 (.{1,150})'; + $found = preg_match("/$ereg/s", trim($searchstring), $valeur); + if(!$found){ + $ereg = 'N\xE9e? (le|en) (.{1,18})'; + preg_match("/$ereg/s", trim($searchstring), $valeur); + $valeur[4] = ''; + $valeur[3] = strip_tags($valeur[2]); + } + + //Activer pour debug + //file_put_contents('debug.txt', file_get_contents('debug.txt')."\n".' '.$valeur[0].' '.$res['nom']); + $monthes = array('Janvier'=>'1', 'F\xE9vrier'=>'2', 'Mars'=>'3', 'Avril'=>'4', 'Mai'=>'5', 'Juin'=>'6', 'Juillet'=>'7','Ao\xFBt'=>'8', 'Septembre'=>'9', 'Octobre'=>'10', 'Novembre'=>'11', 'D\xE9cembre'=>'12'); - $expl=explode(" ",trim($valeur[1])); - if(count($expl)==3) + $expl=explode(" ",trim($valeur[3])); + if(count($expl)==3){ $res['date_naissance'] = mktime(0,0,0,$monthes[$expl[1]],$expl[0],$expl[2]); - else + }elseif(count($expl)==1){ + $res['date_naissance'] = mktime(0,0,0,1,1,$expl[0]); + }else{ $res['date_naissance'] = 2; - $res['lieu_naissance'] = $valeur[2]; - + } + + // On ne garde que le d\xE9but de ce qui a \xE9t\xE9 extrait. On supprime la partie apr\xE8s le retour \xE0 la ligne possible avec deux tags diff\xE9rents + //(merci pour la coh\xE9rence du code chez allocin\xE9 !) + $pos = stripos($valeur[4], '<br>'); + $pos2 = stripos($valeur[4], '<br />'); + if(($pos===false) AND ($pos2===false)){ + $res['lieu_naissance'] = $valeur[4]; + }elseif(($pos===false) OR ($pos2===false)){ + $res['lieu_naissance'] = substr($valeur[4], 0, max($pos,$pos2)); + }else{ + $res['lieu_naissance'] = substr($valeur[4], 0, min($pos,$pos2)); + } + // Photo de la personnalit\xE9 $ereg = '<td valign="top" style="padding:0 10 10 0" width="120"><img src="(.{1,200})" width="120" height="160" border="0">'; preg_match("/$ereg/s", $acteurrecherche, $valeur); @@ -274,9 +294,14 @@ $ereg = '<div><h4><b>(.{1,250})<h4><div style="padding:10 0 0 0">'; preg_match("/$ereg/s", $acteurrecherche, $valeur); $res['statut'] = trim(strip_tags($valeur[1])); + + if(empty($res['statut'])){ + $ereg = '<div><h4><b>(.{1,250})<\/b><\/h4><\/div><h4>'; + preg_match("/$ereg/s", $acteurrecherche, $valeur); + $res['statut'] = trim(strip_tags($valeur[1])); + } - RETURN $res; }else{ RETURN 'erreur'; Modified: trunk/configuration/bases.xml =================================================================== --- trunk/configuration/bases.xml 2006-12-21 15:41:32 UTC (rev 62) +++ trunk/configuration/bases.xml 2007-01-06 11:42:46 UTC (rev 63) @@ -5,11 +5,11 @@ <nom>video.db</nom> <table> <name>film</name> - <syntax>CREATE TABLE film ( id INTEGER NOT NULL PRIMARY KEY DEFAULT "0" , name TEXT , dir TEXT , Synopsis TEXT , img TEXT , sortie INT , realisateur TEXT , avec TEXT , film TEXT , genre TEXT , Duree TEXT , production TEXT , critique_visiteurs TEXT , critique_presse TEXT , ba TEXT )</syntax> + <syntax>CREATE TABLE film ( id INTEGER NOT NULL PRIMARY KEY DEFAULT "0" , name TEXT , dir TEXT , Synopsis TEXT , img TEXT , sortie INT , realisateur TEXT , avec TEXT , film TEXT , genre TEXT , Duree TEXT , production TEXT , critique_visiteurs TEXT , critique_presse TEXT , ba TEXT , auto INTEGER , last_update INTEGER)</syntax> </table> <table> <name>celebrite</name> - <syntax>CREATE TABLE celebrite ( id INTEGER NOT NULL PRIMARY KEY DEFAULT "0" , nom TEXT , date_naissance INT , lieu_naissance TEXT , img TEXT , bio INT , statut TEXT )</syntax> + <syntax>CREATE TABLE celebrite ( id INTEGER NOT NULL PRIMARY KEY DEFAULT "0" , nom TEXT , date_naissance INT , lieu_naissance TEXT , img TEXT , bio INT , statut TEXT , last_update INTEGER)</syntax> </table> </base> Modified: trunk/configuration/configajout.php =================================================================== --- trunk/configuration/configajout.php 2006-12-21 15:41:32 UTC (rev 62) +++ trunk/configuration/configajout.php 2007-01-06 11:42:46 UTC (rev 63) @@ -1,34 +1,10 @@ <? $db = sqlite_open('../_utilisateur/video.db', 0666); -if(!@sqlite_query($db,"SELECT id FROM film")){ - $requete='SELECT * from film ORDER BY name asc'; - $result = sqlite_query($db,$requete); - sqlite_query($db,'DROP TABLE film;'); - sqlite_query($db,'CREATE TABLE film ( id INTEGER NOT NULL PRIMARY KEY DEFAULT "0" , name TEXT , dir TEXT , Synopsis TEXT , img TEXT , sortie TEXT , realisateur TEXT , avec TEXT , film TEXT , genre TEXT , Duree TEXT , production TEXT );'); - while ($row = sqlite_fetch_array($result)) { - sqlite_query($db,'INSERT INTO film VALUES (NULL,\''.sqlite_escape_string($row[name]).'\',\''.sqlite_escape_string($row[dir]).'\',\''.sqlite_escape_string($row[Synopsis]).'\',\''.sqlite_escape_string($row[img]).'\',\''.sqlite_escape_string($row[sortie]).'\',\''.sqlite_escape_string($row[realisateur]).'\',\''.sqlite_escape_string($row[avec]).'\',\''.sqlite_escape_string($row[film]).'\',\''.sqlite_escape_string($row[genre]).'\',\''.sqlite_escape_string($row[Duree]).'\',\''.sqlite_escape_string($row[production]).'\');'); - } -} -if (!sqlite_table_exists($db, "film")){ - sqlite_query($db, - 'CREATE TABLE film ( - id INTEGER NOT NULL PRIMARY KEY DEFAULT "0" , - name TEXT , dir TEXT , - Synopsis TEXT , - img TEXT , - sortie TEXT , - realisateur TEXT , - avec TEXT , - film TEXT , - genre TEXT , - Duree TEXT , - production TEXT - ) ; '); -} if($_GET['supid']!=""){ sqlite_query($db,'DELETE FROM film WHERE ROWID = '.$_GET['supid'].''); } + echo' <center><H1>Gestion de la base de donn\xE9es des films</H1><br><a href="index1.php">Retour \xE0 la configuration</a> - <a href="index1.php?page=53">Retour \xE0 la liste</a></center><br><br> <center><table widht="800" cellspacing="0" cellpadding="0"><tr><td align=center>'; @@ -49,7 +25,9 @@ \''.sqlite_escape_string($_REQUEST['production']).'\', \''.sqlite_escape_string($_REQUEST['notevis']).'\', \''.sqlite_escape_string($_REQUEST['notecri']).'\', - \'\')'; + \'\', + \''.sqlite_escape_string($_REQUEST['auto']).'\', + \'0\')'; $result = sqlite_query($db,$requete); echo 'votre film a bien \xE9t\xE9 ajout\xE9.<br> <a href="index1.php?page=54">En ajout\xE9 un autre.</a><br> @@ -96,7 +74,9 @@ <br><u>Synopsis</u><br> <textarea rows="5" cols="60" name="Synopsis" style="border: thin outset;font-size: 12px;"></textarea><br> <br><u>Url de l\'image</u><br> - <textarea rows="2" cols="60" name="img" style="border: thin outset;font-size: 12px;"></textarea><br><br> + <textarea rows="2" cols="60" name="img" style="border: thin outset;font-size: 12px;"></textarea><br> + <input type="checkbox" name="auto" value="1">Cochez cette case si vous ne voulez pas qu\'Easybox r\xE9cup\xE8re automatiquement des informations pour ce film et \xE9crase les donn\xE9es fournies + <br><br> <input type="submit" style="border: thin outset;font-size: 9px;" value="Ajouter la fiche du film"> </form><br><br>'; echo'</td></tr></table></center>'; Modified: trunk/configuration/configliste.php =================================================================== --- trunk/configuration/configliste.php 2006-12-21 15:41:32 UTC (rev 62) +++ trunk/configuration/configliste.php 2007-01-06 11:42:46 UTC (rev 63) @@ -14,35 +14,10 @@ delete_all(); } - -if (!sqlite_table_exists($db, "film")){ - sqlite_query($db, - 'CREATE TABLE film ( - id INTEGER NOT NULL PRIMARY KEY DEFAULT "0" , - name TEXT , dir TEXT , - Synopsis TEXT , - img TEXT , - sortie TEXT , - realisateur TEXT , - avec TEXT , - film TEXT , - genre TEXT , - Duree TEXT , - production TEXT - ) ; '); -} -if(!@sqlite_query($db,"SELECT id FROM film")){ - $requete='SELECT * from film ORDER BY name asc'; - $result = sqlite_query($db,$requete); - sqlite_query($db,'DROP TABLE film;'); - sqlite_query($db,'CREATE TABLE film ( id INTEGER NOT NULL PRIMARY KEY DEFAULT "0" , name TEXT , dir TEXT , Synopsis TEXT , img TEXT , sortie TEXT , realisateur TEXT , avec TEXT , film TEXT , genre TEXT , Duree TEXT , production TEXT );'); - while ($row = sqlite_fetch_array($result)) { - sqlite_query($db,'INSERT INTO film VALUES (NULL,\''.sqlite_escape_string($row[name]).'\',\''.sqlite_escape_string($row[dir]).'\',\''.sqlite_escape_string($row[Synopsis]).'\',\''.sqlite_escape_string($row[img]).'\',\''.sqlite_escape_string($row[sortie]).'\',\''.sqlite_escape_string($row[realisateur]).'\',\''.sqlite_escape_string($row[avec]).'\',\''.sqlite_escape_string($row[film]).'\',\''.sqlite_escape_string($row[genre]).'\',\''.sqlite_escape_string($row[Duree]).'\',\''.sqlite_escape_string($row[production]).'\');'); - } -} if($_GET['supid']!=""){ sqlite_query($db,'DELETE FROM film WHERE ROWID = '.$_GET['supid'].''); } + echo '<center> <H1>Gestion de la base de donn\xE9es des films</H1><br><a href="index1.php">Retour \xE0 la configuration</a> - <a href="index1.php?page=54">Ajouter un film</a> - <a href="index1.php?page=53&deleteall=1">Purger la base de donn\xE9es</a><br> <table width="841"> Modified: trunk/configuration/configmodif.php =================================================================== --- trunk/configuration/configmodif.php 2006-12-21 15:41:32 UTC (rev 62) +++ trunk/configuration/configmodif.php 2007-01-06 11:42:46 UTC (rev 63) @@ -11,7 +11,7 @@ $info=Array(); $info['synopsis'] = "Aucune information"; } else { - sqlite_query($db,'UPDATE film SET Synopsis=\''.sqlite_escape_string($info['synopsis']).'\', img=\''.sqlite_escape_string($info['image']).'\' , sortie=\''.sqlite_escape_string($info['date_sortie']).'\' , realisateur=\''.sqlite_escape_string($info['realisateur']).'\' , avec=\''.sqlite_escape_string($info['acteurs']).'\' , film=\''.sqlite_escape_string($info['nationalite']).'\' , genre=\''.sqlite_escape_string($info['genre']).'\' , Duree=\''.sqlite_escape_string($info['duree']).'\' , production=\''.sqlite_escape_string($info['anne_prod']).'\' , critique_visiteurs = \''.sqlite_escape_string($info['critique_visiteurs']).'\' , critique_presse = \''.sqlite_escape_string($info['critique_presse']).'\' WHERE id='.$resultat[0]['id']); + sqlite_query($db,'UPDATE film SET Synopsis=\''.sqlite_escape_string($info['synopsis']).'\', img=\''.sqlite_escape_string($info['image']).'\' , sortie=\''.sqlite_escape_string($info['date_sortie']).'\' , realisateur=\''.sqlite_escape_string($info['realisateur']).'\' , avec=\''.sqlite_escape_string($info['acteurs']).'\' , film=\''.sqlite_escape_string($info['nationalite']).'\' , genre=\''.sqlite_escape_string($info['genre']).'\' , Duree=\''.sqlite_escape_string($info['duree']).'\' , production=\''.sqlite_escape_string($info['anne_prod']).'\' , critique_visiteurs = \''.sqlite_escape_string($info['critique_visiteurs']).'\' , critique_presse = \''.sqlite_escape_string($info['critique_presse']).'\' , auto=\'1\' , last_update=\''.time().'\' WHERE id='.$resultat[0]['id']); } echo '<meta http-equiv="refresh" content="0;url=index1.php?page=55&get_info=0&id='.$_GET['id'].'">'; sqlite_close($db); @@ -19,10 +19,9 @@ // Effacement des infos du films elseif($_GET['get_info']==-1){ $db = sqlite_open('../_utilisateur/video.db', 0666); - //On r\x82cup\x8Are les infos sur allocin\x82 pour chaque film $info=Array(); $info['synopsis'] = "Informations effac\xE9es"; - $requete= 'UPDATE film SET Synopsis=\''.sqlite_escape_string($info['synopsis']).'\', img=\'\' , sortie=\'\' , realisateur=\'\' , avec=\'\' , film=\'\' , genre=\'\' , Duree=\'\' , production=\'\' , critique_visiteurs = \'0\' , critique_presse = \'0\' WHERE id='.$_GET['id']; + $requete= 'UPDATE film SET Synopsis=\''.sqlite_escape_string($info['synopsis']).'\', img=\'\' , sortie=\'\' , realisateur=\'\' , avec=\'\' , film=\'\' , genre=\'\' , Duree=\'\' , production=\'\' , critique_visiteurs = \'0\' , critique_presse = \'0\' , auto=\'0\' , last_update=\''.time().'\' WHERE id='.$_GET['id']; sqlite_query($db,$requete); echo '<meta http-equiv="refresh" content="0;url=index1.php?page=55&get_info=0&id='.$_GET['id'].'">'; @@ -41,7 +40,7 @@ $info=Array(); $info['synopsis'] = "Aucune information"; } else { - sqlite_query($db,'UPDATE film SET Synopsis=\''.sqlite_escape_string($info['synopsis']).'\', img=\''.sqlite_escape_string($info['image']).'\' , sortie=\''.sqlite_escape_string($info['date_sortie']).'\' , realisateur=\''.sqlite_escape_string($info['realisateur']).'\' , avec=\''.sqlite_escape_string($info['acteurs']).'\' , film=\''.sqlite_escape_string($info['nationalite']).'\' , genre=\''.sqlite_escape_string($info['genre']).'\' , Duree=\''.sqlite_escape_string($info['duree']).'\' , production=\''.sqlite_escape_string($info['anne_prod']).'\' , critique_visiteurs = \''.sqlite_escape_string($info['critique_visiteurs']).'\' , critique_presse = \''.sqlite_escape_string($info['critique_presse']).'\' WHERE id='.$resultat[0]['id']); + sqlite_query($db,'UPDATE film SET Synopsis=\''.sqlite_escape_string($info['synopsis']).'\', img=\''.sqlite_escape_string($info['image']).'\' , sortie=\''.sqlite_escape_string($info['date_sortie']).'\' , realisateur=\''.sqlite_escape_string($info['realisateur']).'\' , avec=\''.sqlite_escape_string($info['acteurs']).'\' , film=\''.sqlite_escape_string($info['nationalite']).'\' , genre=\''.sqlite_escape_string($info['genre']).'\' , Duree=\''.sqlite_escape_string($info['duree']).'\' , production=\''.sqlite_escape_string($info['anne_prod']).'\' , critique_visiteurs = \''.sqlite_escape_string($info['critique_visiteurs']).'\' , critique_presse = \''.sqlite_escape_string($info['critique_presse']).'\' , auto=\'0\' , last_update=\''.time().'\' WHERE id='.$resultat[0]['id']); } echo '<meta http-equiv="refresh" content="0;url=index1.php?page=55&get_info=0&id='.$_GET['id'].'">'; @@ -58,7 +57,7 @@ $info=Array(); $info['synopsis'] = "Aucune information"; } else { - sqlite_query($db,'UPDATE film SET Synopsis=\''.sqlite_escape_string($info['synopsis']).'\', img=\''.sqlite_escape_string($info['image']).'\' , sortie=\''.sqlite_escape_string($info['date_sortie']).'\' , realisateur=\''.sqlite_escape_string($info['realisateur']).'\' , avec=\''.sqlite_escape_string($info['acteurs']).'\' , film=\''.sqlite_escape_string($info['nationalite']).'\' , genre=\''.sqlite_escape_string($info['genre']).'\' , Duree=\''.sqlite_escape_string($info['duree']).'\' , production=\''.sqlite_escape_string($info['anne_prod']).'\' WHERE id='.$resultat[0]['id']); + sqlite_query($db,'UPDATE film SET Synopsis=\''.sqlite_escape_string($info['synopsis']).'\', img=\''.sqlite_escape_string($info['image']).'\' , sortie=\''.sqlite_escape_string($info['date_sortie']).'\' , realisateur=\''.sqlite_escape_string($info['realisateur']).'\' , avec=\''.sqlite_escape_string($info['acteurs']).'\' , film=\''.sqlite_escape_string($info['nationalite']).'\' , genre=\''.sqlite_escape_string($info['genre']).'\' , Duree=\''.sqlite_escape_string($info['duree']).'\' , production=\''.sqlite_escape_string($info['anne_prod']).'\' , auto=\'0\' , last_update=\''.time().'\' WHERE id='.$resultat[0]['id']); } echo '<meta http-equiv="refresh" content="0;url=index1.php?page=55&get_info=0&id='.$_GET['id'].'">'; @@ -87,8 +86,10 @@ Duree = \''.sqlite_escape_string($_REQUEST['Duree']).'\' , production = \''.sqlite_escape_string($_REQUEST['production']).'\', critique_visiteurs = \''.sqlite_escape_string($_REQUEST['notevis']).'\', - critique_presse = \''.sqlite_escape_string($_REQUEST['notecri']).'\' - WHERE ROWID = '.$_REQUEST['id']; + critique_presse = \''.sqlite_escape_string($_REQUEST['notecri']).'\', + auto=\''.sqlite_escape_string($_REQUEST['auto']).'\' , + last_update=\''.time().'\' + WHERE ROWID = '.$_REQUEST['id']; $result = sqlite_query($db,$requete); } $result = sqlite_array_query($db, 'SELECT * from film where id = '.$_GET['id'], SQLITE_ASSOC); @@ -136,7 +137,8 @@ <textarea rows="5" style="border: thin outset;font-size: 12px;" cols="60" name="Synopsis">'.stripslashes($entry['Synopsis']).'</textarea><br> <br><u>Url de l\'image</u><br> <textarea rows="2" style="border: thin outset;font-size: 12px;" cols="60" name="img">'.stripslashes($entry['img']).'</textarea><br> - <br><center> + <input type="checkbox" name="auto" value="1">Cochez cette case si vous ne voulez pas qu\'Easybox r\xE9cup\xE8re automatiquement des informations pour ce film et \xE9crase les donn\xE9es fournies + <br><br><center> <a href="index1.php?page=55&get_info=1&id='.$_REQUEST['id'].'">Mettre \xE0 jour les informations depuis AlloCin\xE9 (en fonction du titre actuellement rentr\xE9)</a> - <a href="index1.php?page=55&get_info=-1&id='.$_REQUEST['id'].'">Effacer toutes les informations actuelles sur ce film</a><br> <input type="submit" style="border: thin outset;font-size: 9px;" value="Mettre \xE0 jour les informations depuis AlloCin\xE9 avec la fiche du film ayant l\'id"> <input type="text" style="border: thin outset;font-size: 9px;" name="num_allocine" value=""><br> <br> Modified: trunk/configuration/scan_amc.php =================================================================== --- trunk/configuration/scan_amc.php 2006-12-21 15:41:32 UTC (rev 62) +++ trunk/configuration/scan_amc.php 2007-01-06 11:42:46 UTC (rev 63) @@ -132,7 +132,9 @@ \''.sqlite_escape_string($year).'\', \''.sqlite_escape_string($rating).'\', \''.sqlite_escape_string($rating).'\', - \'\')'; + \'\', + \'0\', + \'0\')'; sqlite_query($db,$sSql); } } @@ -220,4 +222,4 @@ } return $data; } -?> \ No newline at end of file +?> Modified: trunk/configuration/scan_video.php =================================================================== --- trunk/configuration/scan_video.php 2006-12-21 15:41:32 UTC (rev 62) +++ trunk/configuration/scan_video.php 2007-01-06 11:42:46 UTC (rev 63) @@ -5,11 +5,11 @@ include("../_framework/lib/get_info.php"); -$ext = $ini[explorateur][ext]; -$ext_noscan = $ini[explorateur][ext_noscan]; -$nettoyer = $ini[explorateur][nettoyer]; +$ext = $ini['explorateur']['ext']; +$ext_noscan = $ini['explorateur']['ext_noscan']; +$nettoyer = $ini['explorateur']['nettoyer']; $nettoyer = explode(',',$nettoyer); -$afficher_fichier_cache = $ini[explorateur][afficher_fichier_cache]; +$afficher_fichier_cache = $ini['explorateur']['afficher_fichier_cache']; $extv=explode(",",$ext); $ext_NoScanExploded=explode(",",$ext_noscan); @@ -91,7 +91,6 @@ sqlite_query($db, 'DELETE FROM film WHERE id='.$entry['id']); } } - if (count($items) >= 1) { $i=0; @@ -101,7 +100,7 @@ $result=sqlite_query($db, 'SELECT * FROM film WHERE name="'.ucwords(strtolower(trim(str_ireplace($nettoyer,' ',basename(substr($file,0,strrpos($file,"."))))))).'"'); $rows = sqlite_num_rows($result); if($rows=="0"){ - sqlite_query($db,'INSERT INTO film VALUES(NULL,\''.sqlite_escape_string(ucwords(strtolower(trim(str_ireplace($nettoyer,' ',basename(substr($file,0,strrpos($file,".")))))))).'\', \''.sqlite_escape_string($file).'\', NULL, NULL, \'2\', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)'); + sqlite_query($db,'INSERT INTO film VALUES(NULL,\''.sqlite_escape_string(ucwords(strtolower(trim(str_ireplace($nettoyer,' ',basename(substr($file,0,strrpos($file,".")))))))).'\', \''.sqlite_escape_string($file).'\', NULL, NULL, \'2\', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 0)'); } } @@ -112,37 +111,52 @@ Liste des fichiers cr\xE9\xE9e... R\xE9cup\xE9ration des informations depuis allocin\xE9 (0%) </font><?php }elseif($_GET['get_info']==1){ - //On r\xE9cup\xE8re les infos sur allocin\xE9 pour chaque film - $result=sqlite_query($db, 'SELECT id,name FROM film WHERE Synopsis IS NULL'); + + + $result2=sqlite_query($db, 'SELECT id FROM film'); $total = sqlite_num_rows($result2); + + //On r\xE9cup\xE8re les infos sur allocin\xE9 pour chaque film + if($_GET['research']==1){ + $result=sqlite_query($db, 'SELECT id,name FROM film WHERE auto=1 ORDER BY last_update ASC limit 6'); + }else{ + $result=sqlite_query($db, 'SELECT id,name FROM film WHERE auto=1 AND Synopsis IS NULL limit 4'); + $resultbis=sqlite_query($db, 'SELECT id,name FROM film WHERE auto=1 AND Synopsis IS NULL'); + $num_rows2 = sqlite_num_rows($resultbis); + } + $num_rows = sqlite_num_rows($result); $resultat = sqlite_fetch_all($result, SQLITE_ASSOC); - for($i=0; $i<=min(($num_rows-1),3); $i++){ - $info=info_allocine($resultat[$i]['name'], true); - if($info == "Aucun film trouv\xE9" OR $info == "erreur"){ - $info=Array(); - $info['synopsis'] = "Aucune information"; - $info['date_sortie'] = 2; - } - if($info['image']=='') - $info['image'] = 'http://a69.g.akamai.net/n/69/10688/v1/img5.allocine.fr/acmedia/skin/AlloCineV5/habillage/AffichetteAllocine.gif'; - - sqlite_query($db,'UPDATE film SET Synopsis=\''.sqlite_escape_string($info['synopsis']).'\', img=\''.sqlite_escape_string($info['image']).'\' , sortie=\''.sqlite_escape_string($info['date_sortie']).'\' , realisateur=\''.sqlite_escape_string($info['realisateur']).'\' , avec=\''.sqlite_escape_string($info['acteurs']).'\' , film=\''.sqlite_escape_string($info['nationalite']).'\' , genre=\''.sqlite_escape_string($info['genre']).'\' , Duree=\''.sqlite_escape_string($info['duree']).'\' , production=\''.sqlite_escape_string($info['anne_prod']).'\' , critique_visiteurs=\''.sqlite_escape_string($info['critique_visiteurs']).'\' , critique_presse=\''.sqlite_escape_string($info['critique_presse']).'\' , ba=\''.sqlite_escape_string($info['ba']).'\' WHERE id='.$resultat[$i]['id']); - - $acteurs = explode(',', trim($info['acteurs'])); - - foreach($acteurs as $celebrite){ - if(sqlite_num_rows(sqlite_query($db, 'SELECT * FROM celebrite WHERE nom="'.trim($celebrite).'"'))=="0"){ - sqlite_query($db,'INSERT INTO celebrite VALUES(NULL,\''.sqlite_escape_string(trim($celebrite)).'\', NULL, NULL, NULL, NULL, NULL)'); + for($i=0; $i<$num_rows; $i++){ + $info=info_allocine($resultat[$i]['name'], true); + if($info == "Aucun film trouv\xE9" OR $info == "erreur"){ + $info=Array(); + $info['synopsis'] = "Aucune information"; + $info['date_sortie'] = 2; } + + if($info['image']=='') + $info['image'] = 'http://a69.g.akamai.net/n/69/10688/v1/img5.allocine.fr/acmedia/skin/AlloCineV5/habillage/AffichetteAllocine.gif'; + + sqlite_query($db,'UPDATE film SET Synopsis=\''.sqlite_escape_string($info['synopsis']).'\', img=\''.sqlite_escape_string($info['image']).'\' , sortie=\''.sqlite_escape_string($info['date_sortie']).'\' , realisateur=\''.sqlite_escape_string($info['realisateur']).'\' , avec=\''.sqlite_escape_string($info['acteurs']).'\' , film=\''.sqlite_escape_string($info['nationalite']).'\' , genre=\''.sqlite_escape_string($info['genre']).'\' , Duree=\''.sqlite_escape_string($info['duree']).'\' , production=\''.sqlite_escape_string($info['anne_prod']).'\' , critique_visiteurs=\''.sqlite_escape_string($info['critique_visiteurs']).'\' , critique_presse=\''.sqlite_escape_string($info['critique_presse']).'\' , ba=\''.sqlite_escape_string($info['ba']).'\' , last_update=\''.time().'\' WHERE id='.$resultat[$i]['id']); + + $acteurs = explode(',', trim($info['acteurs'])); + + if(! empty($acteurs)){ + foreach($acteurs as $celebrite){ + if(sqlite_num_rows(sqlite_query($db, 'SELECT * FROM celebrite WHERE nom="'.trim($celebrite).'"'))=="0"){ + sqlite_query($db,'INSERT INTO celebrite VALUES(NULL,\''.sqlite_escape_string(trim($celebrite)).'\', NULL, NULL, NULL, NULL, NULL, 0)'); + } + } + } + if(! empty($info['realisateur'])){ + if(sqlite_num_rows(sqlite_query($db, 'SELECT * FROM celebrite WHERE nom="'.trim($info['realisateur']).'"'))=="0"){ + sqlite_query($db,'INSERT INTO celebrite VALUES(NULL,\''.sqlite_escape_string(trim($info['realisateur'])).'\', NULL, NULL, NULL, NULL, NULL, 0)'); + } + } } - - if(sqlite_num_rows(sqlite_query($db, 'SELECT * FROM celebrite WHERE nom="'.trim($info['realisateur']).'"'))=="0"){ - sqlite_query($db,'INSERT INTO celebrite VALUES(NULL,\''.sqlite_escape_string(trim($info['realisateur'])).'\', NULL, NULL, NULL, NULL, NULL)'); - } - } if($num_rows<4){ @@ -151,29 +165,39 @@ echo '<br><a href="index1.php?page=4">Pour arr\xE9ter le scan, cliquez ici</a>'; }else{ echo '<meta http-equiv="refresh" content="0;url=index1.php?page=52&get_info=1">'."\n"; - echo '<font size="3">R\xE9cup\xE9ration des informations depuis allocin\xE9 ('.round((($total-($num_rows-3))/$total)*100).'%)</font>'; + echo '<font size="3">R\xE9cup\xE9ration des informations depuis allocin\xE9 ('.round((($total-($num_rows2-4))/$total)*100).'%)</font>'; echo '<br><a href="index1.php?page=4">Pour arr\xE9ter le scan, cliquez ici</a>'; } }elseif($_GET['get_celebrites']==1){ + //On r\xE9cup\xE8re les infos sur allocin\xE9 pour chaque celebrit\xE9 - //On r\xE9cup\xE8re les infos sur allocin\xE9 pour chaque celebrit\xE9 - $result=sqlite_query($db, 'SELECT id,nom FROM celebrite WHERE bio IS NULL'); $result2=sqlite_query($db, 'SELECT id FROM celebrite'); $total = sqlite_num_rows($result2); + + if($_GET['research']==1){ + $result=sqlite_query($db, 'SELECT id,nom FROM celebrite ORDER BY last_update ASC limit 10'); + }else{ + $result=sqlite_query($db, 'SELECT id,nom FROM celebrite WHERE bio IS NULL limit 6'); + $resultbis=sqlite_query($db, 'SELECT id,nom FROM celebrite WHERE bio IS NULL'); + $num_rows2 = sqlite_num_rows($resultbis); + } + $num_rows = sqlite_num_rows($result); $resultat = sqlite_fetch_all($result, SQLITE_ASSOC); - for($i=0; $i<=min(($num_rows-1),5); $i++){ + + + for($i=0; $i<$num_rows; $i++){ $info=info_personnalite($resultat[$i]['nom']); if($info == "erreur"){ $info=Array(); $info['bio'] = "Aucune information"; $info['date_naissance'] = 2; } - + if($info['image']=='') $info['image'] = 'http://a69.g.akamai.net/n/69/10688/v1/img5.allocine.fr/acmedia/skin/AlloCineV5/habillage/AffichetteAllocine.gif'; - sqlite_query($db,'UPDATE celebrite SET date_naissance=\''.sqlite_escape_string($info['date_naissance']).'\', lieu_naissance=\''.sqlite_escape_string($info['lieu_naissance']).'\', img=\''.sqlite_escape_string($info['image']).'\' , bio=\''.sqlite_escape_string($info['biographie']).'\' , statut=\''.sqlite_escape_string($info['statut']).'\' WHERE id='.$resultat[$i]['id']); + sqlite_query($db,'UPDATE celebrite SET date_naissance=\''.sqlite_escape_string($info['date_naissance']).'\', lieu_naissance=\''.sqlite_escape_string($info['lieu_naissance']).'\', img=\''.sqlite_escape_string($info['image']).'\' , bio=\''.sqlite_escape_string($info['biographie']).'\' , statut=\''.sqlite_escape_string($info['statut']).'\' , last_update=\''.time().'\' WHERE id='.$resultat[$i]['id']); } if($num_rows<6){ @@ -183,7 +207,7 @@ <? }else{ echo '<meta http-equiv="refresh" content="0;url=index1.php?page=52&get_celebrites=1">'."\n"; - echo '<font size="3">R\xE9cup\xE9ration des informations sur les c\xE9l\xE9brit\xE9s ('.round((($total-($num_rows-5))/$total)*100).'%)</font>'; + echo '<font size="3">R\xE9cup\xE9ration des informations sur les c\xE9l\xE9brit\xE9s ('.round((($total-($num_rows2-6))/$total)*100).'%)</font>'; echo '<br><a href="index1.php?page=4">Pour arr\xE9ter le scan, cliquez ici</a>'; } Modified: trunk/http-vlc/lecteur/play-low.html =================================================================== --- trunk/http-vlc/lecteur/play-low.html 2006-12-21 15:41:32 UTC (rev 62) +++ trunk/http-vlc/lecteur/play-low.html 2007-01-06 11:42:46 UTC (rev 63) @@ -62,7 +62,7 @@ <vlc id="rpn" param1="vlc_stop" /> <vlc id="rpn" param1="playlist_empty" /> <vlc id="rpn" param1="'temps' url_extract 'fake-duration' vlc_config_set" /> - <vlc id="rpn" param1="'fake: :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=1024 :sout-transcode-acodec=mpga :sout-transcode-ab=128 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :fake-aspect-ratio=4:3 :fake-keep-ar :fake-file=' mrl value strcat mrl value playlist_add vlc_play" /> + <vlc id="rpn" param1="'fake: :sout=#transcode:std :sout-transcode-width=480 :sout-transcode-height=576 :sout-transcode-vb=1024 :sout-transcode-vcodec=mp2v :sout-transcode-vfilter=deinterlace :sout-deinterlace-mode=blend :sout-transcode-vb=9000 :sout-transcode-vcodec=mp2v :sout-ffmpeg-keyint=8 :sout-ffmpeg-interlace :no-sout-ffmpeg-interlace-me :fake-aspect-ratio=4:3 :fake-keep-ar :fake-deinterlace :deinterlace-mode=blend :fake-file=' mrl value strcat mrl value playlist_add vlc_play" /> <vlc id="end" /> @@ -72,7 +72,7 @@ <vlc id="rpn" param1="0 random 'VLC_OBJECT_PLAYLIST' vlc_var_set"/> <vlc id="rpn" param1="0 repeat 'VLC_OBJECT_PLAYLIST' vlc_var_set"/> <vlc id="rpn" param1="'temps' url_extract 'fake-duration' vlc_config_set" /> - <vlc id="rpn" param1="'fake: :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=1024 :sout-transcode-acodec=mpga :sout-transcode-ab=128 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :fake-aspect-ratio=4:3 :fake-keep-ar :fake-file=' mrl value strcat mrl value playlist_add" /> + <vlc id="rpn" param1="'fake: :sout=#transcode:std :sout-transcode-width=480 :sout-transcode-height=576 :sout-transcode-vb=1024 :sout-transcode-vcodec=mp2v :sout-transcode-vfilter=deinterlace :sout-deinterlace-mode=blend :sout-transcode-vb=9000 :sout-transcode-vcodec=mp2v :sout-ffmpeg-keyint=8 :sout-ffmpeg-interlace :no-sout-ffmpeg-interlace-me :fake-aspect-ratio=4:3 :fake-keep-ar :fake-deinterlace :deinterlace-mode=blend :fake-file=' mrl value strcat mrl value playlist_add" /> <vlc id="end" /> Modified: trunk/http-vlc/lecteur/play-wifi.html =================================================================== --- trunk/http-vlc/lecteur/play-wifi.html 2006-12-21 15:41:32 UTC (rev 62) +++ trunk/http-vlc/lecteur/play-wifi.html 2007-01-06 11:42:46 UTC (rev 63) @@ -62,7 +62,7 @@ <vlc id="rpn" param1="vlc_stop" /> <vlc id="rpn" param1="playlist_empty" /> <vlc id="rpn" param1="'temps' url_extract 'fake-duration' vlc_config_set" /> - <vlc id="rpn" param1="'fake: :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=2048 :sout-transcode-acodec=mpga :sout-transcode-ab=128 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :fake-aspect-ratio=4:3 :fake-keep-ar :fake-file=' mrl value strcat mrl value playlist_add vlc_play" /> + <vlc id="rpn" param1="'fake: :sout=#transcode:std :sout-transcode-width=480 :sout-transcode-height=576 :sout-transcode-vb=2048 :sout-transcode-vcodec=mp2v :sout-transcode-vfilter=deinterlace :sout-deinterlace-mode=blend :sout-transcode-vb=9000 :sout-transcode-vcodec=mp2v :sout-ffmpeg-keyint=8 :sout-ffmpeg-interlace :no-sout-ffmpeg-interlace-me :fake-aspect-ratio=4:3 :fake-keep-ar :fake-deinterlace :deinterlace-mode=blend :fake-file=' mrl value strcat mrl value playlist_add vlc_play" /> <vlc id="end" /> @@ -72,7 +72,7 @@ <vlc id="rpn" param1="0 random 'VLC_OBJECT_PLAYLIST' vlc_var_set"/> <vlc id="rpn" param1="0 repeat 'VLC_OBJECT_PLAYLIST' vlc_var_set"/> <vlc id="rpn" param1="'temps' url_extract 'fake-duration' vlc_config_set" /> - <vlc id="rpn" param1="'fake: :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=2048 :sout-transcode-acodec=mpga :sout-transcode-ab=128 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :fake-aspect-ratio=4:3 :fake-keep-ar :fake-file=' mrl value strcat mrl value playlist_add" /> + <vlc id="rpn" param1="'fake: :sout=#transcode:std :sout-transcode-width=480 :sout-transcode-height=576 :sout-transcode-vb=1024 :sout-transcode-vcodec=mp2v :sout-transcode-vfilter=deinterlace :sout-deinterlace-mode=blend :sout-transcode-vb=9000 :sout-transcode-vcodec=mp2v :sout-ffmpeg-keyint=8 :sout-ffmpeg-interlace :no-sout-ffmpeg-interlace-me :fake-aspect-ratio=4:3 :fake-keep-ar :fake-deinterlace :deinterlace-mode=blend :fake-file=' mrl value strcat mrl value playlist_add" /> <vlc id="end" /> Modified: trunk/http-vlc/lecteur/play.html =================================================================== --- trunk/http-vlc/lecteur/play.html 2006-12-21 15:41:32 UTC (rev 62) +++ trunk/http-vlc/lecteur/play.html 2007-01-06 11:42:46 UTC (rev 63) @@ -62,7 +62,7 @@ <vlc id="rpn" param1="vlc_stop" /> <vlc id="rpn" param1="playlist_empty" /> <vlc id="rpn" param1="'temps' url_extract 'fake-duration' vlc_config_set" /> - <vlc id="rpn" param1="'fake: :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=4096 :sout-transcode-acodec=mpga :sout-transcode-ab=256 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :fake-aspect-ratio=4:3 :fake-keep-ar :fake-file=' mrl value strcat mrl value playlist_add vlc_play" /> + <vlc id="rpn" param1="'fake: :sout=#transcode:std :sout-transcode-width=480 :sout-transcode-height=576 :sout-transcode-vb=4096 :sout-transcode-vcodec=mp2v :sout-transcode-vfilter=deinterlace :sout-deinterlace-mode=blend :sout-transcode-vb=9000 :sout-transcode-vcodec=mp2v :sout-ffmpeg-keyint=8 :sout-ffmpeg-interlace :no-sout-ffmpeg-interlace-me :fake-aspect-ratio=4:3 :fake-keep-ar :fake-deinterlace :deinterlace-mode=blend :fake-file=' mrl value strcat mrl value playlist_add vlc_play" /> <vlc id="end" /> @@ -72,7 +72,7 @@ <vlc id="rpn" param1="0 random 'VLC_OBJECT_PLAYLIST' vlc_var_set"/> <vlc id="rpn" param1="0 repeat 'VLC_OBJECT_PLAYLIST' vlc_var_set"/> <vlc id="rpn" param1="'temps' url_extract 'fake-duration' vlc_config_set" /> - <vlc id="rpn" param1="'fake: :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=4096 :sout-transcode-acodec=mpga :sout-transcode-ab=256 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :fake-aspect-ratio=4:3 :fake-keep-ar :fake-file=' mrl value strcat mrl value playlist_add" /> + <vlc id="rpn" param1="'fake: :sout=#transcode:std :sout-transcode-width=480 :sout-transcode-height=576 :sout-transcode-vb=4096 :sout-transcode-vcodec=mp2v :sout-transcode-vfilter=deinterlace :sout-deinterlace-mode=blend :sout-transcode-vb=9000 :sout-transcode-vcodec=mp2v :sout-ffmpeg-keyint=8 :sout-ffmpeg-interlace :no-sout-ffmpeg-interlace-me :fake-aspect-ratio=4:3 :fake-keep-ar :fake-deinterlace :deinterlace-mode=blend :fake-file=' mrl value strcat mrl value playlist_add" /> <vlc id="end" /> Modified: trunk/module/films/catalogue.php =================================================================== --- trunk/module/films/catalogue.php 2006-12-21 15:41:32 UTC (rev 62) +++ trunk/module/films/catalogue.php 2007-01-06 11:42:46 UTC (rev 63) @@ -28,7 +28,7 @@ $LINK['red']= $MODULE.'_menu/menu.php'; - $sens1['name'] = $sens1['perso'] = $sens1['date'] = $sens1['film'] = $sens1['genre'] = $sens; + $sens1['name'] = $sens1['perso'] = $sens1['date'] = $sens1['film'] = $sens1['genre'] = $sens1['id'] = $sens; $sens1[$tri] = $sens_contraire; @@ -39,23 +39,26 @@ save_variable('sens_bib', $sens); save_variable('suiv_bib', urldecode($_GET['suiv'])); - $MENU_ALT=array(array('lien'=>'catalogue.php?tri='.$tri.'&sens='.$sens, 'nom'=>'Tri par ', 'selected'=>0), - array('lien'=>'catalogue.php?tri=name&sens='.$sens1['name'], 'nom'=>'<img border="0" src="'.$INTERFACE_REP.$sens.'.gif"> Nom', 'selected'=>$tri=='name', 'front_pannel'=>'NOM'), + $MENU_ALT=array(array('lien'=>'catalogue.php?tri=name&sens='.$sens1['name'], 'nom'=>'<img border="0" src="'.$INTERFACE_REP.$sens.'.gif"> Nom', 'selected'=>$tri=='name', 'front_pannel'=>'NOM'), array('lien'=>'catalogue.php?tri=date&sens='.$sens1['date'], 'nom'=>'<img border="0" src="'.$INTERFACE_REP.$sens.'.gif"> Date', 'selected'=>$tri=='date', 'front_pannel'=>'DATE'), array('lien'=>'catalogue.php?tri=perso&sens='.$sens1['perso'], 'nom'=>'<img border="0" src="'.$INTERFACE_REP.$sens.'.gif"> C\xE9l\xE9brit\xE9', 'selected'=>$tri=='perso', 'front_pannel'=>'CELEBRITE'), array('lien'=>'catalogue.php?tri=film&sens='.$sens1['film'], 'nom'=>'<img border="0" src="'.$INTERFACE_REP.$sens.'.gif"> National.', 'selected'=>$tri=='film', 'front_pannel'=>'NATIONAL.'), - array('lien'=>'catalogue.php?tri=genre&sens='.$sens1['genre'], 'nom'=>'<img border="0" src="'.$INTERFACE_REP.$sens.'.gif"> Genre', 'selected'=>$tri=='genre', 'front_pannel'=>'GENRE')); + array('lien'=>'catalogue.php?tri=genre&sens='.$sens1['genre'], 'nom'=>'<img border="0" src="'.$INTERFACE_REP.$sens.'.gif"> Genre', 'selected'=>$tri=='genre', 'front_pannel'=>'GENRE'), + array('lien'=>'catalogue.php?tri=id&sens='.$sens1['id'], 'nom'=>'<img border="0" src="'.$INTERFACE_REP.$sens.'.gif"> Id', 'selected'=>$tri=='id', 'front_pannel'=>'ID')); $db = sqlite_open($USER.'video.db', 0666); - if($tri=="name") - { + if($tri=="name") { $requete='SELECT * from film WHERE name!=\'\' ORDER BY name '.$sens_rec; $result = sqlite_query($db,$requete); $smarty->assign('result',sqlite_fetch_all($result)); $smarty->assign('rows',@sqlite_num_rows($result)); - } elseif($tri=='perso') - { + } elseif($tri=="id") { + $requete='SELECT * from film WHERE name!=\'\' ORDER BY id '.$sens_rec; + $result = sqlite_query($db,$requete); + $smarty->assign('result',sqlite_fetch_all($result)); + $smarty->assign('rows',@sqlite_num_rows($result)); + } elseif($tri=='perso') { if (!isset($_GET['suiv']) OR $_GET['suiv']=='') { $requete='SELECT * from celebrite WHERE nom!=\'\' ORDER BY nom '.$sens_rec; @@ -74,10 +77,8 @@ $smarty->assign('result',sqlite_fetch_all($result)); $smarty->assign('info',sqlite_fetch_array($result2)); } - } elseif($tri=="film" || $tri=="genre") - { - if (!isset($_GET['suiv'])) - { + } elseif($tri=="film" || $tri=="genre") { + if (!isset($_GET['suiv'])) { $requete='SELECT * from film ORDER BY '.$tri.' '.$sens_rec; $result = sqlite_query($db,$requete); $i="0"; @@ -98,8 +99,7 @@ sort($rea); $smarty->assign('rea',$rea); - } else - { + } else { $suiv = urldecode($_GET['suiv']); $requete='SELECT * from film WHERE '.$tri.' like \'%'.sqlite_escape_string($suiv).'%\' ORDER BY name asc '; $result = sqlite_query($db,$requete); @@ -108,15 +108,14 @@ $smarty->assign('suiv',$_GET['suiv']); $smarty->assign('tri',$tri.'_suiv'); } - } elseif($tri=="date") - { + } elseif($tri=="date") { $requete='SELECT * from film ORDER BY sortie '.$sens_rec.',name '.$sens_rec; $result = sqlite_query($db,$requete); $smarty->assign('result',sqlite_fetch_all($result)); $smarty->assign('rows',@sqlite_num_rows($result)); } - $title = array('film'=>'Nationalit\xE9', 'name'=>'Titre', 'date'=>'ann\xE9e de production', 'perso'=>'Personnalit\xE9', 'genre'=>'Genre'); + $title = array('film'=>'Nationalit\xE9', 'name'=>'Titre', 'date'=>'ann\xE9e de production', 'perso'=>'Personnalit\xE9', 'genre'=>'Genre', 'id'=>'id'); $smarty->assign('TITRE','Biblioth\xE8que de films - Tri par '.$title[$tri]); $smarty->assign('_GET',$_GET); Modified: trunk/module/films/catalogue_video.tpl =================================================================== --- trunk/module/films/catalogue_video.tpl 2006-12-21 15:41:32 UTC (rev 62) +++ trunk/module/films/catalogue_video.tpl 2007-01-06 11:42:46 UTC (rev 63) @@ -1,4 +1,4 @@ -{if $tri=="name" OR $tri=="date" OR $tri=="perso"} +{if $tri=="name" OR $tri=="date" OR $tri=="perso" OR $tri=="id"} {assign var=NUM_ROW_AFFICH value=15} {section name=files loop=$result max=$NUM_ROW_AFFICH start=$MIN} @@ -12,7 +12,7 @@ {/if} {/if} - {if $tri=="name" OR $tri=="date"} + {if $tri=="name" OR $tri=="date" OR $tri=="id"} <td width="100" height="130"><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}"><tr height="80"><td width="100" height="80" valign="middle" align=center><img width="60" height="80" border="0" src="{$IMG2FBX}{$result[files].img|urlencode}&new_width=60&new_height=80&cache=1"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><a href="play.php?toplay={$result[files].dir|realpath|urlencode}"><font size="1">{$result[files].name|truncate:12:'..':true}</font></a><br><font size="1">{if $result[files].sortie != 2}({$result[files].sortie|default:200|date_format:"%Y"}) - {/if}<a href="fichefilm.php?film={$result[files].name|urlencode}&fichier={$result[files].dir|realpath|urlencode}&start={$MIN}">Infos</a></font></td></tr></table></td> {elseif $tri=="perso"} <td width="100" height="130"><a href="catalogue.php?tri=perso&start={$MIN}&sens={$sens}&suiv={$result[files].nom|urlencode}"><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align=center><img width="60" height="80" border="0" src="{$IMG2FBX}{$result[files].img|urlencode}&new_width=60&new_height=80&cache=1"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><font size="1">{$result[files].nom|wordwrap:18:"<br>":true}</font></td></tr></table></a></td> Modified: trunk/module/films/films.tpl =================================================================== --- trunk/module/films/films.tpl 2006-12-21 15:41:32 UTC (rev 62) +++ trunk/module/films/films.tpl 2007-01-06 11:42:46 UTC (rev 63) @@ -20,9 +20,9 @@ {assign var=stream_1 value="`$VLC.pourcentage_courant/100*529`"|round} {assign var=stream_2 value="`$stream_1*-1`"} -{assign var=stream_3 value="`$stream_1/5`"|floor} +{assign var=stream_3 value="`$stream_1/5+1`"|floor} {assign var=stream_4 value="`$stream_2+529`"|floor} -{assign var=stream_5 value="`$stream_4/5`"|floor} +{assign var=stream_5 value="`$stream_4/5+1`"|floor} {assign var=largeursautmoins value="`$VLC.duree_courante/$stream_3`"|floor} {assign var=largeursautplus value="`$VLC.duree_restante/$stream_5`"|floor} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2007-01-23 21:40:53
|
Revision: 69 http://svn.sourceforge.net/easybox-mod/?rev=69&view=rev Author: aragornis Date: 2007-01-23 13:40:46 -0800 (Tue, 23 Jan 2007) Log Message: ----------- Modified Paths: -------------- trunk/_framework/fonctions_partagees.inc.php trunk/module/seances/listesalle.php trunk/module/seances/voirsalle.php Modified: trunk/_framework/fonctions_partagees.inc.php =================================================================== --- trunk/_framework/fonctions_partagees.inc.php 2007-01-21 19:49:17 UTC (rev 68) +++ trunk/_framework/fonctions_partagees.inc.php 2007-01-23 21:40:46 UTC (rev 69) @@ -307,6 +307,15 @@ sqlite_close($db); } +function get_version($module){ +global $USER; + $db = sqlite_open($USER.'modules.db', 0666); + $res = sqlite_query($db,'SELECT version FROM modules WHERE nom="'.$module.'"'); + $resu = sqlite_fetch_object($res); + sqlite_close($db); + return ($resu->version); +} + function module_exists($nom){ global $LISTE_MODULES; if(count($LISTE_MODULES)<=2){ @@ -378,15 +387,6 @@ return $MODULES; } -function get_version($module){ -global $USER; - $db = sqlite_open($USER.'modules.db', 0666); - $res = sqlite_query($db,'SELECT version FROM modules WHERE nom="'.$module.'"'); - $resu = sqlite_fetch_object($res); - sqlite_close($db); - return ($resu->version); -} - function get_last_patch($type, $module){ global $ini, $RACINE_REP; $DONE = array(); @@ -481,14 +481,7 @@ unlink("temp.zip"); } -function rmdirr ($dir) { - if (is_dir ($dir) && !is_link ($dir)) { - return @cleardir ($dir) ? @rmdir($dir) : false; - } - return @unlink($dir); -} - -function cleardir ($dir) { +function cleardir ($dir){ if (!($dir = dir ($dir))) { return false; } @@ -502,6 +495,13 @@ return true; } +function rmdirr($dir){ + if (is_dir ($dir) && !is_link ($dir)) { + return @cleardir ($dir) ? @rmdir($dir) : false; + } + return @unlink($dir); +} + function get_id_of_categorie($name){ global $USER; $db = sqlite_open($USER.'modules.db', 0666); Modified: trunk/module/seances/listesalle.php =================================================================== --- trunk/module/seances/listesalle.php 2007-01-21 19:49:17 UTC (rev 68) +++ trunk/module/seances/listesalle.php 2007-01-23 21:40:46 UTC (rev 69) @@ -31,7 +31,7 @@ { list ($debu, $fine) = split ('</a> - </h4><h4 style="color: #666666">', $value); list ($code, $nom) = split ('" class="link1">', $debu); - list ($postal, $ville) = split ('</h4><h4 style="color: #666666">, ', $fine); + list ($postal, $ville) = split (', </h4><h4 style="color: #666666">', $fine); $CONTENT .= "<a href=voirsalle.php?add=1&salle=$code>$nom - $ville ($postal)</a><br>"; } Modified: trunk/module/seances/voirsalle.php =================================================================== --- trunk/module/seances/voirsalle.php 2007-01-21 19:49:17 UTC (rev 68) +++ trunk/module/seances/voirsalle.php 2007-01-23 21:40:46 UTC (rev 69) @@ -34,7 +34,7 @@ preg_match("/$ereg/s", $contenu_html, $valeur); $cine = $valeur[1]; -$ereg = '<h4 style="color:#777777">(.{1,80})<br \/><\/h4>'; +$ereg = '<h4 style="color:#777777">(.{1,80})<br \/><br \/><\/h4>'; preg_match("/$ereg/s", $contenu_html, $valeur); $cine .= ' - '.$valeur[1]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2007-02-12 09:45:44
|
Revision: 70 http://svn.sourceforge.net/easybox-mod/?rev=70&view=rev Author: aragornis Date: 2007-02-12 01:45:41 -0800 (Mon, 12 Feb 2007) Log Message: ----------- nouveau skin Modified Paths: -------------- trunk/_utilisateur/modules.db trunk/skin/simple/interface/player.gif Added Paths: ----------- trunk/skin/simplegreen/ trunk/skin/simplegreen/aide.php trunk/skin/simplegreen/avertissement.tpl trunk/skin/simplegreen/background/ trunk/skin/simplegreen/background.jpg trunk/skin/simplegreen/bouton.tpl trunk/skin/simplegreen/cartouche.tpl trunk/skin/simplegreen/chaines/ trunk/skin/simplegreen/config_skin.php trunk/skin/simplegreen/couleur.conf trunk/skin/simplegreen/demarrage.tpl trunk/skin/simplegreen/dossier/ trunk/skin/simplegreen/dossier/diskhdd.gif trunk/skin/simplegreen/dossier/diskhddbad.gif trunk/skin/simplegreen/dossier/disknetwork.gif trunk/skin/simplegreen/dossier/disknetworkbad.gif trunk/skin/simplegreen/dossier/diskoptical.gif trunk/skin/simplegreen/dossier/diskopticalbad.gif trunk/skin/simplegreen/dossier/diskremovable.gif trunk/skin/simplegreen/dossier/diskremovableKO.gif trunk/skin/simplegreen/dossier/disque.gif trunk/skin/simplegreen/dossier/disquecd.gif trunk/skin/simplegreen/dossier/favoris.gif trunk/skin/simplegreen/dossier/folder.gif trunk/skin/simplegreen/dossier/movie.gif trunk/skin/simplegreen/dossier/mp3.gif trunk/skin/simplegreen/dossier/noname.gif trunk/skin/simplegreen/dossier/parent.gif trunk/skin/simplegreen/dossier/picture.gif trunk/skin/simplegreen/dossier/reload.gif trunk/skin/simplegreen/dossier/rep_all.gif trunk/skin/simplegreen/framework_skin.php trunk/skin/simplegreen/generique.tpl trunk/skin/simplegreen/icones/ trunk/skin/simplegreen/interface/ trunk/skin/simplegreen/interface/Basket-ball.gif trunk/skin/simplegreen/interface/Football.gif trunk/skin/simplegreen/interface/HQ.gif trunk/skin/simplegreen/interface/N.gif trunk/skin/simplegreen/interface/Rugby.gif trunk/skin/simplegreen/interface/Thumbs.db trunk/skin/simplegreen/interface/Volley-ball.gif trunk/skin/simplegreen/interface/anniv.gif trunk/skin/simplegreen/interface/barre1.gif trunk/skin/simplegreen/interface/barre2.gif trunk/skin/simplegreen/interface/barre3.gif trunk/skin/simplegreen/interface/bas.gif trunk/skin/simplegreen/interface/boot.gif trunk/skin/simplegreen/interface/btn_bleu.gif trunk/skin/simplegreen/interface/btn_jaune.gif trunk/skin/simplegreen/interface/btn_rouge.gif trunk/skin/simplegreen/interface/btn_vert.gif trunk/skin/simplegreen/interface/cancelled.gif trunk/skin/simplegreen/interface/coeur.gif trunk/skin/simplegreen/interface/delete.gif trunk/skin/simplegreen/interface/done.gif trunk/skin/simplegreen/interface/dossier_enregistrement.gif trunk/skin/simplegreen/interface/dossier_nouvelle_programmation.gif trunk/skin/simplegreen/interface/dossier_programme.gif trunk/skin/simplegreen/interface/encours.gif trunk/skin/simplegreen/interface/eteindre.gif trunk/skin/simplegreen/interface/finished.gif trunk/skin/simplegreen/interface/haut.gif trunk/skin/simplegreen/interface/help.gif trunk/skin/simplegreen/interface/heure_enregistrement.gif trunk/skin/simplegreen/interface/hibernation.gif trunk/skin/simplegreen/interface/home.gif trunk/skin/simplegreen/interface/info.gif trunk/skin/simplegreen/interface/logo.gif trunk/skin/simplegreen/interface/mail.gif trunk/skin/simplegreen/interface/mitemps.gif trunk/skin/simplegreen/interface/noir.jpg trunk/skin/simplegreen/interface/ok.gif trunk/skin/simplegreen/interface/piecejointe.gif trunk/skin/simplegreen/interface/player.gif trunk/skin/simplegreen/interface/puce.gif trunk/skin/simplegreen/interface/redemarrer.gif trunk/skin/simplegreen/interface/star.gif trunk/skin/simplegreen/interface/star0.gif trunk/skin/simplegreen/interface/star1.gif trunk/skin/simplegreen/interface/star2.gif trunk/skin/simplegreen/interface/star3.gif trunk/skin/simplegreen/interface/star4.gif trunk/skin/simplegreen/interface/wait.gif trunk/skin/simplegreen/interface/while.gif trunk/skin/simplegreen/interface/whilekey.gif trunk/skin/simplegreen/interface.tpl trunk/skin/simplegreen/menu.tpl trunk/skin/simplegreen/option.tpl trunk/skin/simplegreen/parametre/ trunk/skin/simplegreen/player/ trunk/skin/simplegreen/vuedensemble.gif Modified: trunk/_utilisateur/modules.db =================================================================== (Binary files differ) Modified: trunk/skin/simple/interface/player.gif =================================================================== (Binary files differ) Added: trunk/skin/simplegreen/aide.php =================================================================== --- trunk/skin/simplegreen/aide.php (rev 0) +++ trunk/skin/simplegreen/aide.php 2007-02-12 09:45:41 UTC (rev 70) @@ -0,0 +1,164 @@ +<?php +function AIDE(){ + global $xml_aide, $AIDE_REP,$page; + +$cacher = array('Guide','Interface','Lien info','Lien film'); +/* +function couper($file,$max) +{ +if(strlen($file)>=$max){$file=substr($file,0,$max) . "..." ;} +return $file; +} */ + +if (isset($xml_aide->channel->$page->fonction)) { + foreach($xml_aide->channel->$page->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; + } + $show[]=array($titre,$fonc->description); + } +}else{ + 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)."..." ; +} +?> +<table border="0" cellpadding="0" cellspacing="0" width="407" height="30" valign=bottom> + <tr height="27"> + <td width="23" height="30" align="center" valign=middle><?= $logo; ?></td> + <td width="384" height="30" align="left" valign=middle><font size="1"><?= $text; ?></font></td> + </tr> +</table> +<?php +} +?> Added: trunk/skin/simplegreen/avertissement.tpl =================================================================== --- trunk/skin/simplegreen/avertissement.tpl (rev 0) +++ trunk/skin/simplegreen/avertissement.tpl 2007-02-12 09:45:41 UTC (rev 70) @@ -0,0 +1,23 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<html> +<head> +{include file="bouton.tpl"} +</head> +<body background="ts://127.0.0.1" text="{#COULEUR_TEXT#}" link="{#COULEUR_LINK#}" alink="{#COULEUR_ALINK#}" vlink="{#COULEUR_VLINK#}"> +<center><table width="590" height="510" border="0" align="center" cellpadding="0" cellspacing="0"><tr><td align=center width="590" height="510" valign="middle"> + <table width="540" border="2" cellpadding="10" cellspacing="0" bgcolor="{#COULEUR_FOND_AVERTISSEMENT#}" bordercolor="#ffffff3f"><tr><td width="590"> + <table width="540" border="0" cellpadding="10" cellspacing="0"><tr> + {if NOT $no_icone}<td align="center" width="80" height="80"> + <img src="{$INTERFACE_REP}info.gif" border="0" width="80" height="80"> + </td>{/if}<td align="center" valign="middle" width="460"> + {if $TITRE!=''}<font size=4>{$TITRE}</font><br> <br> <br>{/if} + {eval var=$AVERTISSEMENT} + </td> + </tr></table> + </td></tr></table> +</td></tr></table></center> + +<script language="javascript" src="/fb2ie.js"> +</script> +</body> +</html> Added: trunk/skin/simplegreen/background.jpg =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/background.jpg ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/bouton.tpl =================================================================== --- trunk/skin/simplegreen/bouton.tpl (rev 0) +++ trunk/skin/simplegreen/bouton.tpl 2007-02-12 09:45:41 UTC (rev 70) @@ -0,0 +1,8 @@ +<!BOUTONS!> +{foreach from=$META item=META_FE key=key} + <meta name="{$key}" content="{$META_FE}"> +{/foreach} +{foreach from=$LINK item=META_FE key=key} + <link rel="{$key}" href="{$META_FE}"> +{/foreach} +<!BOUTONS!> Added: trunk/skin/simplegreen/cartouche.tpl =================================================================== --- trunk/skin/simplegreen/cartouche.tpl (rev 0) +++ trunk/skin/simplegreen/cartouche.tpl 2007-02-12 09:45:41 UTC (rev 70) @@ -0,0 +1,6 @@ +<table border="0" cellpadding="0" cellspacing="0" width="407" height="30" valign=bottom> + <tr height="27"> + <td width="23" height="30" align="center" valign=middle>{$logo}</td> + <td width="384" height="30" align="left" valign=middle><font size="1">{$text}</font></td> + </tr> +</table> Added: trunk/skin/simplegreen/config_skin.php =================================================================== --- trunk/skin/simplegreen/config_skin.php (rev 0) +++ trunk/skin/simplegreen/config_skin.php 2007-02-12 09:45:41 UTC (rev 70) @@ -0,0 +1,35 @@ +<?php + $img = glob("../skin/".$_GET['skin']."/background/*.jpg"); + $nn =count($img); + +if ($_GET['image']){ +copy(realpath(urldecode($_GET['image'])),realpath("../skin/".$_GET['skin']."/background.jpg")); +} +?> +<center><b>Images disponibles</b> +<form name="form1" method="get" action="index1.php"> +<table><tr> +<? +$n = '0'; +while ($n < $nn) { + if ($n%5==0) { echo "</tr><tr>"; } ?> + <td><input type="radio" name="image" value="<?= urlencode(realpath($img[$n])); ?>"><img src="../_framework/lib/img_cr.php?img=<?= urlencode($img[$n]); ?>"></td> + <?php + $n++; +} ?> +</tr></table> +<input name="page" type="hidden" value="3"> +<input name="skin" type="hidden" value="<?= $_GET['skin']; ?>"> +<input style="border: thin outset;font-size: 9px;" type="submit" name="Submit" value="Modifier"> +</form> +<br> + +<form enctype="multipart/form-data" action="addimage.php" method="post"> +<input name="destination" type="hidden" value="../skin/<?=$_REQUEST['skin']; ?>/background/"> +<input name="retour" type="hidden" value="index1.php?page=3&skin=<?= $_GET['skin']; ?>"> +<input type="hidden" name="newback" value="100000" /> + Ajouter ce background : <input type="file" name="monfichier" /> + <input type="submit" /> +</form> + +</center> Added: trunk/skin/simplegreen/couleur.conf =================================================================== --- trunk/skin/simplegreen/couleur.conf (rev 0) +++ trunk/skin/simplegreen/couleur.conf 2007-02-12 09:45:41 UTC (rev 70) @@ -0,0 +1,71 @@ +<?php +#////////////////////////////////// INTERFACE ///////////////////////////////////// + +#Couleur du text par defaud +COULEUR_TEXT = "#0000003F" +#Couleur des liens inactif +COULEUR_LINK = "#0000003F" +#Couleur des liens selectionn\xE9 +COULEUR_ALINK = "#AE00003F" +#Couleur des liens deja visit\xE9 +COULEUR_VLINK = "#AE00003F" + +#Couleur du fond de l'interface +COULEUR_FOND = "#CCE3AC3F" + +#La couleur de l interface +COULEUR_FOND1 = "#CCE3AC16" +#Couleur de l interface en plus claire +COULEUR_FOND2 = "#B7D88B22" + +#La couleur de l interface // Pour les tableaux avec chaque ligne de couleur diff\xE9rente +COULEUR_INTERFACE1 = "#67E13315" +#Couleur de l interface en plus claire // '' +COULEUR_INTERFACE2 = "#A2EC8220" + +#Couleur des boutons par m\xE9thode table quand ils sont s\xE9lectionn\xE9s +COULEUR_TABLE_SELECTED = "#5FCA4415" + +#Couleur de fond des textbox +COULEUR_TEXTBOX = "#ffffff3f" + +#///////////////////////////////// PLAYLIST MP3 /////////////////////////////////// + +#Couleur du bouton en quand il n y a pas d action +COULEUR_DEFAUD = "#0000003f" +#Couleur du bouton en mode Stop +COULEUR_BOUTON_SELECTED = "#AE00003f" + + +#//////////////////////////// LECTURE DVD et SIGNET CHAPITRE //////////////////////////// +#Couleur du text par defaud +COULEUR_DVD_TEXT = "#0000003f" +#Couleur des liens inactif +COULEUR_DVD_LINK = "#0000003f" +#Couleur des liens selectionn\xE9 +COULEUR_DVD_ALINK = "#AE00003F" +#Couleur des liens deja visit\xE9 +COULEUR_DVD_VLINK = "#AE00003F" + +#Couleur de la bordure de l'interface +COULEUR_DVD_BORDURE = "#B8C7D816" + +#///////////////////////////////// HTML-LIGHT et RSS /////////////////////////////////// +#Couleur du text par defaud +COULEUR_HTML_TEXT = "#FFFFFF3f" +#Couleur des liens inactif +COULEUR_HTML_LINK = "#FFFFFF3f" +#Couleur des liens selectionn\xE9 +COULEUR_HTML_ALINK = "#0000003f" +#Couleur des liens deja visit\xE9 +COULEUR_HTML_VLINK = "#0000003f" + +#Couleur du fond du tableau +COULEUR_HTML_FOND = "#7899B120" + +#///////////////////////////////// Message d'avertissement /////////////////////////////////// +#Couleur du fond de la fenetre d'avertissement +COULEUR_FOND_AVERTISSEMENT = "#B7D88B3F" + + +?> Added: trunk/skin/simplegreen/demarrage.tpl =================================================================== --- trunk/skin/simplegreen/demarrage.tpl (rev 0) +++ trunk/skin/simplegreen/demarrage.tpl 2007-02-12 09:45:41 UTC (rev 70) @@ -0,0 +1,36 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<html> +<head> +{include file="bouton.tpl"} +{if etape==1}<flags wait_new_picture=true>{/if} +</head> +<body background="ts://127.0.0.1" text="{#COULEUR_TEXT#}" link="{#COULEUR_LINK#}" alink="{#COULEUR_ALINK#}" vlink="{#COULEUR_VLINK#}"> + +<center><table width="590" border="0" align="center" cellpadding="0" cellspacing="0"><tr><td align=center valign="middle" colspan="2"> +<img src="{$INTERFACE_REP}boot.gif" width="527" height="209" border="0"> +</td></tr> +<tr><td> + <table border="0" cellpadding="0" cellspacing="0"> + <tr><td width="125" align="right" valign="middle"><img src="{$INTERFACE_REP}{if $etape>1}done{else}while{/if}.gif" width="50" height="50" border="0"></td><td valign="middle"> Initilisation</td></tr> + <tr><td width="125" align="right" valign="middle"><img src="{$INTERFACE_REP}{if $etape>2}done{elseif $etape<2}wait{else}while{/if}.gif" width="50" height="50" border="0"></td><td valign="middle"> Mise \xE0 jour</td></tr> + <tr><td width="125" align="right" valign="middle"><img src="{$INTERFACE_REP}{if $etape>3}done{elseif $etape<3}wait{else}while{/if}{if $ask_mdp}key{/if}.gif" width="50" height="50" border="0"></td><td valign="middle"> Identification</td></tr> + </table> +</td> +<td> + {if $ask_mdp} + <form action="demarrage.php" method="get"> + <input type="hidden" name="etape" value="4"> + Nom d'utilisateur : <br> + {section name=user loop=$users} + {if $users[user]}<input type="radio" name="user" bgcolor="{#COULEUR_DVD_BORDURE#}" value="{$users[user]}"{if $smarty.section.user.first} checked{/if}>{$users[user]}<br>{/if} + {/section} + <br>Mot de passe : <input bgcolor="{#COULEUR_TEXTBOX#}" type="password" name="pass"> + </form>{else} {/if} +</td> +</tr> +</table> + +<script language="javascript" src="/fb2ie.js"> +</script> +</body> +</html> Added: trunk/skin/simplegreen/dossier/diskhdd.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/dossier/diskhdd.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/dossier/diskhddbad.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/dossier/diskhddbad.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/dossier/disknetwork.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/dossier/disknetwork.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/dossier/disknetworkbad.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/dossier/disknetworkbad.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/dossier/diskoptical.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/dossier/diskoptical.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/dossier/diskopticalbad.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/dossier/diskopticalbad.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/dossier/diskremovable.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/dossier/diskremovable.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/dossier/diskremovableKO.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/dossier/diskremovableKO.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/dossier/disque.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/dossier/disque.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/dossier/disquecd.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/dossier/disquecd.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/dossier/favoris.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/dossier/favoris.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/dossier/folder.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/dossier/folder.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/dossier/movie.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/dossier/movie.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/dossier/mp3.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/dossier/mp3.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/dossier/noname.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/dossier/noname.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/dossier/parent.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/dossier/parent.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/dossier/picture.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/dossier/picture.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/dossier/reload.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/dossier/reload.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/dossier/rep_all.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/dossier/rep_all.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/framework_skin.php =================================================================== --- trunk/skin/simplegreen/framework_skin.php (rev 0) +++ trunk/skin/simplegreen/framework_skin.php 2007-02-12 09:45:41 UTC (rev 70) @@ -0,0 +1,36 @@ +<?php +// Ici peuvent \xEAtre d\xE9finies des fonctions ou variables sp\xE9cifiques au template + +// Fond d'\xE9cran par d\xE9faut - path d\xE9finit \xE0 partir du r\xE9pertoire /http/skin/simple/ +$BACKGROUND = 'background.jpg'; + +// Fonction responsable de l'affichage du fond d'\xE9cran \xE0 la toute fin du processus de conception de la page (post-filtre de smarty) +function background($output, &$smarty){ + global $contenu_html, $BACKGROUND, $SKIN_REP, $BACKGROUND_TYPE, $FORCED, $_SERVER, $BACK_DONE; + if(((eregi("stop",$contenu_html) AND $BACKGROUND!="none" AND realpath($SKIN_REP.$BACKGROUND)!='') OR $FORCED) AND !$BACK_DONE){ + if($BACKGROUND_TYPE == 'add'){ + play_fichier('type=21&temps=8000',realpath($SKIN_REP.$BACKGROUND),1,'photo'); + }else{ + play_fichier('type=20&temps=8000',realpath($SKIN_REP.$BACKGROUND),1,'photo'); + } + //Pour ne pas lancer deux fois le background + $BACK_DONE = 1; + } + return($output); +} + +// D\xE9finit un filtre qui fait jouer le background en tout dernier lieu, quand l'ensemble des templates de la page ont \xE9t\xE9 compil\xE9s. + $smarty->register_outputfilter("background"); + + $PLAYER_REP = $SKIN_REP."player/"; + $smarty->assign('PLAYER_REP',$PLAYER_REP); + $DOSSIER_REP = $SKIN_REP."dossier/"; + $smarty->assign('DOSSIER_REP',$DOSSIER_REP); + $INTERFACE_REP = $SKIN_REP."interface/"; + $smarty->assign('INTERFACE_REP',$INTERFACE_REP); + $PARAMETRE_REP = $SKIN_REP."parametre/"; + $smarty->assign('PARAMETRE_REP',$PARAMETRE_REP); + + + +?> Added: trunk/skin/simplegreen/generique.tpl =================================================================== --- trunk/skin/simplegreen/generique.tpl (rev 0) +++ trunk/skin/simplegreen/generique.tpl 2007-02-12 09:45:41 UTC (rev 70) @@ -0,0 +1 @@ +{$affichage} Added: trunk/skin/simplegreen/interface/Basket-ball.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/Basket-ball.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/Football.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/Football.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/HQ.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/HQ.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/N.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/N.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/Rugby.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/Rugby.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/Thumbs.db =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/Thumbs.db ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/Volley-ball.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/Volley-ball.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/anniv.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/anniv.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/barre1.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/barre1.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/barre2.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/barre2.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/barre3.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/barre3.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/bas.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/bas.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/boot.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/boot.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/btn_bleu.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/btn_bleu.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/btn_jaune.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/btn_jaune.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/btn_rouge.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/btn_rouge.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/btn_vert.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/btn_vert.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/cancelled.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/cancelled.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/coeur.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/coeur.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/delete.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/delete.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/done.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/done.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/dossier_enregistrement.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/dossier_enregistrement.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/dossier_nouvelle_programmation.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/dossier_nouvelle_programmation.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/dossier_programme.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/dossier_programme.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/encours.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/encours.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/eteindre.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/eteindre.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/finished.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/finished.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/haut.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/haut.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/help.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/help.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/heure_enregistrement.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/heure_enregistrement.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/hibernation.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/hibernation.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/home.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/home.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/info.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/info.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/logo.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/logo.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/mail.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/mail.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/mitemps.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/mitemps.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/noir.jpg =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/noir.jpg ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/ok.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/ok.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/piecejointe.gif =================================================================== Added: trunk/skin/simplegreen/interface/player.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/player.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/puce.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/puce.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/redemarrer.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/redemarrer.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/star.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/star.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/star0.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/star0.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/star1.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/star1.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/star2.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/star2.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/star3.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/star3.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/star4.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/star4.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/wait.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/wait.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/while.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/while.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/whilekey.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/whilekey.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface.tpl =================================================================== --- trunk/skin/simplegreen/interface.tpl (rev 0) +++ trunk/skin/simplegreen/interface.tpl 2007-02-12 09:45:41 UTC (rev 70) @@ -0,0 +1,78 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<html> +<head> +{include file="bouton.tpl"} +</head> +<body background="ts://127.0.0.1" text="{#COULEUR_TEXT#}" link="{#COULEUR_LINK#}" alink="{#COULEUR_ALINK#}" vlink="{#COULEUR_VLINK#}"> +<center> + <table width="645" height="510" border="0" align="center" cellpadding="0" cellspacing="0"> + <tr> + <td align="right" valign="top"> + <table width="640" height="510" border="0" cellpadding="0" cellspacing="0"><tr> + <td height="30" bgcolor="{#COULEUR_FOND2#}" align=center> + {assign var=width value=$MENU_ALT|@count|max:1} + {math equation="x/(y+1)" x="640" y=$width assign=width} + {section name=menu_alt loop=$MENU_ALT} + {if $smarty.section.menu_alt.first} + <table width="640" height="30" border="0" cellpadding="0" cellspacing="0"><tr> + {/if} + <td width="{$width}" align=center><a onfocus='front_panel="{$MENU_ALT[menu_alt].front_pannel|default:$MENU_ALT[menu_alt].nom|cleanaff}";' href="{$MENU_ALT[menu_alt].lien}"{if $MENU_ALT[menu_alt].selected} focused{/if}><table width="{$width}" height="30" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="30"><td align=center width="{$width}" height="30">{$MENU_ALT[menu_alt].nom}</td></tr></table></a></td> + {if $smarty.section.menu_alt.last} + <td width="{$width}" align=center><a onfocus='front_panel="RETOUR";' href="{$LINK.red}"><table width="{$width}" height="30" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="30"><td align=center width="{$width}" height="30"><img src="{$INTERFACE_REP}btn_rouge.gif" border="0"> Retour</td></tr></table></a></td> + </tr></table> + {/if} + {sectionelse} + {section name=menu_header loop=$MENU_SUP} + {if $smarty.section.menu_header.first} + <table width="640" height="30" border="0" cellpadding="0" cellspacing="0"><tr> + {/if} + <td width="128" align=center><a onfocus='front_panel="{$MENU_SUP[menu_header].name|cleanaff}";' href="{$MODULE}_menu/menu.php?cat={$MENU_SUP[menu_header].nb}" {if $cat==$MENU_SUP[menu_header].nb} focused{/if}><table width="128" height="30" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="30"><td align=center width="128" height="30">{$MENU_SUP[menu_header].name}</td></tr></table></a></td> + {if $smarty.section.menu_header.last} + {if $LINK.red} + <td width="128" align=center><a onfocus='front_panel="RETOUR";' href="{$LINK.red}"><table width="128" height="30" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="30"><td align=center width="128" height="30"><img src="{$INTERFACE_REP}btn_rouge.gif" border="0"> Retour</td></tr></table></a></td> + {else} + <td width="128" align=center><a onfocus='front_panel="A PROPOS";' href="/copyright.php"><table width="128" height="30" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="30"><td align=center width="128" height="30">A propos</td></tr></table></a></td> + {/if} + </tr></table> + {/if} + {/section} + {/section} + </td> + </tr> + <tr> + <td height="10" align="center" valign="top" bgcolor="{#COULEUR_FOND1#}"><font size="4">{$TITRE|truncate:90:"...":true}</font></td> + </tr> + <tr> + <td height="430" align="center" valign="top" bgcolor="{#COULEUR_FOND1#}"> + +<center> +<table width="500" height="430" border="0" cellpadding="0" cellspacing="0"> + <tr> + <td align="center" valign="top"> +{eval var=$CONTENT} + </td> + </tr> +</table> +</center> + +</td> + </tr> + <tr> + <td height="30" bgcolor="{#COULEUR_FOND2#}"><table width="640" height="30" border="0" cellpadding="0" cellspacing="0"> + <tr> + <td width="80" valign="middle"> Easy-Box</td> + <td width="367" align="center" valign="middle">{include file="cartouche.tpl"}</td> + <td width="185" align="left" valign="middle"><img width="25" height="25" src="/{$ICONE_REP}horloge-mini.gif" border="0"><font size=1>{$smarty.now|date_format:"%d-%m-%Y %Hh%M"}</font> </td> + </tr> + </table> + </td> + </tr> +</table> +</td> +</tr> +</table> +</center> +<script language="javascript" src="/fb2ie.js"> +</script> +</body> +</html> Added: trunk/skin/simplegreen/menu.tpl =================================================================== --- trunk/skin/simplegreen/menu.tpl (rev 0) +++ trunk/skin/simplegreen/menu.tpl 2007-02-12 09:45:41 UTC (rev 70) @@ -0,0 +1,74 @@ +{section name=menu loop=$MENU} + {if $smarty.section.menu.first} + <table width="450" cellspacing="6" align="center"> + {/if} + {if $smarty.section.menu.iteration is odd} + <tr height="50"> + {/if} + {if $MENU[menu].lien != '' && $MENU[menu].name != 'Films'} + <td width="225" height="50" align="center"> + <a onfocus='front_panel="{$MENU[menu].name|cleanaff}";' href="{$MODULE}{$MENU[menu].rep}{$MENU[menu].lien}"> + <table width="225" height="50" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="50"> + <td width="50" height="50"> + <img src="/{$ICONE_REP}{$MENU[menu].ico}.gif" border="0"> + </td> + <td> + <font size="4"> {$MENU[menu].name}</font> + </td> + </tr></table> + </a> + </td> + {elseif $MENU[menu].name == 'Films'} + <td width="225" height="50" align="center"> + <table width="225" height="50" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND1#}""><tr height="50"> + <td width="50" height="50"> + <img src="{$ICONE_REP}{$MENU[menu].ico}.gif" border="0"> + </td> + <td width="175" height="50"> + <a onfocus='front_panel="{$MENU[menu].name|cleanaff}";' href="{$MODULE}{$MENU[menu].rep}index1.php"><table width="175" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td width="175" height="25"><font size="4">{$MENU[menu].name}</font></td></tr></table></a><a onfocus='front_panel="{"Catalogue"|cleanaff}";' href="{$MODULE}{$MENU[menu].rep}catalogue.php"><table width="175" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td width="175" height="25"><font size="4">Catalogue</font></td></tr></table></a> + </td> + </tr></table> + </td> + {else} + <td width="225" height="50" align="center"> + <a onfocus='front_panel="{$MENU[menu].name|cleanaff}";' href="{$MODULE}_menu/menu.php?cat={$MENU[menu].num}"> + <table width="225" height="50" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="50"> + <td width="50" height="50"> + <img src="/{$ICONE_REP}{$MENU[menu].ico}.gif" border="0"> + </td> + <td> + <font size="4"> {$MENU[menu].name}</font> + </td> + </tr></table> + </a> + </td> + {/if} + {if $smarty.section.menu.iteration is even} + </tr> + {/if} + {if $smarty.section.menu.last} + {if $smarty.section.menu.iteration is odd} + <td> </td><td></td></tr> + {/if} + </table> + {/if} +{/section} + +{if (NOT $cat) or $cat==1} + {section name=favoris loop=$FAVORIS max=5} + {if strlen($FAVORIS[favoris]) <= 6} + {assign var="nb" value=strlen($FAVORIS[favoris])} + {else} + {assign var="nb" value=$FAVORIS[favoris]|strrpos:"/"} + {assign var="nb" value=$nb+1} + {/if} + + {if $smarty.section.favoris.first}<center><table height="20" border="0" cellpadding="0" cellspacing="0"><tr><td valign="middle" align="right"><img src="{$SKIN_REP}dossier/favoris.gif" width="16" height="16"></td><td valign="middle" align="left"> <a href="{$RACINE_REP}module/favoris/index1.php">Favoris</a> : {/if} +<a href="{$RACINE_REP}module/films/index1.php?directory={$FAVORIS[favoris]|@urlencode}">{$FAVORIS[favoris]|substr:$nb|lower|capitalize|truncate:25:''}</a> + {if $smarty.section.favoris.last} + </td></tr></table></center> + {else} + - + {/if} + {/section} +{/if} Added: trunk/skin/simplegreen/option.tpl =================================================================== --- trunk/skin/simplegreen/option.tpl (rev 0) +++ trunk/skin/simplegreen/option.tpl 2007-02-12 09:45:41 UTC (rev 70) @@ -0,0 +1,152 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<html> +<head> +{include file="bouton.tpl"} +{setbackground path="none"} +</head> +<body background="ts://127.0.0.1" text="{#COULEUR_DVD_TEXT#}" link="{#COULEUR_DVD_LINK#}" alink="{#COULEUR_DVD_ALINK#}" vlink="{#COULEUR_DVD_VLINK#}"> +<center> +<table border="0" cellpadding="0" cellspacing="0" width="560"><tr> + <td width="560" height="433" border="0" cellpadding="0" cellspacing="0" align="left" valign=top bgcolor="{#COULEUR_DVD_BORDURE#}"> + <center><table width="560" height="25" border="0" align="center" cellpadding="0" cellspacing="0"> + <tr> + <td width="104" align=center><a href="options.php?module=infos" {if $module=='infos'}focused{/if}><table width="104" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td align=center width="104" height="25">Infos</td></tr></table></a></td> + <td width="104" align=center><a href="options.php?module=video" {if $module=='video'}focused{/if}><table width="104" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td align=center width="104" height="25">Video</td></tr></table></a></td> + <td width="104" align=center><a href="options.php?module=audio" {if $module=='audio'}focused{/if}><table width="104" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td align=center width="104" height="25">Audio</td></tr></table></a></td> + <td width="104" align=center><a href="options.php?module=sstitre" {if $module=='sstitre'}focused{/if}><table width="104" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td align=center width="104" height="25">Sous-titres</td></tr></table></a></td> + <td width="104" align=center><a href="options.php?module=navigation" {if $module=='navigation'}focused{/if}><table width="104" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td align=center width="104" height="25">Chapitres</td></tr></table></a></td> + </tr> + </table></center> + + +{if $module=='infos'} +{$content} + +{elseif $module=='video'} +<font size="3"><u>Options vid\xE9o</u></font><br> + <form action="options.php" method="get"> + <input type=hidden name=module value=video><input type=hidden name=var value="video-es"><br> + {foreach from=$video item=pistev key=key name=video} + <input type=radio name=video bgcolor="{#COULEUR_DVD_BORDURE#}" value="{$key}" {if $pistev.1} checked{/if}>{$pistev.0}<br> + {/foreach} + <br>Post-traitement + <table> + <tr> + <td><input type="radio" name="pp" bgcolor="{#COULEUR_DVD_BORDURE#}" value="0" {if $pp_video.0} checked{/if}></td> + <td><input type="radio" name="pp" bgcolor="{#COULEUR_DVD_BORDURE#}" value="1" {if $pp_video.1} checked{/if}></td> + <td><input type="radio" name="pp" bgcolor="{#COULEUR_DVD_BORDURE#}" value="2" {if $pp_video.2} checked{/if}></td> + <td><input type="radio" name="pp" bgcolor="{#COULEUR_DVD_BORDURE#}" value="3" {if $pp_video.3} checked{/if}></td> + <td><input type="radio" name="pp" bgcolor="{#COULEUR_DVD_BORDURE#}" value="4" {if $pp_video.4} checked{/if}></td> + <td><input type="radio" name="pp" bgcolor="{#COULEUR_DVD_BORDURE#}" value="5" {if $pp_video.5} checked{/if}></td> + <td><input type="radio" name="pp" bgcolor="{#COULEUR_DVD_BORDURE#}" value="6" {if $pp_video.6} checked{/if}></td> + </tr> + <tr> + <td>0</td><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td></tr> + </table> + Augmenter la qualit\xE9 du traitement de l'image (de 0 vers 6) demande plus de puissance CPU. + <br> + +<table width="250" align="left"> +<tr><td width="130">4/3 Letterbox</td><td><input type=radio bgcolor="{#COULEUR_DVD_BORDURE#}" name=display_aspect_ratio_conversion value=letterbox></td></tr> +<tr><td width="130">4/3 Combined</td><td><input type=radio bgcolor="{#COULEUR_DVD_BORDURE#}" name=display_aspect_ratio_conversion value=combined></td></tr> +<tr><td width="130">4/3 Pan Scan</td><td><input type=radio bgcolor="{#COULEUR_DVD_BORDURE#}" name=display_aspect_ratio_conversion value=panscan></td></tr> +<tr><td width="130">16/9</td><td><input type=radio bgcolor="{#COULEUR_DVD_BORDURE#}" name=display_aspect_ratio_conversion value=ignore></td></tr> +</table> + +<table width="250" align="left"> +<tr><td width="90">Lumi\xE9re</td><td width="5">:</td><td><input bgcolor="{#COULEUR_DVD_BORDURE#}" type=hslider name=denc_brightness min=0 max=255 grad=16></td></tr> +<tr><td width="90">Contraste</td><td width="5">:</td><td><input bgcolor="{#COULEUR_DVD_BORDURE#}" type=hslider name=denc_contrast min='-128' max=127 grad=16></td></tr> +<tr><td width="90">Couleur</td><td width="5">:</td><td><input bgcolor="{#COULEUR_DVD_BORDURE#}" type=hslider name=denc_saturation min=0 max=255 grad=16></td></tr> +<tr><td width="90">Zoom</td><td width="5">:</td><td><input bgcolor="{#COULEUR_DVD_BORDURE#}" type=hslider name=video_output_scale min=25 max=100 grad=5></td></tr> +</table> + +<input bgcolor="{#COULEUR_TEXTBOX#}" type=submit value="Valider les modifications"> +</form> + +{elseif $module=='audio'} +<font size="3"><u>Options audio</u></font><br> + <form action="options.php" method="get"><input type=hidden name=module value=audio><input type=hidden name=var value="audio-es"><br> + {foreach from=$audio item=pistea key=key name=audio} + <input type=radio name=audio bgcolor="{#COULEUR_DVD_BORDURE#}" value="{$key}" {if $pistea.1} checked{/if}>{$pistea.0}<br> + {/foreach} + <br><form action="none"> + <input type="radio" name="aud" value="69(en,mp2)" bgcolor="{#COULEUR_DVD_BORDURE#}"> Son st\xE9r\xE9o<br> + <input type="radio" name="aud" value="69(en,ac3)" bgcolor="{#COULEUR_DVD_BORDURE#}"> Dolby Digital (S/PDIF)<br> + <br><input bgcolor="{#COULEUR_TEXTBOX#}" type=submit value="Valider les modifications"></form> + +{elseif $module=='sstitre'} +<font size="3"><u>Sous-titres</u></font><br> + <form action="options.php" method="get"><input type=hidden name=module value=sstitre><br> + {foreach from=$sstitre item=pistess key=key name=sstitre} + <input type=radio name=sstitre bgcolor="{#COULEUR_DVD_BORDURE#}" value="{$key}"{if $pistess.1} checked{/if}>{$pistess.0}<br> + {/foreach} + + <table width="560" border="1" cellpadding="1" cellspacing="0" align="left"> + <tr><td align="left"> + Les param\xE8tres suivants ne seront pris en compte qu'apr\xE8s le red\xE9marage du films. Ils seront sauvegard\xE9s dans Easybox pour les prochaines utilisations de easybox<br /> + <font size="3"><u>Position :</u></font> + <input type=text bgcolor="{#COULEUR_DVD_BORDURE#}" name="sub_margin" size=3 maxlength=3 value="{$sub_margin}"><br> + <font size="3"><u>Aspect</u></font> + + <table width="300" border=... [truncated message content] |
From: <ara...@us...> - 2007-02-19 18:26:34
|
Revision: 72 http://svn.sourceforge.net/easybox-mod/?rev=72&view=rev Author: aragornis Date: 2007-02-19 10:16:41 -0800 (Mon, 19 Feb 2007) Log Message: ----------- - dossier r?\195?\169serv?\195?\169 aux icones des modules optionnels - suppression des th?\195?\170mes - cr?\195?\169ation d'une classe pour les fichiers ini - correction de l'acces au tableau $ini (ajout des quotes partout) - pb de changement de background r?\195?\169gl?\195?\169 (cr?\195?\169ation dans le couleurs.conf d'une cl?\195?\169 pour d?\195?\169finir lequel lancer) - configuration le fichier erreur.php - signets sous forme de liste avec changement de page... - images etc... dans chaque skin s?\195?\169par?\195?\169 Modified Paths: -------------- trunk/_framework/aide/help.php trunk/_framework/bouton/bouton_general.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/configuration/config.xml trunk/configuration/demarrage.php trunk/configuration/general.php trunk/configuration/index1.php trunk/configuration/scan_amc.php trunk/configuration/scan_audio.php trunk/configuration/scan_video.php trunk/configuration/verif_config.php trunk/erreur.php trunk/module/_explorateur/index1.php trunk/module/_menu/menu.php trunk/module/diaporama/index1.php trunk/module/dvd/index1.php trunk/module/favoris/index1.php trunk/module/films/fichefilm.php trunk/module/films/films.tpl trunk/module/films/index1.php trunk/module/films/play.php trunk/module/films/playrep.php trunk/module/htmllight/index1.php trunk/module/mail/index1.php trunk/module/messagerie/index1.php trunk/module/mp3/audio.tpl trunk/module/mp3/index1.php trunk/module/mp3/lecteuraudio.php trunk/module/mp3/playdb.php trunk/module/multiposte/add.php trunk/module/screensaver/index1.php trunk/module/seances/listesalle.php trunk/module/seances/listeville.php trunk/module/signet/index1.php trunk/module/signet/signet.tpl trunk/skin/simple/config_skin.php trunk/skin/simple/couleur.conf trunk/skin/simple/demarrage.tpl trunk/skin/simple/framework_skin.php trunk/skin/simple/menu.tpl trunk/skin/simple/option.tpl trunk/skin/simplegreen/config_skin.php trunk/skin/simplegreen/couleur.conf trunk/skin/simplegreen/demarrage.tpl trunk/skin/simplegreen/framework_skin.php trunk/skin/simplegreen/interface/player.gif trunk/skin/simplegreen/menu.tpl trunk/skin/simplegreen/option.tpl Added Paths: ----------- trunk/_framework/lib/ini.php trunk/ressources/ trunk/ressources/background/ trunk/ressources/background/fond.jpg trunk/ressources/background/fond0.jpg trunk/ressources/background/fond1.jpg trunk/ressources/background/fond2.jpg trunk/ressources/background/fond3.jpg trunk/ressources/background/fond4.jpg trunk/ressources/icones/ trunk/skin/simple/background/background.jpg trunk/skin/simple/chaines/2MMaroc.gif trunk/skin/simple/chaines/AB1.gif trunk/skin/simple/chaines/ABMoteurs.gif trunk/skin/simple/chaines/AlJazeera.gif trunk/skin/simple/chaines/AlJazeeraChildren.gif trunk/skin/simple/chaines/AlMasriya.gif trunk/skin/simple/chaines/ArmeniaTV.gif trunk/skin/simple/chaines/Arte.gif trunk/skin/simple/chaines/ArteAllemand.gif trunk/skin/simple/chaines/AstroCenterTV.gif trunk/skin/simple/chaines/BFMTV.gif trunk/skin/simple/chaines/Bestofshopping.gif trunk/skin/simple/chaines/BloombergTV.gif trunk/skin/simple/chaines/BulgariaTv.gif trunk/skin/simple/chaines/CANAL+.gif trunk/skin/simple/chaines/DW-TV.gif trunk/skin/simple/chaines/Demain_.gif trunk/skin/simple/chaines/Direct8.gif trunk/skin/simple/chaines/Euronews.gif trunk/skin/simple/chaines/Europe2TV.gif trunk/skin/simple/chaines/FashionTV.gif trunk/skin/simple/chaines/France2.gif trunk/skin/simple/chaines/France3.gif trunk/skin/simple/chaines/France4.gif trunk/skin/simple/chaines/France5.gif trunk/skin/simple/chaines/Franceo.gif trunk/skin/simple/chaines/FreenewsTV.gif trunk/skin/simple/chaines/FunTV.gif trunk/skin/simple/chaines/GameOne.gif trunk/skin/simple/chaines/GodTV.gif trunk/skin/simple/chaines/Image2.gif trunk/skin/simple/chaines/KTO.gif trunk/skin/simple/chaines/Kanal7INT.gif trunk/skin/simple/chaines/L'?\195?\169quipeTV.gif trunk/skin/simple/chaines/L'Equipetv.gif trunk/skin/simple/chaines/LaChaineMarseille.gif trunk/skin/simple/chaines/LaChaineParlementaire.gif trunk/skin/simple/chaines/Lalocale.gif trunk/skin/simple/chaines/LibertyTV.com.gif trunk/skin/simple/chaines/M6Boutique.gif trunk/skin/simple/chaines/M6Musicblack.gif trunk/skin/simple/chaines/M6Musichits.gif trunk/skin/simple/chaines/M6Musicrock.gif trunk/skin/simple/chaines/MTVFrance.gif trunk/skin/simple/chaines/MireFREEBOX.gif trunk/skin/simple/chaines/Motorstv.gif trunk/skin/simple/chaines/NRJ12.gif trunk/skin/simple/chaines/NRJ125.1.gif trunk/skin/simple/chaines/NRJ12Stereo.gif trunk/skin/simple/chaines/NT1.gif trunk/skin/simple/chaines/NormandieTV.gif trunk/skin/simple/chaines/PhoenixChineseNewsandEntertainment.gif trunk/skin/simple/chaines/RTL9.gif trunk/skin/simple/chaines/RTMMaroc.gif trunk/skin/simple/chaines/RTPi.gif trunk/skin/simple/chaines/RTRPlaneta.gif trunk/skin/simple/chaines/RaiDue.gif trunk/skin/simple/chaines/RaiTre.gif trunk/skin/simple/chaines/RaiUno.gif trunk/skin/simple/chaines/RealMadridTV.gif trunk/skin/simple/chaines/SamanyoluTV.gif trunk/skin/simple/chaines/SkyNews.gif trunk/skin/simple/chaines/SkyNewsInternational.gif trunk/skin/simple/chaines/TRTINT.gif trunk/skin/simple/chaines/TV5.gif trunk/skin/simple/chaines/TV7Bordeaux.gif trunk/skin/simple/chaines/TV7Tunisia.gif trunk/skin/simple/chaines/TV8Mont-Blanc.gif trunk/skin/simple/chaines/TVEInternational.gif trunk/skin/simple/chaines/TVPolonia.gif trunk/skin/simple/chaines/TVRomania.gif trunk/skin/simple/chaines/TeleGrenoble.gif trunk/skin/simple/chaines/Telenantes_Nantes7.gif trunk/skin/simple/chaines/Teleplaisance.org.gif trunk/skin/simple/chaines/W9.gif trunk/skin/simple/chaines/adjaraTV.gif trunk/skin/simple/chaines/beurtv.gif trunk/skin/simple/chaines/canalalgerie.gif trunk/skin/simple/chaines/canalplus.gif trunk/skin/simple/chaines/cctv4.gif trunk/skin/simple/chaines/cnbc.gif trunk/skin/simple/chaines/cnbceurope.gif trunk/skin/simple/chaines/demain.gif trunk/skin/simple/chaines/etbSat.gif trunk/skin/simple/chaines/freenews.gif trunk/skin/simple/chaines/gulli.gif trunk/skin/simple/chaines/iTELE.gif trunk/skin/simple/chaines/moteur.gif trunk/skin/simple/chaines/mtv.gif trunk/skin/simple/chaines/t.tv.gif trunk/skin/simple/chaines/telif.gif trunk/skin/simple/chaines/tf1.gif trunk/skin/simple/chaines/tfj.gif trunk/skin/simple/chaines/tlm.gif trunk/skin/simple/chaines/tlt.gif trunk/skin/simple/chaines/zik.gif trunk/skin/simple/icones/Agenda.gif trunk/skin/simple/icones/AnnuaireFreebox.gif trunk/skin/simple/icones/Audio.gif trunk/skin/simple/icones/Cac40.gif trunk/skin/simple/icones/Cinema.gif trunk/skin/simple/icones/DVD.gif trunk/skin/simple/icones/Emissions.gif trunk/skin/simple/icones/Enregistrement.gif trunk/skin/simple/icones/Ephemeride.gif trunk/skin/simple/icones/Favoris.gif trunk/skin/simple/icones/Films.gif trunk/skin/simple/icones/GuideTV.gif trunk/skin/simple/icones/Horoscope.gif trunk/skin/simple/icones/Html-Light.gif trunk/skin/simple/icones/Info-Trafic.gif trunk/skin/simple/icones/Infos.gif trunk/skin/simple/icones/Internet.gif trunk/skin/simple/icones/Livescore.gif trunk/skin/simple/icones/Loto.gif trunk/skin/simple/icones/Mails.gif trunk/skin/simple/icones/Messagerie.gif trunk/skin/simple/icones/Meteo.gif trunk/skin/simple/icones/Modules.gif trunk/skin/simple/icones/Multimedia.gif trunk/skin/simple/icones/Photos.gif trunk/skin/simple/icones/Pratique.gif trunk/skin/simple/icones/ProgrammeCine.gif trunk/skin/simple/icones/RSS.gif trunk/skin/simple/icones/Recettes.gif trunk/skin/simple/icones/ReseauFree.fr.gif trunk/skin/simple/icones/Shutdown.gif trunk/skin/simple/icones/Signet.gif trunk/skin/simple/icones/SortiesCine.gif trunk/skin/simple/icones/Web.gif trunk/skin/simple/icones/WebMedia.gif trunk/skin/simple/icones/firefox.gif trunk/skin/simple/icones/horloge-mini.gif trunk/skin/simple/icones/horloge.gif trunk/skin/simple/icones/menunews.gif trunk/skin/simple/icones/morpion.gif trunk/skin/simple/icones/pendu.gif trunk/skin/simple/icones/sudoku.gif trunk/skin/simplegreen/background/background.jpg trunk/skin/simplegreen/chaines/2MMaroc.gif trunk/skin/simplegreen/chaines/AB1.gif trunk/skin/simplegreen/chaines/ABMoteurs.gif trunk/skin/simplegreen/chaines/AlJazeera.gif trunk/skin/simplegreen/chaines/AlJazeeraChildren.gif trunk/skin/simplegreen/chaines/AlMasriya.gif trunk/skin/simplegreen/chaines/ArmeniaTV.gif trunk/skin/simplegreen/chaines/Arte.gif trunk/skin/simplegreen/chaines/ArteAllemand.gif trunk/skin/simplegreen/chaines/AstroCenterTV.gif trunk/skin/simplegreen/chaines/BFMTV.gif trunk/skin/simplegreen/chaines/Bestofshopping.gif trunk/skin/simplegreen/chaines/BloombergTV.gif trunk/skin/simplegreen/chaines/BulgariaTv.gif trunk/skin/simplegreen/chaines/CANAL+.gif trunk/skin/simplegreen/chaines/DW-TV.gif trunk/skin/simplegreen/chaines/Demain_.gif trunk/skin/simplegreen/chaines/Direct8.gif trunk/skin/simplegreen/chaines/Euronews.gif trunk/skin/simplegreen/chaines/Europe2TV.gif trunk/skin/simplegreen/chaines/FashionTV.gif trunk/skin/simplegreen/chaines/France2.gif trunk/skin/simplegreen/chaines/France3.gif trunk/skin/simplegreen/chaines/France4.gif trunk/skin/simplegreen/chaines/France5.gif trunk/skin/simplegreen/chaines/Franceo.gif trunk/skin/simplegreen/chaines/FreenewsTV.gif trunk/skin/simplegreen/chaines/FunTV.gif trunk/skin/simplegreen/chaines/GameOne.gif trunk/skin/simplegreen/chaines/GodTV.gif trunk/skin/simplegreen/chaines/Image2.gif trunk/skin/simplegreen/chaines/KTO.gif trunk/skin/simplegreen/chaines/Kanal7INT.gif trunk/skin/simplegreen/chaines/L'?\195?\169quipeTV.gif trunk/skin/simplegreen/chaines/L'Equipetv.gif trunk/skin/simplegreen/chaines/LaChaineMarseille.gif trunk/skin/simplegreen/chaines/LaChaineParlementaire.gif trunk/skin/simplegreen/chaines/Lalocale.gif trunk/skin/simplegreen/chaines/LibertyTV.com.gif trunk/skin/simplegreen/chaines/M6Boutique.gif trunk/skin/simplegreen/chaines/M6Musicblack.gif trunk/skin/simplegreen/chaines/M6Musichits.gif trunk/skin/simplegreen/chaines/M6Musicrock.gif trunk/skin/simplegreen/chaines/MTVFrance.gif trunk/skin/simplegreen/chaines/MireFREEBOX.gif trunk/skin/simplegreen/chaines/Motorstv.gif trunk/skin/simplegreen/chaines/NRJ12.gif trunk/skin/simplegreen/chaines/NRJ125.1.gif trunk/skin/simplegreen/chaines/NRJ12Stereo.gif trunk/skin/simplegreen/chaines/NT1.gif trunk/skin/simplegreen/chaines/NormandieTV.gif trunk/skin/simplegreen/chaines/PhoenixChineseNewsandEntertainment.gif trunk/skin/simplegreen/chaines/RTL9.gif trunk/skin/simplegreen/chaines/RTMMaroc.gif trunk/skin/simplegreen/chaines/RTPi.gif trunk/skin/simplegreen/chaines/RTRPlaneta.gif trunk/skin/simplegreen/chaines/RaiDue.gif trunk/skin/simplegreen/chaines/RaiTre.gif trunk/skin/simplegreen/chaines/RaiUno.gif trunk/skin/simplegreen/chaines/RealMadridTV.gif trunk/skin/simplegreen/chaines/SamanyoluTV.gif trunk/skin/simplegreen/chaines/SkyNews.gif trunk/skin/simplegreen/chaines/SkyNewsInternational.gif trunk/skin/simplegreen/chaines/TRTINT.gif trunk/skin/simplegreen/chaines/TV5.gif trunk/skin/simplegreen/chaines/TV7Bordeaux.gif trunk/skin/simplegreen/chaines/TV7Tunisia.gif trunk/skin/simplegreen/chaines/TV8Mont-Blanc.gif trunk/skin/simplegreen/chaines/TVEInternational.gif trunk/skin/simplegreen/chaines/TVPolonia.gif trunk/skin/simplegreen/chaines/TVRomania.gif trunk/skin/simplegreen/chaines/TeleGrenoble.gif trunk/skin/simplegreen/chaines/Telenantes_Nantes7.gif trunk/skin/simplegreen/chaines/Teleplaisance.org.gif trunk/skin/simplegreen/chaines/W9.gif trunk/skin/simplegreen/chaines/adjaraTV.gif trunk/skin/simplegreen/chaines/beurtv.gif trunk/skin/simplegreen/chaines/canalalgerie.gif trunk/skin/simplegreen/chaines/canalplus.gif trunk/skin/simplegreen/chaines/cctv4.gif trunk/skin/simplegreen/chaines/cnbc.gif trunk/skin/simplegreen/chaines/cnbceurope.gif trunk/skin/simplegreen/chaines/demain.gif trunk/skin/simplegreen/chaines/etbSat.gif trunk/skin/simplegreen/chaines/freenews.gif trunk/skin/simplegreen/chaines/gulli.gif trunk/skin/simplegreen/chaines/iTELE.gif trunk/skin/simplegreen/chaines/moteur.gif trunk/skin/simplegreen/chaines/mtv.gif trunk/skin/simplegreen/chaines/t.tv.gif trunk/skin/simplegreen/chaines/telif.gif trunk/skin/simplegreen/chaines/tf1.gif trunk/skin/simplegreen/chaines/tfj.gif trunk/skin/simplegreen/chaines/tlm.gif trunk/skin/simplegreen/chaines/tlt.gif trunk/skin/simplegreen/chaines/zik.gif trunk/skin/simplegreen/icones/Agenda.gif trunk/skin/simplegreen/icones/AnnuaireFreebox.gif trunk/skin/simplegreen/icones/Audio.gif trunk/skin/simplegreen/icones/Cac40.gif trunk/skin/simplegreen/icones/Cinema.gif trunk/skin/simplegreen/icones/DVD.gif trunk/skin/simplegreen/icones/Emissions.gif trunk/skin/simplegreen/icones/Enregistrement.gif trunk/skin/simplegreen/icones/Ephemeride.gif trunk/skin/simplegreen/icones/Favoris.gif trunk/skin/simplegreen/icones/Films.gif trunk/skin/simplegreen/icones/GuideTV.gif trunk/skin/simplegreen/icones/Horoscope.gif trunk/skin/simplegreen/icones/Html-Light.gif trunk/skin/simplegreen/icones/Info-Trafic.gif trunk/skin/simplegreen/icones/Infos.gif trunk/skin/simplegreen/icones/Internet.gif trunk/skin/simplegreen/icones/Livescore.gif trunk/skin/simplegreen/icones/Loto.gif trunk/skin/simplegreen/icones/Mails.gif trunk/skin/simplegreen/icones/Messagerie.gif trunk/skin/simplegreen/icones/Meteo.gif trunk/skin/simplegreen/icones/Modules.gif trunk/skin/simplegreen/icones/Multimedia.gif trunk/skin/simplegreen/icones/Photos.gif trunk/skin/simplegreen/icones/Pratique.gif trunk/skin/simplegreen/icones/ProgrammeCine.gif trunk/skin/simplegreen/icones/RSS.gif trunk/skin/simplegreen/icones/Recettes.gif trunk/skin/simplegreen/icones/ReseauFree.fr.gif trunk/skin/simplegreen/icones/Shutdown.gif trunk/skin/simplegreen/icones/Signet.gif trunk/skin/simplegreen/icones/SortiesCine.gif trunk/skin/simplegreen/icones/Web.gif trunk/skin/simplegreen/icones/WebMedia.gif trunk/skin/simplegreen/icones/firefox.gif trunk/skin/simplegreen/icones/horloge-mini.gif trunk/skin/simplegreen/icones/horloge.gif trunk/skin/simplegreen/icones/menunews.gif trunk/skin/simplegreen/icones/morpion.gif trunk/skin/simplegreen/icones/pendu.gif trunk/skin/simplegreen/icones/sudoku.gif Removed Paths: ------------- trunk/themes/ Modified: trunk/_framework/aide/help.php =================================================================== --- trunk/_framework/aide/help.php 2007-02-12 10:06:41 UTC (rev 71) +++ trunk/_framework/aide/help.php 2007-02-19 18:16:41 UTC (rev 72) @@ -2,7 +2,7 @@ $RACINE_REP = "../../"; require($RACINE_REP.'_framework/framework.php'); - if ($ini[explorateur][freeboxHD] == 'oui') $typeTel = 'telehd'; + if ($ini['explorateur']['freeboxHD'] == 'oui') $typeTel = 'telehd'; else $typeTel = 'tele'; if (isset($_GET['affichage'])) $affichage = $_GET['affichage']; Modified: trunk/_framework/bouton/bouton_general.php =================================================================== --- trunk/_framework/bouton/bouton_general.php 2007-02-12 10:06:41 UTC (rev 71) +++ trunk/_framework/bouton/bouton_general.php 2007-02-19 18:16:41 UTC (rev 72) @@ -4,7 +4,7 @@ //-- Active les favoris touches $n='0'; $trouve ='0'; - while ($n <= '9'){ if ($ini[favoris]['touche'.$n]!=".") { $trouve = '1'; } $n++; } + 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" AND $LEVEL=="5") { $META['nochannel_page']=$FRAMEWORK_REP.'favoris_touches.php?page='.urlencode($_SERVER['REQUEST_URI']).'&favoris_touche=%d'; Modified: trunk/_framework/demarrage.php =================================================================== --- trunk/_framework/demarrage.php 2007-02-12 10:06:41 UTC (rev 71) +++ trunk/_framework/demarrage.php 2007-02-19 18:16:41 UTC (rev 72) @@ -29,9 +29,9 @@ } //-- Chargement des donn\xE9es de configuration - $intro = $ini[demarrage][intro]; - $intro == 'non'; - $demarrage = $MODULE.$ini[demarrage][demarrage].'?START=OK'; + $intro = $ini['demarrage']['intro']; + $intro = 'non'; + $demarrage = $MODULE.$ini['demarrage']['demarrage'].'?START=OK'; $mdp = array($ini['utilisateur']['namelevel5']=>$ini['utilisateur']['level5'], $ini['utilisateur']['namelevel4']=>$ini['utilisateur']['level4'], @@ -49,7 +49,7 @@ $smarty->assign('etape',$etape); - $META['refresh']= '1;url=demarrage.php?etape=2'; + $META['refresh']= '0;url=demarrage.php?etape=2'; switch($etape){ @@ -68,7 +68,7 @@ break; // Phase d'initialisation case 2: - $META['refresh']= '1;url=demarrage.php?etape=3'; + $META['refresh']= '0;url=demarrage.php?etape=3'; //V\xE9rification des bases de donn\xE9es require_once($GESTION."verif_config.php"); @readfile('http://localhost:8081/lecteur/set_option.html'); @@ -145,17 +145,17 @@ } require('init_version.php'); - $META['refresh']= '1;url=demarrage.php?etape=4'; + $META['refresh']= '0;url=demarrage.php?etape=4'; break; // Phase d'identification case 4: - if((isset($_GET['user']) AND ($mdp[$_GET['user']]==md5($_GET['pass']) OR ($mdp[$_GET['user']]=='' AND $_GET['pass']==''))) OR $ini[utilisateur][actif] == "non") { + if((isset($_GET['user']) AND ($mdp[$_GET['user']]==md5($_GET['pass']) OR ($mdp[$_GET['user']]=='' AND $_GET['pass']==''))) OR $ini['utilisateur']['actif'] == "non") { // On rentre en level demand\xE9 - $META['refresh'] = '1;url='.$MODULE.$ini[demarrage][demarrage].'?START=OK'; + $META['refresh'] = '1;url='.$MODULE.$ini['demarrage']['demarrage'].'?START=OK'; - if($ini[utilisateur][actif] == "non"){ + if($ini['utilisateur']['actif'] == "non"){ save_variable('level_user', 5); save_variable('name_user', $users[0]); }else{ @@ -235,8 +235,8 @@ fclose($fp); */ - $pisteaudio = $ini[multimedia][sortiefreebox]; - $decallage = $ini[multimedia][compensation]; + $pisteaudio = $ini['multimedia']['sortiefreebox']; + $decallage = $ini['multimedia']['compensation']; if($pisteaudio=='TV') { // $META['aud'] = '69(en,mp2)'; $play = 'type=1'; Modified: trunk/_framework/dwl.php =================================================================== --- trunk/_framework/dwl.php 2007-02-12 10:06:41 UTC (rev 71) +++ trunk/_framework/dwl.php 2007-02-19 18:16:41 UTC (rev 72) @@ -8,10 +8,8 @@ </head> <body> <?php -require($RACINE_REP.'_framework/framework.php'); +require_once($RACINE_REP.'_framework/framework.php'); - // Chargement du fichier INI de configuration -$ini = parse_ini_file("../_utilisateur/configuration.ini", TRUE); $liens = urldecode($_GET['fichier']); $nom = urldecode($_GET['nom']); $version = urldecode($_GET['version']); @@ -43,7 +41,7 @@ } ///////// T\xE9l\xE9chargement directe pour les skins - download_file($liens, $RACINE_REP.$plus, $nom); + download_file($liens, $RACINE_REP.$plus, $nom); echo "<center>"; echo $txt_dwl; Modified: trunk/_framework/favoris_touches.php =================================================================== --- trunk/_framework/favoris_touches.php 2007-02-12 10:06:41 UTC (rev 71) +++ trunk/_framework/favoris_touches.php 2007-02-19 18:16:41 UTC (rev 72) @@ -3,23 +3,23 @@ require($RACINE_REP.'_framework/framework.php'); $touche = 'touche'.$_GET['favoris_touche']; -if ($touche == "touche0" AND $ini[screensaver][scr_actif]=='oui') { +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]; + 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]; }else{ - $redir = $RACINE_REP."module/".$ini[favoris][$touche]."index1.php"; - if ($ini[favoris][$touche] == "mp3/") { - $redir = $RACINE_REP."module/".$ini[favoris][$touche]."lecteuraudio.php"; + $redir = $RACINE_REP."module/".$ini['favoris'][$touche]."index1.php"; + if ($ini['favoris'][$touche] == "mp3/") { + $redir = $RACINE_REP."module/".$ini['favoris'][$touche]."lecteuraudio.php"; } } }else{ $redir = "..".urldecode($_GET['page']); $redir = "back"; - $texte1 = 'Cette touche n\'est pas programmer<br />'; + $texte1 = 'Cette touche n\'est pas programm\xE9e<br />'; } } Modified: trunk/_framework/fonctions_partagees.inc.php =================================================================== --- trunk/_framework/fonctions_partagees.inc.php 2007-02-12 10:06:41 UTC (rev 71) +++ trunk/_framework/fonctions_partagees.inc.php 2007-02-19 18:16:41 UTC (rev 72) @@ -7,9 +7,9 @@ $name=$basename; } if($realpath){ -fclose(fopen('http://127.0.0.1:8081/lecteur/'.$ini[multimedia][qualite].'?'.$page.'&mrl='.urlencode(addslashes(utf8_encode(realpath($basename)))), "r")); +fclose(fopen('http://127.0.0.1:8081/lecteur/'.$ini['multimedia']['qualite'].'?'.$page.'&mrl='.urlencode(addslashes(utf8_encode(realpath($basename)))), "r")); }else{ -fclose(fopen('http://127.0.0.1:8081/lecteur/'.$ini[multimedia][qualite].'?'.$page.'&mrl='.urlencode(addslashes($basename)), "r")); +fclose(fopen('http://127.0.0.1:8081/lecteur/'.$ini['multimedia']['qualite'].'?'.$page.'&mrl='.urlencode(addslashes($basename)), "r")); } save_variable('current_file',$name); save_variable('current_type',$type); @@ -441,7 +441,7 @@ } function download_file($file, $dest_dir, $name=''){ - +global $RES_ICO; // on supprime le fichier temp.zip si il existe deja if (file_exists('temp.zip')) { unlink('temp.zip'); @@ -474,7 +474,7 @@ } if (file_exists(realpath($dest_dir).'/icone.gif')){ - copy($ICONE_REP.'/icone.gif', $ICONE_REP.str_replace(array('>',' !',' ','\xE9','\xEE','\xF4'),array('','','','e','i','o'),$name).'.gif'); + copy(realpath($dest_dir).'/icone.gif', realpath($RES_ICO).'/'.str_replace(array('>',' !',' ','\xE9','\xEE','\xF4'),array('','','','e','i','o'),$name).'.gif'); } //// On supprime le fichier temporaire @@ -625,4 +625,13 @@ fwrite($handle, $reini); fclose($handle); } + +// Retourne le dossier de la skin en cours +function skin_rep(){ +global $USER, $MODULE, $SKIN_REP, $ini; + $db = sqlite_open($USER.'modules.db', 0666); + $res = sqlite_query($db,'SELECT repertoire FROM modules WHERE type="Skin" AND nom="'.$ini['skin']['skin'].'"'); + $val = sqlite_fetch_array($res); + return $val['repertoire']; +} ?> Modified: trunk/_framework/framework.php =================================================================== --- trunk/_framework/framework.php 2007-02-12 10:06:41 UTC (rev 71) +++ trunk/_framework/framework.php 2007-02-19 18:16:41 UTC (rev 72) @@ -1,9 +1,9 @@ <?php //-- Test de l'activation de VLC - if(!$contenu_html = file_get_contents("http://127.0.0.1:8081/_framework/vlc/temps2.html")){ + if(!$contenu_html = @file_get_contents("http://127.0.0.1:8081/_framework/vlc/temps2.html")){ echo'<center><br> <br> <br>Vlc n\'est pas lanc\xE9 ou il n\'\xE9coute pas le port 8081</center>'; } - + setlocale(LC_TIME, "fr"); //-- Chargement du r\xE9pertoire du framework @@ -20,52 +20,59 @@ //-- Chargement des autres r\xE9pertoires - $BOUTON = $FRAMEWORK_REP."bouton/"; + $BOUTON = $FRAMEWORK_REP.'bouton/'; $smarty->assign('BOUTON',$BOUTON); - $GESTION = $RACINE_REP."configuration/"; + $GESTION = $RACINE_REP.'configuration/'; $smarty->assign('GESTION',$GESTION); - $USER = $RACINE_REP."_utilisateur/"; + $USER = $RACINE_REP.'_utilisateur/'; $smarty->assign('USER',$USER); - $AUDIOTEMP = $USER."audiotemp/"; + $AUDIOTEMP = $USER.'audiotemp/'; $smarty->assign('AUDIOTEMP',$AUDIOTEMP); - $CACHE_IMAGE = $RACINE_REP."_utilisateur/cache/"; + $CACHE_IMAGE = $RACINE_REP.'_utilisateur/cache/'; $smarty->assign('CACHE_IMAGE',$CACHE_IMAGE); - $MODULE = $RACINE_REP."module/"; + $MODULE = $RACINE_REP.'module/'; $smarty->assign('MODULE',$MODULE); - $LECTEUR = $RACINE_REP."lecteur/"; + $LECTEUR = $RACINE_REP.'lecteur/'; $smarty->assign('LECTEUR',$LECTEUR); - - $IMG2FBX = $FRAMEWORK_REP."img2fbx.php?sURL="; + $RESSOURCES = $RACINE_REP.'ressources/'; + $smarty->assign('RESSOURCES',$RESSOURCES); + $RES_ICO = $RESSOURCES.'icones/'; + $smarty->assign('RES_ICO',$RES_ICO); + + $IMG2FBX = $FRAMEWORK_REP.'img2fbx.php?sURL='; $smarty->assign('IMG2FBX',$IMG2FBX); - $LOAD = $FRAMEWORK_REP."fonctions_partagees.inc.php"; + $LOAD = $FRAMEWORK_REP.'fonctions_partagees.inc.php'; include($LOAD); - $EXPLORATEUR= $MODULE."_explorateur/index1.php"; + $EXPLORATEUR = $MODULE.'_explorateur/index1.php'; $smarty->assign('EXPLORATEUR',$EXPLORATEUR); - $PLAYLIST = $USER."playlist/"; + $PLAYLIST = $USER.'playlist/'; $smarty->assign('PLAYLIST',$PLAYLIST); - $AIDE_REP = $RACINE_REP."_framework/aide/"; + $AIDE_REP = $RACINE_REP.'_framework/aide/'; $smarty->assign('AIDE_REP',$AIDE_REP); //-- Librairie permettant de formater et convertir des dates - require($LIBRARIES_REP."date.php"); + require_once($LIBRARIES_REP.'date.php'); //-- Librairie permettant de gerer les fichier ZIP - require($LIBRARIES_REP."zip.php"); + require_once($LIBRARIES_REP.'zip.php'); -//-- Librairie pour r\xE9cup\xE9rrer des infos sur des fichiers - require($LIBRARIES_REP."get_info.php"); +//-- Librairie pour r\xE9cup\xE9rer des infos sur des fichiers depuis allocine ou autre... + require_once($LIBRARIES_REP.'get_info.php'); -//-- Chargement du fichier de configuration utilisateur - $ini = parse_ini_file($USER."configuration.ini", TRUE); +//--Libraire de gestion du fichier ini + require_once($LIBRARIES_REP.'ini.php'); + +//-- Chargement du fichier de configuration utilisateur - la variable $ini contient les valeurs + $ini_class = new INI($USER.'configuration.ini'); $smarty->assign('ini',$ini); - + //-- Chargement des donn\xE9es du menu //$xml = simplexml_load_file($USER.'modules.xml'); @@ -73,17 +80,12 @@ $xml_aide = simplexml_load_file($AIDE_REP."help.xml"); //-- R\xE9pertoire de la skin - $SKIN_REP = $RACINE_REP.'skin/'.$ini['skin']['skin']."/"; + $SKIN_REP = $RACINE_REP.'skin/'.skin_rep(); $smarty->assign('SKIN_REP',$SKIN_REP); - $THEME_REP = $RACINE_REP.'themes/'; + + $THEME_REP = $RACINE_REP.'themes/'; $smarty->assign('THEME_REP',$THEME_REP); - $ICONE_REP = $THEME_REP."icones/defaut/"; - $smarty->assign('ICONE_REP',$ICONE_REP); - $CHAINE_REP = $THEME_REP."chaines/defaut/"; - $smarty->assign('CHAINE_REP',$CHAINE_REP); - $_COULEUR = parse_ini_file($SKIN_REP.'couleur.conf', TRUE); - //-- Framework du skin require($SKIN_REP."framework_skin.php"); Added: trunk/_framework/lib/ini.php =================================================================== --- trunk/_framework/lib/ini.php (rev 0) +++ trunk/_framework/lib/ini.php 2007-02-19 18:16:41 UTC (rev 72) @@ -0,0 +1,39 @@ +<? + +class INI{ +var $fichier = null; + +function INI($file){ +global $ini; + $fichier = $file; + $ini = parse_ini_file($file, TRUE); +} + +function save(){ +global $ini; + foreach($ini as $key2=>$inisec2) { + $reini .="\n[".$key2."]\n"; + foreach($inisec2 as $subkey2=>$entry2) { + $reini .=$subkey2.' = "'.$entry2."\"\n"; + } + } + $handle = fopen($fichier, "w"); + fwrite($handle, $reini); + fclose($handle); +} + +function del($cat, $cle){ +global $ini; + $ini[$cat][$cle] = null; +} + +function set($cat, $cle, $val){ +global $ini; + $ini[$cat][$cle] = $val; +} + +} + + + +?> Modified: trunk/configuration/config.xml =================================================================== --- trunk/configuration/config.xml 2007-02-12 10:06:41 UTC (rev 71) +++ trunk/configuration/config.xml 2007-02-19 18:16:41 UTC (rev 72) @@ -124,7 +124,7 @@ <titre>play-wifi.html</titre> </choix> <choix> - <nom>Wifi difficile et ordinateurs peu puissants (les d\xE9bits sont bien pas mal diminu\xE9s, \xE0 essayer en cas de lags importants)</nom> + <nom>Wifi difficile et ordinateurs peu puissants (les d\xE9bits sont pas mal diminu\xE9s, \xE0 essayer en cas de lags importants)</nom> <titre>play-low.html</titre> </choix> </option> Modified: trunk/configuration/demarrage.php =================================================================== --- trunk/configuration/demarrage.php 2007-02-12 10:06:41 UTC (rev 71) +++ trunk/configuration/demarrage.php 2007-02-19 18:16:41 UTC (rev 72) @@ -5,26 +5,17 @@ <tr> <td valign="top"> <?php -$CONFIG_INI = "../_utilisateur/configuration.ini"; +$CONFIG_INI = "../_utilisateur/configuration.ini"; +$ini_class = new INI($CONFIG_INI); + if (isset($_GET['demarrage'])){ - $ini1 = parse_ini_file($CONFIG_INI, TRUE); - foreach($ini1 as $key2=>$inisec2){ - $reini .="\n[".$key2."]\n"; - foreach($inisec2 as $subkey2=>$entry2){ - if($subkey2=="demarrage" && $key2=="demarrage") - $reini .=$subkey2.' = "'.$_GET['demarrage']."\"\n"; - else - $reini .=$subkey2.' = "'.$ini1[$key2][$subkey2]."\"\n"; - } - } -$handle = fopen($CONFIG_INI, "w"); -fwrite($handle, $reini); -fclose($handle); + $ini_class->set('demarrage','demarrage',$_GET['demarrage']); + $ini_class->save; } -$ini = parse_ini_file($CONFIG_INI, TRUE); -$demarrage = $ini[demarrage][demarrage]; +$demarrage = $ini['demarrage']['demarrage']; + $USER = '../_utilisateur/'; $MOD = get_all_module(); Modified: trunk/configuration/general.php =================================================================== --- trunk/configuration/general.php 2007-02-12 10:06:41 UTC (rev 71) +++ trunk/configuration/general.php 2007-02-19 18:16:41 UTC (rev 72) @@ -5,11 +5,11 @@ //variables initiales pour les navigateurs $repinitial = ereg_replace("[\\]","/",strtolower(realpath("../../../../../../../../../.."))); +$ini_class = new INI($CONFIG_INI); + //-- Enregistrement des donn\xE9es if(count($_REQUEST)!="0") { - $ini = parse_ini_file($CONFIG_INI, TRUE); foreach($ini as $key2=>$inisec2) { - $reini .="\n[".$key2."]\n"; foreach($inisec2 as $subkey2=>$entry2) { if(eregi($key2.'[|]'.$subkey2.'=', urldecode($_SERVER['QUERY_STRING']))){ $valeur2 = stripslashes($_REQUEST[$key2.'|'.$subkey2]); @@ -19,17 +19,12 @@ }elseif($valeur2!=''){ $valeur2 = $entry2; } - } - $reini .=$subkey2.' = "'.$valeur2."\"\n"; - }else{ - $reini .=$subkey2.' = "'.$entry2."\"\n"; + } + $ini_class->set($key2,$subkey2,$valeur2); } } } - $handle = fopen($CONFIG_INI, "w"); - fwrite($handle, $reini); - fclose($handle); - +$ini->save; } function affiche_page(){ @@ -249,12 +244,11 @@ <?php -$ini = parse_ini_file($CONFIG_INI, TRUE); -$extv = $ini[explorateur][ext]; -$extp= $ini[explorateur][ext_photo]; -$exta= $ini[explorateur][ext_audio]; +$extv = $ini['explorateur']['ext']; +$extp= $ini['explorateur']['ext_photo']; +$exta= $ini['explorateur']['ext_audio']; // Extension NOSCAN -$extnoscan= $ini[explorateur][ext_noscan]; +$extnoscan= $ini['explorateur']['ext_noscan']; $ext = (ereg_replace (",", "|", $extv."|".$extp."|".$exta."|".$extnoscan)); $n = '1'; Modified: trunk/configuration/index1.php =================================================================== --- trunk/configuration/index1.php 2007-02-12 10:06:41 UTC (rev 71) +++ trunk/configuration/index1.php 2007-02-19 18:16:41 UTC (rev 72) @@ -159,8 +159,9 @@ <?php - require('verif_config.php'); - require('../_framework/fonctions_partagees.inc.php'); + require_once('verif_config.php'); + require_once('../_framework/fonctions_partagees.inc.php'); + require_once('../_framework/lib/ini.php'); ?> <?php $page='0'; Modified: trunk/configuration/scan_amc.php =================================================================== --- trunk/configuration/scan_amc.php 2007-02-12 10:06:41 UTC (rev 71) +++ trunk/configuration/scan_amc.php 2007-02-19 18:16:41 UTC (rev 72) @@ -16,10 +16,10 @@ <table width="450" style="border: thin outset;font-size: 13px;"> <tr><td> <?php -$rep = $ini[explorateur][liste_amc_defaut]; -$fichier = $ini[explorateur][nom_amc_defaut]; -$repimg = $ini[explorateur][image_amc_defaut]; -$afficher_fichier_cache = $ini[explorateur][afficher_fichier_cache]; +$rep = $ini['explorateur']['liste_amc_defaut']; +$fichier = $ini['explorateur']['nom_amc_defaut']; +$repimg = $ini['explorateur']['image_amc_defaut']; +$afficher_fichier_cache = $ini['explorateur']['afficher_fichier_cache']; $rep = realpath(ereg_replace("\\\'", "'", $rep)); $db = sqlite_open('../_utilisateur/video.db', 0666); $mtdb_file = $rep."/".$fichier; Modified: trunk/configuration/scan_audio.php =================================================================== --- trunk/configuration/scan_audio.php 2007-02-12 10:06:41 UTC (rev 71) +++ trunk/configuration/scan_audio.php 2007-02-19 18:16:41 UTC (rev 72) @@ -6,8 +6,8 @@ require_once('class/class.ogg.php'); require_once('class/class.id3.php'); -$ext = $ini[explorateur][ext_audio]; -$afficher_fichier_cache = $ini[explorateur][afficher_fichier_cache]; +$ext = $ini['explorateur']['ext_audio']; +$afficher_fichier_cache = $ini['explorateur']['afficher_fichier_cache']; $extv=explode(",",$ext); $ext_NoScanExploded=explode(",",$ext_noscan); @@ -106,7 +106,7 @@ } } - $rep = $ini[explorateur][audio_defaut]; + $rep = $ini['explorateur']['audio_defaut']; $table = explode("|",$rep); foreach($table as $entry){ Modified: trunk/configuration/scan_video.php =================================================================== --- trunk/configuration/scan_video.php 2007-02-12 10:06:41 UTC (rev 71) +++ trunk/configuration/scan_video.php 2007-02-19 18:16:41 UTC (rev 72) @@ -76,7 +76,7 @@ } } - $rep = $ini[explorateur][films_defaut]; + $rep = $ini['explorateur']['films_defaut']; $table = explode("|",$rep); foreach($table as $entry){ Modified: trunk/configuration/verif_config.php =================================================================== --- trunk/configuration/verif_config.php 2007-02-12 10:06:41 UTC (rev 71) +++ trunk/configuration/verif_config.php 2007-02-19 18:16:41 UTC (rev 72) @@ -4,26 +4,13 @@ $GESTION=''; } $xml = simplexml_load_file($GESTION.'bases.xml'); +require_once($USER.'../_framework/lib/ini.php'); function sqlite_table_exists($db, $table){ $result = sqlite_query($db, "SELECT name FROM sqlite_master WHERE type='table' AND name='$table'"); return (sqlite_num_rows($result)!=0); } -function array2ini_file($array, $file) -{ - $fp = fopen($file,"w") - or die("<b>Erreur - Un fichier de configuration n'a pas pu \xEAtre cr\xE9e !</b>"); - while(list($key, $value) = each($array)) - { - fwrite ($fp, "\n[".$key."]\n"); - while(list($k, $v) = each($value)) - fwrite($fp, $k." = \"".$v."\"\n"); - } - return(TRUE); -} - - foreach ($xml->base as $base) { $db = sqlite_open($USER.$base->nom, 0666); $num=0; @@ -45,12 +32,9 @@ } } - -$ini = @parse_ini_file($USER.'configuration.ini', TRUE); +$ini_class = new INI($USER.'configuration.ini'); $xml = simplexml_load_file($GESTION.'config.xml'); -$ini_copy=$ini; - if (PHP_OS == "WIN32" || PHP_OS == "WINNT") $defaut='defaut1'; else @@ -60,13 +44,12 @@ foreach($cat->souscat as $souscat){ if (!isset($ini[utf8_decode($cat['name'])][utf8_decode($souscat['name'])])){ if ((($souscat->type)=='navigateur')||(($souscat->type)=='dvd')) - $ini_copy[utf8_decode($cat['name'])][utf8_decode($souscat['name'])]=utf8_decode($souscat->$defaut); + $ini_class->set(utf8_decode($cat['name']),utf8_decode($souscat['name']),utf8_decode($souscat->$defaut)); else - $ini_copy[utf8_decode($cat['name'])][utf8_decode($souscat['name'])]=utf8_decode($souscat->defaut); + $ini_class->set(utf8_decode($cat['name']),utf8_decode($souscat['name']),utf8_decode($souscat->defaut)); } } } +$ini_class->save; -array2ini_file($ini_copy, $USER.'configuration.ini'); - ?> Modified: trunk/erreur.php =================================================================== --- trunk/erreur.php 2007-02-12 10:06:41 UTC (rev 71) +++ trunk/erreur.php 2007-02-19 18:16:41 UTC (rev 72) @@ -0,0 +1,11 @@ +<? +$RACINE_REP = ""; +require($RACINE_REP.'_framework/framework.php'); + +$META['refresh'] = '0;url=/_framework/demarrage.php'; + +$CONTENT = 'Une erreur est survenue. Une page n\'a pas \xE9t\xE9 trouv\xE9e ou n\'a pas \xE9t\xE9 ex\xE9cut\xE9e correctement. Easybox va red\xE9marrer...'; +$smarty->assign('AVERTISSEMENT',$CONTENT); +$smarty->display('avertissement.tpl'); + +?> Modified: trunk/module/_explorateur/index1.php =================================================================== --- trunk/module/_explorateur/index1.php 2007-02-12 10:06:41 UTC (rev 71) +++ trunk/module/_explorateur/index1.php 2007-02-19 18:16:41 UTC (rev 72) @@ -26,7 +26,7 @@ if (!isset($aff_cdda)) { $aff_cdda = "0"; } -$afficher_fichier_cache = $ini[explorateur][afficher_fichier_cache]; +$afficher_fichier_cache = $ini['explorateur']['afficher_fichier_cache']; if (isset($_GET['directory'])){ $rep = urldecode($_GET['directory']); @@ -54,7 +54,7 @@ } //Ajout dans la base de donn\xE9e pour les retours - if($extension==$ini[explorateur][ext]){ + if($extension==$ini['explorateur']['ext']){ save_variable('lastexpl', 'explorateur'); save_variable('lastrep', $rep); save_variable('rep_min', $min); Modified: trunk/module/_menu/menu.php =================================================================== --- trunk/module/_menu/menu.php 2007-02-12 10:06:41 UTC (rev 71) +++ trunk/module/_menu/menu.php 2007-02-19 18:16:41 UTC (rev 72) @@ -8,7 +8,7 @@ global $xml, $LEVEL_ACTIF, $USER, $ini; $db = sqlite_open($USER.'modules.db', 0666); - if ($ini[modules][afficher_categories] == 'oui') + if ($ini['modules']['afficher_categories'] == 'oui') { $query = 'SELECT * FROM modules WHERE ((type="Module" AND categorie=1) OR (type="Cat\xE9gorie" AND nom!="Menu")) AND '.$LEVEL_ACTIF.'=1'; } else Modified: trunk/module/diaporama/index1.php =================================================================== --- trunk/module/diaporama/index1.php 2007-02-12 10:06:41 UTC (rev 71) +++ trunk/module/diaporama/index1.php 2007-02-19 18:16:41 UTC (rev 72) @@ -6,7 +6,7 @@ } -$extension = $ini[explorateur][ext_photo]; +$extension = $ini['explorateur']['ext_photo']; $ext_ok = explode(",",$extension); $ext = $ext_ok; @@ -101,7 +101,7 @@ if ($_GET['rep']) { $rep = $_GET['rep']; }elseif(!isset($_GET['dos'])){ - $rep_default = explode("|",$ini[explorateur][photos_defaut]); + $rep_default = explode("|",$ini['explorateur']['photos_defaut']); $rep = $rep_default[0].'/'; } Modified: trunk/module/dvd/index1.php =================================================================== --- trunk/module/dvd/index1.php 2007-02-12 10:06:41 UTC (rev 71) +++ trunk/module/dvd/index1.php 2007-02-19 18:16:41 UTC (rev 72) @@ -7,7 +7,7 @@ if (isset($_GET['dvd'])){ $dvd = urldecode($_GET['dvd']); } else { - $rep_default = $ini[explorateur][dvd]; + $rep_default = $ini['explorateur']['dvd']; } $smarty->assign('TITRE','Choisissez un lecteur DVD'); Modified: trunk/module/favoris/index1.php =================================================================== --- trunk/module/favoris/index1.php 2007-02-12 10:06:41 UTC (rev 71) +++ trunk/module/favoris/index1.php 2007-02-19 18:16:41 UTC (rev 72) @@ -20,13 +20,13 @@ }elseif(isset($_GET['directory']) OR $_GET['action'] == 'explorateur'){ - $rep_default = explode("|",$ini[explorateur][films_defaut]); + $rep_default = explode("|",$ini['explorateur']['films_defaut']); $rep_default = $rep_default[0]; $aff_favoris = '1'; $icone_fichier = "noname.gif"; $extension = ".riendutous"; - $afficher_fichier_cache = $ini[explorateur][afficher_fichier_cache]; + $afficher_fichier_cache = $ini['explorateur']['afficher_fichier_cache']; $smarty->assign('TITRE','Favoris'); include($EXPLORATEUR); Modified: trunk/module/films/fichefilm.php =================================================================== --- trunk/module/films/fichefilm.php 2007-02-12 10:06:41 UTC (rev 71) +++ trunk/module/films/fichefilm.php 2007-02-19 18:16:41 UTC (rev 72) @@ -4,7 +4,7 @@ $RACINE_REP = "../../"; require($RACINE_REP.'_framework/framework.php'); - $nettoyer = $ini[explorateur][nettoyer]; + $nettoyer = $ini['explorateur']['nettoyer']; $nettoyer = explode(',',$nettoyer); $LINK['red']=page_retour_fiche(); @@ -59,7 +59,7 @@ foreach ($expl as $exp) { if ($info['realisateur']) $info['realisateur'] .= ', '; - if ($ini[explorateur][afficher_personnes] == 'oui') + if ($ini['explorateur']['afficher_personnes'] == 'oui') $info['realisateur'] .= '<a href="catalogue.php?tri=perso&suiv='.urlencode($exp).'">'.$exp.'</a>'; else $info['realisateur'] .= $exp; @@ -75,7 +75,7 @@ foreach ($expl as $exp) { if ($info['acteurs']) $info['acteurs'] .= ', '; - if ($ini[explorateur][afficher_personnes] == 'oui') + if ($ini['explorateur']['afficher_personnes'] == 'oui') $info['acteurs'] .= '<a href="catalogue.php?tri=perso&suiv='.urlencode($exp).'">'.$exp.'</a>'; else $info['acteurs'] .= $exp; Modified: trunk/module/films/films.tpl =================================================================== --- trunk/module/films/films.tpl 2007-02-12 10:06:41 UTC (rev 71) +++ trunk/module/films/films.tpl 2007-02-19 18:16:41 UTC (rev 72) @@ -4,7 +4,7 @@ {include file="bouton.tpl"} {setbackground path="none"} </head> -<body background="ts://127.0.0.1" text="{#COULEUR_DVD_TEXT#}" link="{#COULEUR_DVD_LINK#}" alink="{#COULEUR_DVD_ALINK#}" vlink="{#COULEUR_DVD_VLINK#}"> +<body background="ts://127.0.0.1" text="{#COULEUR_LECTEUR_TEXT#}" link="{#COULEUR_LECTEUR_LINK#}" alink="{#COULEUR_LECTEUR_ALINK#}" vlink="{#COULEUR_LECTEUR_VLINK#}"> <center> <table width="645" height="510" border="0" cellpadding="0" cellspacing="0"><tr> <td height="400" align="center" valign="top"> Modified: trunk/module/films/index1.php =================================================================== --- trunk/module/films/index1.php 2007-02-12 10:06:41 UTC (rev 71) +++ trunk/module/films/index1.php 2007-02-19 18:16:41 UTC (rev 72) @@ -4,11 +4,11 @@ $LINK['red']= $MODULE.'_menu/menu.php'; - $rep_default = explode("|",$ini[explorateur][films_defaut]); + $rep_default = explode("|",$ini['explorateur']['films_defaut']); $rep_default = $rep_default[0]; $icone_fichier = "movie.gif"; - $extension = $ini[explorateur][ext]; - $afficher_fichier_cache = $ini[explorateur][afficher_fichier_cache]; + $extension = $ini['explorateur']['ext']; + $afficher_fichier_cache = $ini['explorateur']['afficher_fichier_cache']; $play_rep = '1'; $aff_info = '1'; Modified: trunk/module/films/play.php =================================================================== --- trunk/module/films/play.php 2007-02-12 10:06:41 UTC (rev 71) +++ trunk/module/films/play.php 2007-02-19 18:16:41 UTC (rev 72) @@ -12,7 +12,7 @@ $basename = ereg_replace ("\\\'", "'", $basename); $first=1; -$pisteaudio = $ini[multimedia][sortiefreebox]; +$pisteaudio = $ini['multimedia']['sortiefreebox']; if($pisteaudio=='TV'){ // $META['aud'] = '69(en,mp2)'; @@ -27,7 +27,7 @@ $playdvd = 'type=31'; $adddvd = 'type=34'; $playweb = 'type=41'; - $decallage = $ini[multimedia][compensation]; + $decallage = $ini['multimedia']['compensation']; $file2 = @readfile('http://127.0.0.1:8081/lecteur/modif-config.html?type=0&var=audio-desync&value='.$decallage); }elseif($pisteaudio=='AC3'){ // $META['aud'] = '69(en,ac3)'; Modified: trunk/module/films/playrep.php =================================================================== --- trunk/module/films/playrep.php 2007-02-12 10:06:41 UTC (rev 71) +++ trunk/module/films/playrep.php 2007-02-19 18:16:41 UTC (rev 72) @@ -3,7 +3,7 @@ require($RACINE_REP.'_framework/framework.php'); $BACKGROUND='none'; -$pisteaudio = $ini[multimedia][sortiefreebox]; +$pisteaudio = $ini['multimedia']['sortiefreebox']; if($pisteaudio=='TV'){ // $META['aud'] = '69(en,mp2)'; @@ -14,7 +14,7 @@ $add = 'type=4'; $play = 'type=3'; $playdvd = 'type=31'; - $decallage = $ini[multimedia][compensation]; + $decallage = $ini['multimedia']['compensation']; $file2 = @readfile('http://127.0.0.1:8081/lecteur/modif-config.html?type=0&var=audio-desync&value='.$decallage); }elseif($pisteaudio=='AC3'){ // $META['aud'] = '69(en,ac3)'; @@ -38,7 +38,7 @@ $rep = urldecode($_REQUEST['toplay']); $rep = realpath(ereg_replace("\\\'", "'", $rep)); -$ext = $ini[explorateur][$ext]; +$ext = $ini['explorateur'][$ext]; $extv=explode(",",$ext); $handle = @opendir($rep); while (false !== ($file = readdir($handle))){ Modified: trunk/module/htmllight/index1.php =================================================================== --- trunk/module/htmllight/index1.php 2007-02-12 10:06:41 UTC (rev 71) +++ trunk/module/htmllight/index1.php 2007-02-19 18:16:41 UTC (rev 72) @@ -1,7 +1,7 @@ <?php $RACINE_REP = "../../"; require($RACINE_REP.'_framework/framework.php'); -$image = $ini[htmllight][image]; +$image = $ini['htmllight']['image']; $nonfeed=array(); if (!isset($_GET['url'])){ Modified: trunk/module/mail/index1.php =================================================================== --- trunk/module/mail/index1.php 2007-02-12 10:06:41 UTC (rev 71) +++ trunk/module/mail/index1.php 2007-02-19 18:16:41 UTC (rev 72) @@ -2,10 +2,10 @@ $RACINE_REP = "../../"; require($RACINE_REP.'_framework/framework.php'); -$serveur = explode(",",$ini[mail][serveur]); -$service_port = explode(",",$ini[mail][service_port]); -$login = explode(",",$ini[mail][login]); -$pass = explode(",",$ini[mail][pass]); +$serveur = explode(",",$ini['mail']['serveur']); +$service_port = explode(",",$ini['mail']['service_port']); +$login = explode(",",$ini['mail']['login']); +$pass = explode(",",$ini['mail']['pass']); $compte=$_REQUEST['compte']; $cptval=$_REQUEST['cptval']; Modified: trunk/module/messagerie/index1.php =================================================================== --- trunk/module/messagerie/index1.php 2007-02-12 10:06:41 UTC (rev 71) +++ trunk/module/messagerie/index1.php 2007-02-19 18:16:41 UTC (rev 72) @@ -3,8 +3,8 @@ require($RACINE_REP.'_framework/framework.php'); //SKIN_START('Messagerie freebox', '4'); -$compte = $ini[messagerie][compte]; -$motdepasse = $ini[messagerie][motdepasse]; +$compte = $ini['messagerie']['compte']; +$motdepasse = $ini['messagerie']['motdepasse']; if (eregi("ecoute",urldecode($_REQUEST['f']))){ $handlech = fopen (urldecode($_REQUEST['f']), "r"); Modified: trunk/module/mp3/audio.tpl =================================================================== --- trunk/module/mp3/audio.tpl 2007-02-12 10:06:41 UTC (rev 71) +++ trunk/module/mp3/audio.tpl 2007-02-19 18:16:41 UTC (rev 72) @@ -4,7 +4,7 @@ {include file="bouton.tpl"} {setbackground path="none"} </head> -<body background="ts://127.0.0.1" text="{#COULEUR_DVD_TEXT#}" link="{#COULEUR_DVD_LINK#}" alink="{#COULEUR_DVD_ALINK#}" vlink="{#COULEUR_DVD_VLINK#}"> +<body background="ts://127.0.0.1" text="{#COULEUR_LECTEUR_TEXT#}" link="{#COULEUR_LECTEUR_LINK#}" alink="{#COULEUR_LECTEUR_ALINK#}" vlink="{#COULEUR_LECTEUR_VLINK#}"> <center> <table width="645" height="494" border="0" align="center" cellpadding="0" cellspacing="0"> <tr><td width="10" height="1"><img src="transparent.gif" width="1" height="1"></td><td width="625" height="1"><img src="transparent.gif" width="1" height="1"></td><td width="10" height="1"><img src="transparent.gif" width="1" height="1"></td></tr> @@ -22,7 +22,7 @@ <td width="19" height="36"><img src="transparent.gif" width="1" height="1"></td> </tr> <tr> - <td width="19" height="21" align=center valign=middle><a href="lecteuraudio.php?control=pause"><font color="{if $VLC.etat!='playing'}{#COULEUR_BOUTON_SELECTED#}{else}{#COULEUR_DEFAUD#}{/if}" family="Symbol">{if $VLC.etat=='stop'}T{else}Y{/if}</font></a></td> + <td width="19" height="21" align=center valign=middle><a href="lecteuraudio.php?control=pause"><font color="{if $VLC.etat!='playing'}{#COULEUR_BOUTON_SELECTED#}{else}{#COULEUR_DEFAUT#}{/if}" family="Symbol">{if $VLC.etat=='stop'}T{else}Y{/if}</font></a></td> </tr> <tr> <td width="19" height="16"><img src="transparent.gif" width="1" height="1"></td> @@ -34,7 +34,7 @@ <td width="14" height="39"><img src="transparent.gif" width="1" height="1"></td> </tr> <tr> - <td width="14" height="14" align=center valign=middle><a href="lecteuraudio.php?control=stop"><font color="{if $VLC.etat!='stop'}{#COULEUR_DEFAUD#}{else}{#COULEUR_BOUTON_SELECTED#}{/if}" family="Symbol">Z</font></a></td> + <td width="14" height="14" align=center valign=middle><a href="lecteuraudio.php?control=stop"><font color="{if $VLC.etat!='stop'}{#COULEUR_DEFAUT#}{else}{#COULEUR_BOUTON_SELECTED#}{/if}" family="Symbol">Z</font></a></td> </tr> <tr> <td width="14" height="20"><img src="transparent.gif" width="1" height="1"></td> @@ -46,7 +46,7 @@ <td width="14" height="34"><img src="transparent.gif" width="1" height="1"></td> </tr> <tr> - <td width="14" height="14" align=center valign=middle><a href="lecteuraudio.php?control=previous"><font color="{#COULEUR_DEFAUD#}" family="Symbol">@@</font></a></td> + <td width="14" height="14" align=center valign=middle><a href="lecteuraudio.php?control=previous"><font color="{#COULEUR_DEFAUT#}" family="Symbol">@@</font></a></td> </tr> <tr> <td width="14" height="25"><img src="transparent.gif" width="1" height="1"></td></tr></table></td> @@ -59,7 +59,7 @@ <td width="14" height="34"><img src="transparent.gif" width="1" height="1"></td> </tr> <tr> - <td width="14" height="14" align=center valign=middle><a href="lecteuraudio.php?control=next"><font color="{#COULEUR_DEFAUD#}" family="Symbol">AA</font></a></td> + <td width="14" height="14" align=center valign=middle><a href="lecteuraudio.php?control=next"><font color="{#COULEUR_DEFAUT#}" family="Symbol">AA</font></a></td> </tr> <tr> <td width="14" height="25"><img src="transparent.gif" width="1" height="1"></td> @@ -71,13 +71,13 @@ <td width="90" height="20"><img src="transparent.gif" width="1" height="1"></td> </tr> <tr> - <td width="90" height="12" align=center valign=middle><a href="lecteuraudio.php?action=nextrandom"><font size=1 color="{if $statut.random}{#COULEUR_BOUTON_SELECTED#}{else}{#COULEUR_DEFAUD#}{/if}">Al\xE9atoire</font></a></td> + <td width="90" height="12" align=center valign=middle><a href="lecteuraudio.php?action=nextrandom"><font size=1 color="{if $statut.random}{#COULEUR_BOUTON_SELECTED#}{else}{#COULEUR_DEFAUT#}{/if}">Al\xE9atoire</font></a></td> </tr> <tr> <td width="90" height="5"><img src="transparent.gif" width="1" height="1"></td> </tr> <tr> - <td width="90" height="10" align=center valign=middle><a href="lecteuraudio.php?action=nextboucle"><font size=1 color="{if $statut.repeat or $statut.loop}{#COULEUR_BOUTON_SELECTED#}{else}{#COULEUR_DEFAUD#}{/if}">{$boucle_valeur}</font></a></td> + <td width="90" height="10" align=center valign=middle><a href="lecteuraudio.php?action=nextboucle"><font size=1 color="{if $statut.repeat or $statut.loop}{#COULEUR_BOUTON_SELECTED#}{else}{#COULEUR_DEFAUT#}{/if}">{$boucle_valeur}</font></a></td> </tr> <tr> <td width="90" height="18"><img src="transparent.gif" width="1" height="1"></td> Modified: trunk/module/mp3/index1.php =================================================================== --- trunk/module/mp3/index1.php 2007-02-12 10:06:41 UTC (rev 71) +++ trunk/module/mp3/index1.php 2007-02-19 18:16:41 UTC (rev 72) @@ -1,9 +1,9 @@ <?php - $rep_default = explode("|",$ini[explorateur][audio_defaut]); + $rep_default = explode("|",$ini['explorateur']['audio_defaut']); $rep_default = $rep_default[0]; - $extension = $ini[explorateur][ext_audio]; - $afficher_fichier_cache = $ini[explorateur][afficher_fichier_cache]; + $extension = $ini['explorateur']['ext_audio']; + $afficher_fichier_cache = $ini['explorateur']['afficher_fichier_cache']; $icone_fichier = "mp3.gif"; Modified: trunk/module/mp3/lecteuraudio.php =================================================================== --- trunk/module/mp3/lecteuraudio.php 2007-02-12 10:06:41 UTC (rev 71) +++ trunk/module/mp3/lecteuraudio.php 2007-02-19 18:16:41 UTC (rev 72) @@ -15,9 +15,9 @@ //$LINK['rev']=$MODULE.'mp3/lecteuraudio.php?seek_value=moins'; //$LINK['fwd']=$MODULE.'mp3/lecteuraudio.php?seek_value=plus'; -$ext_audio = $ini[explorateur][ext_audio]; -$audio_defaut = $ini[explorateur][audio_defaut]; -$afficher_fichier_cache = $ini[explorateur][afficher_fichier_cache]; +$ext_audio = $ini['explorateur']['ext_audio']; +$audio_defaut = $ini['explorateur']['audio_defaut']; +$afficher_fichier_cache = $ini['explorateur']['afficher_fichier_cache']; $default = $audio_defaut; $extv = explode(",",$ext_audio); @@ -241,7 +241,7 @@ break; case 'delall': - include('http://127.0.0.1:8081/lecteur/'.$ini[multimedia][qualite].'?type=999'); //-- Vide la playlist + include('http://127.0.0.1:8081/lecteur/'.$ini['multimedia']['qualite'].'?type=999'); //-- Vide la playlist unset($pl); unset($pl_transformed); unset($info); Modified: trunk/module/mp3/playdb.php =================================================================== --- trunk/module/mp3/playdb.php 2007-02-12 10:06:41 UTC (rev 71) +++ trunk/module/mp3/playdb.php 2007-02-19 18:16:41 UTC (rev 72) @@ -13,9 +13,9 @@ // On teste si la base des fichiers mp3/ogg existe bien if (sqlite_table_exists($db, 'music')) { -$ext_audio = $ini[explorateur][ext_audio]; -$audio_defaut = $ini[explorateur][audio_defaut]; -$afficher_fichier_cache = $ini[explorateur][afficher_fichier_cache]; +$ext_audio = $ini['explorateur']['ext_audio']; +$audio_defaut = $ini['explorateur']['audio_defaut']; +$afficher_fichier_cache = $ini['explorateur']['afficher_fichier_cache']; $default = $audio_defaut; $extv = explode(",",$ext_audio); @@ -34,8 +34,8 @@ */ //D\xE9finition du mode de lecture -$pisteaudio = $ini[multimedia][sortiefreebox]; -$decallage = $ini[multimedia][compensation]; +$pisteaudio = $ini['multimedia']['sortiefreebox']; +$decallage = $ini['multimedia']['compensation']; $file2 = @readfile('http://127.0.0.1:8081/lecteur/modif-config.html?type=0&var=audio-desync&value='.$decallage); if($pisteaudio=='TV'){ @@ -52,7 +52,7 @@ }elseif($pisteaudio=='PC'){ $add = 'type=4'; $play = 'type=3'; - $decallage = $ini[multimedia][compensation]; + $decallage = $ini['multimedia']['compensation']; $file2 = @readfile('http://127.0.0.1:8081/lecteur/modif-config.html?type=0&var=audio-desync&value='.$decallage); if($_GET['type']=="radio") { $play = 'type=41'; Modified: trunk/module/multiposte/add.php =================================================================== --- trunk/module/multiposte/add.php 2007-02-12 10:06:41 UTC (rev 71) +++ trunk/module/multiposte/add.php 2007-02-19 18:16:41 UTC (rev 72) @@ -35,7 +35,7 @@ @unlink(ereg_replace(".bat","-end.bat",urldecode($_GET['fichierbat']))); // Modification des commandes at et des fichiers bat - $fichier = realpath($ini[multiposte][multiposte]).'\\'.$chaine[1].' - '.date("d-m-y H\hi", $deb).'.mpg'; + $fichier = realpath($ini['multiposte']['multiposte']).'\\'.$chaine[1].' - '.date("d-m-y H\hi", $deb).'.mpg'; $fichierbat = $chaine[1].' - '.date("d-m-y H\hi", $deb).'.bat'; $fichierbat2 = $chaine[1].' - '.date("d-m-y H\hi", $deb).'-end.bat'; @@ -47,17 +47,17 @@ } //Profils d'encodage - if($ini[multiposte][cvid]!='none' AND $ini[multiposte][caud]!='none'){ - $link = 'start vlc\vlc.exe --wx-systray --intf=dummy --extraintf=http --http-src="'.realpath(realpath("../../").'/http-vlc').'" --http-host=:8082 --http-charset=ISO-8859-1 --quiet --dummy-quiet -vvv rtsp://mafreebox.freebox.fr/freeboxtv/'.$moreinfo.$chaine[2].' --sout=#transcode{vcodec='.$ini[multiposte][cvid].',vb='.$ini[multiposte][bvid].',scale=1,acodec='.$ini[multiposte][caud].',ab='.$ini[multiposte][baud].',channels=2} --sout=#duplicate{dst=std{access=file,mux='.$ini[multiposte][muxer].',url="'.$fichier.'"} + if($ini['multiposte']['cvid']!='none' AND $ini['multiposte']['caud']!='none'){ + $link = 'start vlc\vlc.exe --wx-systray --intf=dummy --extraintf=http --http-src="'.realpath(realpath("../../").'/http-vlc').'" --http-host=:8082 --http-charset=ISO-8859-1 --quiet --dummy-quiet -vvv rtsp://mafreebox.freebox.fr/freeboxtv/'.$moreinfo.$chaine[2].' --sout=#transcode{vcodec='.$ini['multiposte']['cvid'].',vb='.$ini['multiposte']['bvid'].',scale=1,acodec='.$ini['multiposte']['caud'].',ab='.$ini['multiposte']['baud'].',channels=2} --sout=#duplicate{dst=std{access=file,mux='.$ini['multiposte']['muxer'].',url="'.$fichier.'"} start http://localhost:8080/lecteur/lunch_rec.php?id='.$id; - }elseif($ini[multiposte][cvid]=='none' AND $ini[multiposte][caud]=='none'){ - $link = 'start vlc\vlc.exe --wx-systray --intf=dummy --extraintf=http --http-src="'.realpath(realpath("../../").'/http-vlc').'" --http-host=:8082 --http-charset=ISO-8859-1 --quiet --dummy-quiet -vvv rtsp://mafreebox.freebox.fr/freeboxtv/'.$moreinfo.$chaine[2].' --sout=#duplicate{dst=std{access=file,mux='.$ini[multiposte][muxer].',url="'.$fichier.'"} + }elseif($ini['multiposte']['cvid']=='none' AND $ini['multiposte']['caud']=='none'){ + $link = 'start vlc\vlc.exe --wx-systray --intf=dummy --extraintf=http --http-src="'.realpath(realpath("../../").'/http-vlc').'" --http-host=:8082 --http-charset=ISO-8859-1 --quiet --dummy-quiet -vvv rtsp://mafreebox.freebox.fr/freeboxtv/'.$moreinfo.$chaine[2].' --sout=#duplicate{dst=std{access=file,mux='.$ini['multiposte']['muxer'].',url="'.$fichier.'"} start http://localhost:8080/lecteur/lunch_rec.php?id='.$id; - }elseif($ini[multiposte][cvid]!='none' AND $ini[multiposte][caud]=='none'){ - $link = 'start vlc\vlc.exe --wx-systray --intf=dummy --extrain... [truncated message content] |
From: <ara...@us...> - 2007-02-20 17:14:48
|
Revision: 73 http://svn.sourceforge.net/easybox-mod/?rev=73&view=rev Author: aragornis Date: 2007-02-20 09:14:31 -0800 (Tue, 20 Feb 2007) Log Message: ----------- Modified Paths: -------------- trunk/_framework/lib/get_info.php trunk/_utilisateur/modules.db trunk/module/loto/euromillions.php trunk/module/loto/keno.php trunk/module/loto/loto.php trunk/module/meteo/f2-france-512x384-j0pm.jpg trunk/module/meteo/f2-france-512x384-j1am.jpg trunk/module/meteo/f2-france-512x384-j1pm.jpg trunk/module/meteo/f2-france-512x384-j2am.jpg trunk/module/meteo/f2-france-512x384-j2pm.jpg trunk/module/meteo/f2-france-512x384-j3am.jpg trunk/module/meteo/f2-france-512x384-j3pm.jpg trunk/module/meteo/fr.gif trunk/module/reseaufree/idf.png trunk/module/reseaufree/province.png trunk/module/seances/listeville.php trunk/module/signet/signet.tpl Removed Paths: ------------- trunk/module/AnnuaireFbx/ Modified: trunk/_framework/lib/get_info.php =================================================================== --- trunk/_framework/lib/get_info.php 2007-02-19 18:16:41 UTC (rev 72) +++ trunk/_framework/lib/get_info.php 2007-02-20 17:14:31 UTC (rev 73) @@ -110,7 +110,7 @@ $res['nom'] = ucwords($valeur[1]); //Critique visiteurs - $ereg = 'notepresse=(.{0,10})¬epublic=(.{0,10})" marginwidth'; + $ereg = 'notepresse=(.{0,10})¬epublic=(.{0,10})'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['critique_visiteurs'] = round(ereg_replace(",", ".", $valeur[1])); $res['critique_presse'] = round(ereg_replace(",", ".", $valeur[2])); @@ -124,7 +124,7 @@ $res['image'] = 'http://a69.g.akamai.net/n/69/10688/v1/img5.allocine.fr/'.$valeur[1]; } //R\xE9cup\xE9ration du synopsis - $ereg = '<td valign="top" style="padding:10 0 0 0"><div align="justify"><h4>(.{1,1000})<\/h4><\/div><\/td>'; + $ereg = '<td valign="top" style="padding:10 0 0 0"><div align="justify"><h4>(.{1,1500})<\/h4><\/div><\/td>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['synopsis'] = trim(strip_tags($valeur[1])); Modified: trunk/_utilisateur/modules.db =================================================================== (Binary files differ) Modified: trunk/module/loto/euromillions.php =================================================================== --- trunk/module/loto/euromillions.php 2007-02-19 18:16:41 UTC (rev 72) +++ trunk/module/loto/euromillions.php 2007-02-20 17:14:31 UTC (rev 73) @@ -42,12 +42,13 @@ eregi( "$debut1(.*)$fin1", $contenu_numero, $valeur ); + $string1 = $valeur[1]; -$string1 = ereg_replace('</DIV>', "" ,$string1); -$string1 = ereg_replace(' CLASS="numeroNN"', "" ,$string1); -$string1 = ereg_replace(' CLASS="numeroN"', "" ,$string1); -$string1 = ereg_replace(' CLASS="etoile"', "" ,$string1); -$string1 = explode('<DIV>',$string1); +$string1 = ereg_replace('</div>', "" ,$string1); +$string1 = ereg_replace(' class="numeroNN"', "" ,$string1); +$string1 = ereg_replace(' class="numeroN"', "" ,$string1); +$string1 = ereg_replace(' class="etoile"', "" ,$string1); +$string1 = explode('<div>',$string1); $n='0'; while(list( , $node) = each($string1)) { @@ -94,14 +95,14 @@ $txt = ereg_replace(',', "." ,$txt); $txt = ereg_replace('\xE9', "e" ,$txt); $txt = ereg_replace("<img alt='' src=\"img/etoile.gif\" width=\"15\" height=\"15\">", "", $txt); -$txt = ereg_replace("<DIV CLASS=\"spacer\" style=\"height:12px\"><img alt='' src=\"../../img/dot.gif\" width=\"1\" height=\"1\"></DIV>", "", $txt); +$txt = ereg_replace("<img src=\"img/etoile.gif\" width=\"15\" height=\"15\" alt=\"\">", "", $txt); +$txt = ereg_replace('<div class="spacer" style="height:12px"><img src="../../img/dot.gif" width="1" height="1" alt=""></div>', '', $txt); + $txt1 = <<<XML $txt XML; - - $xml = simplexml_load_string($txt1); /* On cherche <a><b><c> */ Modified: trunk/module/loto/keno.php =================================================================== --- trunk/module/loto/keno.php 2007-02-19 18:16:41 UTC (rev 72) +++ trunk/module/loto/keno.php 2007-02-20 17:14:31 UTC (rev 73) @@ -1,109 +1,108 @@ -<?php -$RACINE_REP = "../../"; -require($RACINE_REP.'_framework/framework.php'); - -$output.='<table width="100%" border="0" cellpadding="0" cellspacing="0"> - <tr><td align=center>'; - -$MENU_ALT=array(array('lien'=>'loto.php?tirage=1', 'nom'=>'Loto - 1er t.', 'selected'=>0), - array('lien'=>'loto.php?tirage=2', 'nom'=>'Loto - 2eme t.', 'selected'=>0), - array('lien'=>'euromillions.php', 'nom'=>'EuroMillions', 'selected'=>0), - array('lien'=>'keno.php?tirage=1', 'nom'=>'K\xE9no - 21h', 'selected'=>($_GET['tirage']==1 OR $_GET['tirage']!=2)), - array('lien'=>'keno.php?tirage=2', 'nom'=>'K\xE9no - 13h45', 'selected'=>$_GET['tirage']==2)); -$LINK['red']= 'index1.php'; - -$page_web = "http://www.fdjeux.com/jeux/keno/keno_s_tirage.php"; - -if ($_GET['tirage'] == "2") { - $ereg = '13H45<\/td>(.{1,600})Tirage dans l\'ordre croissant <br>(.{1,3000})<div style="width:165px;" class="compnjackpot">'; - $heure = '13H45'; -} else { - $ereg = '21H00<\/td>(.{1,600})Tirage dans l\'ordre croissant <br>(.{1,3000})<div style="width:165px;" class="compnjackpot">'; - $heure = '21H00'; -} - -$output.='</td></tr></table>'; - -$page = @fopen ($page_web, 'r') or die('Service non disponible pour le moment.'); -$contenu_html = ''; -while (!feof ($page)) { - $contenu_html .= trim(fgets($page, 4096)); -} - - -$ereg2 = "<div class='titretxt'>(.{1,40})<\/div>"; -preg_match("/$ereg2/s", $contenu_html, $valeur ); -$contenu1 = $valeur[1]; - -preg_match("/$ereg/s", $contenu_html, $donnee ); -$contenu = $donnee[2]; - -$contenu = ereg_replace('<td align="right" class="txtblanc11g" bgcolor="#DB0032"><a href="loto_s_tirage2.php"><font color="white">2e tirage et JOKER®</font></a> </td></tr></table>', '' ,$contenu); -$contenu = ereg_replace('<td align="right" class="txtblanc11g" bgcolor="#DB0032"><a href="loto_s_tirage1.php"><font color="white">1er tirage</font></a> </td></tr></table>', '' ,$contenu); - -// On reconstruit la page -$contenu = ereg_replace("<DIV style=\"position:absolute;left:268px;width:130px;padding-top:8px;\"><a href=\"javascript:ordreDeSortie(1)\" onMouseOver=\"amsiswap(document.images['os11'])\" onMouseOut=\"amsiswap(document.images['os11'])\"><img src=\"img/btn_os_0.gif\" border=\"0\" width=\"138\" height=\"18\" alt=\"\" name=\"os11\"></a></DIV>", "", $contenu); - -// on explose en tableau chaque ligne -$tableau_page = explode('>',$contenu); -$suivant = ""; -// on lit le tableau ligne par ligne -foreach($tableau_page as $ligne) { - $newLigne = $ligne; - if ($newLigne != "") { $newLigne = $newLigne.'>'; } // On remet les > en bout de chaque ligne - - $newLigne = ereg_replace("<img alt='' src=\"../../img/dot.gif\" width=\"1\" height=\"4\"><br>", "" ,$newLigne); - - $newLigne = ereg_replace('<DIV style="float:left;width:290px;">', '<table width="268" border="0" cellspacing="2" cellpadding="0"><tr><td><b>' ,$newLigne); - $newLigne = ereg_replace('<DIV CLASS="numero">', '</b></td><td width="35" height="33" align="center" valign="middle" background="images/numero.gif"><b>' ,$newLigne); - $newLigne = ereg_replace('<DIV CLASS="complementaire">', '</b></td><td width="35" height="33" align="center" valign="middle" background="images/etoile.gif"><b>' ,$newLigne); - - $newLigne = ereg_replace('<DIV CLASS="spacer" style="height:10px">', "" ,$newLigne); - $newLigne = ereg_replace('<DIV CLASS="spacer" style="height:12px">', '' ,$newLigne); - $newLigne = ereg_replace('<DIV CLASS="spacer" style="height:18px">', '' ,$newLigne); - $newLigne = ereg_replace('<DIV CLASS="spacer" style="height:1px">', '' ,$newLigne); - $newLigne = ereg_replace('<DIV CLASS="numero" style="float:left;width:192px;">', '' ,$newLigne); - $newLigne = ereg_replace('<DIV style="float:right;width:120px;padding-top:4px;padding-right:13px;">', '' ,$newLigne); - $newLigne = ereg_replace("<a href=\"loto_s_gainsjoker.php\" onMouseOver=\"amsiswap(document.images['lots'])\" onMouseOut=\"amsiswap(document.images['lots'])\">", '' ,$newLigne); - $newLigne = ereg_replace('<img src="img/btn_lots_0.gif" border="0" width="120" height="18" alt="" name="lots">', '' ,$newLigne); - - $newLigne = ereg_replace('<DIV CLASS="spacer" style="height:8px"><DIV CLASS="ctitrer">', '<br>' ,$newLigne); - $newLigne = ereg_replace('</a>', '' ,$newLigne); - $newLigne = ereg_replace('<DIV CLASS="spacer" style="height:8px">', '' ,$newLigne); - $newLigne = ereg_replace('<DIV style="float:left;width:75px;padding-top:2px;">', '' ,$newLigne); - - $newLigne = ereg_replace("<img alt='' src=\"../../img/dot.gif\" width=\"1\" height=\"1\">", "" ,$newLigne); - $newLigne = ereg_replace('<DIV CLASS="ctitrer" style="float:left">', "</b></td></tr></table><br>" ,$newLigne); - $newLigne = ereg_replace('img/etoile.gif', 'images/petit-etoile.gif' ,$newLigne); - $newLigne = ereg_replace('img/logo_joker.gif', 'images/logo_joker.gif' ,$newLigne); - - $newLigne = ereg_replace('Nombre de grilles gagnantes', 'Gagnants' ,$newLigne); - $newLigne = ereg_replace('Rapport par grille gagnante pour 0,3 €', "0,3\x80 la grille" ,$newLigne); - $newLigne = ereg_replace('Bons num\xE9ros', "Neum\xE9ros" ,$newLigne); - $newLigne = ereg_replace('complémentaire', "compl." ,$newLigne); - $newLigne = ereg_replace('#3E107C', $_COULEUR['COULEUR_FOND'] ,$newLigne); - $newLigne = ereg_replace('#FBD1CC', $_COULEUR['COULEUR_FOND'] ,$newLigne); - - $newLigne = ereg_replace('<table border="0" cellspacing="1" cellpadding="1" class="tabgain" width="408">', '<table border="0" cellspacing="1" cellpadding="1" width="100%">' ,$newLigne); - - $newLigne = ereg_replace('</DIV>', "" ,$newLigne); - $newTexte.= $newLigne; -} - - -$titre=$contenu1.' de '.$heure; - -$newTexte = ereg_replace('</div><div style="float:left;width:165px;">', "" ,$newTexte); -$newTexte = ereg_replace("<img alt='' src=\"../../img/dot.gif\" width=\"1\" height=\"4\">", "" ,$newTexte); - -if ($newTexte != "") { - $output.=$newTexte; -} else { - $output.="VOUS AVEZ JUSQU'A 20H<br>POUR VALIDER VOTRE BULLETIN"; -} - -$smarty->assign('TITRE',$titre); -$smarty->assign('CONTENT', $output); -$smarty->display('interface.tpl'); -?> - +<?php +$RACINE_REP = "../../"; +require($RACINE_REP.'_framework/framework.php'); + +$output.='<table width="100%" border="0" cellpadding="0" cellspacing="0"> + <tr><td align=center>'; + +$MENU_ALT=array(array('lien'=>'loto.php?tirage=1', 'nom'=>'Loto - 1er t.', 'selected'=>0), + array('lien'=>'loto.php?tirage=2', 'nom'=>'Loto - 2eme t.', 'selected'=>0), + array('lien'=>'euromillions.php', 'nom'=>'EuroMillions', 'selected'=>0), + array('lien'=>'keno.php?tirage=1', 'nom'=>'K\xE9no - 21h', 'selected'=>($_GET['tirage']==1 OR $_GET['tirage']!=2)), + array('lien'=>'keno.php?tirage=2', 'nom'=>'K\xE9no - 13h45', 'selected'=>$_GET['tirage']==2)); +$LINK['red']= 'index1.php'; + +$page_web = "http://www.fdjeux.com/jeux/keno/keno_s_tirage.php"; + +if ($_GET['tirage'] == "2") { + $ereg = '13H45<\/td>(.{1,600})Tirage dans l\'ordre croissant<br>(.{1,3000})<div style="width:165px;" class="compnjackpot">'; + $heure = '13H45'; +} else { + $ereg = '21H00<\/td>(.{1,600})Tirage dans l\'ordre croissant<br>(.{1,3000})<div style="width:165px;" class="compnjackpot">'; + $heure = '21H00'; +} + +$output.='</td></tr></table>'; + +$page = @fopen ($page_web, 'r') or die('Service non disponible pour le moment.'); +$contenu_html = ''; +while (!feof ($page)) { + $contenu_html .= trim(fgets($page, 4096)); +} + +$ereg2 = "<div class='titretxt'>(.{1,40})<\/div>"; +preg_match("/$ereg2/s", $contenu_html, $valeur ); +$contenu1 = $valeur[1]; + +preg_match("/$ereg/s", $contenu_html, $donnee ); +$contenu = $donnee[2]; + +$contenu = ereg_replace('<td align="right" class="txtblanc11g" bgcolor="#DB0032"><a href="loto_s_tirage2.php"><font color="white">2e tirage et JOKER®</font></a> </td></tr></table>', '' ,$contenu); +$contenu = ereg_replace('<td align="right" class="txtblanc11g" bgcolor="#DB0032"><a href="loto_s_tirage1.php"><font color="white">1er tirage</font></a> </td></tr></table>', '' ,$contenu); + +// On reconstruit la page +$contenu = ereg_replace("<DIV style=\"position:absolute;left:268px;width:130px;padding-top:8px;\"><a href=\"javascript:ordreDeSortie(1)\" onMouseOver=\"amsiswap(document.images['os11'])\" onMouseOut=\"amsiswap(document.images['os11'])\"><img src=\"img/btn_os_0.gif\" border=\"0\" width=\"138\" height=\"18\" alt=\"\" name=\"os11\"></a></DIV>", "", $contenu); + +// on explose en tableau chaque ligne +$tableau_page = explode('>',$contenu); +$suivant = ""; +// on lit le tableau ligne par ligne +foreach($tableau_page as $ligne) { + $newLigne = $ligne; + if ($newLigne != "") { $newLigne = $newLigne.'>'; } // On remet les > en bout de chaque ligne + + $newLigne = ereg_replace("<img alt='' src=\"../../img/dot.gif\" width=\"1\" height=\"4\"><br>", "" ,$newLigne); + + $newLigne = ereg_replace('<DIV style="float:left;width:290px;">', '<table width="268" border="0" cellspacing="2" cellpadding="0"><tr><td><b>' ,$newLigne); + $newLigne = ereg_replace('<DIV CLASS="numero">', '</b></td><td width="35" height="33" align="center" valign="middle" background="images/numero.gif"><b>' ,$newLigne); + $newLigne = ereg_replace('<DIV CLASS="complementaire">', '</b></td><td width="35" height="33" align="center" valign="middle" background="images/etoile.gif"><b>' ,$newLigne); + + $newLigne = ereg_replace('<DIV CLASS="spacer" style="height:10px">', "" ,$newLigne); + $newLigne = ereg_replace('<DIV CLASS="spacer" style="height:12px">', '' ,$newLigne); + $newLigne = ereg_replace('<DIV CLASS="spacer" style="height:18px">', '' ,$newLigne); + $newLigne = ereg_replace('<DIV CLASS="spacer" style="height:1px">', '' ,$newLigne); + $newLigne = ereg_replace('<DIV CLASS="numero" style="float:left;width:192px;">', '' ,$newLigne); + $newLigne = ereg_replace('<DIV style="float:right;width:120px;padding-top:4px;padding-right:13px;">', '' ,$newLigne); + $newLigne = ereg_replace("<a href=\"loto_s_gainsjoker.php\" onMouseOver=\"amsiswap(document.images['lots'])\" onMouseOut=\"amsiswap(document.images['lots'])\">", '' ,$newLigne); + $newLigne = ereg_replace('<img src="img/btn_lots_0.gif" border="0" width="120" height="18" alt="" name="lots">', '' ,$newLigne); + + $newLigne = ereg_replace('<DIV CLASS="spacer" style="height:8px"><DIV CLASS="ctitrer">', '<br>' ,$newLigne); + $newLigne = ereg_replace('</a>', '' ,$newLigne); + $newLigne = ereg_replace('<DIV CLASS="spacer" style="height:8px">', '' ,$newLigne); + $newLigne = ereg_replace('<DIV style="float:left;width:75px;padding-top:2px;">', '' ,$newLigne); + + $newLigne = ereg_replace("<img alt='' src=\"../../img/dot.gif\" width=\"1\" height=\"1\">", "" ,$newLigne); + $newLigne = ereg_replace('<DIV CLASS="ctitrer" style="float:left">', "</b></td></tr></table><br>" ,$newLigne); + $newLigne = ereg_replace('img/etoile.gif', 'images/petit-etoile.gif' ,$newLigne); + $newLigne = ereg_replace('img/logo_joker.gif', 'images/logo_joker.gif' ,$newLigne); + + $newLigne = ereg_replace('Nombre de grilles gagnantes', 'Gagnants' ,$newLigne); + $newLigne = ereg_replace('Rapport par grille gagnante pour 0,3 €', "0,3\x80 la grille" ,$newLigne); + $newLigne = ereg_replace('Bons num\xE9ros', "Neum\xE9ros" ,$newLigne); + $newLigne = ereg_replace('complémentaire', "compl." ,$newLigne); + $newLigne = ereg_replace('#3E107C', $_COULEUR['COULEUR_FOND'] ,$newLigne); + $newLigne = ereg_replace('#FBD1CC', $_COULEUR['COULEUR_FOND'] ,$newLigne); + + $newLigne = ereg_replace('<table border="0" cellspacing="1" cellpadding="1" class="tabgain" width="408">', '<table border="0" cellspacing="1" cellpadding="1" width="100%">' ,$newLigne); + + $newLigne = ereg_replace('</DIV>', "" ,$newLigne); + $newTexte.= $newLigne; +} + + +$titre=$contenu1.' de '.$heure; + +$newTexte = ereg_replace('</div><div style="float:left;width:165px;">', "" ,$newTexte); +$newTexte = ereg_replace("<img alt='' src=\"../../img/dot.gif\" width=\"1\" height=\"4\">", "" ,$newTexte); + +if ($newTexte != "") { + $output.=$newTexte; +} else { + $output.="VOUS AVEZ JUSQU'A 20H<br>POUR VALIDER VOTRE BULLETIN"; +} + +$smarty->assign('TITRE',$titre); +$smarty->assign('CONTENT', $output); +$smarty->display('interface.tpl'); +?> + Modified: trunk/module/loto/loto.php =================================================================== --- trunk/module/loto/loto.php 2007-02-19 18:16:41 UTC (rev 72) +++ trunk/module/loto/loto.php 2007-02-20 17:14:31 UTC (rev 73) @@ -70,9 +70,9 @@ <p> </p>'; if ($_GET['tirage'] == "2") { - $ereg = 'Rapports pour le 2e tirage :(.{1,2000})width="1" height="1"><\/div>'; + $ereg = 'Rapports pour le 2e tirage :(.{1,2000})width="1" height="1" alt=""><\/div>'; }else{ - $ereg = 'Rapports pour le 1er tirage :(.{1,2000})width="1" height="1"><\/div>'; + $ereg = 'Rapports pour le 1er tirage :(.{1,2000})width="1" height="1" alt=""><\/div>'; } preg_match("/$ereg/s", $contenu_numero, $selection); @@ -104,7 +104,7 @@ $n='1'; foreach($xml->xpath('/table/tr/td') as $node){ - if (!eregi('bons numeros',$node)){ + if (!eregi('bons numeros',$node) OR eregi('Pas de gagnant',$node)){ $list[$n] = ereg_replace("euro", "€" ,$node); $n++; } @@ -121,13 +121,12 @@ </tr>'; $informations=array('6 bons num\xE9ros', '5 bons num\xE9ros + compl\xE9mentaire', '5 bons num\xE9ros', '4 bons num\xE9ros + compl\xE9mentaire', '4 bons num\xE9ros', '3 bons num\xE9ros + compl\xE9mentaire', '3 bons num\xE9ros'); - for($n=1;$n<=7;$n++){ $output.='<tr bgcolor="{#COULEUR_INTERFACE'.((($n+1)%2)+1).'#}"> <td>'.$informations[$n-1].'</td>'; - if ($list[$n] == 'Pas de gagnant.'){ + if (eregi('Pas de gagnant.',$list[$n+1])){ $output.='<td colspan="2" align="center">'.$list[(2*$n)].'</td>'; - }else{ + }else{ $output.='<td width="80" align="right">'.$list[((2*$n)-1)].'</td> <td width="125" align="right">'.$list[(2*$n)].'</td>'; } Modified: trunk/module/meteo/f2-france-512x384-j0pm.jpg =================================================================== (Binary files differ) Modified: trunk/module/meteo/f2-france-512x384-j1am.jpg =================================================================== (Binary files differ) Modified: trunk/module/meteo/f2-france-512x384-j1pm.jpg =================================================================== (Binary files differ) Modified: trunk/module/meteo/f2-france-512x384-j2am.jpg =================================================================== (Binary files differ) Modified: trunk/module/meteo/f2-france-512x384-j2pm.jpg =================================================================== (Binary files differ) Modified: trunk/module/meteo/f2-france-512x384-j3am.jpg =================================================================== (Binary files differ) Modified: trunk/module/meteo/f2-france-512x384-j3pm.jpg =================================================================== (Binary files differ) Modified: trunk/module/meteo/fr.gif =================================================================== (Binary files differ) Modified: trunk/module/reseaufree/idf.png =================================================================== (Binary files differ) Modified: trunk/module/reseaufree/province.png =================================================================== (Binary files differ) Modified: trunk/module/seances/listeville.php =================================================================== --- trunk/module/seances/listeville.php 2007-02-19 18:16:41 UTC (rev 72) +++ trunk/module/seances/listeville.php 2007-02-20 17:14:31 UTC (rev 73) @@ -20,7 +20,6 @@ } $debut = 'codepostal='; -$milieu = '&j=0&version=0" class="link1">'; $fin = '<\/a> - <\/h4><h4 style="color: #666666">'; preg_match_all("/$debut(.{1,75})$fin/s", $contenu_html, $valeur); @@ -30,7 +29,7 @@ { foreach ($valeur[1] as $value) { -list ($postal, $ville) = split ('&j=0&version=0" class="link1">', $value); +list ($postal, $ville) = split ('" class="link1">', $value); $CONTENT .= "<a href=listesalle.php?codepostal=$postal>$ville ($postal)</a><br>"; } Modified: trunk/module/signet/signet.tpl =================================================================== --- trunk/module/signet/signet.tpl 2007-02-19 18:16:41 UTC (rev 72) +++ trunk/module/signet/signet.tpl 2007-02-20 17:14:31 UTC (rev 73) @@ -1,6 +1,7 @@ {assign var=current_film value=''} - -{section name=table loop=$CONTENT_TABLE start=$MIN max=3} +{assign var=k value=0} + +{section name=table loop=$CONTENT_TABLE} {if $smarty.section.table.first} Voici le ou les film(s) dont les positions ont \xE9t\xE9 enregistr\xE9es - <a href=supall.php>Purger la liste</a><br \> <br \> <br \> @@ -14,19 +15,25 @@ {/if} {if $current_film != $CONTENT_TABLE[table].lien} - {if $current_film != ''} - </td></tr></table> + {assign var=current_film value=$CONTENT_TABLE[table].lien} + {assign var=k value=$k+1} + {if $k > $MIN AND $k <= $MIN+3} + {if $k == $MIN} + {assign var=j value=1} + </td></tr></table> + {/if} + {assign var=j value=$j+1} + <table width="450" border="0" cellpadding="0" cellspacing="0"><tr><td colspan=2 bgcolor="{#COULEUR_INTERFACE1#}">{$CONTENT_TABLE[table].lien|extract_name|truncate:55}</td></tr> {/if} - <table width="450" border="0" cellpadding="0" cellspacing="0"><tr><td colspan=2 bgcolor="{#COULEUR_INTERFACE1#}">{$CONTENT_TABLE[table].lien|extract_name|truncate:55}</td></tr> - {assign var=current_film value=$CONTENT_TABLE[table].lien} {/if} - - <tr><td width=434 bgcolor="{#COULEUR_INTERFACE2#}"><a href="playsignet.php?toplay={$CONTENT_TABLE[table].lien|urlencode}&temps={$CONTENT_TABLE[table].duree|urlencode}">{$CONTENT_TABLE[table].duree}</a></td><td width="20" bgcolor="{#COULEUR_INTERFACE2#}"><a href="supsignet.php?toplay={$CONTENT_TABLE[table].id}&temps={$CONTENT_TABLE[table].duree}"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_INTERFACE2#}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}delete.gif" border="0" width="20" height="20"></td></tr></table></a></td></tr> - + + {if $k > $MIN AND $k <= $MIN+3} + <tr><td width=434 bgcolor="{#COULEUR_INTERFACE2#}"><a href="playsignet.php?toplay={$CONTENT_TABLE[table].lien|urlencode}&temps={$CONTENT_TABLE[table].duree|urlencode}">{$CONTENT_TABLE[table].duree}</a></td><td width="20" bgcolor="{#COULEUR_INTERFACE2#}"><a href="supsignet.php?toplay={$CONTENT_TABLE[table].id}&temps={$CONTENT_TABLE[table].duree}"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_INTERFACE2#}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}delete.gif" border="0" width="20" height="20"></td></tr></table></a></td></tr> + {/if} + {if $smarty.section.table.last} </table></td></tr></table> - - {if $MIN+$smarty.section.table.total < count($CONTENT_TABLE)} + {if $MIN+$j < $k} {assign var=temp value=$MIN+3} {attribbouton touche="blue" lien="index1.php?min=$temp"} <a href="index1.php?min={$temp}"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> Suivant</a> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2007-02-20 22:20:35
|
Revision: 76 http://svn.sourceforge.net/easybox-mod/?rev=76&view=rev Author: aragornis Date: 2007-02-20 14:20:33 -0800 (Tue, 20 Feb 2007) Log Message: ----------- Resolution d'un probleme sur la cr?\195?\169ation du ini Resolution d'un pb sur la sauvegarde des ini Changement de couleur du player sur la skin green Modified Paths: -------------- trunk/_framework/lib/ini.php trunk/_utilisateur/modules.db trunk/configuration/general.php trunk/skin/simplegreen/interface/player.gif Modified: trunk/_framework/lib/ini.php =================================================================== --- trunk/_framework/lib/ini.php 2007-02-20 17:24:38 UTC (rev 75) +++ trunk/_framework/lib/ini.php 2007-02-20 22:20:33 UTC (rev 76) @@ -5,7 +5,8 @@ function INI($file){ global $ini; - $fichier = $file; + $this->fichier = $file; + fclose(fopen($this->fichier, "a")); $ini = parse_ini_file($file, TRUE); } @@ -17,7 +18,7 @@ $reini .=$subkey2.' = "'.$entry2."\"\n"; } } - $handle = fopen($fichier, "w"); + $handle = fopen($this->fichier, "w"); fwrite($handle, $reini); fclose($handle); } Modified: trunk/_utilisateur/modules.db =================================================================== (Binary files differ) Modified: trunk/configuration/general.php =================================================================== --- trunk/configuration/general.php 2007-02-20 17:24:38 UTC (rev 75) +++ trunk/configuration/general.php 2007-02-20 22:20:33 UTC (rev 76) @@ -6,9 +6,10 @@ $repinitial = ereg_replace("[\\]","/",strtolower(realpath("../../../../../../../../../.."))); $ini_class = new INI($CONFIG_INI); - + //-- Enregistrement des donn\xE9es if(count($_REQUEST)!="0") { + foreach($ini as $key2=>$inisec2) { foreach($inisec2 as $subkey2=>$entry2) { if(eregi($key2.'[|]'.$subkey2.'=', urldecode($_SERVER['QUERY_STRING']))){ @@ -24,7 +25,7 @@ } } } -$ini->save; +$ini_class->save(); } function affiche_page(){ Modified: trunk/skin/simplegreen/interface/player.gif =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2007-02-21 13:08:42
|
Revision: 77 http://svn.sourceforge.net/easybox-mod/?rev=77&view=rev Author: aragornis Date: 2007-02-21 05:08:40 -0800 (Wed, 21 Feb 2007) Log Message: ----------- Modified Paths: -------------- trunk/configuration/verif_config.php trunk/module/meteo/f2-france-512x384-j0am.jpg trunk/module/meteo/f2-france-512x384-j1pm.jpg trunk/module/reseaufree/province.png trunk/skin/simple/vuedensemble.gif trunk/skin/simplegreen/couleur.conf trunk/skin/simplegreen/vuedensemble.gif Modified: trunk/configuration/verif_config.php =================================================================== --- trunk/configuration/verif_config.php 2007-02-20 22:20:33 UTC (rev 76) +++ trunk/configuration/verif_config.php 2007-02-21 13:08:40 UTC (rev 77) @@ -50,6 +50,7 @@ } } } -$ini_class->save; +$ini_class->save(); + ?> Modified: trunk/module/meteo/f2-france-512x384-j0am.jpg =================================================================== (Binary files differ) Modified: trunk/module/meteo/f2-france-512x384-j1pm.jpg =================================================================== (Binary files differ) Modified: trunk/module/reseaufree/province.png =================================================================== (Binary files differ) Modified: trunk/skin/simple/vuedensemble.gif =================================================================== (Binary files differ) Modified: trunk/skin/simplegreen/couleur.conf =================================================================== --- trunk/skin/simplegreen/couleur.conf 2007-02-20 22:20:33 UTC (rev 76) +++ trunk/skin/simplegreen/couleur.conf 2007-02-21 13:08:40 UTC (rev 77) @@ -67,7 +67,7 @@ COULEUR_FOND_AVERTISSEMENT = "#B7D88B3F" #///////////////////////////////// Fond d'\xE9cran /////////////////////////////////// -BACKGROUND = "fond0.jpg" -TYPE = "ext" +BACKGROUND = "background.jpg" +TYPE = "int" ?> Modified: trunk/skin/simplegreen/vuedensemble.gif =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2007-02-21 16:37:48
|
Revision: 78 http://svn.sourceforge.net/easybox-mod/?rev=78&view=rev Author: aragornis Date: 2007-02-21 08:37:43 -0800 (Wed, 21 Feb 2007) Log Message: ----------- Grosse mise ?\195?\160 jour sur la facon de savoir ?\195?\160 quelle page du menu revenir apres un module Correction sur la s?\195?\169quence de boot pour laisser le temps aux images de s'afficher Autres... Modified Paths: -------------- trunk/_framework/demarrage.php trunk/_framework/fonctions_partagees.inc.php trunk/_utilisateur/modules.db trunk/module/_menu/menu.php trunk/module/agenda/index1.php trunk/module/cac40/index1.php trunk/module/cinefil/index1.php trunk/module/ephemeride/index1.php trunk/module/eteindre/index1.php trunk/module/horloge/index1.php trunk/module/horoscope/index1.php trunk/module/infotraffic/index1.php trunk/module/jt/index1.php trunk/module/livescore/index1.php trunk/module/loto/index1.php trunk/module/mail/index1.php trunk/module/meteo/index1.php trunk/module/modules/index1.php trunk/module/morpion/index1.php trunk/module/multiposte/index1.php trunk/module/pendu/index1.php trunk/module/recettes/index1.php trunk/module/reseaufree/index1.php trunk/module/rss/index1.php trunk/module/seances/index1.php trunk/module/signet/signet.tpl trunk/module/sudoku/index1.php trunk/skin/simple/couleur.conf trunk/skin/simple/framework_skin.php trunk/skin/simple/menu.tpl trunk/skin/simplegreen/framework_skin.php trunk/skin/simplegreen/interface/Thumbs.db trunk/skin/simplegreen/interface.tpl trunk/skin/simplegreen/menu.tpl Added Paths: ----------- trunk/module/recettes/icone.gif trunk/ressources/icones/Recettes.gif trunk/skin/simple/interface/noimage.gif trunk/skin/simplegreen/interface/noimage.gif Modified: trunk/_framework/demarrage.php =================================================================== --- trunk/_framework/demarrage.php 2007-02-21 13:08:40 UTC (rev 77) +++ trunk/_framework/demarrage.php 2007-02-21 16:37:43 UTC (rev 78) @@ -49,7 +49,7 @@ $smarty->assign('etape',$etape); - $META['refresh']= '0;url=demarrage.php?etape=2'; + $META['refresh']= '1;url=demarrage.php?etape=2'; switch($etape){ @@ -68,7 +68,7 @@ break; // Phase d'initialisation case 2: - $META['refresh']= '0;url=demarrage.php?etape=3'; + $META['refresh']= '1;url=demarrage.php?etape=3'; //V\xE9rification des bases de donn\xE9es require_once($GESTION."verif_config.php"); @readfile('http://localhost:8081/lecteur/set_option.html'); @@ -145,7 +145,7 @@ } require('init_version.php'); - $META['refresh']= '0;url=demarrage.php?etape=4'; + $META['refresh']= '1;url=demarrage.php?etape=4'; break; // Phase d'identification Modified: trunk/_framework/fonctions_partagees.inc.php =================================================================== --- trunk/_framework/fonctions_partagees.inc.php 2007-02-21 13:08:40 UTC (rev 77) +++ trunk/_framework/fonctions_partagees.inc.php 2007-02-21 16:37:43 UTC (rev 78) @@ -35,6 +35,8 @@ reset($arr); } +//############################### GESTION DES VARIABLES DE SESSION ##############################// + //Sauvegarde une variable de session function save_variable($var, $value){ global $USER; @@ -70,6 +72,8 @@ sqlite_close($db); } +//############################### GESTION DU CRON ##############################// + //Programmer une action cron function save_cron($timestamp, $exec){ global $USER; @@ -85,23 +89,28 @@ $query = sqlite_query($db,'SELECT * FROM cron WHERE timestamp<='.time()); $result = sqlite_fetch_all($query, SQLITE_ASSOC); sqlite_close($db); - RETURN($result[0]['value']); + if(sqlite_num_rows($result)>=1){ + del_cron($result[0]['id']); + RETURN($result[0]['exec']); + }else{ + return false; + } } //Supprime une action du cron function del_cron($var){ global $USER; $db = sqlite_open($USER.'utilisateur.db', 0666); - $query = sqlite_query($db,'SELECT * FROM var WHERE var=\''.$var.'\' LIMIT 1'); + $query = sqlite_query($db,'DELETE FROM cron WHERE id=\''.$var.'\' LIMIT 1'); $result = sqlite_fetch_all($query, SQLITE_ASSOC); sqlite_close($db); - RETURN($result[0]['value']); } +//############################### GESTION DES PAGES DE RETOUR ##############################// + //Fournit le lien ou doit retourner EB \xE0 la fin du fichier en cours function page_retour_film(){ global $RACINE_REP; - $retour = get_variable('lastexpl'); if($retour=='explorateur'){ RETURN($RACINE_REP.'module/films/index1.php?start='.get_variable('rep_min').'&directory='.urlencode(get_variable('lastrep'))); @@ -122,13 +131,11 @@ }else{ RETURN($RACINE_REP.'module/_menu/menu.php'); } - } //Fournit le lien ou doit retourner EB apres une fiche de film function page_retour_fiche(){ global $RACINE_REP; - $retour = get_variable('retour_fiche_film'); if($retour=='explorateur'){ RETURN($RACINE_REP.'module/films/index1.php?start='.get_variable('rep_min').'&directory='.urlencode(get_variable('lastrep'))); @@ -141,6 +148,12 @@ } } +//Fournit la cat\xE9gorie o\xF9 doit retourner un module +function page_retour_menu(){ +global $RACINE_REP,$MODULE; + RETURN($MODULE.'_menu/menu.php?cat='.get_variable('last_menu')); +} + //extraire d'un path le nom du fichier sans extension function extract_name($fichier){ $nomcourant = str_replace("\\", "/", $fichier); @@ -254,6 +267,8 @@ RETURN $hours."h".$min."m".$sec; } +//############################### GESTION DES MODULES ##############################// + function add_module($nom, $repertoire, $lien, $actif1, $actif2, $actif3, $actif4, $actif5, $version, $description, $type, $dependance, $cat){ global $USER; $db = sqlite_open($USER.'modules.db', 0666); Modified: trunk/_utilisateur/modules.db =================================================================== (Binary files differ) Modified: trunk/module/_menu/menu.php =================================================================== --- trunk/module/_menu/menu.php 2007-02-21 13:08:40 UTC (rev 77) +++ trunk/module/_menu/menu.php 2007-02-21 16:37:43 UTC (rev 78) @@ -36,7 +36,7 @@ $MENU=array(); while($resu = sqlite_fetch_array($res)){ - $MENU[]=array('name'=>$resu['nom'],'num'=>'','rep'=>$resu['repertoire'],'lien'=>$resu['lien'],'ico'=>str_replace(array('>',' !',' ','\xE9','\xEE','\xF4','\xE0'),array('','','','e','i','o','a'),$resu['nom'])); + $MENU[]=array('name'=>$resu['nom'],'num'=>'','rep'=>$resu['repertoire'],'lien'=>$resu['lien'],'dependance'=>$resu['dependance'],'ico'=>str_replace(array('>',' !',' ','\xE9','\xEE','\xF4','\xE0'),array('','','','e','i','o','a'),$resu['nom'])); } sqlite_close($db); @@ -62,10 +62,12 @@ } if ($_GET['cat'] == "" OR $_GET['cat'] == "1"){ + save_variable('last_menu', 1); $smarty->assign('MENU',LOAD_MENU1()); $META['front_panel'] = 'EASYBOX'; $smarty->assign('TITRE','Menu Principal'); }else{ + save_variable('last_menu', $_GET['cat']); $db = sqlite_open($USER.'modules.db', 0666); $res = sqlite_query($db,'SELECT * FROM modules WHERE type="Cat\xE9gorie" AND id='.$_GET['cat']); $categorie = sqlite_fetch_array($res); Modified: trunk/module/agenda/index1.php =================================================================== --- trunk/module/agenda/index1.php 2007-02-21 13:08:40 UTC (rev 77) +++ trunk/module/agenda/index1.php 2007-02-21 16:37:43 UTC (rev 78) @@ -288,7 +288,7 @@ $affichage.="<tr>\n"; if($a<=date("Y")){ - $LINK['red'] = $MODULE.'_menu/menu.php?cat=29'; + $LINK['red'] = page_retour_menu(); $affichage.="<td align=center height=10><img src='../../_framework/aide/images/btn_rouge.gif'>Retour</td>\n"; }else{ $LINK['red']="index1.php?m=".($m)."&a=".($a-1); @@ -309,7 +309,7 @@ { $affichage.="<tr>\n"; if($a<=date("Y")){ - $LINK['red'] = $MODULE.'_menu/menu.php?cat=29'; + $LINK['red'] = page_retour_menu(); $affichage.="<td align=center height=10><img src='../../_framework/aide/images/btn_rouge.gif'>Retour</td>\n"; }else{ $LINK['red']="index1.php?m=".($m)."&a=".($a-1); Modified: trunk/module/cac40/index1.php =================================================================== --- trunk/module/cac40/index1.php 2007-02-21 13:08:40 UTC (rev 77) +++ trunk/module/cac40/index1.php 2007-02-21 16:37:43 UTC (rev 78) @@ -67,7 +67,7 @@ $smarty->assign('var_jour',$varjour[1]); $smarty->assign('var_annee',$varan[1]); - $LINK['red']= $MODULE.'_menu/menu.php?cat=18'; + $LINK['red']= page_retour_menu(); $smarty->assign('TITRE','Cours \xE0 la bourse de Paris (CAC40)'); $smarty->assign('CONTENT',$smarty->fetch('cac40.tpl')); Modified: trunk/module/cinefil/index1.php =================================================================== --- trunk/module/cinefil/index1.php 2007-02-21 13:08:40 UTC (rev 77) +++ trunk/module/cinefil/index1.php 2007-02-21 16:37:43 UTC (rev 78) @@ -35,7 +35,7 @@ $SORTIES[]=array('index'=>$valeur[1][$key], 'nom'=>$valeur[5][$key], 'image'=>$valeur[2][$key], 'comment'=>$valeur[7][$key]); } -$LINK['red']= $MODULE.'_menu/menu.php?cat=9'; +$LINK['red']= page_retour_menu(); $smarty->assign('TITRE',$titre); $smarty->assign('MIN',$_GET['start']); Modified: trunk/module/ephemeride/index1.php =================================================================== --- trunk/module/ephemeride/index1.php 2007-02-21 13:08:40 UTC (rev 77) +++ trunk/module/ephemeride/index1.php 2007-02-21 16:37:43 UTC (rev 78) @@ -30,7 +30,7 @@ $MENU_ALT=array(array('lien'=>'index1.php', 'nom'=>'Ephemerides', 'selected'=>1), array('lien'=>'anivdujour.php', 'nom'=>'Anniversaires', 'selected'=>0)); -$LINK['red']= $MODULE.'_menu/menu.php?cat=18'; +$LINK['red']= page_retour_menu(); $smarty->assign('proverbe',$proverbe); $smarty->assign('citation',$citation); Modified: trunk/module/eteindre/index1.php =================================================================== --- trunk/module/eteindre/index1.php 2007-02-21 13:08:40 UTC (rev 77) +++ trunk/module/eteindre/index1.php 2007-02-21 16:37:43 UTC (rev 78) @@ -59,7 +59,7 @@ } } -$LINK['red']= $MODULE.'_menu/menu.php?cat=29'; +$LINK['red']= page_retour_menu(); $smarty->assign('no_icone',True); $smarty->assign('AVERTISSEMENT',$msg); Modified: trunk/module/horloge/index1.php =================================================================== --- trunk/module/horloge/index1.php 2007-02-21 13:08:40 UTC (rev 77) +++ trunk/module/horloge/index1.php 2007-02-21 16:37:43 UTC (rev 78) @@ -2,7 +2,7 @@ $RACINE_REP = "../../"; require($RACINE_REP.'_framework/framework.php'); -$LINK['red']= $MODULE.'_menu/menu.php?cat=29'; +$LINK['red']= page_retour_menu(); $META['refresh']='30;url=index1.php'; Modified: trunk/module/horoscope/index1.php =================================================================== --- trunk/module/horoscope/index1.php 2007-02-21 13:08:40 UTC (rev 77) +++ trunk/module/horoscope/index1.php 2007-02-21 16:37:43 UTC (rev 78) @@ -2,7 +2,7 @@ $RACINE_REP = "../../"; require($RACINE_REP.'_framework/framework.php'); -$LINK['red']= $MODULE.'_menu/menu.php?cat=9'; +$LINK['red']= page_retour_menu(); global $affichage,$level, $nb_joueurs, $nb_win, $fini; Modified: trunk/module/infotraffic/index1.php =================================================================== --- trunk/module/infotraffic/index1.php 2007-02-21 13:08:40 UTC (rev 77) +++ trunk/module/infotraffic/index1.php 2007-02-21 16:37:43 UTC (rev 78) @@ -15,7 +15,7 @@ array('lien'=>'index1.php?vue=paris&event='.$event, 'nom'=>'Paris', 'selected'=>$vue=='paris'), array('lien'=>'index1.php?vue=idf&event='.$event, 'nom'=>'IdF', 'selected'=>$vue=='idf')); -$LINK['red']= $MODULE.'_menu/menu.php?cat=18'; +$LINK['red']= page_retour_menu(); $smarty->assign('event',$event); $smarty->assign('TITRE','Info-Trafic'); Modified: trunk/module/jt/index1.php =================================================================== --- trunk/module/jt/index1.php 2007-02-21 13:08:40 UTC (rev 77) +++ trunk/module/jt/index1.php 2007-02-21 16:37:43 UTC (rev 78) @@ -3,7 +3,7 @@ require($RACINE_REP.'_framework/framework.php'); $xml_mod = simplexml_load_file($MODULE.'jt/flux.xml'); -$LINK['red']= $MODULE.'_menu/menu.php?cat=9'; +$LINK['red']= page_retour_menu(); save_variable('lastexpl', 'jt'); Modified: trunk/module/livescore/index1.php =================================================================== --- trunk/module/livescore/index1.php 2007-02-21 13:08:40 UTC (rev 77) +++ trunk/module/livescore/index1.php 2007-02-21 16:37:43 UTC (rev 78) @@ -100,7 +100,7 @@ $RES[]=array('index'=>$valeur2[1][intval($value[1])],'nom'=>$value[0]); } - $LINK['red']= $MODULE.'_menu/menu.php?cat=18'; + $LINK['red']= page_retour_menu(); $smarty->assign('TITRE','Comp\xE9tition(s) de '.$sport); $smarty->assign('championnat',$RES); Modified: trunk/module/loto/index1.php =================================================================== --- trunk/module/loto/index1.php 2007-02-21 13:08:40 UTC (rev 77) +++ trunk/module/loto/index1.php 2007-02-21 16:37:43 UTC (rev 78) @@ -2,7 +2,7 @@ $RACINE_REP = "../../"; require($RACINE_REP.'_framework/framework.php'); -$LINK['red']= $MODULE.'_menu/menu.php?cat=18'; +$LINK['red']= page_retour_menu(); $MENU_ALT=array(array('lien'=>'loto.php?tirage=1', 'nom'=>'Loto - 1er t.', 'selected'=>1), array('lien'=>'loto.php?tirage=2', 'nom'=>'Loto - 2eme t.', 'selected'=>0), Modified: trunk/module/mail/index1.php =================================================================== --- trunk/module/mail/index1.php 2007-02-21 13:08:40 UTC (rev 77) +++ trunk/module/mail/index1.php 2007-02-21 16:37:43 UTC (rev 78) @@ -55,7 +55,7 @@ $CONTENT .= '<img src="'.$INTERFACE_REP.'puce.gif" width="13" height="13"> <a href="index1.php?compte='.$i.'">'.$login[$i].' sur '.$serveur[$i].':'.$service_port[$i].'</a><br>'; } -$LINK['red'] = $MODULE.'_menu/menu.php?cat=18'; +$LINK['red'] = page_retour_menu(); $smarty->assign('AVERTISSEMENT',$CONTENT); $smarty->display('avertissement.tpl'); @@ -141,7 +141,7 @@ $smarty->assign('TITRE','Boite mail de '.$login[$compte].' sur '.$serveur[$compte]); $smarty->assign('MIN',$_GET['start']); - $LINK['red'] = $MODULE.'_menu/menu.php?cat=18'; + $LINK['red'] = page_retour_menu(); $smarty->assign('MESSAGES', $MESSAGES); $smarty->assign('CONTENT',$smarty->fetch('mail_inbox.tpl')); @@ -157,7 +157,7 @@ if($service_port[$compte]=="995") $CONTENT = 'Il semble que vous ayiez tent\xE9 de vous connecter \xE0 un serveur mail s\xE9curis\xE9. Ce n\'est actuellement pas possible. Veuillez \xE9diter la configuration de Easybox.'; - $LINK['red'] = $MODULE.'_menu/menu.php?cat=18'; + $LINK['red'] = page_retour_menu(); $META['refresh'] = '2;url='.$MODULE.'_menu/menu.php?cat=18'; $smarty->assign('AVERTISSEMENT',$CONTENT); Modified: trunk/module/meteo/index1.php =================================================================== --- trunk/module/meteo/index1.php 2007-02-21 13:08:40 UTC (rev 77) +++ trunk/module/meteo/index1.php 2007-02-21 16:37:43 UTC (rev 78) @@ -83,7 +83,7 @@ }; -$LINK['red']= $MODULE.'_menu/menu.php?cat=18'; +$LINK['red']= page_retour_menu(); if ($jourmeteoft == 'vigi') { $smarty->assign('TITRE','Carte de vigilance de M\xE9t\xE9o France '.date("d-m-Y H:i")); Modified: trunk/module/modules/index1.php =================================================================== --- trunk/module/modules/index1.php 2007-02-21 13:08:40 UTC (rev 77) +++ trunk/module/modules/index1.php 2007-02-21 16:37:43 UTC (rev 78) @@ -2,7 +2,7 @@ $RACINE_REP = "../../"; require($RACINE_REP.'_framework/framework.php'); -$LINK['red']= $MODULE.'_menu/menu.php?cat=29'; +$LINK['red']= page_retour_menu(); $MENU_ALT=array(array('lien'=>'index1.php?action=mod', 'nom'=>'Modules install\xE9s', 'selected'=>$_GET['action']=='mod'), array('lien'=>'index1.php?action=newmod', 'nom'=>'Nouveaux modules', 'selected'=>$_GET['action']=='newmod'), Modified: trunk/module/morpion/index1.php =================================================================== --- trunk/module/morpion/index1.php 2007-02-21 13:08:40 UTC (rev 77) +++ trunk/module/morpion/index1.php 2007-02-21 16:37:43 UTC (rev 78) @@ -2,7 +2,7 @@ $RACINE_REP = "../../"; require($RACINE_REP.'_framework/framework.php'); -$LINK['red']= $MODULE.'_menu/menu.php?cat=9'; +$LINK['red']= page_retour_menu(); global $affichage,$level, $nb_joueurs, $nb_win, $fini; Modified: trunk/module/multiposte/index1.php =================================================================== --- trunk/module/multiposte/index1.php 2007-02-21 13:08:40 UTC (rev 77) +++ trunk/module/multiposte/index1.php 2007-02-21 16:37:43 UTC (rev 78) @@ -82,7 +82,7 @@ break; default : -$LINK['red']=$MODULE.'_menu/menu.php?cat=9'; +$LINK['red']=page_retour_menu(); $smarty->assign('CONTENT',$smarty->fetch('enregistrement.tpl')); $smarty->display('interface.tpl'); break; Modified: trunk/module/pendu/index1.php =================================================================== --- trunk/module/pendu/index1.php 2007-02-21 13:08:40 UTC (rev 77) +++ trunk/module/pendu/index1.php 2007-02-21 16:37:43 UTC (rev 78) @@ -6,7 +6,7 @@ $RACINE_REP = "../../"; require($RACINE_REP.'_framework/framework.php'); -$LINK['red']= $MODULE.'_menu/menu.php?cat=9'; +$LINK['red']= page_retour_menu(); $MENU_ALT=array( array('lien'=>'index1.php?level=1', 'nom'=>'Niveau 1'), Added: trunk/module/recettes/icone.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/icone.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/module/recettes/index1.php =================================================================== --- trunk/module/recettes/index1.php 2007-02-21 13:08:40 UTC (rev 77) +++ trunk/module/recettes/index1.php 2007-02-21 16:37:43 UTC (rev 78) @@ -136,7 +136,7 @@ $LINK['red'] = 'index1.php?menu=principal'; } else { // Menu principal $menu = 'principal'; - $LINK['red'] = $MODULE . '_menu/menu.php?cat=29'; + $LINK['red'] = page_retour_menu(); } } Modified: trunk/module/reseaufree/index1.php =================================================================== --- trunk/module/reseaufree/index1.php 2007-02-21 13:08:40 UTC (rev 77) +++ trunk/module/reseaufree/index1.php 2007-02-21 16:37:43 UTC (rev 78) @@ -21,7 +21,7 @@ array('lien'=>'index1.php?vue=info', 'nom'=>'Info', 'selected'=>$vue=='info'), array('lien'=>'index1.php?vue=speedtest', 'nom'=>'SpdTst', 'selected'=>$vue=='speedtest')); -$LINK['red']= $MODULE.'_menu/menu.php?cat=29'; +$LINK['red']= page_retour_menu(); if($vue=='info'){ Modified: trunk/module/rss/index1.php =================================================================== --- trunk/module/rss/index1.php 2007-02-21 13:08:40 UTC (rev 77) +++ trunk/module/rss/index1.php 2007-02-21 16:37:43 UTC (rev 78) @@ -37,7 +37,7 @@ sqlite_close($db); -$LINK['red']= $MODULE.'_menu/menu.php?cat=18'; +$LINK['red']= page_retour_menu(); $smarty->assign('RSS',$RSS); $smarty->assign('TITRE','Flux RSS'); Modified: trunk/module/seances/index1.php =================================================================== --- trunk/module/seances/index1.php 2007-02-21 13:08:40 UTC (rev 77) +++ trunk/module/seances/index1.php 2007-02-21 16:37:43 UTC (rev 78) @@ -3,7 +3,7 @@ $RACINE_REP = "../../"; require($RACINE_REP.'_framework/framework.php'); -$LINK['red']= $MODULE.'_menu/menu.php?cat=9'; +$LINK['red']= page_retour_menu(); $smarty->assign('TITRE','Veuillez tapper le code postal de votre ville'); Modified: trunk/module/signet/signet.tpl =================================================================== --- trunk/module/signet/signet.tpl 2007-02-21 13:08:40 UTC (rev 77) +++ trunk/module/signet/signet.tpl 2007-02-21 16:37:43 UTC (rev 78) @@ -18,19 +18,13 @@ {assign var=current_film value=$CONTENT_TABLE[table].lien} {assign var=k value=$k+1} {if $k > $MIN AND $k <= $MIN+3} - {if $k == $MIN} - {assign var=j value=1} - </td></tr></table> - {/if} {assign var=j value=$j+1} - <table width="450" border="0" cellpadding="0" cellspacing="0"><tr><td colspan=2 bgcolor="{#COULEUR_INTERFACE1#}">{$CONTENT_TABLE[table].lien|extract_name|truncate:55}</td></tr> + {if $k != $MIN+1}</table>{/if}<table width="450" border="0" cellpadding="0" cellspacing="0"><tr><td colspan=2 bgcolor="{#COULEUR_INTERFACE1#}">{$CONTENT_TABLE[table].lien|extract_name|truncate:55}</td></tr> {/if} {/if} - {if $k > $MIN AND $k <= $MIN+3} <tr><td width=434 bgcolor="{#COULEUR_INTERFACE2#}"><a href="playsignet.php?toplay={$CONTENT_TABLE[table].lien|urlencode}&temps={$CONTENT_TABLE[table].duree|urlencode}">{$CONTENT_TABLE[table].duree}</a></td><td width="20" bgcolor="{#COULEUR_INTERFACE2#}"><a href="supsignet.php?toplay={$CONTENT_TABLE[table].id}&temps={$CONTENT_TABLE[table].duree}"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_INTERFACE2#}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}delete.gif" border="0" width="20" height="20"></td></tr></table></a></td></tr> {/if} - {if $smarty.section.table.last} </table></td></tr></table> {if $MIN+$j < $k} Modified: trunk/module/sudoku/index1.php =================================================================== --- trunk/module/sudoku/index1.php 2007-02-21 13:08:40 UTC (rev 77) +++ trunk/module/sudoku/index1.php 2007-02-21 16:37:43 UTC (rev 78) @@ -8,7 +8,7 @@ $RACINE_REP = "../../"; require($RACINE_REP.'_framework/framework.php'); -$LINK['red']= $MODULE.'_menu/menu.php?cat=9'; +$LINK['red']= page_retour_menu(); $MENU_ALT=array( array('lien'=>'index1.php?helpme=1', 'nom'=>'Aide') Added: trunk/ressources/icones/Recettes.gif =================================================================== (Binary files differ) Property changes on: trunk/ressources/icones/Recettes.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/skin/simple/couleur.conf =================================================================== --- trunk/skin/simple/couleur.conf 2007-02-21 13:08:40 UTC (rev 77) +++ trunk/skin/simple/couleur.conf 2007-02-21 16:37:43 UTC (rev 78) @@ -45,9 +45,9 @@ #Couleur des liens inactifs COULEUR_LECTEUR_LINK = "#0000003f" #Couleur des liens selectionn\xE9s -COULEUR_HTML_ALINK = "#0000003f" +COULEUR_LECTEUR_ALINK = "#AE00003f" #Couleur des liens d\xE9j\xE0 visit\xE9s -COULEUR_LECTEUR_VLINK = "#FFFF003F" +COULEUR_LECTEUR_VLINK = "#AE00003F" #///////////////////////////////// HTML-LIGHT et RSS /////////////////////////////////// #Couleur du texte par d\xE9faut Modified: trunk/skin/simple/framework_skin.php =================================================================== --- trunk/skin/simple/framework_skin.php 2007-02-21 13:08:40 UTC (rev 77) +++ trunk/skin/simple/framework_skin.php 2007-02-21 16:37:43 UTC (rev 78) @@ -2,13 +2,13 @@ // Ici peuvent \xEAtre d\xE9finies des fonctions ou variables sp\xE9cifiques au template // Variables du skin - $PLAYER_REP = $SKIN_REP."player/"; + $PLAYER_REP = $SKIN_REP.'player/'; $smarty->assign('PLAYER_REP',$PLAYER_REP); - $DOSSIER_REP = $SKIN_REP."dossier/"; + $DOSSIER_REP = $SKIN_REP.'dossier/'; $smarty->assign('DOSSIER_REP',$DOSSIER_REP); - $INTERFACE_REP = $SKIN_REP."interface/"; + $INTERFACE_REP = $SKIN_REP.'interface/'; $smarty->assign('INTERFACE_REP',$INTERFACE_REP); - $PARAMETRE_REP = $SKIN_REP."parametre/"; + $PARAMETRE_REP = $SKIN_REP.'parametre/'; $smarty->assign('PARAMETRE_REP',$PARAMETRE_REP); $ICONE_REP = $SKIN_REP.'icones/'; $smarty->assign('ICONE_REP',$ICONE_REP); Added: trunk/skin/simple/interface/noimage.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simple/interface/noimage.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/skin/simple/menu.tpl =================================================================== --- trunk/skin/simple/menu.tpl 2007-02-21 13:08:40 UTC (rev 77) +++ trunk/skin/simple/menu.tpl 2007-02-21 16:37:43 UTC (rev 78) @@ -10,7 +10,7 @@ <a onfocus='front_panel="{$MENU[menu].name|cleanaff}";' href="{$MODULE}{$MENU[menu].rep}{$MENU[menu].lien}"> <table width="225" height="50" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="50"> <td width="50" height="50"> - <img src="/{if $MENU[menu].type=='Alone'}{$RES_ICO}{else}{$ICONE_REP}{/if}{$MENU[menu].ico}.gif" border="0"> + <img src="/{if $MENU[menu].dependance=='Alone'}{$RES_ICO}{else}{$ICONE_REP}{/if}{$MENU[menu].ico}.gif" border="0"> </td> <td> <font size="4"> {$MENU[menu].name}</font> Modified: trunk/skin/simplegreen/framework_skin.php =================================================================== --- trunk/skin/simplegreen/framework_skin.php 2007-02-21 13:08:40 UTC (rev 77) +++ trunk/skin/simplegreen/framework_skin.php 2007-02-21 16:37:43 UTC (rev 78) @@ -1,52 +1,52 @@ -<?php -// Ici peuvent \xEAtre d\xE9finies des fonctions ou variables sp\xE9cifiques au template - -// Variables du skin - $PLAYER_REP = $SKIN_REP."player/"; - $smarty->assign('PLAYER_REP',$PLAYER_REP); - $DOSSIER_REP = $SKIN_REP."dossier/"; - $smarty->assign('DOSSIER_REP',$DOSSIER_REP); - $INTERFACE_REP = $SKIN_REP."interface/"; - $smarty->assign('INTERFACE_REP',$INTERFACE_REP); - $PARAMETRE_REP = $SKIN_REP."parametre/"; - $smarty->assign('PARAMETRE_REP',$PARAMETRE_REP); - $ICONE_REP = $SKIN_REP.'icones/'; - $smarty->assign('ICONE_REP',$ICONE_REP); - $CHAINE_REP = $SKIN_REP.'chaines/'; - $smarty->assign('CHAINE_REP',$CHAINE_REP); - -// Chargement du fichier des couleurs du skin - $_COULEUR = parse_ini_file($SKIN_REP.'couleur.conf', TRUE); - - if($_COULEUR['TYPE'] == 'int'){ - $BACKGROUND_REP = $SKIN_REP.'background/'; - }else{ - $BACKGROUND_REP = $RESSOURCES.'background/'; - } - $smarty->assign('BACKGROUND_REP',$BACKGROUND_REP); - - -// Fond d'\xE9cran par d\xE9faut - path d\xE9finit \xE0 partir du r\xE9pertoire /http/skin/simple/ - $BACKGROUND = $_COULEUR['BACKGROUND']; - -// Fonction responsable de l'affichage du fond d'\xE9cran \xE0 la toute fin du processus de conception de la page (post-filtre de smarty) -function background($output, &$smarty){ - global $contenu_html, $BACKGROUND, $BACKGROUND_REP, $SKIN_REP, $BACKGROUND_TYPE, $FORCED, $_SERVER, $BACK_DONE; - if(((eregi("stop",$contenu_html) AND $BACKGROUND!="none" AND realpath($BACKGROUND_REP.$BACKGROUND)!='') OR $FORCED) AND !$BACK_DONE){ - if($BACKGROUND_TYPE == 'add'){ - play_fichier('type=21&temps=8000',realpath($BACKGROUND_REP.$BACKGROUND),1,'photo'); - }else{ - play_fichier('type=20&temps=8000',realpath($BACKGROUND_REP.$BACKGROUND),1,'photo'); - } - //Pour ne pas lancer deux fois le background - $BACK_DONE = 1; - } - return($output); -} - -// D\xE9finit un filtre qui fait jouer le background en tout dernier lieu, quand l'ensemble des templates de la page ont \xE9t\xE9 compil\xE9s. - $smarty->register_outputfilter("background"); - - - -?> +<?php +// Ici peuvent \xEAtre d\xE9finies des fonctions ou variables sp\xE9cifiques au template + +// Variables du skin + $PLAYER_REP = $SKIN_REP.'player/'; + $smarty->assign('PLAYER_REP',$PLAYER_REP); + $DOSSIER_REP = $SKIN_REP.'dossier/'; + $smarty->assign('DOSSIER_REP',$DOSSIER_REP); + $INTERFACE_REP = $SKIN_REP.'interface/'; + $smarty->assign('INTERFACE_REP',$INTERFACE_REP); + $PARAMETRE_REP = $SKIN_REP.'parametre/'; + $smarty->assign('PARAMETRE_REP',$PARAMETRE_REP); + $ICONE_REP = $SKIN_REP.'icones/'; + $smarty->assign('ICONE_REP',$ICONE_REP); + $CHAINE_REP = $SKIN_REP.'chaines/'; + $smarty->assign('CHAINE_REP',$CHAINE_REP); + +// Chargement du fichier des couleurs du skin + $_COULEUR = parse_ini_file($SKIN_REP.'couleur.conf', TRUE); + + if($_COULEUR['TYPE'] == 'int'){ + $BACKGROUND_REP = $SKIN_REP.'background/'; + }else{ + $BACKGROUND_REP = $RESSOURCES.'background/'; + } + $smarty->assign('BACKGROUND_REP',$BACKGROUND_REP); + + +// Fond d'\xE9cran par d\xE9faut - path d\xE9finit \xE0 partir du r\xE9pertoire /http/skin/simple/ + $BACKGROUND = $_COULEUR['BACKGROUND']; + +// Fonction responsable de l'affichage du fond d'\xE9cran \xE0 la toute fin du processus de conception de la page (post-filtre de smarty) +function background($output, &$smarty){ + global $contenu_html, $BACKGROUND, $BACKGROUND_REP, $SKIN_REP, $BACKGROUND_TYPE, $FORCED, $_SERVER, $BACK_DONE; + if(((eregi("stop",$contenu_html) AND $BACKGROUND!="none" AND realpath($BACKGROUND_REP.$BACKGROUND)!='') OR $FORCED) AND !$BACK_DONE){ + if($BACKGROUND_TYPE == 'add'){ + play_fichier('type=21&temps=8000',realpath($BACKGROUND_REP.$BACKGROUND),1,'photo'); + }else{ + play_fichier('type=20&temps=8000',realpath($BACKGROUND_REP.$BACKGROUND),1,'photo'); + } + //Pour ne pas lancer deux fois le background + $BACK_DONE = 1; + } + return($output); +} + +// D\xE9finit un filtre qui fait jouer le background en tout dernier lieu, quand l'ensemble des templates de la page ont \xE9t\xE9 compil\xE9s. + $smarty->register_outputfilter("background"); + + + +?> Modified: trunk/skin/simplegreen/interface/Thumbs.db =================================================================== (Binary files differ) Added: trunk/skin/simplegreen/interface/noimage.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/noimage.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/skin/simplegreen/interface.tpl =================================================================== --- trunk/skin/simplegreen/interface.tpl 2007-02-21 13:08:40 UTC (rev 77) +++ trunk/skin/simplegreen/interface.tpl 2007-02-21 16:37:43 UTC (rev 78) @@ -3,7 +3,7 @@ <head> {include file="bouton.tpl"} </head> -<body background="ts://127.0.0.1" text="{#COULEUR_TEXT#}" link="{#COULEUR_LINK#}" alink="{#COULEUR_ALINK#}" vlink="{#COULEUR_VLINK#}"> +<body background="ts://127.0.0.1?ox=20&oy=20&ow=720&oh=576,&ix=0&iy=0&iw=360&ih=192" text="{#COULEUR_TEXT#}" link="{#COULEUR_LINK#}" alink="{#COULEUR_ALINK#}" vlink="{#COULEUR_VLINK#}"> <center> <table width="645" height="510" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> Modified: trunk/skin/simplegreen/menu.tpl =================================================================== --- trunk/skin/simplegreen/menu.tpl 2007-02-21 13:08:40 UTC (rev 77) +++ trunk/skin/simplegreen/menu.tpl 2007-02-21 16:37:43 UTC (rev 78) @@ -10,7 +10,7 @@ <a onfocus='front_panel="{$MENU[menu].name|cleanaff}";' href="{$MODULE}{$MENU[menu].rep}{$MENU[menu].lien}"> <table width="225" height="50" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="50"> <td width="50" height="50"> - <img src="/{if $MENU[menu].type=='Alone'}{$RES_ICO}{else}{$ICONE_REP}{/if}{$MENU[menu].ico}.gif" border="0"> + <img src="/{if $MENU[menu].dependance=='Alone'}{$RES_ICO}{else}{$ICONE_REP}{/if}{$MENU[menu].ico}.gif" border="0"> </td> <td> <font size="4"> {$MENU[menu].name}</font> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2007-02-23 11:37:12
|
Revision: 82 http://svn.sourceforge.net/easybox-mod/?rev=82&view=rev Author: aragornis Date: 2007-02-23 03:37:08 -0800 (Fri, 23 Feb 2007) Log Message: ----------- Nouvelle aide Prise en compte de freebox HD/v4 Mise ?\195?\160 jour du module "Modules" (pb d'urlencode) Prise en compte des png comme fond d'?\195?\169cran Modified Paths: -------------- trunk/_framework/aide/help.php trunk/_framework/lib/img_cr.php trunk/module/films/films.tpl trunk/module/films/info.php trunk/module/modules/modules.tpl trunk/skin/simple/config_skin.php trunk/skin/simplegreen/config_skin.php trunk/skin/simplegreen/couleur.conf trunk/skin/simplegreen/interface.tpl Added Paths: ----------- trunk/_framework/aide/tutorial.php trunk/skin/simple/interface/blank.gif trunk/skin/simplegreen/interface/blank.gif Removed Paths: ------------- trunk/_framework/aide/help-old.php Deleted: trunk/_framework/aide/help-old.php =================================================================== --- trunk/_framework/aide/help-old.php 2007-02-22 17:25:26 UTC (rev 81) +++ trunk/_framework/aide/help-old.php 2007-02-23 11:37:08 UTC (rev 82) @@ -1,128 +0,0 @@ -<?php -$RACINE_REP = "../../"; -require($RACINE_REP.'_framework/framework.php'); - - -function cutname($file) -{ -$file = basename($file);//nuxgyver -$file = substr($file,0,100); -return $file; -} - -if (isset($_GET['page'])){ -$pageprov = $_GET['page']; -$page = ereg_replace(' ','',$pageprov); -$page = ereg_replace('\.','',$page); -$page = ereg_replace('/','',$page); -$page = ereg_replace('\\\\','',$page); -$page = ereg_replace ("\\\'", "'", $page); -} -else -{ -$page = 'all'; -} - -if (cutname($pageprov) != "") { $thetitre = cutname($pageprov); }else{ $thetitre = "Aide G\xE9n\xE9ral"; } - -SKIN_START($thetitre, '4'); - -if (isset($xml_aide->channel->$page->description) and $page != 'all') -{ -echo "<b><u>Description</u></b> :<br>".utf8_decode($xml_aide->channel->$page->description)."<br> <br>"; -} - - -?> -<table> - -<? - if (isset($xml_aide->channel->$page->fonction)) { - if ($page=='all') -{ -echo"<b><u>Touches disponibles dans l'ensemble de EasyBox</u></b> : <br>"; -} -else -{ -echo '<b><u>Touches particuli\xE8res \xE0 cette page</u></b> : <br>'; -} - foreach($xml_aide->channel->$page->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; - } - - - echo '<tr><td width=20%>'.$titre.' : </td><td width=80%>'.utf8_decode($fonc->description).'</td></tr>'; - } - } -?> - -</table> -<? - -if ($page!='all') { -echo "<br><b><u><a href=/help.php?page=all>Voir les touches disponibles dans l'ensemble de EasyBox</a></u></b>"; -} - -SKIN_END(); -?> Modified: trunk/_framework/aide/help.php =================================================================== --- trunk/_framework/aide/help.php 2007-02-22 17:25:26 UTC (rev 81) +++ trunk/_framework/aide/help.php 2007-02-23 11:37:08 UTC (rev 82) @@ -6,10 +6,11 @@ else $typeTel = 'tele'; if (isset($_GET['affichage'])) $affichage = $_GET['affichage']; - else $affichage = $typeTel; + else $affichage = 'telehd'; - $MENU_ALT=array(array('lien'=>'help.php?affichage='.$typeTel, 'nom'=>'T\xE9l\xE9commande', 'selected'=>$affichage==$typeTel), + $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') @@ -18,15 +19,15 @@ $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 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>'; + $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. Quand le panneau d\information est affich\xE9, vous pouvez activer les diff\xE9rentes fonctions. La touche option sert \xE0 afficher le troisi\xE8me panneau, celui des options, 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") + $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/easyboxhd.gif"></center>'; + $CON = '<center><img src="images/easybox.gif"></center>'; $smarty->assign('TITRE','Aide'); $smarty->assign('CONTENT',$CON); Added: trunk/_framework/aide/tutorial.php =================================================================== --- trunk/_framework/aide/tutorial.php (rev 0) +++ trunk/_framework/aide/tutorial.php 2007-02-23 11:37:08 UTC (rev 82) @@ -0,0 +1,98 @@ +<? +$RACINE_REP = "../../"; +require($RACINE_REP.'_framework/framework.php'); + +(isset($_GET['etape'])?$etape=$_GET['etape']:$etape=1); + +$CONTENT[1] = "Bienvenue dans le monde d'Easybox. + Toute l'\xE9quipe de d\xE9veloppement vous remercie d'avoir choisi ce mod. + Ce court tutoriel va vous apprendre \xE0 vous servir des fonctions de base d'Easybox.<br> <br> + A chaque instant, vous pouvez quitter ce tutoriel en utilisant la touche <img src=\"".$INTERFACE_REP."btn_rouge.gif\" border=\"0\"><br> + Vous pouvez aussi passer \xE0 la page suivante et la page pr\xE9c\xE9dente en utilisant les touches <img src=\"".$INTERFACE_REP."btn_bleu.gif\" border=\"0\"> et <img src=\"".$INTERFACE_REP."btn_vert.gif\" border=\"0\"><br> + Passez \xE0 la page suivante en pressant la touche <img src=\"".$INTERFACE_REP."btn_bleu.gif\" border=\"0\">"; + +$CONTENT[2] = "La navigation dans Easybox v4 a \xE9t\xE9 faite de sorte que tous les modules se comportent de la m\xEAme fa\xE7on avec une fluidit\xE9 optimale. + Les touches permettant de changer de page ont donc \xE9t\xE9 uniformis\xE9es. La plupart du temps, les touches \xE0 presser sont affich\xE9es \xE0 l'\xE9cran. + N\xE9anmoins, voici les touches affect\xE9es aux m\xEAmes actions partout dans Easybox, afin de vous les mettre en m\xE9moire. + En voici un petit aper\xE7u sur freebox HD, v4 et v3 :<br> <br> + La touche rouge <img src=\"".$INTERFACE_REP."btn_rouge.gif\" border=\"0\"> sert toujours \xE0 revenir au niveau hierarchique sup\xE9rieur (un retour qui retourne l\xE0 o\xF9 vous voulez.)<br> + La touche verte <img src=\"".$INTERFACE_REP."btn_vert.gif\" border=\"0\"> permet de revenir \xE0 la page pr\xE9c\xE9dente dans les modules \"multipages\" (explorateurs, listes...)<br> + La touche bleue <img src=\"".$INTERFACE_REP."btn_bleu.gif\" border=\"0\"> permet d'aller \xE0 la page suivante dans les modules \"multipages\" (explorateurs, listes...)<br> + La touche jaune <img src=\"".$INTERFACE_REP."btn_jaune.gif\" border=\"0\"> permet d'aller au dossier parent dans les explorateurs<br> + La touche guide (appui long sur info pour la freebox HD) permet de revenir \xE0 la page d'accueil d'Easybox<br> + La touche aide permet \xE0 tout instant d'acc\xE9der \xE0 l'aide d'Easybox ou de relancer ce tutoriel<br> <br> + <img src=\"".$INTERFACE_REP."btn_vert.gif\" border=\"0\"> <a href=\"tutorial.php?etape=1\">Pr\xE9c\xE9dent</a> - <img src=\"".$INTERFACE_REP."btn_bleu.gif\" border=\"0\"> <a href=\"tutorial.php?etape=3\">Suivant</a> + "; +$CONTENT[3] = "Pour lire une vid\xE9o, il existe deux solutions. La premi\xE8re est de constituer une bilioth\xE8que de vos fichiers vid\xE9os. + Depuis la \"biblioth\xE8que\" disponible sur la page d'accueil d'Easybox, vous pourrez voir l'int\xE9gralit\xE9 de vos jaquettes, trier celles-ci par acteur, par ann\xE9e, par nom... Vous pourrez aussi voir la biographie de tous les acteurs et r\xE9alisateurs intervenant dans vos films. + Vous pourrez aussi directement acc\xE9der \xE0 la fiche allocin\xE9 du film en cliquant sur l'icone \"info\". + Pour que cette base de donn\xE9es de vos films soit cr\xE9\xE9e, vous devez sp\xE9cifier dans la configuration d'Easybox, disponible \xE0 la page web http://localhost:8080/configuration/configuration.php, le dossier o\xF9 se trouvent vos fichiers vid\xE9os. + Les fichiers doivent avoir pour nom le nom du film sans autres fioritures (ex : Pulp fiction.avi) + Rendez-vous alors dans la section \"scan\" pour lancer l'acquisition des informations. Si vous rajoutez/supprimez des fichiers de votre dossier de vid\xE9os, Easybox s'en rendra compte et ajoutera/supprimera automatiquement les films concern\xE9s. + Les fiches des films et personnalit\xE9s sont r\xE9guli\xE8rement mises \xE0 jour automatiquement.<br> <br> + Une fois la bilioth\xE8que compl\xE9t\xE9e, vous n'avez plus qu'\xE0 lancer vos films depuis la biblioth\xE8que en cliquant sur leur nom ou en passant par leur fiche allocin\xE9.<br> <br> + <img src=\"".$INTERFACE_REP."btn_vert.gif\" border=\"0\"> <a href=\"tutorial.php?etape=2\">Pr\xE9c\xE9dent</a> - <img src=\"".$INTERFACE_REP."btn_bleu.gif\" border=\"0\"> <a href=\"tutorial.php?etape=4\">Suivant</a> + "; +$CONTENT[4] = "La deuxi\xE8me fa\xE7on de lancer la lecture d'un film est de passer par l'explorateur vid\xE9o. S\xE9lectionnez cette option sur la page d'accueil. + Vous pouvez alors parcourir vos dossiers et vos disques durs pour trouver le bon fichier. + Si le nom du fichier est correct (cf \xE9tape 3) vous pouvez rechercher la fiche du film en cliquant sur l'icone \"infos\". Pour lancer le film d\xE9sir\xE9, cliquez sur son nom.<br> <br> + <img src=\"".$INTERFACE_REP."btn_vert.gif\" border=\"0\"> <a href=\"tutorial.php?etape=3\">Pr\xE9c\xE9dent</a> - <img src=\"".$INTERFACE_REP."btn_bleu.gif\" border=\"0\"> <a href=\"tutorial.php?etape=5\">Suivant</a> + "; +$CONTENT[5] = "Une fois un film, ou un autre m\xE9dia, lanc\xE9, vous arrivez sur l'interface de lecture d'Easybox. + En cliquant sur la touche info, vous ferez apparaitre ou disparaitre cette interface. + En haut se trouve un menu. Chaque cat\xE9gorie de ce menu vous permet d'acc\xE9der aux options concernant les domaines respectifs (audio, sous-titre, vid\xE9o, signets, chapitres...). + Le bouton \"fermer\" permet de fermer le panneau d'option actuellement ouvert.<br> <br> + En bas se trouve le player d'Easybox. + Vous pouvez vous d\xE9placer dans le flux en d\xE9placement le petit curseur noir pr\xE9sent sous la barre de progression et en cliquant sur OK. Si vous avez la freebox HD, l'afficheur affichera en direct la dur\xE9e \xE0 laquelle vous allez aller si vous cliquez sur OK.<br> + Vous pouvez aussi directement rentrer une dur\xE9e gr\xE2ce aux chiffres de la t\xE9l\xE9commande. + Vous pouvez enfin faire pause/stop, avancer d'une minute, reculer d'une minute, cr\xE9er un signet...<br> <br> + Vous pouvez \xE9galement effectuer toutes ces actions directement avec la t\xE9l\xE9commande. Si le panneau de lecture n'est pas actif, un OSD vous informera des options activ\xE9es. Le temps s'affichera \xE9galement sur l'affcheur de la freebox HD.<br> <br> + <img src=\"".$INTERFACE_REP."btn_vert.gif\" border=\"0\"> <a href=\"tutorial.php?etape=4\">Pr\xE9c\xE9dent</a> - <img src=\"".$INTERFACE_REP."btn_bleu.gif\" border=\"0\"> <a href=\"tutorial.php?etape=6\">Suivant</a> + "; +$CONTENT[6] = "Lors de la lecture vid\xE9o, interface ferm\xE9e, les touches suivantes peuvent \xEAtre utilis\xE9es :<br> + La touche rouge <img src=\"".$INTERFACE_REP."btn_rouge.gif\" border=\"0\"> permet de passer \xE0 la piste sous-titre suivante.<br> + Les touches play/pause/stop servent \xE0 diriger la diffusion du flux.<br> + La touche bleue <img src=\"".$INTERFACE_REP."btn_bleu.gif\" border=\"0\"> permet de sauvegarder un signet, qui permet de reprendre plus tard la lecture d'un film l\xE0 o\xF9 vous en \xE9tiez.<br> + La touche jaune <img src=\"".$INTERFACE_REP."btn_jaune.gif\" border=\"0\"> permet d'afficher les informations allocin\xE9 disponibles pour le fichier en cours.<br> + La fl\xE8che \"haut\" et la touche \"avance rapide\" (sur la freebox HD uniquement) permettent d'avancer d'une minute dans le flux.<br> + La fl\xE8che \"bas\" et la touche \"retour rapide\" (sur la freebox HD uniquement) permettent de reculer d'une minute dans le flux.<br> + Sur la freebox HD, les touches \"chapitre suivant\" et \"chapitre pr\xE9c\xE9dent\" permettent de passer au fichier suivant/pr\xE9c\xE9dent dans la liste de lecture.<br> <br> + <img src=\"".$INTERFACE_REP."btn_vert.gif\" border=\"0\"> <a href=\"tutorial.php?etape=5\">Pr\xE9c\xE9dent</a> - <img src=\"".$INTERFACE_REP."btn_bleu.gif\" border=\"0\"> <a href=\"tutorial.php?etape=7\">Suivant</a> + "; +$CONTENT[7] = "Lors de la lecture audio, les touches de controle fonctionnent pour controler le flux.<br> + De m\xEAme que lors de la lecture vid\xE9o, vous pouvez ajouter des fichiers \xE0 la playlist depuis un explorateur ou depuis la biblioth\xE8que audio. + Vous pouvez \xE9galement afficher les paroles de la chanson en cours, lancer des webradios ou des podcasts.<br> <br> + <img src=\"".$INTERFACE_REP."btn_vert.gif\" border=\"0\"> <a href=\"tutorial.php?etape=6\">Pr\xE9c\xE9dent</a> - <img src=\"".$INTERFACE_REP."btn_bleu.gif\" border=\"0\"> <a href=\"tutorial.php?etape=8\">Suivant</a> + "; +$CONTENT[8] = "Easybox permet aussi de lire des images et d'en faire des diaporamas. Pour cela, lancez le module \"Photos\" depuis la page d'accueil d'Easybox. + Vous avez alors acc\xE8s \xE0 un explorateur sous forme de vignettes. Vous pouvez alors vous rendre dans le dossier de photos qui vous int\xE9resse. Cliquez sur une photo pour qu'elle s'affiche en grand.<br> + Vous avez alors \xE0 votre disposition une barre d'outils qui vous permet de faire tourner l'image, de passer \xE0 l'image suivante, \xE0 l'image pr\xE9c\xE9dente, ou de retourner \xE0 l'explorateur.<br> + Vous pouvez lancer un diaporama sur le dossier en cours en rentrant le d\xE9lai du diaporama dans la case appropri\xE9e et en cliquant sur OK.<br> + Vous pouvez cacher/afficher la barre d'outil avec la touche \"info\" de la t\xE9l\xE9commande.<br> <br> + <img src=\"".$INTERFACE_REP."btn_vert.gif\" border=\"0\"> <a href=\"tutorial.php?etape=7\">Pr\xE9c\xE9dent</a> - <img src=\"".$INTERFACE_REP."btn_bleu.gif\" border=\"0\"> <a href=\"tutorial.php?etape=9\">Suivant</a> + "; +$CONTENT[9] = "Comme on en a d\xE9j\xE0 parl\xE9, Easybox dispose d'un syst\xE8me de signets. Lors de la lecture vid\xE9o, vous pouvez ajouter un signet. En vous rendant dans le module \"Signets\", vous pouvez directement relancer le film en question au moment o\xF9 vous l'aviez arr\xEAt\xE9.<br> <br><br> <br> + <img src=\"".$INTERFACE_REP."btn_vert.gif\" border=\"0\"> <a href=\"tutorial.php?etape=8\">Pr\xE9c\xE9dent</a> - <img src=\"".$INTERFACE_REP."btn_bleu.gif\" border=\"0\"> <a href=\"tutorial.php?etape=10\">Suivant</a> + "; +$CONTENT[10] = "Enfin, Easybox permet facilement de rajouter des modules ou des skins depuis l'interface d'Easybox. Cela vous permet d'acc\xE9der \xE0 de nouvelles informations directement depuis votre t\xE9l\xE9, ou de changer la pr\xE9sentation d'Easybox.<br> + Les modules et skins sont d\xE9velopp\xE9s par les autres utilisateurs d'Easybox dans le language de programmation PHP. Consultez le site http://www.easybox-mod.org pour plus d'informations.<br> + Pour installer un module ou une skin, ou encore changer de skin, rendez-vous dans le menu \"Pratique\" \xE0 partir de la page d'accueil d'Easybox. Choisissez alors le module \"Modules\". L\xE0, vous pouvez directement installer ou supprimer des modules \xE0 l'aide des icones rouges de suppression ou des icones vertes d'installation/activation.<br> <br> + <img src=\"".$INTERFACE_REP."btn_vert.gif\" border=\"0\"> <a href=\"tutorial.php?etape=9\">Pr\xE9c\xE9dent</a> - <img src=\"".$INTERFACE_REP."btn_rouge.gif\" border=\"0\"> <a href=\"".$MODULE."_menu/menu.php\">Quitter ce tutoriel</a> + "; + +$LINK['red']= $MODULE.'_menu/menu.php'; +if($etape>1){ + $LINK['green']= 'tutorial.php?etape='.($etape-1); +} + +if($etape<count($CONTENT)){ + $LINK['blue']= 'tutorial.php?etape='.($etape+1); +} + +$smarty->assign('TITRE','Tutoriel - Etape n\xB0'.$etape.'/'.count($CONTENT)); +$smarty->assign('etape',$etape); + +$smarty->assign('AVERTISSEMENT',$CONTENT[$etape]); +$smarty->display('avertissement.tpl'); + +?> Modified: trunk/_framework/lib/img_cr.php =================================================================== --- trunk/_framework/lib/img_cr.php 2007-02-22 17:25:26 UTC (rev 81) +++ trunk/_framework/lib/img_cr.php 2007-02-23 11:37:08 UTC (rev 82) @@ -7,7 +7,7 @@ if ($_GET['local']){ $img = urldecode($_GET['img']); }else{ - $img ='../../'.urldecode($_GET['img']); + $img ='../'.urldecode($_GET['img']); } }else exit; if (isset($_GET['h'])) Modified: trunk/module/films/films.tpl =================================================================== --- trunk/module/films/films.tpl 2007-02-22 17:25:26 UTC (rev 81) +++ trunk/module/films/films.tpl 2007-02-23 11:37:08 UTC (rev 82) @@ -6,11 +6,11 @@ </head> <body background="ts://127.0.0.1" text="{#COULEUR_LECTEUR_TEXT#}" link="{#COULEUR_LECTEUR_LINK#}" alink="{#COULEUR_LECTEUR_ALINK#}" vlink="{#COULEUR_LECTEUR_VLINK#}"> <center> -<table width="645" height="510" border="0" cellpadding="0" cellspacing="0"><tr> +<table width="600" height="510" border="0" cellpadding="0" cellspacing="0"><tr> <td height="370" align="left" cellpadding="3" cellspacing="0" valign="top"{if $module!=''} bgcolor="{#COULEUR_FOND2#}"{/if}> - {math equation="x/y+1" x="640" y=7 assign=width} - <table width="640" height="25" border="0" align="center" cellpadding="0" cellspacing="0"> + {math equation="x/y+1" x="600" y=7 assign=width} + <table width="600" height="25" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="{$width}" align=center><a href="info.php?module=infos" {if $module=='infos'}focused{/if}><table width="{$width}" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td width="{$width}" align=center height="25">Infos</td></tr></table></a></td> <td width="{$width}" align=center><a href="info.php?module=video" {if $module=='video'}focused{/if}><table width="{$width}" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td width="{$width}" align=center height="25">Video</td></tr></table></a></td> @@ -22,8 +22,8 @@ </tr> </table> +{*############### DEBUT DES OPTIONS ##############*} - {if $module=='infos'} {$content} {elseif $module=='video'} @@ -34,7 +34,7 @@ <input type=radio name=video bgcolor="{#COULEUR_FOND_RADIO#}" value="{$key}" {if $pistev.1} checked{/if}>{$pistev.0}<br> {/foreach} <br>Post-traitement - <input type="hslider" bgcolor="{#COULEUR_FOND_RADIO#}" name="pp" min="0" max="6" grad="1" /> + - <input type="hslider" bgcolor="{#COULEUR_FOND_RADIO#}" name="pp" min="0" max="6" grad="1" value="{$pp_video}"> + Augmenter la qualit\xE9 du traitement de l'image (de 0 vers 6) demande plus de puissance CPU. <br> @@ -56,15 +56,17 @@ </form> {elseif $module=='audio'} + <font size="3"><u>Options audio</u></font><br> <form action="info.php" method="get"><input type=hidden name=module value=audio><input type=hidden name=var value="audio-es"><br> {foreach from=$audio item=pistea key=key name=audio} <input type=radio name=audio bgcolor="{#COULEUR_FOND_RADIO#}" value="{$key}" {if $pistea.1} checked{/if}>{$pistea.0}<br> - {/foreach} + {/foreach}</form> <br><form action="none"> <input type="radio" name="aud" value="69(en,mp2)" bgcolor="{#COULEUR_FOND_RADIO#}"> Son st\xE9r\xE9o<br> <input type="radio" name="aud" value="69(en,ac3)" bgcolor="{#COULEUR_FOND_RADIO#}"> Dolby Digital (S/PDIF)<br> - <br><input bgcolor="{#COULEUR_TEXTBOX#}" type=submit value="Valider les modifications"></form> + <br><input bgcolor="{#COULEUR_TEXTBOX#}" type=submit value="Valider les modifications"> + </form> {elseif $module=='sstitre'} <font size="3"><u>Sous-titres</u></font><br> @@ -76,46 +78,44 @@ Les param\xE8tres suivants ne seront pris en compte qu'apr\xE8s le red\xE9marage du films. Ils seront sauvegard\xE9s dans Easybox pour les prochaines utilisations de easybox<br /> <font size="3"><u>Position</u></font> : <input type=text bgcolor="{#COULEUR_FOND_RADIO#}" name="sub_margin" size=3 maxlength=3 value="{$sub_margin}"><br> <br> - <font size="3"><u>Couleur</u></font> : + <font size="3"><u>Couleur</u></font> :<br> <table cellpadding="1" cellspacing="0" align="left" width="200"><tr> - <td width="40"><a href="info.php?module={$module}&fontcolor=16777215"><table width="30" height="20" border=1 bgcolor="#FFFFFF3F" bordercolor="#0000003F" cellpadding=0 cellspacing=0><tr><td align="center">{if $fontcolor=='16777215'}<img src="{$INTERFACE_REP}finished.gif" width="14" height="14" border="0">{else}<img src="" width="1" height="1">{/if}</td></tr></table></a></td> - <td width="40"><a href="info.php?module={$module}&fontcolor=16776960"><table width="30" height="20" border=1 bgcolor="#FFFF003F" bordercolor="#FFFFFF3F" cellpadding=0 cellspacing=0><tr><td align="center">{if $fontcolor=='16776960'}<img src="{$INTERFACE_REP}finished.gif" width="14" height="14" border="0">{else}<img src="" width="1" height="1">{/if}</td></tr></table></a></td> - <td width="40"><a href="info.php?module={$module}&fontcolor=65535"><table width="30" height="20" border=1 bgcolor="#00CCFF3F" bordercolor="#FFFFFF3F" cellpadding=0 cellspacing=0><tr><td align="center">{if $fontcolor=='65535'}<img src="{$INTERFACE_REP}finished.gif" width="14" height="14" border="0">{else}<img src="" width="1" height="1">{/if}</td></tr></table></a></td> - <td width="40"><a href="info.php?module={$module}&fontcolor=16711680"><table width="30" height="20" border=1 bgcolor="#FF00003F" bordercolor="#FFFFFF3F" cellpadding=0 cellspacing=0><tr><td align="center">{if $fontcolor=='16711680'}<img src="{$INTERFACE_REP}finished.gif" width="14" height="14" border="0">{else}<img src="" width="1" height="1">{/if}</td></tr></table></a></td> - <td width="40"><a href="info.php?module={$module}&fontcolor=32768"><table width="30" height="20" border=1 bgcolor="#00FF003F" bordercolor="#FFFFFF3F" cellpadding=0 cellspacing=0><tr><td align="center">{if $fontcolor=='32768'}<img src="{$INTERFACE_REP}finished.gif" width="14" height="14" border="0">{else}<img src="" width="1" height="1">{/if}</td></tr></table></a></td> - </tr></table><br> <br> <br> + <td width="40"><a href="info.php?module={$module}&fontcolor=16777215"><table width="30" height="20" border=3 bgcolor="#FFFFFF3F" bordercolor="#0000003F" cellpadding=0 cellspacing=0><tr><td align="center" width="30" height="20">{if $fontcolor=='16777215'}<img src="{$INTERFACE_REP}finished.gif" width="14" height="14" border="0">{else}<img src="{$INTERFACE_REP}blank.gif" width="30" height="20">{/if}</td></tr></table></a></td> + <td width="40"><a href="info.php?module={$module}&fontcolor=16776960"><table width="30" height="20" border=3 bgcolor="#FFFF003F" bordercolor="#FFFFFF3F" cellpadding=0 cellspacing=0><tr><td align="center" width="30" height="20">{if $fontcolor=='16776960'}<img src="{$INTERFACE_REP}finished.gif" width="14" height="14" border="0">{else}<img src="{$INTERFACE_REP}blank.gif" width="30" height="20">{/if}</td></tr></table></a></td> + <td width="40"><a href="info.php?module={$module}&fontcolor=65535"><table width="30" height="20" border=3 bgcolor="#00CCFF3F" bordercolor="#FFFFFF3F" cellpadding=0 cellspacing=0><tr><td align="center" width="30" height="20">{if $fontcolor=='65535'}<img src="{$INTERFACE_REP}finished.gif" width="14" height="14" border="0">{else}<img src="{$INTERFACE_REP}blank.gif" width="30" height="20">{/if}</td></tr></table></a></td> + <td width="40"><a href="info.php?module={$module}&fontcolor=16711680"><table width="30" height="20" border=3 bgcolor="#FF00003F" bordercolor="#FFFFFF3F" cellpadding=0 cellspacing=0><tr><td align="center" width="30" height="20">{if $fontcolor=='16711680'}<img src="{$INTERFACE_REP}finished.gif" width="14" height="14" border="0">{else}<img src="{$INTERFACE_REP}blank.gif" width="30" height="20">{/if}</td></tr></table></a></td> + <td width="40"><a href="info.php?module={$module}&fontcolor=32768"><table width="30" height="20" border=3 bgcolor="#00FF003F" bordercolor="#FFFFFF3F" cellpadding=0 cellspacing=0><tr><td align="center" width="30" height="20">{if $fontcolor=='32768'}<img src="{$INTERFACE_REP}finished.gif" width="14" height="14" border="0">{else}<img src="{$INTERFACE_REP}blank.gif" width="30" height="20">{/if}</td></tr></table></a></td> + </tr></table><br> <br> <font size="3"><u>Taille</u></font> : <br> <br>- <input type="hslider" bgcolor="{#COULEUR_FOND_RADIO#}" name="fontsize" min="0" max="4" grad="1" value="{$ffontsize}"> + <br> <br> <input bgcolor="{#COULEUR_TEXTBOX#}" type=submit value="Valider les modifications"></form> {elseif $module=='navigation'} <font size="3"><u>Chapitres</u></font><br> - <table><tr><td> {assign var=keyb value=1} +<table><tr><td> {foreach from=$chapitre item=chap key=key name=chap} <a href="info.php?module=navigation&chap={$key}">{if $chap.1}<font family="Symbol">T</font>{/if}<font size="1">{$chap.0}</font></a><br> {assign var=keyb value=$keyb+1} {if $keyb is div by 17}</td><td>{/if} {/foreach} - </td></tr></table> +</td></tr></table> + {elseif $module=='signets'} <font size="3"><u>Signets</u></font><br> +{assign var=keyb value=1} +<table><tr><td> + {foreach from=$SIGNETS item=signet key=key name=signet} + <a href="info.php?module=signets&seek_value={$signet.2}"><font size="1">{$signet.2}</font></a><br> + {assign var=keyb value=$keyb+1} + {if $keyb is div by 17}</td><td>{/if} + {/foreach} +</td></tr></table><br> +<img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> <a href="{$MODULE}films/info.php?module=signets&savesignet=1">Ajouter un nouveau signet</a> {/if} + +{*################ FIN DES OPTIONS ###############*} - - - - - - - - - - - - - - </td> </tr><tr height="10"><td><img src="" width="1" height="1"></td></tr><tr> <td height="110" align="center"><center> Modified: trunk/module/films/info.php =================================================================== --- trunk/module/films/info.php 2007-02-22 17:25:26 UTC (rev 81) +++ trunk/module/films/info.php 2007-02-23 11:37:08 UTC (rev 82) @@ -6,6 +6,9 @@ $module=$_GET['module']; $smarty->assign('module',$module); +if($_GET['savesignet']==1){ + save_signet(); +} if(($VLC['duree_restante']-1)<=30 AND $VLC['type_current']!='webtv'){ $META['refresh'] = $VLC['duree_restante'].';url=lecture.php?control=stop&signet=noload&theend=1'; @@ -20,6 +23,11 @@ $file1 = file_get_contents("http://127.0.0.1:8081/lecteur/action.html?control=$control"); } +if (isset($_REQUEST['seek_value'])){ + $value=$_REQUEST['seek_value']; + $file1 = file_get_contents('http://127.0.0.1:8081/lecteur/action.html?control=seek&seek_value='.$value); +} + if($VLC['etat']=='playing'){ $META['front_panel'] = calcul_hours($VLC['duree_courante']); }else{ @@ -99,8 +107,11 @@ //-- Choix du format Video if($module=='video'){ + foreach($pp_video as $key => $value){ + $_pp_video = $key; + } $smarty->assign('video',$video); - $smarty->assign('pp_video',$pp_video); + $smarty->assign('pp_video',$_pp_video); } //Choix de la piste audio @@ -135,6 +146,14 @@ if($module=='navigation'){ $smarty->assign('chapitre',$chapitre); } + + //Signets pour ce film + $db = sqlite_open($USER.'utilisateur.db', 0666); + + $requete='SELECT * FROM signet WHERE lien="'.$signetsav[2].'" ORDER BY duree'; + $result = sqlite_query($db,$requete); + $smarty->assign('SIGNETS',sqlite_fetch_all($result)); + //--Fin des options // Synth\xE8se du nom du fichier @@ -155,9 +174,9 @@ $LINK['pause']=$MODULE.'films/lecture.php?control=pause'; $LINK['info']=$MODULE.'films/lecture.php'; $LINK['options']=$MODULE.'films/lecture.php'; - $LINK['blue']=$MODULE.'films/lecture.php?savesignet=1'; + $LINK['blue']=$MODULE.'films/info.php?module=signets&savesignet=1'; $LINK['red']=$MODULE.'films/lecture.php?next_ss=1'; - $LINK['info']=$MODULE.'films/info.php?module=infos'; + $LINK['yellow']=$MODULE.'films/info.php?module=infos'; if(in_array($VLC['type_current'],array('cd','audio','photo'))){ $META['refresh']= '2;url='.page_retour_film(); Modified: trunk/module/modules/modules.tpl =================================================================== --- trunk/module/modules/modules.tpl 2007-02-22 17:25:26 UTC (rev 81) +++ trunk/module/modules/modules.tpl 2007-02-23 11:37:08 UTC (rev 82) @@ -45,7 +45,7 @@ {/if} <tr> - <td align="left" valign="top"><img width="120" height="90" src="{$IMG2FBX}{$MOD[mod].img}&new_width=120&new_height=90&cache=1"></td> + <td align="left" valign="top"><img width="120" height="90" src="{$IMG2FBX}{$MOD[mod].img|urlencode}&new_width=120&new_height=90&cache=1"></td> <td align="left" valign="top"><b><u>{$MOD[mod].nom}{if $action=="skin" AND $MOD[mod].current} - Skin actif{/if}</u></b><br> <b>Version</b> : {$MOD[mod].version}<br> <b>Description</b> : {$MOD[mod].description}</td> Modified: trunk/skin/simple/config_skin.php =================================================================== --- trunk/skin/simple/config_skin.php 2007-02-22 17:25:26 UTC (rev 81) +++ trunk/skin/simple/config_skin.php 2007-02-23 11:37:08 UTC (rev 82) @@ -1,7 +1,9 @@ <?php // R\xE9cup\xE9ration des images dans les deux dossiers r\xE9serv\xE9es aux images de background $img1 = glob('../skin/'.$_GET['skin'].'/background/*.jpg'); + $img1 = array_merge($img1,glob('../skin/'.$_GET['skin'].'/background/*.png')); $img2 = glob('../ressources/background/*.jpg'); + $img2 = array_merge($img2,glob('../ressources/background/*.png')); $n1 = count($img1); $img = array_merge($img1, $img2); $nn = count($img); Added: trunk/skin/simple/interface/blank.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simple/interface/blank.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/skin/simplegreen/config_skin.php =================================================================== --- trunk/skin/simplegreen/config_skin.php 2007-02-22 17:25:26 UTC (rev 81) +++ trunk/skin/simplegreen/config_skin.php 2007-02-23 11:37:08 UTC (rev 82) @@ -1,7 +1,9 @@ <?php // R\xE9cup\xE9ration des images dans les deux dossiers r\xE9serv\xE9es aux images de background $img1 = glob('../skin/'.$_GET['skin'].'/background/*.jpg'); + $img1 = array_merge($img1,glob('../skin/'.$_GET['skin'].'/background/*.png')); $img2 = glob('../ressources/background/*.jpg'); + $img2 = array_merge($img2,glob('../ressources/background/*.png')); $n1 = count($img1); $img = array_merge($img1, $img2); $nn = count($img); Modified: trunk/skin/simplegreen/couleur.conf =================================================================== --- trunk/skin/simplegreen/couleur.conf 2007-02-22 17:25:26 UTC (rev 81) +++ trunk/skin/simplegreen/couleur.conf 2007-02-23 11:37:08 UTC (rev 82) @@ -67,7 +67,7 @@ COULEUR_FOND_AVERTISSEMENT = "#B7D88B3F" #///////////////////////////////// Fond d'\xE9cran /////////////////////////////////// -BACKGROUND = "background.jpg" -TYPE = "int" +BACKGROUND = "background.png" +TYPE = "ext" ?> Added: trunk/skin/simplegreen/interface/blank.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/blank.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/skin/simplegreen/interface.tpl =================================================================== --- trunk/skin/simplegreen/interface.tpl 2007-02-22 17:25:26 UTC (rev 81) +++ trunk/skin/simplegreen/interface.tpl 2007-02-23 11:37:08 UTC (rev 82) @@ -50,12 +50,12 @@ <tr> <td align="center" valign="top"> {eval var=$CONTENT} -<a onFocus='service="ts://127.0.0.1?ox=0&oy=0&ow=720&oh=576,ix=0&iy=0&iw=360&ih=192";'>1-1</a> -<a onFocus='service="ts://127.0.0.1?ox=0&oy=0&ow=720&oh=576,ix=20&iy=0&iw=360&ih=192";'>1-2</a> -<a onFocus='service="ts://127.0.0.1?ox=0&oy=0&ow=720&oh=576,ix=30&iy=192&iw=360&ih=192";'>2-1</a> -<a onFocus='service="ts://127.0.0.1?ox=0&oy=0&ow=720&oh=576,ix=40&iy=192&iw=360&ih=192";'>2-2</a> -<a onFocus='service="ts://127.0.0.1?ox=0&oy=0&ow=720&oh=576,ix=50&iy=384&iw=360&ih=192";'>3-1</a> -<a onFocus='service="ts://127.0.0.1?ox=0&oy=0&ow=720&oh=576,ix=60&iy=384&iw=360&ih=192";'>3-2</a> +<a onFocus='service="ts://127.0.0.1?ox=20&oy=20&ow=720&oh=576,&ix=0&iy=0&iw=360&ih=192";'>1-1</a> +<a onFocus='service="ts://127.0.0.1?ox=20&oy=20&ow=720&oh=576,&ix=360&iy=0&iw=360&ih=192";'>1-2</a> +<a onFocus='service="ts://127.0.0.1?ox=20&oy=20&ow=720&oh=576,&ix=0&iy=192&iw=360&ih=192";'>2-1</a> +<a onFocus='service="ts://127.0.0.1?ox=20&oy=20&ow=720&oh=576,&ix=360&iy=192&iw=360&ih=192";'>2-2</a> +<a onFocus='service="ts://127.0.0.1?ox=20&oy=20&ow=720&oh=576,&ix=0&iy=384&iw=360&ih=192";'>3-1</a> +<a onFocus='service="ts://127.0.0.1?ox=20&oy=20&ow=720&oh=576,&ix=360&iy=384&iw=360&ih=192";'>3-2</a> </td> </tr> </table> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2007-02-23 11:42:47
|
Revision: 83 http://svn.sourceforge.net/easybox-mod/?rev=83&view=rev Author: aragornis Date: 2007-02-23 03:42:46 -0800 (Fri, 23 Feb 2007) Log Message: ----------- Mise ?\195?\160 jour de la gestion des touches favoris Modified Paths: -------------- trunk/_framework/favoris_touches.php trunk/configuration/general.php Modified: trunk/_framework/favoris_touches.php =================================================================== --- trunk/_framework/favoris_touches.php 2007-02-23 11:37:08 UTC (rev 82) +++ trunk/_framework/favoris_touches.php 2007-02-23 11:42:46 UTC (rev 83) @@ -24,10 +24,9 @@ $LINK['red']= '../module/_menu/menu.php'; $META['refresh']= '0;url='.$redir; -$TITRE = $texte1.'<br>Redirection en cours...'; $smarty->assign('TITRE','Redirection en cours...'); -$smarty->assign('AVERTISSEMENT',$CONTENT); +$smarty->assign('AVERTISSEMENT',$texte1); $smarty->display('avertissement.tpl'); ?> Modified: trunk/configuration/general.php =================================================================== --- trunk/configuration/general.php 2007-02-23 11:37:08 UTC (rev 82) +++ trunk/configuration/general.php 2007-02-23 11:42:46 UTC (rev 83) @@ -182,7 +182,7 @@ foreach($MOD as $module){ $affichepage[$numero_id].= '<option value="'.$module['repertoire'].$module['lien'].'"'; - if($entry==$module['repertoire']) { $affichepage[$numero_id].='selected'; } + if($entry==$module['repertoire'].$module['lien']) { $affichepage[$numero_id].='selected'; } $affichepage[$numero_id].= '>'.$module['nom'].'</option>'; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2007-02-25 08:21:55
|
Revision: 85 http://svn.sourceforge.net/easybox-mod/?rev=85&view=rev Author: aragornis Date: 2007-02-25 00:21:51 -0800 (Sun, 25 Feb 2007) Log Message: ----------- Mise ?\195?\160 jour du module rss Correction de bugs graphiques sur le tutoriel Modified Paths: -------------- trunk/_framework/aide/tutorial.php trunk/_framework/demarrage.php trunk/_framework/fonctions_partagees.inc.php trunk/_utilisateur/rss.db trunk/configuration/bases.xml trunk/configuration/index1.php trunk/configuration/rss.php trunk/module/films/fichefilm.php trunk/module/rss/index1.php trunk/module/rss/rss.tpl Removed Paths: ------------- trunk/_utilisateur/InternetFbx.db Modified: trunk/_framework/aide/tutorial.php =================================================================== --- trunk/_framework/aide/tutorial.php 2007-02-23 21:42:19 UTC (rev 84) +++ trunk/_framework/aide/tutorial.php 2007-02-25 08:21:51 UTC (rev 85) @@ -15,10 +15,10 @@ Les touches permettant de changer de page ont donc \xE9t\xE9 uniformis\xE9es. La plupart du temps, les touches \xE0 presser sont affich\xE9es \xE0 l'\xE9cran. N\xE9anmoins, voici les touches affect\xE9es aux m\xEAmes actions partout dans Easybox, afin de vous les mettre en m\xE9moire. En voici un petit aper\xE7u sur freebox HD, v4 et v3 :<br> <br> - La touche rouge <img src=\"".$INTERFACE_REP."btn_rouge.gif\" border=\"0\"> sert toujours \xE0 revenir au niveau hierarchique sup\xE9rieur (un retour qui retourne l\xE0 o\xF9 vous voulez.)<br> - La touche verte <img src=\"".$INTERFACE_REP."btn_vert.gif\" border=\"0\"> permet de revenir \xE0 la page pr\xE9c\xE9dente dans les modules \"multipages\" (explorateurs, listes...)<br> - La touche bleue <img src=\"".$INTERFACE_REP."btn_bleu.gif\" border=\"0\"> permet d'aller \xE0 la page suivante dans les modules \"multipages\" (explorateurs, listes...)<br> - La touche jaune <img src=\"".$INTERFACE_REP."btn_jaune.gif\" border=\"0\"> permet d'aller au dossier parent dans les explorateurs<br> + La touche <img src=\"".$INTERFACE_REP."btn_rouge.gif\" border=\"0\"> : niveau hierarchique sup\xE9rieur<br> + La touche <img src=\"".$INTERFACE_REP."btn_vert.gif\" border=\"0\"> : page pr\xE9c\xE9dente dans les modules \"multipages\"<br> + La touche <img src=\"".$INTERFACE_REP."btn_bleu.gif\" border=\"0\"> : page suivante dans les modules \"multipages\"<br> + La touche <img src=\"".$INTERFACE_REP."btn_jaune.gif\" border=\"0\"> : dossier parent dans les explorateurs<br> La touche guide (appui long sur info pour la freebox HD) permet de revenir \xE0 la page d'accueil d'Easybox<br> La touche aide permet \xE0 tout instant d'acc\xE9der \xE0 l'aide d'Easybox ou de relancer ce tutoriel<br> <br> <img src=\"".$INTERFACE_REP."btn_vert.gif\" border=\"0\"> <a href=\"tutorial.php?etape=1\">Pr\xE9c\xE9dent</a> - <img src=\"".$INTERFACE_REP."btn_bleu.gif\" border=\"0\"> <a href=\"tutorial.php?etape=3\">Suivant</a> @@ -27,58 +27,66 @@ Depuis la \"biblioth\xE8que\" disponible sur la page d'accueil d'Easybox, vous pourrez voir l'int\xE9gralit\xE9 de vos jaquettes, trier celles-ci par acteur, par ann\xE9e, par nom... Vous pourrez aussi voir la biographie de tous les acteurs et r\xE9alisateurs intervenant dans vos films. Vous pourrez aussi directement acc\xE9der \xE0 la fiche allocin\xE9 du film en cliquant sur l'icone \"info\". Pour que cette base de donn\xE9es de vos films soit cr\xE9\xE9e, vous devez sp\xE9cifier dans la configuration d'Easybox, disponible \xE0 la page web http://localhost:8080/configuration/configuration.php, le dossier o\xF9 se trouvent vos fichiers vid\xE9os. - Les fichiers doivent avoir pour nom le nom du film sans autres fioritures (ex : Pulp fiction.avi) - Rendez-vous alors dans la section \"scan\" pour lancer l'acquisition des informations. Si vous rajoutez/supprimez des fichiers de votre dossier de vid\xE9os, Easybox s'en rendra compte et ajoutera/supprimera automatiquement les films concern\xE9s. + Les fichiers doivent avoir pour nom le nom du film sans autres fioritures (ex : Pulp fiction.avi)<br> <br> + <img src=\"".$INTERFACE_REP."btn_vert.gif\" border=\"0\"> <a href=\"tutorial.php?etape=2\">Pr\xE9c\xE9dent</a> - <img src=\"".$INTERFACE_REP."btn_bleu.gif\" border=\"0\"> <a href=\"tutorial.php?etape=4\">Suivant</a> + "; +$CONTENT[4] = "Rendez-vous alors dans la section \"scan\" pour lancer l'acquisition des informations. Si vous rajoutez/supprimez des fichiers de votre dossier de vid\xE9os, Easybox s'en rendra compte et ajoutera/supprimera automatiquement les films concern\xE9s. Les fiches des films et personnalit\xE9s sont r\xE9guli\xE8rement mises \xE0 jour automatiquement.<br> <br> Une fois la bilioth\xE8que compl\xE9t\xE9e, vous n'avez plus qu'\xE0 lancer vos films depuis la biblioth\xE8que en cliquant sur leur nom ou en passant par leur fiche allocin\xE9.<br> <br> - <img src=\"".$INTERFACE_REP."btn_vert.gif\" border=\"0\"> <a href=\"tutorial.php?etape=2\">Pr\xE9c\xE9dent</a> - <img src=\"".$INTERFACE_REP."btn_bleu.gif\" border=\"0\"> <a href=\"tutorial.php?etape=4\">Suivant</a> - "; -$CONTENT[4] = "La deuxi\xE8me fa\xE7on de lancer la lecture d'un film est de passer par l'explorateur vid\xE9o. S\xE9lectionnez cette option sur la page d'accueil. + <img src=\"".$INTERFACE_REP."btn_vert.gif\" border=\"0\"> <a href=\"tutorial.php?etape=3\">Pr\xE9c\xE9dent</a> - <img src=\"".$INTERFACE_REP."btn_bleu.gif\" border=\"0\"> <a href=\"tutorial.php?etape=5\">Suivant</a> + "; +$CONTENT[5] = "La deuxi\xE8me fa\xE7on de lancer la lecture d'un film est de passer par l'explorateur vid\xE9o. S\xE9lectionnez cette option sur la page d'accueil. Vous pouvez alors parcourir vos dossiers et vos disques durs pour trouver le bon fichier. Si le nom du fichier est correct (cf \xE9tape 3) vous pouvez rechercher la fiche du film en cliquant sur l'icone \"infos\". Pour lancer le film d\xE9sir\xE9, cliquez sur son nom.<br> <br> - <img src=\"".$INTERFACE_REP."btn_vert.gif\" border=\"0\"> <a href=\"tutorial.php?etape=3\">Pr\xE9c\xE9dent</a> - <img src=\"".$INTERFACE_REP."btn_bleu.gif\" border=\"0\"> <a href=\"tutorial.php?etape=5\">Suivant</a> + <img src=\"".$INTERFACE_REP."btn_vert.gif\" border=\"0\"> <a href=\"tutorial.php?etape=4\">Pr\xE9c\xE9dent</a> - <img src=\"".$INTERFACE_REP."btn_bleu.gif\" border=\"0\"> <a href=\"tutorial.php?etape=6\">Suivant</a> "; -$CONTENT[5] = "Une fois un film, ou un autre m\xE9dia, lanc\xE9, vous arrivez sur l'interface de lecture d'Easybox. +$CONTENT[6] = "Une fois un film, ou un autre m\xE9dia, lanc\xE9, vous arrivez sur l'interface de lecture d'Easybox. En cliquant sur la touche info, vous ferez apparaitre ou disparaitre cette interface. En haut se trouve un menu. Chaque cat\xE9gorie de ce menu vous permet d'acc\xE9der aux options concernant les domaines respectifs (audio, sous-titre, vid\xE9o, signets, chapitres...). Le bouton \"fermer\" permet de fermer le panneau d'option actuellement ouvert.<br> <br> - En bas se trouve le player d'Easybox. - Vous pouvez vous d\xE9placer dans le flux en d\xE9placement le petit curseur noir pr\xE9sent sous la barre de progression et en cliquant sur OK. Si vous avez la freebox HD, l'afficheur affichera en direct la dur\xE9e \xE0 laquelle vous allez aller si vous cliquez sur OK.<br> + En bas se trouve le player d'Easybox.<br> <br> + <img src=\"".$INTERFACE_REP."btn_vert.gif\" border=\"0\"> <a href=\"tutorial.php?etape=5\">Pr\xE9c\xE9dent</a> - <img src=\"".$INTERFACE_REP."btn_bleu.gif\" border=\"0\"> <a href=\"tutorial.php?etape=7\">Suivant</a> + "; +$CONTENT[7] = "Vous pouvez vous d\xE9placer dans le flux en d\xE9placement le petit curseur noir pr\xE9sent sous la barre de progression et en cliquant sur OK. Si vous avez la freebox HD, l'afficheur affichera en direct la dur\xE9e \xE0 laquelle vous allez aller si vous cliquez sur OK.<br> Vous pouvez aussi directement rentrer une dur\xE9e gr\xE2ce aux chiffres de la t\xE9l\xE9commande. Vous pouvez enfin faire pause/stop, avancer d'une minute, reculer d'une minute, cr\xE9er un signet...<br> <br> Vous pouvez \xE9galement effectuer toutes ces actions directement avec la t\xE9l\xE9commande. Si le panneau de lecture n'est pas actif, un OSD vous informera des options activ\xE9es. Le temps s'affichera \xE9galement sur l'affcheur de la freebox HD.<br> <br> - <img src=\"".$INTERFACE_REP."btn_vert.gif\" border=\"0\"> <a href=\"tutorial.php?etape=4\">Pr\xE9c\xE9dent</a> - <img src=\"".$INTERFACE_REP."btn_bleu.gif\" border=\"0\"> <a href=\"tutorial.php?etape=6\">Suivant</a> - "; -$CONTENT[6] = "Lors de la lecture vid\xE9o, interface ferm\xE9e, les touches suivantes peuvent \xEAtre utilis\xE9es :<br> - La touche rouge <img src=\"".$INTERFACE_REP."btn_rouge.gif\" border=\"0\"> permet de passer \xE0 la piste sous-titre suivante.<br> + <img src=\"".$INTERFACE_REP."btn_vert.gif\" border=\"0\"> <a href=\"tutorial.php?etape=6\">Pr\xE9c\xE9dent</a> - <img src=\"".$INTERFACE_REP."btn_bleu.gif\" border=\"0\"> <a href=\"tutorial.php?etape=8\">Suivant</a> + "; + +$CONTENT[8] = "Lors de la lecture vid\xE9o, interface ferm\xE9e, les touches suivantes peuvent \xEAtre utilis\xE9es :<br> + La touche <img src=\"".$INTERFACE_REP."btn_rouge.gif\" border=\"0\"> : piste sous-titre suivante.<br> Les touches play/pause/stop servent \xE0 diriger la diffusion du flux.<br> - La touche bleue <img src=\"".$INTERFACE_REP."btn_bleu.gif\" border=\"0\"> permet de sauvegarder un signet, qui permet de reprendre plus tard la lecture d'un film l\xE0 o\xF9 vous en \xE9tiez.<br> - La touche jaune <img src=\"".$INTERFACE_REP."btn_jaune.gif\" border=\"0\"> permet d'afficher les informations allocin\xE9 disponibles pour le fichier en cours.<br> + La bleue <img src=\"".$INTERFACE_REP."btn_bleu.gif\" border=\"0\"> : sauvegarder un signet<br> + La jaune <img src=\"".$INTERFACE_REP."btn_jaune.gif\" border=\"0\"> : informations allocin\xE9 disponibles pour le fichier en cours.<br> La fl\xE8che \"haut\" et la touche \"avance rapide\" (sur la freebox HD uniquement) permettent d'avancer d'une minute dans le flux.<br> La fl\xE8che \"bas\" et la touche \"retour rapide\" (sur la freebox HD uniquement) permettent de reculer d'une minute dans le flux.<br> Sur la freebox HD, les touches \"chapitre suivant\" et \"chapitre pr\xE9c\xE9dent\" permettent de passer au fichier suivant/pr\xE9c\xE9dent dans la liste de lecture.<br> <br> - <img src=\"".$INTERFACE_REP."btn_vert.gif\" border=\"0\"> <a href=\"tutorial.php?etape=5\">Pr\xE9c\xE9dent</a> - <img src=\"".$INTERFACE_REP."btn_bleu.gif\" border=\"0\"> <a href=\"tutorial.php?etape=7\">Suivant</a> + <img src=\"".$INTERFACE_REP."btn_vert.gif\" border=\"0\"> <a href=\"tutorial.php?etape=7\">Pr\xE9c\xE9dent</a> - <img src=\"".$INTERFACE_REP."btn_bleu.gif\" border=\"0\"> <a href=\"tutorial.php?etape=9\">Suivant</a> "; -$CONTENT[7] = "Lors de la lecture audio, les touches de controle fonctionnent pour controler le flux.<br> +$CONTENT[9] = "Lors de la lecture audio, les touches de controle fonctionnent pour controler le flux.<br> De m\xEAme que lors de la lecture vid\xE9o, vous pouvez ajouter des fichiers \xE0 la playlist depuis un explorateur ou depuis la biblioth\xE8que audio. Vous pouvez \xE9galement afficher les paroles de la chanson en cours, lancer des webradios ou des podcasts.<br> <br> - <img src=\"".$INTERFACE_REP."btn_vert.gif\" border=\"0\"> <a href=\"tutorial.php?etape=6\">Pr\xE9c\xE9dent</a> - <img src=\"".$INTERFACE_REP."btn_bleu.gif\" border=\"0\"> <a href=\"tutorial.php?etape=8\">Suivant</a> + <img src=\"".$INTERFACE_REP."btn_vert.gif\" border=\"0\"> <a href=\"tutorial.php?etape=8\">Pr\xE9c\xE9dent</a> - <img src=\"".$INTERFACE_REP."btn_bleu.gif\" border=\"0\"> <a href=\"tutorial.php?etape=10\">Suivant</a> "; -$CONTENT[8] = "Easybox permet aussi de lire des images et d'en faire des diaporamas. Pour cela, lancez le module \"Photos\" depuis la page d'accueil d'Easybox. +$CONTENT[10] = "Easybox permet aussi de lire des images et d'en faire des diaporamas. Pour cela, lancez le module \"Photos\" depuis la page d'accueil d'Easybox. Vous avez alors acc\xE8s \xE0 un explorateur sous forme de vignettes. Vous pouvez alors vous rendre dans le dossier de photos qui vous int\xE9resse. Cliquez sur une photo pour qu'elle s'affiche en grand.<br> Vous avez alors \xE0 votre disposition une barre d'outils qui vous permet de faire tourner l'image, de passer \xE0 l'image suivante, \xE0 l'image pr\xE9c\xE9dente, ou de retourner \xE0 l'explorateur.<br> Vous pouvez lancer un diaporama sur le dossier en cours en rentrant le d\xE9lai du diaporama dans la case appropri\xE9e et en cliquant sur OK.<br> Vous pouvez cacher/afficher la barre d'outil avec la touche \"info\" de la t\xE9l\xE9commande.<br> <br> - <img src=\"".$INTERFACE_REP."btn_vert.gif\" border=\"0\"> <a href=\"tutorial.php?etape=7\">Pr\xE9c\xE9dent</a> - <img src=\"".$INTERFACE_REP."btn_bleu.gif\" border=\"0\"> <a href=\"tutorial.php?etape=9\">Suivant</a> + <img src=\"".$INTERFACE_REP."btn_vert.gif\" border=\"0\"> <a href=\"tutorial.php?etape=9\">Pr\xE9c\xE9dent</a> - <img src=\"".$INTERFACE_REP."btn_bleu.gif\" border=\"0\"> <a href=\"tutorial.php?etape=11\">Suivant</a> "; -$CONTENT[9] = "Comme on en a d\xE9j\xE0 parl\xE9, Easybox dispose d'un syst\xE8me de signets. Lors de la lecture vid\xE9o, vous pouvez ajouter un signet. En vous rendant dans le module \"Signets\", vous pouvez directement relancer le film en question au moment o\xF9 vous l'aviez arr\xEAt\xE9.<br> <br><br> <br> - <img src=\"".$INTERFACE_REP."btn_vert.gif\" border=\"0\"> <a href=\"tutorial.php?etape=8\">Pr\xE9c\xE9dent</a> - <img src=\"".$INTERFACE_REP."btn_bleu.gif\" border=\"0\"> <a href=\"tutorial.php?etape=10\">Suivant</a> +$CONTENT[11] = "Comme on en a d\xE9j\xE0 parl\xE9, Easybox dispose d'un syst\xE8me de signets. Lors de la lecture vid\xE9o, vous pouvez ajouter un signet. En vous rendant dans le module \"Signets\", vous pouvez directement relancer le film en question au moment o\xF9 vous l'aviez arr\xEAt\xE9.<br> <br><br> <br> + <img src=\"".$INTERFACE_REP."btn_vert.gif\" border=\"0\"> <a href=\"tutorial.php?etape=10\">Pr\xE9c\xE9dent</a> - <img src=\"".$INTERFACE_REP."btn_bleu.gif\" border=\"0\"> <a href=\"tutorial.php?etape=12\">Suivant</a> "; -$CONTENT[10] = "Enfin, Easybox permet facilement de rajouter des modules ou des skins depuis l'interface d'Easybox. Cela vous permet d'acc\xE9der \xE0 de nouvelles informations directement depuis votre t\xE9l\xE9, ou de changer la pr\xE9sentation d'Easybox.<br> +$CONTENT[12] = "Enfin, Easybox permet facilement de rajouter des modules ou des skins depuis l'interface d'Easybox. Cela vous permet d'acc\xE9der \xE0 de nouvelles informations directement depuis votre t\xE9l\xE9, ou de changer la pr\xE9sentation d'Easybox.<br> Les modules et skins sont d\xE9velopp\xE9s par les autres utilisateurs d'Easybox dans le language de programmation PHP. Consultez le site http://www.easybox-mod.org pour plus d'informations.<br> - Pour installer un module ou une skin, ou encore changer de skin, rendez-vous dans le menu \"Pratique\" \xE0 partir de la page d'accueil d'Easybox. Choisissez alors le module \"Modules\". L\xE0, vous pouvez directement installer ou supprimer des modules \xE0 l'aide des icones rouges de suppression ou des icones vertes d'installation/activation.<br> <br> - <img src=\"".$INTERFACE_REP."btn_vert.gif\" border=\"0\"> <a href=\"tutorial.php?etape=9\">Pr\xE9c\xE9dent</a> - <img src=\"".$INTERFACE_REP."btn_rouge.gif\" border=\"0\"> <a href=\"".$MODULE."_menu/menu.php\">Quitter ce tutoriel</a> + Pour installer un module ou une skin, ou encore changer de skin, rendez-vous dans le menu \"Pratique\" \xE0 partir de la page d'accueil d'Easybox. Choisissez alors le module \"Modules\". L\xE0, vous pouvez directement installer ou supprimer des modules \xE0 l'aide des icones rouges de suppression ou des icones vertes d'installation/activation.<br> + Ce tutoriel est termin\xE9. Vous pouvez vous lancer dans le fabuleux monde de Easybox.<br> <br> + <img src=\"".$INTERFACE_REP."btn_vert.gif\" border=\"0\"> <a href=\"tutorial.php?etape=11\">Pr\xE9c\xE9dent</a> - <img src=\"".$INTERFACE_REP."btn_rouge.gif\" border=\"0\"> <a href=\"".$MODULE."_menu/menu.php\">Quitter ce tutoriel</a> "; + + $LINK['red']= $MODULE.'_menu/menu.php'; if($etape>1){ Modified: trunk/_framework/demarrage.php =================================================================== --- trunk/_framework/demarrage.php 2007-02-23 21:42:19 UTC (rev 84) +++ trunk/_framework/demarrage.php 2007-02-25 08:21:51 UTC (rev 85) @@ -91,53 +91,7 @@ // Phase de mise \xE0 jour case 3: - - function url_validate( $link ) - { - $url_parts = @parse_url( $link ); - - if ( empty( $url_parts["host"] ) ) return( false ); - - if ( !empty( $url_parts["path"] ) ) - { - $documentpath = $url_parts["path"]; - } - else - { - $documentpath = "/"; - } - - if ( !empty( $url_parts["query"] ) ) - { - $documentpath .= "?" . $url_parts["query"]; - } - - $host = $url_parts["host"]; - $port = $url_parts["port"]; - // Now (HTTP-)GET $documentpath at $host"; - - if (empty( $port ) ) $port = "80"; - $socket = @fsockopen( $host, $port, $errno, $errstr, 30 ); - if (!$socket) - { - return(false); - } - else - { - fwrite ($socket, "HEAD ".$documentpath." HTTP/1.0\r\nHost: $host\r\n\r\n"); - $http_response = fgets( $socket, 22 ); - - if ( ereg("200 OK", $http_response, $regs ) ) - { - return(true); - fclose( $socket ); - } else - { -// echo "HTTP-Response: $http_response<br>"; - return(false); - } - } - } + if(url_validate($ini['download']['xml'])){ get_all_maj(); } else{ Modified: trunk/_framework/fonctions_partagees.inc.php =================================================================== --- trunk/_framework/fonctions_partagees.inc.php 2007-02-23 21:42:19 UTC (rev 84) +++ trunk/_framework/fonctions_partagees.inc.php 2007-02-25 08:21:51 UTC (rev 85) @@ -669,4 +669,52 @@ $val = sqlite_fetch_array($res); return $val['repertoire']; } + +// V\xE9rifie la validit\xE9 d'une url + function url_validate( $link ){ + $url_parts = @parse_url( $link ); + + if ( empty( $url_parts["host"] ) ) return( false ); + + if ( !empty( $url_parts["path"] ) ) + { + $documentpath = $url_parts["path"]; + } + else + { + $documentpath = "/"; + } + + if ( !empty( $url_parts["query"] ) ) + { + $documentpath .= "?" . $url_parts["query"]; + } + + $host = $url_parts["host"]; + $port = $url_parts["port"]; + // Now (HTTP-)GET $documentpath at $host"; + + if (empty( $port ) ) $port = "80"; + $socket = @fsockopen( $host, $port, $errno, $errstr, 30 ); + if (!$socket) + { + return(false); + } + else + { + fwrite ($socket, "HEAD ".$documentpath." HTTP/1.0\r\nHost: $host\r\n\r\n"); + $http_response = fgets( $socket, 22 ); + + if ( ereg("200 OK", $http_response, $regs ) ) + { + return(true); + fclose( $socket ); + } else + { +// echo "HTTP-Response: $http_response<br>"; + return(false); + } + } + } + ?> Deleted: trunk/_utilisateur/InternetFbx.db =================================================================== (Binary files differ) Modified: trunk/_utilisateur/rss.db =================================================================== (Binary files differ) Modified: trunk/configuration/bases.xml =================================================================== --- trunk/configuration/bases.xml 2007-02-23 21:42:19 UTC (rev 84) +++ trunk/configuration/bases.xml 2007-02-25 08:21:51 UTC (rev 85) @@ -22,18 +22,6 @@ </base> <base> - <nom>InternetFbx.db</nom> - <table> - <name>Nav_History</name> - <syntax>CREATE TABLE Nav_History ( nav_id INTEGER NOT NULL PRIMARY KEY, nav_link TEXT NOT NULL)</syntax> - </table> - <table> - <name>Nav_Config</name> - <syntax>CREATE TABLE Nav_Config (config_id INTEGER NOT NULL PRIMARY KEY, home_page TEXT NOT NULL, current_nav INTEGER NOT NULL, keep_last_page INT NOT NULL)</syntax> - </table> -</base> - -<base> <nom>podcast.db</nom> <table> <name>feeds</name> @@ -64,7 +52,7 @@ </table> <table> <name>feeds</name> - <syntax>CREATE TABLE feeds ( id INT NOT NULL , cat VARCHAR( 250 ) NOT NULL , name VARCHAR( 250 ) NOT NULL , add VARCHAR( 500 ) NOT NULL , PRIMARY KEY ( id ) )</syntax> + <syntax>CREATE TABLE feeds ( id INT NOT NULL , cat VARCHAR( 250 ) NOT NULL , name VARCHAR( 250 ) NOT NULL , add VARCHAR( 500 ) NOT NULL , img VARCHAR( 500 ) NULL , description VARCHAR( 500 ) NULL ,PRIMARY KEY ( id ) )</syntax> </table> </base> Modified: trunk/configuration/index1.php =================================================================== --- trunk/configuration/index1.php 2007-02-23 21:42:19 UTC (rev 84) +++ trunk/configuration/index1.php 2007-02-25 08:21:51 UTC (rev 85) @@ -66,7 +66,7 @@ var addchoix = document.getElementById("addchoix"); var objListe = document.getElementById("list" + addchoix.value); - nouvel_element = new Option(addchamp.value,addchamp.value + "|" + addurl.value,false,false); + nouvel_element = new Option(addchamp.value,addchamp.value + "|" + addurl.value + "|" + "|",false,false); objListe.options[objListe.length] = nouvel_element; maj(addchoix.value); addchamp.value=""; @@ -100,6 +100,13 @@ maj(idNom);} } +function editchamp2(formulaire,select,id,nom,adresse,image,description){ +var obj = document.getElementById("list"+select); +obj.options[id].value = nom + "|" + adresse + "|" + image + "|" + description; +obj.options[id].text = nom; +maj(select); +} + function editchamp(formulaire,select,id,nom,adresse){ var obj = document.getElementById("list"+select); obj.options[id].value = nom + "|" + adresse; Modified: trunk/configuration/rss.php =================================================================== --- trunk/configuration/rss.php 2007-02-23 21:42:19 UTC (rev 84) +++ trunk/configuration/rss.php 2007-02-25 08:21:51 UTC (rev 85) @@ -30,12 +30,14 @@ while ($row = sqlite_fetch_array($result)) { $signetsav=explode("|",$_GET[$row['name']]); - for ($i=0; $i<=((count($signetsav)/2)-1); $i++) { + for ($i=0; $i<(count($signetsav)/4); $i++) { sqlite_query($db,'INSERT INTO feeds VALUES( "'.$index++.'", "'.$row['id'].'", - "'.stripslashes($signetsav[(2*$i)]).'", - "'.$signetsav[(2*$i)+1].'")'); + "'.stripslashes($signetsav[(4*$i)]).'", + "'.stripslashes($signetsav[(4*$i)+1]).'", + "'.stripslashes($signetsav[(4*$i)+2]).'", + "'.stripslashes($signetsav[(4*$i)+3]).'")'); } } } @@ -50,15 +52,13 @@ ?> <u><?= $row['name']; ?></u> <a href="index1.php?page=7&delcat=<?= $row[id]; ?>">[x]</a> - <table><tr><td valign="middle"><select ondblclick="window.open('edit.php?form=form1&select=<?= $row['name']; ?>&id=' + document.getElementById('list<?= $row['name']; ?>').selectedIndex,'_blank','toolbar=0,location=0,directories=0,status=0,scrollbars=1,resizable=0,copyhistory=0,menuBar=0,width=800,height=250');" onchange="maj('<?= $row[name]; ?>')" size="<?= max((sqlite_num_rows($result2)+2),6); ?>" name="list<?= $row['name']; ?>" id="list<?= $row['name']; ?>" style="width:350;border: thin outset;font-size: 9px;" multiple="multiple"> + <table><tr><td valign="middle"><select ondblclick="window.open('editrss.php?form=form1&select=<?= $row['name']; ?>&id=' + document.getElementById('list<?= $row['name']; ?>').selectedIndex,'_blank','toolbar=0,location=0,directories=0,status=0,scrollbars=1,resizable=0,copyhistory=0,menuBar=0,width=800,height=250');" onchange="maj('<?= $row['name']; ?>')" size="<?= max((sqlite_num_rows($result2)+2),6); ?>" name="list<?= $row['name']; ?>" id="list<?= $row['name']; ?>" style="width:350;border: thin outset;font-size: 9px;" multiple="multiple"> <?php $i=0; while ($row2 = sqlite_fetch_array($result2)) { - - echo '<option value="'.$row2['name'].'|'.$row2['add'].'">'.$row2['name'].'</option>'; - - } + echo '<option value="'.$row2['name'].'|'.$row2['add'].'|'.$row2['img'].'|'.$row2['description'].'">'.$row2['name'].'</option>'; + } ?> </select></td><td> @@ -87,7 +87,7 @@ <? while ($res = sqlite_fetch_array($resultsave)) { echo '<option value="'.$res['name'].'">'.$res['name'].'</option>'; -} +} sqlite_close($db); ?> Modified: trunk/module/films/fichefilm.php =================================================================== --- trunk/module/films/fichefilm.php 2007-02-23 21:42:19 UTC (rev 84) +++ trunk/module/films/fichefilm.php 2007-02-25 08:21:51 UTC (rev 85) @@ -151,7 +151,7 @@ { $CONTENT .= '<font size=4>R\xE9sum\xE9 pour '.$film.'</font><br> <br> <br>'; $CONTENT .= strip_tags($info['synopsis']); - $CONTENT .= '<br> <br><a href="fichefilm.php?film='.urlencode($film).'&fichier='.urlencode($fichier).'">Retour</a>'; + $CONTENT .= '<br> <br><img src="{$INTERFACE_REP}btn_rouge.gif" border="0"> <a href="fichefilm.php?film='.urlencode($film).'&fichier='.urlencode($fichier).'">Retour</a>'; $LINK['red'] = 'fichefilm.php?film='.urlencode($film).'&fichier='.urlencode($fichier); $smarty->assign('AVERTISSEMENT',$CONTENT); $smarty->display('avertissement.tpl'); Modified: trunk/module/rss/index1.php =================================================================== --- trunk/module/rss/index1.php 2007-02-23 21:42:19 UTC (rev 84) +++ trunk/module/rss/index1.php 2007-02-25 08:21:51 UTC (rev 85) @@ -21,40 +21,70 @@ if(isset($_REQUEST['feed'])){ $feed=$_REQUEST['feed']; } +if(isset($_REQUEST['post'])){ + $post=$_REQUEST['post']; +} -if(!isset($feed)){ +if(isset($feed)){ + $LINK['red']= 'index1.php?cat='.$cat['id']; + + $result = sqlite_query($db,'SELECT * FROM feeds WHERE cat="'.$cat['id'].'" AND id="'.$feed.'" limit 1'); + $url = sqlite_fetch_array($result); + + if(url_validate($url['add'])){ + + + $xml = simplexml_load_file($url['add']); + $url['img']=utf8_decode($xml->channel->image->url); + $url['description']=utf8_decode($xml->channel->description); + $url['name']=utf8_decode($xml->channel->title); + sqlite_query($db,'UPDATE feeds SET img="'.$url['img'].'", name="'.$url['name'].'" , description="'.$url['description'].'" WHERE id="'.$url['id'].'"'); + + $i = 1; + foreach($xml->channel->item as $p){ + if($p->title!=''){ + if(isset($post) and $i++==$post){ + $FLUX_CUR=array('titre'=>utf8_decode($p->title), 'description'=>strip_tags(utf8_decode($p->description))); + } + if(!isset($post)){ + $FLUX[]=array('id'=>$i++,'titre'=>utf8_decode($p->title), 'description'=>strip_tags(utf8_decode($p->description))); + } + } + } + + if(isset($FLUX_CUR)){ + $LINK['red']= 'index1.php?cat='.$cat['id'].'&feed='.$url['id']; + $smarty->assign('TITRE',$FLUX_CUR['titre']); + $smarty->assign('AVERTISSEMENT',strip_tags($FLUX_CUR['description']).'<br> <br><img src="{$INTERFACE_REP}btn_rouge.gif" border="0"> <a href="index1.php?cat='.$cat['id'].'&feed='.$url['id'].'">Retour</a>'); + $smarty->display('avertissement.tpl'); + }else{ + $smarty->assign('cat',$cat); + $smarty->assign('feed',$url); + $smarty->assign('FLUX',$FLUX); + $smarty->assign('TITRE',$url['name']); + $smarty->assign('CONTENT',$smarty->fetch('rss.tpl')); + $smarty->display('interface.tpl'); + } + + }else{ + $smarty->assign('TITRE','Le flux n\'est pas accessible'); + $smarty->assign('AVERTISSEMENT','Cliquez sur la touche rouge pour revenir.<br> <br><img src="{$INTERFACE_REP}btn_rouge.gif" border="0"> <a href="index1.php?cat='.$cat['id'].'">Retour</a>'); + $smarty->display('avertissement.tpl'); + } + + +}else{ + $LINK['red']= page_retour_menu(); $result = sqlite_query($db,'SELECT * FROM feeds WHERE cat="'.$cat['id'].'" ORDER BY name'); - + $smarty->assign('RSS',sqlite_fetch_all($result)); $smarty->assign('TITRE','Flux RSS : '.$cat['name']); $smarty->assign('CONTENT',$smarty->fetch('rss.tpl')); $smarty->display('interface.tpl'); - -}else{ - $LINK['red']= 'index1.php?cat='.$cat['id']; - - $result = sqlite_query($db,'SELECT * FROM feeds WHERE cat="'.$cat.'" AND id="'.$feed.'" limit 1'); - $url = sqlite_fetch_array($result); - - $xml = simplexml_load_file($url['add']); - - if($xml->channel->image->url!="") - $FLUX['image']=$xml->channel->image->url; - $FLUX['titre']=utf8_decode($xml->channel->title); - - foreach($xml->channel->item as $post){ - if($post->title!=''){ - $FLUX['post'][]=array('titre'=>utf8_decode($post->title), 'description'=>strip_tags(utf8_decode($post->description))); - } - } - -$smarty->assign('feed',$feed); -$smarty->assign('FLUX',$FLUX); -$smarty->display('rss.tpl'); } Modified: trunk/module/rss/rss.tpl =================================================================== --- trunk/module/rss/rss.tpl 2007-02-23 21:42:19 UTC (rev 84) +++ trunk/module/rss/rss.tpl 2007-02-25 08:21:51 UTC (rev 85) @@ -1,33 +1,27 @@ -{if $url==''} - {section name=liste loop=$RSS max=8 start=$MIN} +{if $FLUX==''} + {section name=liste loop=$RSS max=3 start=$MIN} {if $smarty.section.liste.first} {if $MIN!=0} - {assign var=temp value=$MIN-8} + {assign var=temp value=$MIN-3} {attribbouton touche="green" lien="index1.php?cat=$cat&min=$temp"} <a href="index1.php?cat={$cat}&min={$temp}"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> Pr\xE9c\xE9dent</a> {/if} - <table width="500" border="0" cellspacing="7" cellpadding="7" align="left" valign="top"><tr><td> - <table width="250" border="0" cellspacing="5" cellpadding="0" align="left" valign="top"> + <table width="500" border="0" cellspacing="5" cellpadding="5" align="left" valign="top"> {/if} - <tr><td><a href="index1.php?cat={$cat}&feed={$RSS[liste].id}"> - <table width="240" border="0" cellpadding="0" cellspacing="0" bgcolor="#COULEUR_FOND1#" abgcolor="{#COULEUR_ALINK#}"> + <table width="500" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"> <tr> <td align="left" valign="top" width="120"><img width="120" height="90" src="{$IMG2FBX}{$RSS[liste].img|urlencode}&new_width=120&new_height=90&cache=1"></td> - <td align="left" valign="top" width="110"><b><u>{$RSS[liste].name}</u></b></td> + <td align="left" valign="top" width="380"><b><u>{$RSS[liste].name|truncate:30}</u></b><br>{$RSS[liste].description|truncate:100}</td> </tr> </table> </a></td></tr> - {if $smarty.section.liste.iteration == 4} - </table><table width="250" border="0" cellspacing="5" cellpadding="0" align="left" valign="top"> - {/if} - {if $smarty.section.liste.last} - </table></td></tr></table> + </table> {if $MIN+$smarty.section.liste.total < count($RSS)} - {assign var=temp value=$MIN+8} + {assign var=temp value=$MIN+3} {attribbouton touche="blue" lien="index1.php?cat=$cat&min=$temp"} <a href="index1.php?cat={$cat}&min={$temp}"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> Suivant</a> {/if} @@ -38,20 +32,40 @@ {/section} {else} - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> - <html> - <head> - </head> - <body text="{#COULEUR_HTML_TEXT#}" link="{#COULEUR_HTML_LINK#}" alink="{#COULEUR_HTML_ALINK#}" vlink="{#COULEUR_HTML_VLINK#}"> - <center><table width="600" bgcolor="{#COULEUR_HTML_FOND#}"><tr><td><center> - <u><img src="{$IMG2FBX}{$FLUX.image|urlencode}">{$FLUX.titre}</u><br> <br> - - {section name=stream loop=$FLUX.post} - - <u>{$FLUX.post[stream].titre}</u><br>{$FLUX.post[stream].description}<br><hr width="80%"> - + {section name=liste loop=$FLUX max=5 start=$MIN} + {if $smarty.section.liste.first} + {if $MIN!=0} + {assign var=temp value=$MIN-5} + {assign var=temp2 value=$cat.id} + {assign var=temp3 value=$feed.id} + {attribbouton touche="green" lien="index1.php?cat=$temp2&feed=$temp3&min=$temp"} + <a href="index1.php?cat={$cat.id}&feed={$feed.id}&min={$temp}"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> Pr\xE9c\xE9dent</a> + {/if} + <table width="500" border="0" cellspacing="7" cellpadding="7" align="left" valign="top"> + {/if} + + + <tr><td>{if $FLUX[liste].description!=''}<a href="index1.php?cat={$cat.id}&feed={$feed.id}&post={$FLUX[liste].id}">{/if} + <table width="500" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"> + <tr> + <td align="left" valign="top"><b><u>{$FLUX[liste].titre}</u></b>{if $FLUX[liste].description!=''} : {$FLUX[liste].description|truncate:50}{/if}</td> + </tr> + </table> + {if $FLUX[liste].description!=''}</a>{/if}</td></tr> + + {if $smarty.section.liste.last} + </table><br> + {if $MIN+$smarty.section.liste.total < count($FLUX)} + {assign var=temp value=$MIN+5} + {assign var=temp2 value=$cat.id} + {assign var=temp3 value=$feed.id} + {attribbouton touche="blue" lien="index1.php?cat=$temp2&feed=$temp3&min=$temp"} + <a href="index1.php?cat={$cat.id}&feed={$feed.id}&min={$temp}"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> Suivant</a> + {/if} + {/if} + + {sectionelse} + Ce flux ne contient aucun \xE9l\xE9ment. {/section} - - <a href="index1.php">Retour</a> - </center></td></tr></table></center></body></html> + {/if} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2007-02-25 10:13:38
|
Revision: 86 http://svn.sourceforge.net/easybox-mod/?rev=86&view=rev Author: aragornis Date: 2007-02-25 02:13:33 -0800 (Sun, 25 Feb 2007) Log Message: ----------- v4 ? ;) Modified Paths: -------------- trunk/_utilisateur/modules.db trunk/_utilisateur/multiposte.m3u trunk/_utilisateur/rss.db trunk/module/diaporama/index1.php Removed Paths: ------------- trunk/_utilisateur/modules.xml Modified: trunk/_utilisateur/modules.db =================================================================== (Binary files differ) Deleted: trunk/_utilisateur/modules.xml =================================================================== --- trunk/_utilisateur/modules.xml 2007-02-25 08:21:51 UTC (rev 85) +++ trunk/_utilisateur/modules.xml 2007-02-25 10:13:33 UTC (rev 86) @@ -1,351 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"> -<channel> - <categorie name="Menu" repertoire="cinefil.gif"> - <module> - <name>Films</name> - <repertoire>films/</repertoire> - <lien>index1.php</lien> - <actif1>1</actif1> - <actif2>1</actif2> - <actif3>1</actif3> - <actif4>1</actif4> - <actif5>1</actif5> - <version>3.00</version> - </module> - <module> - <name>DVD</name> - <repertoire>dvd/</repertoire> - <lien>index1.php</lien> - <actif1>1</actif1> - <actif2>1</actif2> - <actif3>1</actif3> - <actif4>1</actif4> - <actif5>1</actif5> - <version>3.00</version> - </module> - <module> - <name>Audio</name> - <repertoire>mp3/</repertoire> - <lien>lecteuraudio.php</lien> - <actif1>1</actif1> - <actif2>1</actif2> - <actif3>1</actif3> - <actif4>1</actif4> - <actif5>1</actif5> - <version>3.00</version> - </module> - <module> - <name>WebMedia</name> - <repertoire>webmedia/</repertoire> - <lien>index1.php</lien> - <actif1>1</actif1> - <actif2>1</actif2> - <actif3>1</actif3> - <actif4>1</actif4> - <actif5>1</actif5> - <version>3.00</version> - </module> - <module> - <name>Photos</name> - <repertoire>diaporama/</repertoire> - <lien>index1.php</lien> - <actif1>1</actif1> - <actif2>1</actif2> - <actif3>1</actif3> - <actif4>1</actif4> - <actif5>1</actif5> - <version>3.00</version> - </module> - <module> - <name>Signet</name> - <repertoire>signet/</repertoire> - <lien>index1.php</lien> - <actif1>1</actif1> - <actif2>1</actif2> - <actif3>1</actif3> - <actif4>1</actif4> - <actif5>1</actif5> - <version>3.00</version> - </module> - <module> - <name>Favoris</name> - <repertoire>favoris/</repertoire> - <lien>index1.php</lien> - <actif1>1</actif1> - <actif2>1</actif2> - <actif3>1</actif3> - <actif4>1</actif4> - <actif5>1</actif5> - <version>3.00</version> - </module> - </categorie> - <categorie name="Multim\xE9dia" repertoire="cinefil.gif"> - <module> - <name>Programme Cin\xE9</name> - <repertoire>seances/</repertoire> - <lien>index1.php</lien> - <actif1>1</actif1> - <actif2>1</actif2> - <actif3>1</actif3> - <actif4>1</actif4> - <actif5>1</actif5> - <version>3.00</version> - </module> - <module> - <name>Sorties Cin\xE9</name> - <repertoire>cinefil/</repertoire> - <lien>index1.php</lien> - <actif1>1</actif1> - <actif2>1</actif2> - <actif3>1</actif3> - <actif4>1</actif4> - <actif5>1</actif5> - <version>3.00</version> - </module> - <module> - <name>Enregistrement</name> - <repertoire>multiposte/</repertoire> - <lien>index1.php</lien> - <actif1>1</actif1> - <actif2>1</actif2> - <actif3>1</actif3> - <actif4>1</actif4> - <actif5>1</actif5> - <version>3.00</version> - </module> - <module> - <name>Guide TV</name> - <repertoire>guidetv/</repertoire> - <lien>tvprogram.php</lien> - <actif1>1</actif1> - <actif2>1</actif2> - <actif3>1</actif3> - <actif4>1</actif4> - <actif5>1</actif5> - <version>3.00</version> - </module> - <module> - <name>Emissions</name> - <repertoire>jt/</repertoire> - <lien>index1.php</lien> - <actif1>1</actif1> - <actif2>1</actif2> - <actif3>1</actif3> - <actif4>1</actif4> - <actif5>1</actif5> - <version>3.00</version> - </module> - <module> - <name>Pendu</name> - <repertoire>pendu/</repertoire> - <lien>index1.php</lien> - <actif1>1</actif1> - <actif2>1</actif2> - <actif3>1</actif3> - <actif4>1</actif4> - <actif5>1</actif5> - <version>3.00</version> - </module> - <module> - <name>Morpion</name> - <repertoire>morpion/</repertoire> - <lien>index1.php</lien> - <actif1>1</actif1> - <actif2>1</actif2> - <actif3>1</actif3> - <actif4>1</actif4> - <actif5>1</actif5> - <version>3.00</version> - </module> - <module> - <name>Sudoku</name> - <repertoire>sudoku/</repertoire> - <lien>index1.php</lien> - <actif1>1</actif1> - <actif2>1</actif2> - <actif3>1</actif3> - <actif4>1</actif4> - <actif5>1</actif5> - <version>3.00</version> - </module> - </categorie> - <categorie name="Web" repertoire="menunews.gif"> - <module> - <name>Mails</name> - <repertoire>mail/</repertoire> - <lien>index1.php</lien> - <actif1>1</actif1> - <actif2>1</actif2> - <actif3>1</actif3> - <actif4>1</actif4> - <actif5>1</actif5> - <version>3.00</version> - </module> - <module> - <name>Html-Light</name> - <repertoire>htmllight/</repertoire> - <lien>index1.php</lien> - <actif1>1</actif1> - <actif2>1</actif2> - <actif3>1</actif3> - <actif4>1</actif4> - <actif5>1</actif5> - <version>3.00</version> - </module> - <module> - <name>Annuaire Freebox</name> - <repertoire>AnnuaireFbx/</repertoire> - <lien>index1.php</lien> - <actif1>1</actif1> - <actif2>1</actif2> - <actif3>1</actif3> - <actif4>1</actif4> - <actif5>1</actif5> - <version>3.00</version> - </module> - <module> - <name>RSS</name> - <repertoire>rss/</repertoire> - <lien>index1.php</lien> - <actif1>1</actif1> - <actif2>1</actif2> - <actif3>1</actif3> - <actif4>1</actif4> - <actif5>1</actif5> - <version>3.00</version> - </module> - <module> - <name>Cac40</name> - <repertoire>cac40/</repertoire> - <lien>index1.php</lien> - <actif1>1</actif1> - <actif2>1</actif2> - <actif3>1</actif3> - <actif4>1</actif4> - <actif5>1</actif5> - <version>3.00</version> - </module> - <module> - <name>Livescore</name> - <repertoire>livescore/</repertoire> - <lien>index1.php</lien> - <actif1>1</actif1> - <actif2>1</actif2> - <actif3>1</actif3> - <actif4>1</actif4> - <actif5>1</actif5> - <version>3.00</version> - </module> - <module> - <name>M\xE9t\xE9o</name> - <repertoire>meteo/</repertoire> - <lien>index1.php</lien> - <actif1>1</actif1> - <actif2>1</actif2> - <actif3>1</actif3> - <actif4>1</actif4> - <actif5>1</actif5> - <version>3.00</version> - </module> - <module> - <name>Info-Trafic</name> - <repertoire>infotraffic/</repertoire> - <lien>index1.php</lien> - <actif1>1</actif1> - <actif2>1</actif2> - <actif3>1</actif3> - <actif4>1</actif4> - <actif5>1</actif5> - <version>3.00</version> - </module> - <module> - <name>Loto</name> - <repertoire>loto/</repertoire> - <lien>index1.php</lien> - <actif1>1</actif1> - <actif2>1</actif2> - <actif3>1</actif3> - <actif4>1</actif4> - <actif5>1</actif5> - <version>3.00</version> - </module> - <module> - <name>Eph\xE9m\xE9ride</name> - <repertoire>ephemeride/</repertoire> - <lien>index1.php</lien> - <actif1>1</actif1> - <actif2>1</actif2> - <actif3>1</actif3> - <actif4>1</actif4> - <actif5>1</actif5> - <version>3.00</version> - </module> - - </categorie> - <categorie name="Pratique" repertoire="horloge.gif"> - <module> - <name>R\xE9seau Free.fr</name> - <repertoire>reseaufree/</repertoire> - <lien>index1.php</lien> - <actif1>1</actif1> - <actif2>1</actif2> - <actif3>1</actif3> - <actif4>1</actif4> - <actif5>1</actif5> - <version>3.00</version> - </module> - <module> - <name>Agenda</name> - <repertoire>agenda/</repertoire> - <lien>index1.php</lien> - <actif1>1</actif1> - <actif2>1</actif2> - <actif3>1</actif3> - <actif4>1</actif4> - <actif5>1</actif5> - <version>1.00</version> - </module> - <module> - <name>Messagerie</name> - <repertoire>messagerie/</repertoire> - <lien>index1.php</lien> - <actif1>1</actif1> - <actif2>1</actif2> - <actif3>1</actif3> - <actif4>1</actif4> - <actif5>1</actif5> - <version>3.00</version> - </module> - <module> - <name>Horloge</name> - <repertoire>horloge/</repertoire> - <lien>index1.php</lien> - <actif1>1</actif1> - <actif2>1</actif2> - <actif3>1</actif3> - <actif4>1</actif4> - <actif5>1</actif5> - <version>3.00</version> - </module> - <module> - <name>Shutdown</name> - <repertoire>eteindre/</repertoire> - <lien>index1.php</lien> - <actif1>1</actif1> - <actif2>1</actif2> - <actif3>1</actif3> - <actif4>1</actif4> - <actif5>1</actif5> - <version>3.00</version> - </module> - </categorie> - <categorie name="Suplement"> <module> - <name>EasyBox</name> - <repertoire>.</repertoire> - <lien>.</lien> - <version>3.2.0</version> - </module> - </categorie> -</channel> -</rss> Modified: trunk/_utilisateur/multiposte.m3u =================================================================== --- trunk/_utilisateur/multiposte.m3u 2007-02-25 08:21:51 UTC (rev 85) +++ trunk/_utilisateur/multiposte.m3u 2007-02-25 10:13:33 UTC (rev 86) @@ -1,6 +1,4 @@ #EXTM3U -#EXTINF:0,1 - TF1 -rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=612 #EXTINF:0,2 - France 2 rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=201 #EXTINF:0,3 - France 3 national @@ -85,7 +83,9 @@ rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=265 #EXTINF:0,54 - Musique Classique rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=254 -#EXTINF:0,57 - Mizik Tropical +#EXTINF:0,57 - NRJ 12 HD +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=617 +#EXTINF:0,58 - Mizik Tropical rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=468 #EXTINF:0,61 - Equidia rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=212 @@ -139,8 +139,6 @@ rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=235 #EXTINF:0,95 - 3A Telesud rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=356 -#EXTINF:0,96 - Teleplaisance.org -rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=320 #EXTINF:0,97 - Luxe.TV rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=460 #EXTINF:0,98 - Freenews TV @@ -157,6 +155,8 @@ rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=359 #EXTINF:0,133 - Astro Center TV rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=415 +#EXTINF:0,134 - Terre d'infos +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=437 #EXTINF:0,150 - TLM rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=267 #EXTINF:0,151 - TLT @@ -385,6 +385,8 @@ rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=287 #EXTINF:0,308 - France 3 Champagne-Ardenne rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=288 +#EXTINF:0,309 - France 3 Corse +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=289 #EXTINF:0,310 - France 3 Côte-d'Azur rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=290 #EXTINF:0,311 - France 3 Franche-Comté Modified: trunk/_utilisateur/rss.db =================================================================== (Binary files differ) Modified: trunk/module/diaporama/index1.php =================================================================== --- trunk/module/diaporama/index1.php 2007-02-25 08:21:51 UTC (rev 85) +++ trunk/module/diaporama/index1.php 2007-02-25 10:13:33 UTC (rev 86) @@ -233,7 +233,7 @@ play_fichier('type=1',realpath($AUDIOTEMP.'audiotemp'.get_variable('num_playlist').'.m3u'),1,'mp3'); $BACKGROUND = 'none'; save_variable('num_playlist', get_variable('num_playlist')+1); -}else{ +}elseif($_GET['start_play']=='non'){ $file1 = file_get_contents("http://127.0.0.1:8081/lecteur/action.html?control=stop"); $smarty->assign('start_play','oui'); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2007-02-22 17:07:07
|
Revision: 79 http://svn.sourceforge.net/easybox-mod/?rev=79&view=rev Author: aragornis Date: 2007-02-22 09:07:00 -0800 (Thu, 22 Feb 2007) Log Message: ----------- Remise en ?\195?\169tat des raccourcis par les touches num?\195?\169rot?\195?\169es de la t?\195?\169l?\195?\169commande Module "modules" largement remis en ?\195?\169tat (pr?\195?\169view des modules, description...) Correction d'un bug sur la lib ini Nouvelle interface de lecture avec options incluses directement Modified Paths: -------------- trunk/_framework/bouton/bouton_general.php trunk/_framework/favoris_touches.php trunk/_framework/fonctions_partagees.inc.php trunk/_framework/framework.php trunk/_framework/lib/img_cr.php trunk/_framework/lib/ini.php trunk/_utilisateur/modules.db trunk/configuration/general.php trunk/configuration/skin.php trunk/http-vlc/lecteur/modif-config.html trunk/lecteur/options.php trunk/module/films/fichefilm.php trunk/module/films/films.tpl trunk/module/films/info.php trunk/module/films/lecture.php trunk/module/films/play.php trunk/module/films/playba.php trunk/module/horloge/index1.php trunk/module/meteo/f2-france-512x384-j0pm.jpg trunk/module/modules/index1.php trunk/module/modules/modules.tpl trunk/skin/simple/interface/delete.gif trunk/skin/simple/option.tpl trunk/skin/simplegreen/interface/delete.gif trunk/skin/simplegreen/interface.tpl Added Paths: ----------- trunk/module/pendu/screen.gif trunk/skin/simple/interface/aide.gif trunk/skin/simple/interface/information.gif trunk/skin/simple/interface/valider.gif trunk/skin/simplegreen/interface/aide.gif trunk/skin/simplegreen/interface/information.gif trunk/skin/simplegreen/interface/valider.gif Removed Paths: ------------- trunk/skin/simplegreen/background.jpg Modified: trunk/_framework/bouton/bouton_general.php =================================================================== --- trunk/_framework/bouton/bouton_general.php 2007-02-21 16:37:43 UTC (rev 78) +++ trunk/_framework/bouton/bouton_general.php 2007-02-22 17:07:00 UTC (rev 79) @@ -6,8 +6,8 @@ $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" AND $LEVEL=="5") { - $META['nochannel_page']=$FRAMEWORK_REP.'favoris_touches.php?page='.urlencode($_SERVER['REQUEST_URI']).'&favoris_touche=%d'; + 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"]); Modified: trunk/_framework/favoris_touches.php =================================================================== --- trunk/_framework/favoris_touches.php 2007-02-21 16:37:43 UTC (rev 78) +++ trunk/_framework/favoris_touches.php 2007-02-22 17:07:00 UTC (rev 79) @@ -4,28 +4,29 @@ $touche = 'touche'.$_GET['favoris_touche']; if ($touche == "touche0" AND $ini['screensaver']['scr_actif']=='oui') { - $redir = $MODULE."screensaver/index1.php"; - $texte1= "SCREENSAVER<br />"; -}else{ + /*$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]; - }else{ - $redir = $RACINE_REP."module/".$ini['favoris'][$touche]."index1.php"; - if ($ini['favoris'][$touche] == "mp3/") { - $redir = $RACINE_REP."module/".$ini['favoris'][$touche]."lecteuraudio.php"; - } + $texte1 = 'Redirection vers le dossier demand\xE9.'; + }else{ + $redir = $RACINE_REP."module/".$ini['favoris'][$touche]; + $texte1 = 'Redirection vers le module demand\xE9'; } }else{ - $redir = "..".urldecode($_GET['page']); - $redir = "back"; - $texte1 = 'Cette touche n\'est pas programm\xE9e<br />'; + $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']= '1;url='.$redir; -$CONTENT = $texte1.'<br>Redirection en cours...'; +$META['refresh']= '0;url='.$redir; + +$TITRE = $texte1.'<br>Redirection en cours...'; + +$smarty->assign('TITRE','Redirection en cours...'); $smarty->assign('AVERTISSEMENT',$CONTENT); $smarty->display('avertissement.tpl'); Modified: trunk/_framework/fonctions_partagees.inc.php =================================================================== --- trunk/_framework/fonctions_partagees.inc.php 2007-02-21 16:37:43 UTC (rev 78) +++ trunk/_framework/fonctions_partagees.inc.php 2007-02-22 17:07:00 UTC (rev 79) @@ -369,7 +369,7 @@ } function get_installed_modules(){ -global $USER; +global $USER,$INTERFACE_REP,$MODULE; if($a<=1){ $db = sqlite_open($USER.'modules.db', 0666); @@ -377,7 +377,12 @@ $MODULES = array(); while($element = sqlite_fetch_object($res)){ - $MODULES[] = array('nom'=>$element->nom,'version'=>$element->version,'description'=>$element->description,'id'=>$element->id); + if(file_exists($MODULE.$element->repertoire.'screen.gif')){ + $img = $MODULE.$element->repertoire.'screen.gif'; + }else{ + $img = $INTERFACE_REP.'noimage.gif'; + } + $MODULES[] = array('nom'=>$element->nom,'version'=>$element->version,'description'=>$element->description,'id'=>$element->id, 'img'=>$img); } sqlite_close($db); } @@ -386,15 +391,20 @@ } function get_installed_skins(){ -global $USER; +global $USER,$RACINE_REP,$INTERFACE_REP,$ini; if($a<=1){ $db = sqlite_open($USER.'modules.db', 0666); - $res = sqlite_query($db,'SELECT * FROM modules WHERE dependance="Alone" AND type="Skin"'); + $res = sqlite_query($db,'SELECT * FROM modules WHERE type="Skin"'); $MODULES = array(); while($element = sqlite_fetch_object($res)){ - $MODULES[] = array('nom'=>$element->nom,'version'=>$element->version,'description'=>$element->description,'id'=>$element->id); + if(file_exists($RACINE_REP.'skin/'.$element->repertoire.'vuedensemble.gif')){ + $img = $RACINE_REP.'skin/'.$element->repertoire.'vuedensemble.gif'; + }else{ + $img = $INTERFACE_REP.'noimage.gif'; + } + $MODULES[] = array('nom'=>$element->nom,'version'=>$element->version,'description'=>$element->description,'id'=>$element->id, 'img'=>$img, 'current'=>$element->nom==$ini['skin']['skin']); } sqlite_close($db); } @@ -593,16 +603,21 @@ $SKINS = array(); while($element = sqlite_fetch_object($res)){ - $SKINS[] = array('nom'=>$element->nom,'repertoire'=>$element->repertoire,'description'=>$element->description,'version'=>$element->version); + $SKINS[] = array('id'=>$element->id,'nom'=>$element->nom,'repertoire'=>$element->repertoire,'description'=>$element->description,'version'=>$element->version); } sqlite_close($db); return $SKINS; } -function change_skin($tpl){ -global $RACINE_REP; +function change_skin($id){ +global $RACINE_REP,$USER,$SKIN_REP; + $db = sqlite_open($USER.'modules.db', 0666); + $res = sqlite_query($db,'SELECT * FROM modules WHERE type="Skin" AND id="'.$id.'"'); + $val = sqlite_fetch_array($res); + $tpl = $val['nom']; + function ClearDirectory($path){ if($dir_handle = opendir($path)){ while($file = readdir($dir_handle)){ Modified: trunk/_framework/framework.php =================================================================== --- trunk/_framework/framework.php 2007-02-21 16:37:43 UTC (rev 78) +++ trunk/_framework/framework.php 2007-02-22 17:07:00 UTC (rev 79) @@ -11,7 +11,7 @@ $LIBRARIES_REP = $FRAMEWORK_REP."lib/"; //--Chargement de Smarty - require($LIBRARIES_REP.'/Smarty.class.php'); + require_once($LIBRARIES_REP.'/Smarty.class.php'); $smarty = new Smarty(); $smarty->assign('FRAMEWORK_REP',$FRAMEWORK_REP); @@ -47,7 +47,7 @@ $IMG2FBX = $FRAMEWORK_REP.'img2fbx.php?sURL='; $smarty->assign('IMG2FBX',$IMG2FBX); $LOAD = $FRAMEWORK_REP.'fonctions_partagees.inc.php'; - include($LOAD); + require_once($LOAD); $EXPLORATEUR = $MODULE.'_explorateur/index1.php'; $smarty->assign('EXPLORATEUR',$EXPLORATEUR); @@ -87,7 +87,7 @@ $smarty->assign('THEME_REP',$THEME_REP); //-- Framework du skin - require($SKIN_REP."framework_skin.php"); + require_once($SKIN_REP."framework_skin.php"); //-- Chargement des couleurs $smarty->template_dir = realpath($SKIN_REP); @@ -101,7 +101,7 @@ $smarty->assign('OS',PHP_OS); $smarty->register_modifier('cleanaff','supprime_accents'); - require($FRAMEWORK_REP."cartouche.php"); + require_once($FRAMEWORK_REP."cartouche.php"); //Extraction des donn\xE9es de vlc $signetsav=explode("|",$contenu_html); @@ -137,7 +137,7 @@ //-- Chargement des Boutons. Possibilit\xE9 de le d\xE9sactiver pour la cr\xE9ation d'images avec header (cf annuaire freebox) if(!isset($nobouton)){ - require($BOUTON."bouton_general.php"); + require_once($BOUTON."bouton_general.php"); } /* Modified: trunk/_framework/lib/img_cr.php =================================================================== --- trunk/_framework/lib/img_cr.php 2007-02-21 16:37:43 UTC (rev 78) +++ trunk/_framework/lib/img_cr.php 2007-02-22 17:07:00 UTC (rev 79) @@ -7,7 +7,7 @@ if ($_GET['local']){ $img = urldecode($_GET['img']); }else{ - $img ='../'.urldecode($_GET['img']); + $img ='../../'.urldecode($_GET['img']); } }else exit; if (isset($_GET['h'])) Modified: trunk/_framework/lib/ini.php =================================================================== --- trunk/_framework/lib/ini.php 2007-02-21 16:37:43 UTC (rev 78) +++ trunk/_framework/lib/ini.php 2007-02-22 17:07:00 UTC (rev 79) @@ -25,7 +25,7 @@ function del($cat, $cle){ global $ini; - $ini[$cat][$cle] = null; + unset($ini[$cat][$cle]); } function set($cat, $cle, $val){ Modified: trunk/_utilisateur/modules.db =================================================================== (Binary files differ) Modified: trunk/configuration/general.php =================================================================== --- trunk/configuration/general.php 2007-02-21 16:37:43 UTC (rev 78) +++ trunk/configuration/general.php 2007-02-22 17:07:00 UTC (rev 79) @@ -181,7 +181,7 @@ $affichepage[$numero_id].='>Pas Utilis\xE9</option>'; foreach($MOD as $module){ - $affichepage[$numero_id].= '<option value="'.$module['repertoire'].'"'; + $affichepage[$numero_id].= '<option value="'.$module['repertoire'].$module['lien'].'"'; if($entry==$module['repertoire']) { $affichepage[$numero_id].='selected'; } $affichepage[$numero_id].= '>'.$module['nom'].'</option>'; } Modified: trunk/configuration/skin.php =================================================================== --- trunk/configuration/skin.php 2007-02-21 16:37:43 UTC (rev 78) +++ trunk/configuration/skin.php 2007-02-22 17:07:00 UTC (rev 79) @@ -30,7 +30,7 @@ <td colspan="2" align="right"><table width="100%" border="0" cellspacing="3" cellpadding="1"> <tr> <td width="85%"><font><b> - <input type="radio" name="choiskin" value="<?= $skin['nom']; ?>" <?php if(strtolower($skincfg)==strtolower($skin['nom'])) {echo' checked="checked" '; } ?>> + <input type="radio" name="choiskin" value="<?= $skin['id']; ?>" <?php if(strtolower($skincfg)==strtolower($skin['nom'])) {echo' checked="checked" '; } ?>> Skin : <?= $skin['nom'] ?> </b></font></td> </tr> Modified: trunk/http-vlc/lecteur/modif-config.html =================================================================== --- trunk/http-vlc/lecteur/modif-config.html 2007-02-21 16:37:43 UTC (rev 78) +++ trunk/http-vlc/lecteur/modif-config.html 2007-02-22 17:07:00 UTC (rev 79) @@ -19,7 +19,7 @@ <vlc id="if" param1="type2 value 1 =" /> <vlc id="rpn" param1="'valeur' value 'audio-es' 'VLC_OBJECT_INPUT' vlc_var_set" /> <vlc id="end" /> - <!-- CHANGE DE SOUS-TITRES - Type2 = 2 --> + <!-- CHANGE LES OPTIONS SOUS-TITRES - Type2 = 2 --> <vlc id="if" param1="type2 value 2 =" /> <vlc id="rpn" param1="sub_margin 'sub_margin' url_extract store" /> @@ -38,10 +38,14 @@ <vlc id="end" /> <vlc id="rpn" param1="vlc_config_save" /> - + + <vlc id="end" /> + + <!-- CHANGE DE CHAPITRE - Type2 = 4 --> + <vlc id="if" param1="type2 value 4 =" /> <vlc id="rpn" param1="'valeur' value 'spu-es' 'VLC_OBJECT_INPUT' vlc_var_set" /> <vlc id="end" /> - + <!-- CHANGE DE CHAPITRE - Type2 = 3 --> <vlc id="if" param1="type2 value 3 =" /> <vlc id="rpn" param1="'valeur' value 'chapter' 'VLC_OBJECT_INPUT' vlc_var_set" /> Modified: trunk/lecteur/options.php =================================================================== --- trunk/lecteur/options.php 2007-02-21 16:37:43 UTC (rev 78) +++ trunk/lecteur/options.php 2007-02-22 17:07:00 UTC (rev 79) @@ -2,37 +2,15 @@ $RACINE_REP = "../"; require($RACINE_REP.'_framework/framework.php'); -if (isset($_GET['module'])){ - $module=$_GET['module']; -}else{ - $module='infos'; -} +$module=$_GET['module']; + $LINK['red']=$RACINE_REP.'module/films/info.php'; $LINK['options']=$RACINE_REP.'module/films/info.php'; $smarty->assign('module',$module); -if (isset($_GET['end'])){ - $i=1; - $xml = simplexml_load_file($USER."modules.xml"); - for($y=0; $y < 4 ; $y++){ - foreach($xml->channel->categorie[$y]->module as $modu){ - if ($i<=$_GET['end']){ - if (isset($_GET[$i])){ - $valeur=$_GET[$i]; - }else{ - $valeur='0'; - } - $modu->actif=$valeur; - $i++; - } - } - } - file_put_contents($USER."modules.xml", $xml ->asxml()); -} - if (isset($_GET['video'])){ @readfile('http://localhost:8081/lecteur/modif-config.html?type=3&video='.$_GET['video'].'&pp='.$_GET['pp']); } Modified: trunk/module/films/fichefilm.php =================================================================== --- trunk/module/films/fichefilm.php 2007-02-21 16:37:43 UTC (rev 78) +++ trunk/module/films/fichefilm.php 2007-02-22 17:07:00 UTC (rev 79) @@ -121,7 +121,7 @@ if ($disable) { - $smarty->assign('more','... <a href="options.php?getmoreinfo=1">Suite</a>'); + $smarty->assign('more','... <a href="info.php?getmoreinfo=1">Suite</a>'); } else { $smarty->assign('more','... <a href="fichefilm.php?getmoreinfo=1&film='.urlencode($film).'&fichier='.urlencode($fichier).'">Suite</a>'); @@ -141,7 +141,7 @@ { $CONTENT .= '<font size=4>R\xE9sum\xE9 pour '.$film.'</font><br> <br> <br>'; $CONTENT .= strip_tags($info['synopsis']); - $CONTENT .= '<br> <br><a href="options.php">Retour</a>'; + $CONTENT .= '<br> <br><a href="info.php">Retour</a>'; $contenant = $CONTENT; } else { Modified: trunk/module/films/films.tpl =================================================================== --- trunk/module/films/films.tpl 2007-02-21 16:37:43 UTC (rev 78) +++ trunk/module/films/films.tpl 2007-02-22 17:07:00 UTC (rev 79) @@ -7,17 +7,123 @@ <body background="ts://127.0.0.1" text="{#COULEUR_LECTEUR_TEXT#}" link="{#COULEUR_LECTEUR_LINK#}" alink="{#COULEUR_LECTEUR_ALINK#}" vlink="{#COULEUR_LECTEUR_VLINK#}"> <center> <table width="645" height="510" border="0" cellpadding="0" cellspacing="0"><tr> -<td height="400" align="center" valign="top"> -</td> -</tr> -<tr> -<td height="110" align="center"><center> -<table width="571" height="106" border="0" cellpadding="0" cellspacing="0" background="{$SKIN_REP}interface/player.gif"><tr> -<td height="20"> </td> -</tr> -<tr> -<td height="20"> + <td height="370" align="left" cellpadding="3" cellspacing="0" valign="top"{if $module!=''} bgcolor="{#COULEUR_FOND2#}"{/if}> + + {math equation="x/y+1" x="640" y=7 assign=width} + <table width="640" height="25" border="0" align="center" cellpadding="0" cellspacing="0"> + <tr> + <td width="{$width}" align=center><a href="info.php?module=infos" {if $module=='infos'}focused{/if}><table width="{$width}" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td width="{$width}" align=center height="25">Infos</td></tr></table></a></td> + <td width="{$width}" align=center><a href="info.php?module=video" {if $module=='video'}focused{/if}><table width="{$width}" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td width="{$width}" align=center height="25">Video</td></tr></table></a></td> + <td width="{$width}" align=center><a href="info.php?module=audio" {if $module=='audio'}focused{/if}><table width="{$width}" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td width="{$width}" align=center height="25">Audio</td></tr></table></a></td> + <td width="{$width}" align=center><a href="info.php?module=sstitre" {if $module=='sstitre'}focused{/if}><table width="{$width}" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td width="{$width}" align=center height="25">Sous-titres</td></tr></table></a></td> + <td width="{$width}" align=center><a href="info.php?module=navigation" {if $module=='navigation'}focused{/if}><table width="{$width}" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td width="{$width}" align=center height="25">Chapitres</td></tr></table></a></td> + <td width="{$width}" align=center><a href="info.php?module=signets" {if $module=='signets'}focused{/if}><table width="{$width}" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td width="{$width}" align=center height="25">Signets</td></tr></table></a></td> + <td width="{$width}" align=center><a href="info.php"><table width="{$width}" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td width="{$width}" align=center height="25">Fermer</td></tr></table></a></td> + </tr> + </table> + + +{if $module=='infos'} +{$content} +{elseif $module=='video'} +<font size="3"><u>Options vid\xE9o</u></font><br> + <form action="info.php" method="get"> + <input type=hidden name=module value=video><input type=hidden name=var value="video-es"><br> + {foreach from=$video item=pistev key=key name=video} + <input type=radio name=video bgcolor="{#COULEUR_FOND_RADIO#}" value="{$key}" {if $pistev.1} checked{/if}>{$pistev.0}<br> + {/foreach} + <br>Post-traitement + <input type="hslider" bgcolor="{#COULEUR_FOND_RADIO#}" name="pp" min="0" max="6" grad="1" /> + Augmenter la qualit\xE9 du traitement de l'image (de 0 vers 6) demande plus de puissance CPU. + <br> + +<table width="250" align="left"> +<tr><td width="130">4/3 Letterbox</td><td><input type=radio bgcolor="{#COULEUR_FOND_RADIO#}" name=display_aspect_ratio_conversion value=letterbox></td></tr> +<tr><td width="130">4/3 Combined</td><td><input type=radio bgcolor="{#COULEUR_FOND_RADIO#}" name=display_aspect_ratio_conversion value=combined></td></tr> +<tr><td width="130">4/3 Pan Scan</td><td><input type=radio bgcolor="{#COULEUR_FOND_RADIO#}" name=display_aspect_ratio_conversion value=panscan></td></tr> +<tr><td width="130">16/9</td><td><input type=radio bgcolor="{#COULEUR_FOND_RADIO#}" name=display_aspect_ratio_conversion value=ignore></td></tr> +</table> + +<table width="250" align="left"> +<tr><td width="90">Lumi\xE9re</td><td width="5">:</td><td><input bgcolor="{#COULEUR_FOND_RADIO#}" type=hslider name=denc_brightness min=0 max=255 grad=16></td></tr> +<tr><td width="90">Contraste</td><td width="5">:</td><td><input bgcolor="{#COULEUR_FOND_RADIO#}" type=hslider name=denc_contrast min='-128' max=127 grad=16></td></tr> +<tr><td width="90">Couleur</td><td width="5">:</td><td><input bgcolor="{#COULEUR_FOND_RADIO#}" type=hslider name=denc_saturation min=0 max=255 grad=16></td></tr> +<tr><td width="90">Zoom</td><td width="5">:</td><td><input bgcolor="{#COULEUR_FOND_RADIO#}" type=hslider name=video_output_scale min=25 max=100 grad=5></td></tr> +</table> + + <input bgcolor="{#COULEUR_TEXTBOX#}" type=submit value="Valider les modifications"> +</form> + +{elseif $module=='audio'} +<font size="3"><u>Options audio</u></font><br> + <form action="info.php" method="get"><input type=hidden name=module value=audio><input type=hidden name=var value="audio-es"><br> + {foreach from=$audio item=pistea key=key name=audio} + <input type=radio name=audio bgcolor="{#COULEUR_FOND_RADIO#}" value="{$key}" {if $pistea.1} checked{/if}>{$pistea.0}<br> + {/foreach} + <br><form action="none"> + <input type="radio" name="aud" value="69(en,mp2)" bgcolor="{#COULEUR_FOND_RADIO#}"> Son st\xE9r\xE9o<br> + <input type="radio" name="aud" value="69(en,ac3)" bgcolor="{#COULEUR_FOND_RADIO#}"> Dolby Digital (S/PDIF)<br> + <br><input bgcolor="{#COULEUR_TEXTBOX#}" type=submit value="Valider les modifications"></form> + +{elseif $module=='sstitre'} +<font size="3"><u>Sous-titres</u></font><br> + <form action="info.php" method="get"><input type=hidden name=module value=sstitre><br> + {foreach from=$sstitre item=pistess key=key name=sstitre} + <input type=radio name=sstitre bgcolor="{#COULEUR_FOND_RADIO#}" value="{$key}"{if $pistess.1} checked{/if}>{$pistess.0}<br> + {/foreach} + + Les param\xE8tres suivants ne seront pris en compte qu'apr\xE8s le red\xE9marage du films. Ils seront sauvegard\xE9s dans Easybox pour les prochaines utilisations de easybox<br /> + <font size="3"><u>Position</u></font> : + <input type=text bgcolor="{#COULEUR_FOND_RADIO#}" name="sub_margin" size=3 maxlength=3 value="{$sub_margin}"><br> <br> + <font size="3"><u>Couleur</u></font> : + <table cellpadding="1" cellspacing="0" align="left" width="200"><tr> + <td width="40"><a href="info.php?module={$module}&fontcolor=16777215"><table width="30" height="20" border=1 bgcolor="#FFFFFF3F" bordercolor="#0000003F" cellpadding=0 cellspacing=0><tr><td align="center">{if $fontcolor=='16777215'}<img src="{$INTERFACE_REP}finished.gif" width="14" height="14" border="0">{else}<img src="" width="1" height="1">{/if}</td></tr></table></a></td> + <td width="40"><a href="info.php?module={$module}&fontcolor=16776960"><table width="30" height="20" border=1 bgcolor="#FFFF003F" bordercolor="#FFFFFF3F" cellpadding=0 cellspacing=0><tr><td align="center">{if $fontcolor=='16776960'}<img src="{$INTERFACE_REP}finished.gif" width="14" height="14" border="0">{else}<img src="" width="1" height="1">{/if}</td></tr></table></a></td> + <td width="40"><a href="info.php?module={$module}&fontcolor=65535"><table width="30" height="20" border=1 bgcolor="#00CCFF3F" bordercolor="#FFFFFF3F" cellpadding=0 cellspacing=0><tr><td align="center">{if $fontcolor=='65535'}<img src="{$INTERFACE_REP}finished.gif" width="14" height="14" border="0">{else}<img src="" width="1" height="1">{/if}</td></tr></table></a></td> + <td width="40"><a href="info.php?module={$module}&fontcolor=16711680"><table width="30" height="20" border=1 bgcolor="#FF00003F" bordercolor="#FFFFFF3F" cellpadding=0 cellspacing=0><tr><td align="center">{if $fontcolor=='16711680'}<img src="{$INTERFACE_REP}finished.gif" width="14" height="14" border="0">{else}<img src="" width="1" height="1">{/if}</td></tr></table></a></td> + <td width="40"><a href="info.php?module={$module}&fontcolor=32768"><table width="30" height="20" border=1 bgcolor="#00FF003F" bordercolor="#FFFFFF3F" cellpadding=0 cellspacing=0><tr><td align="center">{if $fontcolor=='32768'}<img src="{$INTERFACE_REP}finished.gif" width="14" height="14" border="0">{else}<img src="" width="1" height="1">{/if}</td></tr></table></a></td> + </tr></table><br> <br> <br> + <font size="3"><u>Taille</u></font> : <br> <br>- <input type="hslider" bgcolor="{#COULEUR_FOND_RADIO#}" name="fontsize" min="0" max="4" grad="1" value="{$ffontsize}"> + <br> <br> + <input bgcolor="{#COULEUR_TEXTBOX#}" type=submit value="Valider les modifications"></form> + +{elseif $module=='navigation'} +<font size="3"><u>Chapitres</u></font><br> + <table><tr><td> +{assign var=keyb value=1} + {foreach from=$chapitre item=chap key=key name=chap} + <a href="info.php?module=navigation&chap={$key}">{if $chap.1}<font family="Symbol">T</font>{/if}<font size="1">{$chap.0}</font></a><br> + {assign var=keyb value=$keyb+1} + {if $keyb is div by 17}</td><td>{/if} + {/foreach} + </td></tr></table> +{elseif $module=='signets'} +<font size="3"><u>Signets</u></font><br> +{/if} + + + + + + + + + + + + + + + + + </td> +</tr><tr height="10"><td><img src="" width="1" height="1"></td></tr><tr> + <td height="110" align="center"><center> + <table width="571" height="106" border="0" cellpadding="0" cellspacing="0" background="{$SKIN_REP}interface/player.gif"><tr> + <td height="20"> </td> + </tr><tr> + <td height="20"> + {assign var=stream_1 value="`$VLC.pourcentage_courant/100*529`"|round} {assign var=stream_2 value="`$stream_1*-1`"} {assign var=stream_3 value="`$stream_1/5+1`"|floor} Modified: trunk/module/films/info.php =================================================================== --- trunk/module/films/info.php 2007-02-21 16:37:43 UTC (rev 78) +++ trunk/module/films/info.php 2007-02-22 17:07:00 UTC (rev 79) @@ -2,8 +2,15 @@ $RACINE_REP = "../../"; require($RACINE_REP.'_framework/framework.php'); +//-- Traitement des options + $module=$_GET['module']; + $smarty->assign('module',$module); + + if(($VLC['duree_restante']-1)<=30 AND $VLC['type_current']!='webtv'){ $META['refresh'] = $VLC['duree_restante'].';url=lecture.php?control=stop&signet=noload&theend=1'; +}elseif($module!=''){ + unset($META['refresh']); }else{ $META['refresh']= '30;url=lecture.php'; } @@ -35,6 +42,102 @@ $file1 = file_get_contents("http://127.0.0.1:8081/lecteur/action.html?control=seek&seek_value=$value"); } +function convert_size($size){ +$assoc[0] = '12'; +$assoc[1] = '24'; +$assoc[2] = '32'; +$assoc[3] = '36'; +$assoc[4] = '40'; + +$assoc[12] = '0'; +$assoc[24] = '1'; +$assoc[32] = '2'; +$assoc[36] = '3'; +$assoc[40] = '4'; + +RETURN($assoc[$size]); +} + + // Changement des options vid\xE9o + if (isset($_GET['video'])){ + @readfile('http://localhost:8081/lecteur/modif-config.html?type=3&video='.$_GET['video'].'&pp='.$_GET['pp']); + } + // Changement des options audio + if (isset($_GET['audio'])){ + @readfile('http://localhost:8081/lecteur/modif-config.html?type=2&type2=1&var=audio-es&value='.$_GET['audio']); + } + // Changement des options de sous-titre + if (isset($_GET['sstitre'])){ + @readfile('http://localhost:8081/lecteur/modif-config.html?type=2&type2=4&var=spu-es&value='.$_GET['sstitre']); + }elseif(isset($_GET['fontcolor'])){ + @readfile('http://localhost:8081/lecteur/modif-config.html?type=2&type2=2&color='.$_GET['fontcolor']); + }elseif(isset($_GET['sub_margin'])){ + @readfile('http://localhost:8081/lecteur/modif-config.html?type=2&type2=2&size='.convert_size($_GET['fontsize']).'&sub_margin='.$_GET['sub_margin']); + } + // Changement de chapitre + if (isset($_GET['chap'])){ + @readfile('http://localhost:8081/lecteur/modif-config.html?type=2&type2=3&var=chapter&value='.$_GET['chap']); + } + + //-- R\xE9cuperation des donn\xE9es de VLC + $contenu_html = @file_get_contents('http://localhost:8081/lecteur/options_vlc.html'); + eval($contenu_html); + + //-- Affichage de la fiche film + if($module=='infos'){ + $disable=1; + $nomcourant = str_replace("\\", "/", $VLC['name_current']); + $pos = strrpos($nomcourant,"/"); + $pos++; + $nomcourant = substr($nomcourant,$pos); + $nomcourant = trim(substr($nomcourant,0,strrpos($nomcourant,'.'))); + $fichier = $VLC['url_current']; + $film=$nomcourant; + include($MODULE.'films/fichefilm.php'); + $smarty->assign('content',$contenant); + } + + //-- Choix du format Video + if($module=='video'){ + $smarty->assign('video',$video); + $smarty->assign('pp_video',$pp_video); + } + + //Choix de la piste audio + if($module=='audio'){ + $smarty->assign('audio',$audio); + } + + //Choix du fichier de sous-titre + if($module=='sstitre'){ + foreach($sub_margin as $key => $value){ + $_sub_margin = $key; + } + foreach($fontcolor as $key => $value){ + $_fontcolor = $key; + } + foreach($ffontsize as $key => $value){ + $_ffontsize = $key; + } + if($_fontcolor =="" OR $_fontcolor == "0"){ + $_fontcolor = '16777215'; + } + if($_ffontsize==""){ + $_ffontzise = '32'; + } + $smarty->assign('ffontsize',convert_size($_ffontsize)); + $smarty->assign('fontcolor',$_fontcolor); + $smarty->assign('sub_margin',$_sub_margin); + $smarty->assign('sstitre',$sstitre); + } + + //Choix du chapitre + if($module=='navigation'){ + $smarty->assign('chapitre',$chapitre); + } +//--Fin des options + +// Synth\xE8se du nom du fichier if ($VLC['name_current'] == "current_node_name") { $nomcourant = "Aucun fichier en lecture"; }else{ @@ -45,16 +148,16 @@ $nomcourant = trim(substr($nomcourant,0,strrpos($nomcourant,'.'))); } -$temps_affich=calcul_hours($VLC['duree_courante']).' / '.calcul_hours($VLC['duree_totale']).' ('.$VLC['pourcentage_courant'].'%)'; + $temps_affich=calcul_hours($VLC['duree_courante']).' / '.calcul_hours($VLC['duree_totale']).' ('.$VLC['pourcentage_courant'].'%)'; $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/lecture.php'; - $LINK['options']=$RACINE_REP.'lecteur/options.php?module=video'; + $LINK['options']=$MODULE.'films/lecture.php'; $LINK['blue']=$MODULE.'films/lecture.php?savesignet=1'; $LINK['red']=$MODULE.'films/lecture.php?next_ss=1'; - $LINK['yellow']=$RACINE_REP.'lecteur/options.php?module=infos'; + $LINK['info']=$MODULE.'films/info.php?module=infos'; if(in_array($VLC['type_current'],array('cd','audio','photo'))){ $META['refresh']= '2;url='.page_retour_film(); Modified: trunk/module/films/lecture.php =================================================================== --- trunk/module/films/lecture.php 2007-02-21 16:37:43 UTC (rev 78) +++ trunk/module/films/lecture.php 2007-02-22 17:07:00 UTC (rev 79) @@ -229,10 +229,10 @@ $LINK['play']=$MODULE.'films/lecture.php?control=play'; $LINK['pause']=$MODULE.'films/lecture.php?control=pause'; $LINK['info']=$MODULE.'films/info.php'; -$LINK['options']=$RACINE_REP.'lecteur/options.php?module=video'; +$LINK['options']=$MODULE.'films/info.php'; $LINK['blue']=$MODULE.'films/lecture.php?savesignet=1'; $LINK['red']=$MODULE.'films/lecture.php?next_ss=1'; -$LINK['yellow']=$RACINE_REP.'lecteur/options.php?module=infos'; +$LINK['yellow']=$MODULE.'films/info.php?module=infos'; $LINK['up']=$MODULE.'films/lecture.php?seek_value=plus'; $LINK['down']=$MODULE.'films/lecture.php?seek_value=moins'; Modified: trunk/module/films/play.php =================================================================== --- trunk/module/films/play.php 2007-02-21 16:37:43 UTC (rev 78) +++ trunk/module/films/play.php 2007-02-22 17:07:00 UTC (rev 79) @@ -112,13 +112,22 @@ play_multiple_fichier($basename, $play, $add); } - $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['options']=$RACINE_REP.'lecteur/options.php?module=video'; - $LINK['blue']=$MODULE.'films/lecture.php?savesignet=1'; - $LINK['red']=$MODULE.'films/lecture.php?next_ss=1'; - $LINK['yellow']=$RACINE_REP.'lecteur/options.php?module=infos'; + $LINK['stop']=$MODULE.'films/lecture.php?control=stop'; + $LINK['play']=$MODULE.'films/lecture.php?control=play'; + $LINK['pause']=$MODULE.'films/lecture.php?control=pause'; + $LINK['info']=$MODULE.'films/info.php'; + $LINK['options']=$MODULE.'films/info.php'; + $LINK['blue']=$MODULE.'films/lecture.php?savesignet=1'; + $LINK['red']=$MODULE.'films/lecture.php?next_ss=1'; + $LINK['yellow']=$MODULE.'films/info.php?module=infos'; + $LINK['up']=$MODULE.'films/lecture.php?seek_value=plus'; + $LINK['down']=$MODULE.'films/lecture.php?seek_value=moins'; + + // BDE - RequestID 1588902 + $LINK['next']=$MODULE.'films/lecture.php?control=next'; + $LINK['prev']=$MODULE.'films/lecture.php?control=previous'; + $LINK['rev']=$MODULE.'films/lecture.php?seek_value=moins'; + $LINK['fwd']=$MODULE.'films/lecture.php?seek_value=plus'; $db = sqlite_open($USER.'utilisateur.db', 0666); Modified: trunk/module/films/playba.php =================================================================== --- trunk/module/films/playba.php 2007-02-21 16:37:43 UTC (rev 78) +++ trunk/module/films/playba.php 2007-02-22 17:07:00 UTC (rev 79) @@ -18,13 +18,22 @@ play_fichier('type=40',str_replace(' ','%20',$basename),0,'ba',$_REQUEST['titre']); - $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['options']=$RACINE_REP.'lecteur/options.php?module=video'; - $LINK['blue']=$MODULE.'films/lecture.php?savesignet=1'; - $LINK['red']=$MODULE.'films/lecture.php?next_ss=1'; - $LINK['yellow']=$RACINE_REP.'lecteur/options.php?module=infos'; + $LINK['stop']=$MODULE.'films/lecture.php?control=stop'; + $LINK['play']=$MODULE.'films/lecture.php?control=play'; + $LINK['pause']=$MODULE.'films/lecture.php?control=pause'; + $LINK['info']=$MODULE.'films/info.php'; + $LINK['options']=$MODULE.'films/info.php'; + $LINK['blue']=$MODULE.'films/lecture.php?savesignet=1'; + $LINK['red']=$MODULE.'films/lecture.php?next_ss=1'; + $LINK['yellow']=$MODULE.'films/info.php?module=infos'; + $LINK['up']=$MODULE.'films/lecture.php?seek_value=plus'; + $LINK['down']=$MODULE.'films/lecture.php?seek_value=moins'; + + // BDE - RequestID 1588902 + $LINK['next']=$MODULE.'films/lecture.php?control=next'; + $LINK['prev']=$MODULE.'films/lecture.php?control=previous'; + $LINK['rev']=$MODULE.'films/lecture.php?seek_value=moins'; + $LINK['fwd']=$MODULE.'films/lecture.php?seek_value=plus'; ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> Modified: trunk/module/horloge/index1.php =================================================================== --- trunk/module/horloge/index1.php 2007-02-21 16:37:43 UTC (rev 78) +++ trunk/module/horloge/index1.php 2007-02-22 17:07:00 UTC (rev 79) @@ -1,14 +1,571 @@ -<?php -$RACINE_REP = "../../"; -require($RACINE_REP.'_framework/framework.php'); - -$LINK['red']= page_retour_menu(); - - $META['refresh']='30;url=index1.php'; - - $smarty->assign('TITRE','Here is the current time (lol)'); - - $smarty->assign('CONTENT',$smarty->fetch('horloge.tpl')); - $smarty->display('interface.tpl'); - -?> +<?php +$RACINE_REP = "../../"; +require($RACINE_REP.'_framework/framework.php'); + +$LINK['red']= $MODULE.'_menu/menu.php?cat=9'; + +global $affichage,$level, $nb_joueurs, $nb_win, $fini; + +if ($_GET['rep']) { + $level = $_GET['level']; +}else{ + $level=1; +} + + +$MENU_ALT=array( + array('lien'=>'index1.php?level=1', 'nom'=>'LEVEL 1', 'selected'=>$level=='1'), + array('lien'=>'index1.php?level=2', 'nom'=>'LEVEL 2', 'selected'=>$level=='2'), + array('lien'=>'index1.php?level=3', 'nom'=>'LEVEL 3', 'selected'=>$level=='3') + ); + + +$affichage=""; + +$nb_joueurs1=0; +$nb_joueurs2=0; +$nb_joueurs3=0; + + if(isset($_GET['level'])){ $level=$_GET['level']; } elseif(isset($_GET['level'])){ $level=$_GET['level']; } + if(!isset($_GET['tour'])) { $tour=0; } else { $tour=$_GET['tour']; } + if(isset($_GET['fini'])){ $fini = $_GET['fini']; } else { $fini=0; } + $joue=0; + $jouer_1=0; + $jouer_2=0; + $jouer_3=0; + + if(!isset($_GET['t11'])) { $tab[1][1]='-'; } elseif(isset($_GET['st11'])){ $tab[1][1] = 'b'; } else { $tab[1][1] = $_GET['t11']; } + if(!isset($_GET['t12'])) { $tab[1][2]='-'; } elseif(isset($_GET['st12'])){ $tab[1][2] = 'b'; } else { $tab[1][2] = $_GET['t12']; } + if(!isset($_GET['t13'])) { $tab[1][3]='-'; } elseif(isset($_GET['st13'])){ $tab[1][3] = 'b'; } else { $tab[1][3] = $_GET['t13']; } + if(!isset($_GET['t21'])) { $tab[2][1]='-'; } elseif(isset($_GET['st21'])){ $tab[2][1] = 'b'; } else { $tab[2][1] = $_GET['t21']; } + if(!isset($_GET['t22'])) { $tab[2][2]='-'; } elseif(isset($_GET['st22'])){ $tab[2][2] = 'b'; } else { $tab[2][2] = $_GET['t22']; } + if(!isset($_GET['t23'])) { $tab[2][3]='-'; } elseif(isset($_GET['st23'])){ $tab[2][3] = 'b'; } else { $tab[2][3] = $_GET['t23']; } + if(!isset($_GET['t31'])) { $tab[3][1]='-'; } elseif(isset($_GET['st31'])){ $tab[3][1] = 'b'; } else { $tab[3][1] = $_GET['t31']; } + if(!isset($_GET['t32'])) { $tab[3][2]='-'; } elseif(isset($_GET['st32'])){ $tab[3][2] = 'b'; } else { $tab[3][2] = $_GET['t32']; } + if(!isset($_GET['t33'])) { $tab[3][3]='-'; } elseif(isset($_GET['st33'])){ $tab[3][3] = 'b'; } else { $tab[3][3] = $_GET['t33']; } + + // on d\xE9finit les lignes qui seront test\xE9es lors du jeu + $row1 = $tab[1][1] . $tab[1][2] . $tab[1][3]; + $row2 = $tab[2][1] . $tab[2][2] . $tab[2][3]; + $row3 = $tab[3][1] . $tab[3][2] . $tab[3][3]; + $row4 = $tab[1][1] . $tab[2][2] . $tab[3][3]; + $row5 = $tab[3][1] . $tab[2][2] . $tab[1][3]; + $row6 = $tab[1][1] . $tab[2][1] . $tab[3][1]; + $row7 = $tab[1][2] . $tab[2][2] . $tab[3][2]; + $row8 = $tab[1][3] . $tab[2][3] . $tab[3][3]; + + // ces valeurs ne sont utiles que lors du d\xE9veloppement/ d\xE9buggage + $ligne[1][1] = '1-1'; + $ligne[1][2] = '1-2'; + $ligne[1][3] = '1-3'; + $ligne[2][1] = '2-1'; + $ligne[2][2] = '2-2'; + $ligne[2][3] = '2-3'; + $ligne[3][1] = '3-1'; + $ligne[3][2] = '3-2'; + $ligne[3][3] = '3-3'; + $ligne[4][1] = '1-1'; + $ligne[4][2] = '2-2'; + $ligne[4][3] = '3-3'; + $ligne[5][1] = '3-1'; + $ligne[5][2] = '2-2'; + $ligne[5][3] = '1-3'; + $ligne[6][1] = '1-1'; + $ligne[6][2] = '2-1'; + $ligne[6][3] = '3-1'; + $ligne[7][1] = '1-2'; + $ligne[7][2] = '2-2'; + $ligne[7][3] = '3-2'; + $ligne[8][1] = '1-3'; + $ligne[8][2] = '2-3'; + $ligne[8][3] = '3-3'; + + //------------------- + // Fonction de conversion des lignes de type $tab[x][y] + // pour ressortir la coordonn\xE9e des cases (comprise entre 1 et 3) + //------------------- + + function cv($i, $j) + { + // si $tab[6][2] alors val1C=2 val2c=1 + if($i>3) + { + if($i==4 && $j==1) { $valc1=1; $valc2=1; } + if($i==4 && $j==2) { $valc1=2; $valc2=2; } + if($i==4 && $j==3) { $valc1=3; $valc2=3; } + if($i==5 && $j==1) { $valc1=3; $valc2=1; } + if($i==5 && $j==2) { $valc1=2; $valc2=2; } + if($i==5 && $j==3) { $valc1=1; $valc2=3; } + if($i==8 && $j==1) { $valc1=1; $valc2=3; } + if($i==6 && $j==1) { $valc1=1; $valc2=1; } + if($i==6 && $j==2) { $valc1=2; $valc2=1; } + if($i==6 && $j==3) { $valc1=3; $valc2=1; } + if($i==7 && $j==1) { $valc1=1; $valc2=2; } + if($i==7 && $j==2) { $valc1=2; $valc2=2; } + if($i==7 && $j==3) { $valc1=3; $valc2=2; } + if($i==8 && $j==1) { $valc1=1; $valc2=3; } + if($i==8 && $j==2) { $valc1=2; $valc2=3; } + if($i==8 && $j==3) { $valc1=3; $valc2=3; } + } + else + { + $valc1=$i; + $valc2=$j; + } + + return array($valc1,$valc2); + } + + + if($tour!=0 && $fini!=true) + { + if($tour==1) + { + /*--------*/ + /* TOUR 1 */ + /*--------*/ + + // si le joueur a jou\xE9 au centre alors on joue dans un coin + if($tab[2][2] == 'b' && $joue != true) + { + $valr1 = ((rand(1,2)*2)-1); + $valr2 = ((rand(1,2)*2)-1); + $tab[$valr1][$valr2] = 'a'; + $joue = true; + } + + // si le joueur a jou\xE9 dans un coin alors on joue au centre + if(($tab[1][1] == 'b' | $tab[1][3] == 'b' | $tab[3][1] == 'b' | $tab[3][3] == 'b') && $joue != true) + { + $tab[2][2] = 'a'; + $joue = true; + } + + // si le joueur a jou\xE9 au milieu d'une ligne alors on joue au centre + if(($tab[1][2] == 'b' | $tab[2][1] == 'b' | $tab[2][3] == 'b' | $tab[3][2] == 'b') && $joue != true) + { + $tab[2][2] = 'a'; + $joue = true; + } + } + + elseif($tour>1 | !$tour) + { + if($level==3) + { + /*----------------------------*/ + /* PHASE 1 : PEUT ON GAGNER ? */ + /*----------------------------*/ + + // Au d\xE9but de chaque tour, on regarde si il est possible de gagner + for($i=1;$i<9;$i++) + { + $var = 'row'.$i; + $combi = $$var; + + if($combi=='a-a' && $joue!=true) + { + $j=2; + list($val1, $val2) = cv($i, $j); + $tab[$val1][$val2] = 'a'; + $joue=true; + } + + if($combi=='aa-' && $joue!=true) + { + $j=3; + list($val1, $val2) = cv($i, $j); + $tab[$val1][$val2] = 'a'; + $joue=true; + } + + if($combi=='-aa' && $joue!=true) + { + $j=1; + list($val1, $val2) = cv($i, $j); + $tab[$val1][$val2] = 'a'; + $joue=true; + } + + } + + /*--------------------------------------*/ + /* PHASE 2 : LE JOUEUR PEUT IL GAGNER ? */ + /*--------------------------------------*/ + + // Au d\xE9but de chaque tour, on regarde si le joueur adverse peut gagner (b-b ou bb- ou -bb) + + for($i=1;$i<9;$i++) + { + $var = 'row'.$i; + $combi = $$var; + + if($combi=='b-b' && $joue!=true) + { + $j=2; + list($val1, $val2) = cv($i, $j); + $tab[$val1][$val2] = 'a'; + $joue=true; + } + + if($combi=='bb-' && $joue!=true) + { + $j=3; + list($val1, $val2) = cv($i, $j); + $tab[$val1][$val2] = 'a'; + $joue=true; + } + + if($combi=='-bb' && $joue!=true) + { + $j=1; + list($val1, $val2) = cv($i, $j); + $tab[$val1][$val2] = 'a'; + $joue=true; + } + } + + /*-------------------------------------------*/ + /* PHASE 3 : OU JOUER SI LA VOIE EST LIBRE ? */ + /*-------------------------------------------*/ + + // Si on ne peut pas gagner et que le joueur ne peut pas non plus gagner ce tour, alors on joue + // Mais attention, on joue "intelligemment". + + if($joue!=true) + { + for($i=1;$i<9;$i++) + { + $var = 'row'.$i; + $combi = $$var; + + if($tour==2 && $joue!=true && ($row4=='bab' | $row5=='bab')) + { + $tab[1][2] = 'a'; + $joue=true; + } + + // teste le cas o\xF9 on doit jouer coin \xE0 cot\xE9 des deux croix pour ne pas perdre + elseif($tour==2 && $joue!=true && ($row2=='ba-' | $row7=='-ab')) + { + $tab[3][1] = 'a'; + $joue=true; + } + elseif($tour==2 && $joue!=true && ($row2=='-ab' | $row7=='-ab')) + { + $tab[3][3] = 'a'; + $joue=true; + } + elseif($tour==2 && $joue!=true && ($row2=='ba-' | $row7=='ba-')) + { + $tab[1][1] = 'a'; + $joue=true; + } + elseif($tour==2 && $joue!=true && ($row2=='-ab' | $row7=='ba-')) + { + $tab[1][3] = 'a'; + $joue=true; + } + + $aab=0; + $baa=0; + + if($i<4) + { + // aab, donc il faut jouer coin haut-droite ou bas-droite + // baa, donc il faut jouer coin haut-gauche ou bas-gauche + if($tour==3 && $aab!=0 && $joue!=true) + { + $j = 3; + list($val1, $val2) = cv($i, $j); + $tab[$val1][$val2] = 'a'; + $joue=true; + } + if($tour==3 && $baa!=0 && $joue!=true) + { + $j=1; + list($val1, $val2) = cv($i, $j); + $tab[$val1][$val2] = 'a'; + $joue=true; + } + if($combi=='aab') + { + $aab++; + } + if($combi=='baa') + { + $baa++; + } + } + + if($combi=='-a-' && $tab[2][2]=='a' && $i==2 && $joue!=true) + { + if($tab[1][1]=='b') + { + $tab[3][1] = 'a'; + $joue=true; + } + elseif($tab[1][3]=='b') + { + $tab[3][3] = 'a'; + $joue=true; + } + elseif($tab[3][1]=='b') + { + $tab[1][1] = 'a'; + $joue=true; + } + elseif($tab[3][3]=='b') + { + $tab[1][3] = 'a'; + $joue=true; + } + } + + elseif($combi=='-a-' && $tab[2][2]=='a' && $i==7 && $joue!=true) + { + if($tab[1][1]=='b') + { + $tab[1][3] = 'a'; + $joue=true; + } + elseif($tab[1][3]=='b') + { + $tab[1][1] = 'a'; + $joue=true; + } + elseif($tab[3][1]=='b') + { + $tab[3][3] = 'a'; + $joue=true; + } + elseif($tab[3][3]=='b') + { + $tab[3][1] = 'a'; + $joue=true; + } + } + + elseif($combi=='--a' && $joue!=true) + { + $j=1; + list($val1, $val2) = cv($i, $j); + $tab[$val1][$val2] = 'a'; + $joue=true; + } + + // on regarde les cases vides pour jouer al\xE9atoirement si on a rien de mieux a faire + if($joue!=true) + { + + // peut-on jouer en case 1 ? Si oui on enregistre la case possible + if($combi=='-bb' | $combi=='-aa' | $combi=='-ab' | $combi=='-ba' | $combi=='---' | $combi=='--a' | $combi=='--b' | $combi=='-b-' | $combi=='-a-') + { + $jouer_1=true; + $val_1=$i; + } + + // peut-on jouer en case 2 ? Si oui on enregistre la case possible + if($combi=='b-b' | $combi=='a-a' | $combi=='a-b' | $combi=='b-a' | $combi=='---' | $combi=='--a' | $combi=='--b' | $combi=='b--' | $combi=='a--') + { + $jouer_2=true; + $val_2=$i; + } + + // peut-on jouer en case 3 ? Si oui on enregistre la case possible + if($combi=='bb-' | $combi=='aa-' | $combi=='ab-' | $combi=='ba-' | $combi=='---' | $combi=='-a-' | $combi=='-b-' | $combi=='b--' | $combi=='a--') + { + $jouer_3=true; + $val_3=$i; + } + + } + + } // for($i=1;$i<9;$i++) + + // si l'on a pas r\xE9ussi a jouer avec tous les tests pr\xE9c\xE9dents + // alors on joue al\xE9atoirement dans une case vide + // c'est la meilleure - et seule - solution ! + if($joue!=true) + { + // on joue case 1 si on a pas jou\xE9 + if($jouer_1==true && $joue!=true) + { + $j=1; + $i=$val_1; + list($val1, $val2) = cv($i, $j); + $tab[$val1][$val2] = 'a'; + $joue=true; + } + + // on joue case 2 si on a pas jou\xE9 + if($jouer_2==true && $joue!=true) + { + $j=2; + $i=$val_2; + list($val1, $val2) = cv($i, $j); + $tab[$val1][$val2] = 'a'; + $joue=true; + } + + // on joue case 3 si on a pas jou\xE9 + if($jouer_3==true && $joue!=true) + { + $j=3; + $i=$val_3; + list($val1, $val2) = cv($i, $j); + $tab[$val1][$val2] = 'a'; + $joue=true; + } + } // if $joue!=true + } // if($joue!=true) + } // if($level==3) + // si $level==2 n'est pas inhumain + // alors on joue l\xE0 ou on peut, sans r\xE9fl\xE9chir. + else + { + for($i=1;$i<4;$i++) + { + if($joue!=true) + { + for($j=1;$j<4;$j++) + { + if($tab[$i][$j]=='-' && $joue!=true) + { + $tab[$i][$j] = 'a'; + $joue=true; + } + } + } + } + } // else (if + + + /*-------------------------------------*/ + /* PHASE 4 : PERDU, GAGNE, MATCH NUL ? */ + /*-------------------------------------*/ + + // on red\xE9finit les lignes apr\xE8s le traitement + // du jeu du computer pour tester la victoire + + $row1 = $tab[1][1] . $tab[1][2] . $tab[1][3]; + $row2 = $tab[2][1] . $tab[2][2] . $tab[2][3]; + $row3 = $tab[3][1] . $tab[3][2] . $tab[3][3]; + $row4 = $tab[1][1] . $tab[2][2] . $tab[3][3]; + $row5 = $tab[3][1] . $tab[2][2] . $tab[1][3]; + $row6 = $tab[1][1] . $tab[2][1] . $tab[3][1]; + $row7 = $tab[1][2] . $tab[2][2] . $tab[3][2]; + $row8 = $tab[1][3] . $tab[2][3] . $tab[3][3]; + + if($fini!=true) + { + for($i=1;$i<9;$i++) + { + $var = 'row'.$i; + $combi = $$var; + if($combi == 'aaa') + { + $affichage.="<h2>PERDU !</h2>"; + $fini=true; + } + if($combi == 'bbb' && $fini!=true) + { + $affichage.="<h2>GAGNE !</H2>"; + $fini=true; + } + } + } // if fini!=true + } // if $tour>1 | !$tour + } // if($tour!=0 && $fini!=true) + + + // si on est au cinqui\xE8me tour et qu'il + // n'y a pas de vainqueur, alors match nul + if($tour==5 && $fini!=true) + { + $affichage.="<h2>MATCH NUL !</h2>"; + $fini=true; + } + + // sinon on incr\xE9mente le compteur tour + // (jusqu'\xE0 ce que sa valeur soit 5) + else + { + $tour++; + } + + /*----------------*/ + /* AFFICHAGE HTML */ + /*----------------*/ + + $t11 = $tab[1][1]; + $t12 = $tab[1][2]; + $t13 = $tab[1][3]; + $t21 = $tab[2][1]; + $t22 = $tab[2][2]; + $t23 = $tab[2][3]; + $t31 = $tab[3][1]; + $t32 = $tab[3][2]; + $t33 = $tab[3][3]; + + $affichage.="<table border=\"1\" cellpadding=\"1\" cellspacing=\"1\" bgcolor=\"#FFFFFF22\" align=\"center\">"; + $affichage.="<tr>"; + + $affichage.="<tr>\n\r"; + + $query="level=$level"; + $query.="&tour=$tour"; + $query.="&fini=$fini"; + $query.="&t11=$t11"; + $query.="&t12=$t12"; + $query.="&t13=$t13"; + $query.="&t21=$t21"; + $query.="&t22=$t22"; + $query.="&t23=$t23"; + $query.="&t31=$t31"; + $query.="&t32=$t32"; + $query.="&t33=$t33"; + + if($t11=='-') { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><a href=\"index1.php?st11=b&$query\">X</a></td>\n"; } + else { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><img src=\"$t11.gif\" width=\"50\" height=\"54\">\n"; } + + if($t12=='-') { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><a href=\"index1.php?st12=1&$query\">X</a></td>\n"; } + else { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><img src=\"$t12.gif\" width=\"50\" height=\"54\"></td>\n"; } + + if($t13=='-') { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><a href=\"index1.php?st13=1&$query\">X</a></td>\n"; } + else { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><img src=\"$t13.gif\" width=\"50\" height=\"54\"></td>\n"; } + + $affichage.="</tr>\n<tr>\n"; + if($t21=='-') { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><a href=\"index1.php?st21=1&$query\">X</a></td>\n"; } + else { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><img src=\"$t21.gif\" width=\"50\" height=\"54\"></td>\n"; } + + if($t22=='-') { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><a href=\"index1.php?st22=1&$query\">X</a></td>\n"; } + else { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><img src=\"$t22.gif\" width=\"50\" height=\"54\"></td>\n"; } + + if($t23=='-') { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><a href=\"index1.php?st23=1&$query\">X</a></td>\n"; } + else { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><img src=\"$t23.gif\" width=\"50\" height=\"54\"></td>\n"; } + + $affichage.="</tr>\n<tr>\n"; + if($t31=='-') { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><a href=\"index1.php?st31=1&$query\">X</a></td>\n"; } + else { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><img src=\"$t31.gif\" width=\"50\" height=\"54\"></td>\n"; } + + if($t32=='-') { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><a href=\"index1.php?st32=1&$query\">X</a></td>\n"; } + else { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><img src=\"$t32.gif\" width=\"50\" height=\"54\"></td>\n"; } + + if($t33=='-') { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><a href=\"index1.php?st33=1&$query\">X</a></td>\n"; } + else { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><img src=\"$t33.gif\" width=\"50\" height=\"54\"></td>\n"; } + + $affichage.="</tr>\n</table> + <br> + <br><font size=\"1\"> + Jeu du Morpion adapt\xE9 pour EasyBox par InPhoVid (06/2006)<br> + Jeu du Morpion imbattable d\xE9velopp\xE9 en php. License GPL. Auteur : Matthieu Aubry + </font> + </center> + "; + +$smarty->assign('TITRE','MORPION'); +$smarty->assign('affichage',$affichage); +$smarty->assign('CONTENT',$smarty->fetch('generique.tpl')); +$smarty->display('interface.tpl'); +?> Modified: trunk/module/meteo/f2-france-512x384-j0pm.jpg =================================================================== (Binary files differ) Modified: trunk/module/modules/index1.php =================================================================== --- trunk/module/modules/index1.php 2007-02-21 16:37:43 UTC (rev 78) +++ trunk/module/modules/index1.php 2007-02-22 17:07:00 UTC (rev 79) @@ -2,14 +2,34 @@ $RACINE_REP = "../../"; require($RACINE_REP.'_framework/framework.php'); +if(isset($_GET['setskinid']) and $_GET['valide']==1){ + change_skin($_GET['setskinid']); + $smarty->assign('TITRE','La skin va changer'); + $META['refresh']= '1;url=index1.php?skinchanged=1&action='.$_GET['action']; + $smarty->assign('AVERTISSEMENT','Chargement de la nouvelle skin... Veuillez patienter quelques instants...'); + $smarty->display('avertissement.tpl'); +}elseif(isset($_GET['setskinid'])){ + $smarty->assign('TITRE','Voulez-vous vraiment changer de skin ?'); + $smarty->assign('AVERTISSEMENT','<a href="index1.php?action='.$_GET['action'].'&setskinid='.$_GET['setskinid'].'&valide=1">Oui</a> - <a href="index1.php?action='.$_GET['action'].'">Non</a>'); + $smarty->display('avertissement.tpl'); +}else{ + +if(isset($_GET['skinchanged'])){ + get_module_list(); + list_templates(); +} + $LINK['red']= page_retour_menu(); $MENU_ALT=array(array('lien'=>'index1.php?action=mod', 'nom'=>'Modules install\xE9s', 'selected'=>$_GET['action']=='mod'), - array('lien'=>'index1.php?action=newmod', 'nom'=>'Nouveaux modules', 'selected'=>$_GET['action']=='newmod'), + array('lien'=>'index1.php?action=newmod', 'nom'=>'Nouv. modules', 'selected'=>$_GET['action']=='newmod'), array('lien'=>'index1.php?action=skin', 'nom'=>'Skins install\xE9es', 'selected'=>$_GET['action']=='skin'), - array('lien'=>'index1.php?action=newskin', 'nom'=>'Nouvelles skins', 'selected'=>$_GET['action']=='newskin'), + array('lien'=>'index1.php?action=newskin', 'nom'=>'Nouv. skins', 'selected'=>$_GET['action']=='newskin'), array('lien'=>'index1.php?action=options', 'nom'=>'Option', 'selected'=>$_GET['action']=='options')); +(isset($_GET['min'])?$min=$_GET['min']:$min=0); +$smarty->assign('MIN',$min); + if(!isset($_GET['action'])){ $_GET['action'] = 'mod'; } @@ -67,7 +87,7 @@ foreach($xml3->element as $elem){ if(!module_exists(utf8_decode($elem->nom)) and utf8_decode($elem->categorie)=='Module'){ - $MOD[] = array('nom'=> utf8_decode($elem->nom),'version'=> utf8_decode($elem->version),'description'=> utf8_decode($elem->description),'auteur'=> utf8_decode($elem->auteur),'fichier'=> utf8_decode($elem->fichier)); + $MOD[] = array('nom'=> utf8_decode($elem->nom),'version'=> utf8_decode($elem->version),'description'=> utf8_decode($elem->description),'auteur'=> utf8_decode($elem->auteur),'fichier'=> utf8_decode($elem->fichier),'img'=>'http://www.easybox-mod.org/modules/addon/screen/'.utf8_decode($elem->screen)); } } @@ -85,7 +105,7 @@ foreach($xml3->element as $element){ if(!module_exists(utf8_decode($element->nom)) and utf8_decode($element->categorie)=='Skin'){ - $MOD[] = array('nom'=>utf8_decode($element->nom),'version'=>utf8_decode($element->version),'description'=>utf8_decode($element->description),'auteur'=>utf8_decode($element->auteur),'fichier'=>utf8_decode($element->fichier)); + $MOD[] = array('nom'=>utf8_decode($element->nom),'version'=>utf8_decode($element->version),'description'=>utf8_decode($element->description),'auteur'=>utf8_decode($element->auteur),'fichier'=>utf8_decode($element->fichier),'img'=>'http://www.easybox-mod.org/modules/addon/screen/'.utf8_decode($elem->screen)); } } @@ -104,8 +124,8 @@ $smarty->assign('CONTENT',$smarty->fetch('modules.tpl')); $smarty->display('interface.tpl'); +} - ?> Modified: trunk/module/modules/modules.tpl =================================================================== --- trunk/module/modules/modules.tpl 2007-02-21 16:37:43 UTC (rev 78) +++ trunk/module/modules/modules.tpl 2007-02-22 17:07:00 UTC (rev 79) @@ -1,24 +1,30 @@ {if $action=="mod" OR $action=="skin"} - {section name=mod loop=$MOD} + {section name=mod loop=$MOD start=$MIN max=4} {if $smarty.section.mod.first} - <table width="500" border="0" cellspacing="0" cellpadding="0"> - <tr> - <td><font size=2><b>Nom</b></font></td> - <td><font size=2><b>Version</b></font></td> - <td><font size=2><b>Description</b></font></td> - <td><font size=2><b>Sup.</b></font></td> - </tr> + {if $MIN!=0} + {assign var=temp value=$MIN-4} + {attribbouton touche="green" lien="index1.php?action=$action&min=$temp"} + <a href="index1.php?action={$action}&min={$temp}"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> Pr\xE9c\xE9dent</a> {/if} - {cycle name=color assign=COLOR print=false values="`$smarty.config.COULEUR_INTERFACE1`,`$smarty.config.COULEUR_INTERFACE2`"} + <table width="500" border="0" cellspacing="0" cellpadding="2" align="left" valign="top"> + {/if} + <tr> - <td>{$MOD[mod].nom}</td> - <td>{$MOD[mod].version}</td> - <td>{$MOD[mod].description}</td> - <td width="20" bgcolor="{$COLOR}"><a href="index1.php?delid={$MOD[mod].id}&action={$action}"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{$COLOR}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}delete.gif" border="0" width="20" height="20"></td></tr></table></a></td> + <td align="left" valign="top"><img width="120" height="90" src="{$IMG2FBX}{$MOD[mod].img|realpath|urlencode}&new_width=120&new_height=90&cache=1"></td> + <td align="left" valign="top"><b><u>{$MOD[mod].nom}{if $action=="skin" AND $MOD[mod].current} - Skin actif{/if}</u></b><br> + <b>Version</b> : {$MOD[mod].version}<br> + <b>Description</b> : {$MOD[mod].description}</td> + {if $action=="skin"}{if NOT $MOD[mod].current}<td width="20"><a href="index1.php?setskinid={$MOD[mod].id}&action={$action}"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="#COULEUR_FOND1#" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}valider.gif" border="0" width="20" height="20"></td></tr></table></a></td>{else}<td> </td>{/if}{/if} + <td width="20"><a href="index1.php?delid={$MOD[mod].id}&action={$action}"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="#COULEUR_FOND1#" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}delete.gif" border="0" width="20" height="20"></td></tr></table></a></td> </tr> - {if $smarty.section.mod.last}</table>{/if} - - + {if $smarty.section.mod.last} + </table> + {if $MIN+$smarty.section.mod.total < count($MOD)} + {assign var=temp value=$MIN+4} + {attribbouton touche="blue" lien="index1.php?action=$action&min=$temp"} + <a href="index1.php?action={$action}&min={$temp}"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> Suivant</a> + {/if} + {/if} {sectionelse} {if $action=="skin"} Aucune skin suppl\xE9mentaire n'est install\xE9e. Pour en installer, rendez-vous dans la partie "Nouvelles skins". @@ -28,25 +34,31 @@ {/section} {elseif $action=="newmod" OR $action=="newskin"} {section name=mod loop=$MOD} + ... [truncated message content] |
From: <ara...@us...> - 2007-02-23 21:42:28
|
Revision: 84 http://svn.sourceforge.net/easybox-mod/?rev=84&view=rev Author: aragornis Date: 2007-02-23 13:42:19 -0800 (Fri, 23 Feb 2007) Log Message: ----------- Possibilit?\195?\169 de lire des mp3 pendant les diaporama Echange des notes visiteurs/presse r?\195?\169solu ds la lib allocin?\195?\169 Commencement de la refonte totale du module rss Possibilit?\195?\169 de cacher la barre d'outil lors d'un diaporama avec la touche info Correction du listing des mp3 dans la playlist Quand on lance un nouveau mp3, la playlist reste au niveau de ce mp3 Correction de l'importation d'images depuis google Suppression du fond d'?\195?\169cran sur la page d'erreur Modified Paths: -------------- trunk/_framework/fonctions_partagees.inc.php trunk/_framework/lib/get_info.php trunk/_utilisateur/rss.db trunk/configuration/rss.php trunk/erreur.php trunk/module/_explorateur/explorateur.tpl trunk/module/_explorateur/index1.php trunk/module/diaporama/index1.php trunk/module/diaporama/photo.tpl trunk/module/films/info.php trunk/module/modules/modules.tpl trunk/module/mp3/jaquette.php trunk/module/mp3/lecteuraudio.php trunk/module/mp3/playdb.php trunk/module/mp3/playlist_audio.tpl trunk/module/rss/index1.php trunk/module/rss/rss.tpl trunk/module/signet/index1.php trunk/skin/simple/framework_skin.php trunk/skin/simplegreen/couleur.conf trunk/skin/simplegreen/interface/barre1.gif trunk/skin/simplegreen/interface/barre2.gif trunk/skin/simplegreen/interface/barre3.gif trunk/skin/simplegreen/interface/player.gif trunk/skin/simplegreen/interface.tpl Added Paths: ----------- trunk/module/diaporama/zik.gif Removed Paths: ------------- trunk/lecteur/options.php trunk/skin/simple/option.tpl trunk/skin/simplegreen/option.tpl Modified: trunk/_framework/fonctions_partagees.inc.php =================================================================== --- trunk/_framework/fonctions_partagees.inc.php 2007-02-23 11:42:46 UTC (rev 83) +++ trunk/_framework/fonctions_partagees.inc.php 2007-02-23 21:42:19 UTC (rev 84) @@ -53,7 +53,12 @@ $query = sqlite_query($db,'SELECT * FROM var WHERE var=\''.$var.'\' LIMIT 1'); $result = sqlite_fetch_all($query, SQLITE_ASSOC); sqlite_close($db); - RETURN($result[0]['value']); + if(sqlite_num_rows($query)>=1){ + RETURN($result[0]['value']); + }else{ + RETURN false; + } + } //Supprime les variables de session Modified: trunk/_framework/lib/get_info.php =================================================================== --- trunk/_framework/lib/get_info.php 2007-02-23 11:42:46 UTC (rev 83) +++ trunk/_framework/lib/get_info.php 2007-02-23 21:42:19 UTC (rev 84) @@ -112,8 +112,8 @@ //Critique visiteurs $ereg = 'notepresse=(.{0,10})¬epublic=(.{0,10})'; preg_match("/$ereg/s", $filmrecherche, $valeur); - $res['critique_visiteurs'] = round(ereg_replace(",", ".", $valeur[1])); - $res['critique_presse'] = round(ereg_replace(",", ".", $valeur[2])); + $res['critique_visiteurs'] = round(ereg_replace(",", ".", $valeur[2])); + $res['critique_presse'] = round(ereg_replace(",", ".", $valeur[1])); //R\xE9cup\xE9ration de l'adresse de l'image $ereg = '<img src="http:\/\/a69.g.akamai.net\/n\/69\/10688\/v1\/img5.allocine.fr\/(.{1,70})" border="0" alt="" class="affichette" \/>'; Modified: trunk/_utilisateur/rss.db =================================================================== (Binary files differ) Modified: trunk/configuration/rss.php =================================================================== --- trunk/configuration/rss.php 2007-02-23 11:42:46 UTC (rev 83) +++ trunk/configuration/rss.php 2007-02-23 21:42:19 UTC (rev 84) @@ -33,7 +33,7 @@ for ($i=0; $i<=((count($signetsav)/2)-1); $i++) { sqlite_query($db,'INSERT INTO feeds VALUES( "'.$index++.'", - "'.$row['name'].'", + "'.$row['id'].'", "'.stripslashes($signetsav[(2*$i)]).'", "'.$signetsav[(2*$i)+1].'")'); } @@ -45,30 +45,30 @@ $resultsave = sqlite_query($db,$requete); while ($row = sqlite_fetch_array($result)) { - $requete2="SELECT * FROM feeds WHERE cat = '".$row[name]."'"; + $requete2="SELECT * FROM feeds WHERE cat = '".$row['id']."'"; $result2 = sqlite_query($db,$requete2); ?> - <u><?= $row[name]; ?></u> <a href="index1.php?page=7&delcat=<?= $row[id]; ?>">[x]</a> - <table><tr><td valign="middle"><select ondblclick="window.open('edit.php?form=form1&select=<?= $row[name]; ?>&id=' + document.getElementById('list<?= $row[name]; ?>').selectedIndex,'_blank','toolbar=0,location=0,directories=0,status=0,scrollbars=1,resizable=0,copyhistory=0,menuBar=0,width=800,height=250');" onchange="maj('<?= $row[name]; ?>')" size="<?= max((sqlite_num_rows($result2)+2),6); ?>" name="list<?= $row[name]; ?>" id="list<?= $row[name]; ?>" style="width:350;border: thin outset;font-size: 9px;" multiple="multiple"> + <u><?= $row['name']; ?></u> <a href="index1.php?page=7&delcat=<?= $row[id]; ?>">[x]</a> + <table><tr><td valign="middle"><select ondblclick="window.open('edit.php?form=form1&select=<?= $row['name']; ?>&id=' + document.getElementById('list<?= $row['name']; ?>').selectedIndex,'_blank','toolbar=0,location=0,directories=0,status=0,scrollbars=1,resizable=0,copyhistory=0,menuBar=0,width=800,height=250');" onchange="maj('<?= $row[name]; ?>')" size="<?= max((sqlite_num_rows($result2)+2),6); ?>" name="list<?= $row['name']; ?>" id="list<?= $row['name']; ?>" style="width:350;border: thin outset;font-size: 9px;" multiple="multiple"> <?php $i=0; while ($row2 = sqlite_fetch_array($result2)) { - echo '<option value="'.$row2[name].'|'.$row2[add].'">'.$row2[name].'</option>'; + echo '<option value="'.$row2['name'].'|'.$row2['add'].'">'.$row2['name'].'</option>'; } ?> </select></td><td> <br> - <input type="button" value="↑" onClick="TriListe('<?= $row[name]; ?>','-')"><br> - <input type="button" value="-" onClick="effacer('<?= $row[name]; ?>')"><br> - <input type="button" value="↓" onClick="TriListe('<?= $row[name]; ?>','+')"> + <input type="button" value="↑" onClick="TriListe('<?= $row['name']; ?>','-')"><br> + <input type="button" value="-" onClick="effacer('<?= $row['name']; ?>')"><br> + <input type="button" value="↓" onClick="TriListe('<?= $row['name']; ?>','+')"> </td></tr></table> - <input name="<?= $row[name]; ?>" id="<?= $row[name]; ?>" type="hidden" style="border: thin outset;font-size: 9px;" size="10000" value=""> + <input name="<?= $row['name']; ?>" id="<?= $row['name']; ?>" type="hidden" style="border: thin outset;font-size: 9px;" size="10000" value=""> <script language="Javascript"> maj('<?= $row[name]; ?>'); @@ -86,7 +86,7 @@ <select name="choix" id="addchoix" style="border: thin outset;font-size: 9px;"> <? while ($res = sqlite_fetch_array($resultsave)) { - echo '<option value="'.$res[name].'">'.$res[name].'</option>'; + echo '<option value="'.$res['name'].'">'.$res['name'].'</option>'; } sqlite_close($db); ?> Modified: trunk/erreur.php =================================================================== --- trunk/erreur.php 2007-02-23 11:42:46 UTC (rev 83) +++ trunk/erreur.php 2007-02-23 21:42:19 UTC (rev 84) @@ -2,6 +2,8 @@ $RACINE_REP = ""; require($RACINE_REP.'_framework/framework.php'); +$BACKGROUND = 'none'; + $META['refresh'] = '0;url=/_framework/demarrage.php'; $CONTENT = 'Une erreur est survenue. Une page n\'a pas \xE9t\xE9 trouv\xE9e ou n\'a pas \xE9t\xE9 ex\xE9cut\xE9e correctement. Easybox va red\xE9marrer...'; Deleted: trunk/lecteur/options.php =================================================================== --- trunk/lecteur/options.php 2007-02-23 11:42:46 UTC (rev 83) +++ trunk/lecteur/options.php 2007-02-23 21:42:19 UTC (rev 84) @@ -1,96 +0,0 @@ -<?php -$RACINE_REP = "../"; -require($RACINE_REP.'_framework/framework.php'); - -$module=$_GET['module']; - - -$LINK['red']=$RACINE_REP.'module/films/info.php'; -$LINK['options']=$RACINE_REP.'module/films/info.php'; - -$smarty->assign('module',$module); - - -if (isset($_GET['video'])){ - @readfile('http://localhost:8081/lecteur/modif-config.html?type=3&video='.$_GET['video'].'&pp='.$_GET['pp']); -} -if (isset($_GET['audio'])){ - @readfile('http://localhost:8081/lecteur/modif-config.html?type=2&type2=1&var=audio-es&value='.$_GET['audio']); -} -if (isset($_GET['sstitre'])){ - @readfile('http://localhost:8081/lecteur/modif-config.html?type=2&type2=2&var=spu-es&value='.$_GET['sstitre'].'&size='.$_GET['fontsize'].'&sub_margin='.$_GET['sub_margin'].'&color='.$_GET['fontcolor']); -}elseif(isset($_GET['fontcolor'])){ - @readfile('http://localhost:8081/lecteur/modif-config.html?type=2&type2=2&var=spu-es&value=0&size='.$_GET['fontsize'].'&sub_margin='.$_GET['sub_margin'].'&color='.$_GET['fontcolor']); -} -if (isset($_GET['chap'])){ - @readfile('http://localhost:8081/lecteur/modif-config.html?type=2&type2=3&var=chapter&value='.$_GET['chap']); -} - -//-- R\xE9cuperation des donn\xE9es de VLC -$contenu_html = @file_get_contents('http://localhost:8081/lecteur/options_vlc.html'); -eval($contenu_html); - -if($module=='infos'){ -$disable=1; - -$nomcourant = str_replace("\\", "/", $VLC['name_current']); -$pos = strrpos($nomcourant,"/"); -$pos++; -$nomcourant = substr($nomcourant,$pos); -$nomcourant = trim(substr($nomcourant,0,strrpos($nomcourant,'.'))); -$fichier = $VLC['url_current']; -$film=$nomcourant; - - include($MODULE.'films/fichefilm.php'); - $smarty->assign('content',$contenant); -} - -//-- Choix du format Video -if($module=='video'){ -$smarty->assign('video',$video); -$smarty->assign('pp_video',$pp_video); -} - -//Choix de la piste audio -if($module=='audio'){ -$smarty->assign('audio',$audio); -} - -//Choix du fichier de sous-titre -if($module=='sstitre'){ - -foreach($sub_margin as $key => $value){ - $_sub_margin = $key; -} -foreach($fontcolor as $key => $value){ - $_fontcolor = $key; -} -foreach($ffontsize as $key => $value){ - $_ffontsize = $key; -} -if($_fontcolor =="" OR $_fontcolor == "0"){ - $_fontcolor = '16777215'; -} -if($_ffontsize =="" OR $_ffontsize == "0"){ - $_ffontzise = '32'; -} - -$smarty->assign('ffontsize',$_ffontsize); -$smarty->assign('fontcolor',$_fontcolor); -$smarty->assign('sub_margin',$_sub_margin); -$smarty->assign('sstitre',$sstitre); -} - - -//Choix du chapitre -if($module=='navigation'){ -$smarty->assign('chapitre',$chapitre); -} - -?> - -</td></tr></table> - -<?php -$smarty->display('option.tpl'); -?> Modified: trunk/module/_explorateur/explorateur.tpl =================================================================== --- trunk/module/_explorateur/explorateur.tpl 2007-02-23 11:42:46 UTC (rev 83) +++ trunk/module/_explorateur/explorateur.tpl 2007-02-23 21:42:19 UTC (rev 84) @@ -1,5 +1,4 @@ {assign var=rep_encoded value=$REP|urlencode} - {section name=disques loop=$DISQUES} {if $smarty.section.disques.first} <table cellspacing="2" align="center" width="498" valign="middle"><tr valign="middle"> @@ -32,31 +31,21 @@ <table width="498" cellpadding="0" cellspacing="0" align="center" valign="middle"> -{if $PLAYREP OR $AFF_FAVORIS} -<tr><td colspan="2"><center> -{/if} +{assign var=N_affich value=$T_affich|@count} +{assign var=N_affich_reste value=$NUM_ROW_AFFICH|max:15} -{if $PLAYREP} -<img src="{$SKIN_REP}dossier/rep_all.gif" border="0" width="20" height="20"><a href="{$PAGE_LECT_REP}?toplay={$REP|urlencode}&type=playrep"> {$PLAYREP_TEXT|default:"Lire le r\xE9pertoire complet"}</a> -{/if} -{if $PLAYREP AND $AFF_FAVORIS} - - -{/if} - -{if $AFF_FAVORIS} -<img src="{$SKIN_REP}dossier/favoris.gif" width="20" height="20"> <a href="{$RACINE_REP}module/favoris/index1.php?ajout={$REP|urlencode}&nom={$REP}">Ajouter aux favoris</a> -{/if} - -{if $PLAYREP OR $AFF_FAVORIS} -</center></td></tr> -{/if} - +{*########## Affichage des raccourcis rapides ##########*} {assign var=curIndex value=1} {assign var=curTD value=0} {assign var=curTR value=0} {assign var=FromValue value=""} {assign var=ToValue value=""} + +{* Nombre de page et pr\xE9paration de la limitation \xE0 10 blocs *} +{assign var=nb_page value=$N_affich/$NUM_ROW_AFFICH|ceil} +{assign var=nb_page_par_case value=$nb_page/10|ceil} + {* Il faut d\xE9terminer le nombre de caract\xE8re pour afficher le nom des fichiers dans les blocs d'index*} {if $T_affich|@count/$NUM_ROW_AFFICH<=1} {assign var=indexLength value=0} @@ -71,9 +60,9 @@ {/if} {if $indexLength>0} - {section name=quickjump loop=$T_affich start=$0} + {section name=quickjump loop=$T_affich start=0} {if $smarty.section.quickjump.first} - <tr><td><table cellspacing="2" align="center" width="498" valign="middle" border="0"><tr valign="middle"> + <tr><td colspan="2"><table cellspacing="2" align="center" width="498" valign="middle" border="0"><tr valign="middle"> {/if} {if $curIndex==1} {assign var=FromValue value=$T_affich[quickjump]|strip_delimiters|truncate:$indexLength:"":true} @@ -91,16 +80,11 @@ {/if} {* Si l'on a le nombre de fichier par page ou que c'est le dernier, alors il faut \xE9crire le bloc*} - {if $curIndex==$NUM_ROW_AFFICH OR $smarty.section.quickjump.last} - <td valign="middle" border="1" align="center"><font size='1'><a href="{$PAGE_EXPLO}?start={$curTR*10+$curTD*$NUM_ROW_AFFICH}&directory={$REP|urlencode}&mode={$MODE}">{$FromValue} .. {$ToValue}</a></font></td> + {if $curIndex==$nb_page_par_case*$NUM_ROW_AFFICH OR $smarty.section.quickjump.last} + <td valign="middle" border="1" align="center"><font size='1'><a href="{$PAGE_EXPLO}?start={$curTR*10+$curTD*$NUM_ROW_AFFICH*$nb_page_par_case}&directory={$REP|urlencode}&mode={$MODE}">{$FromValue} .. {$ToValue}</a></font></td> {assign var=curTD value=$curTD+1} {* Chaque ligne du tableau ne peut pas d\xE9passer 10 cellules *} - {if $curTD==10} - </tr><tr> - {assign var=curTR value=$curTR+1} - {assign var=curTD value=0} - {/if} {assign var=curIndex value=0} {/if} @@ -112,6 +96,8 @@ {/section} {/if} +{*######## Fin Affichage des raccourcis rapides ########*} + {if $MIN!=0} {assign var=temp value=$MIN-$NUM_ROW_AFFICH|max:0} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> <a href="{$PAGE_EXPLO}?start={$MIN-$NUM_ROW_AFFICH|max:0}&directory={$REP|urlencode}&mode={$MODE}"><font size=2>Pr\xE9c\xE9dent</font></a> <a href="{$PAGE_EXPLO}?start=0&directory={$REP|urlencode}&mode={$MODE}"><font size=2>D\xE9but du r\xE9pertoire</font></a></td></tr> @@ -133,27 +119,36 @@ {assign var="rep_a_affich" value=$REP|cat:'/'|cat:$T_affich[files]} <tr><td colspan="2"><img src="{$SKIN_REP}dossier/folder.gif"> <font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_EXPLO}?directory={$rep_a_affich|realpath|urlencode}&mode={$MODE}">{$T_affich[files]|truncate:55|strip_delimiters}</a></font></td></tr> {else} -<tr><td><img src="{$SKIN_REP}dossier/{$ICONE_FICHIER}" width="16" height="16"> <font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_LECT}?{$OPT_LIENS}toplay_file={$T_affich[files]|urlencode}&toplay_rep={$REP|urlencode}">{$T_affich[files]|strip_delimiters|truncate:52}</a> -</font></td><td width="35"> +<tr><td width="35"> {if $AFF_INFO} {assign var="nb" value=$T_affich[files]|strrpos:"."} - <a href="fichefilm.php?start={$MIN}&comeback=expl&film={$T_affich[files]|substr:0:$nb|urlencode}&fichier={$REP|cat:'/'|cat:$T_affich[files]|realpath|urlencode}"><font size="1">info</font></a> + <a href="fichefilm.php?start={$MIN}&comeback=expl&film={$T_affich[files]|substr:0:$nb|urlencode}&fichier={$REP|cat:'/'|cat:$T_affich[files]|realpath|urlencode}"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}/information.gif" border="0" width="20" height="20"></td></tr></table></a> {/if} - </td></tr> + </td><td>{if NOT $AFF_INFO}<img src="{$SKIN_REP}dossier/{$ICONE_FICHIER}" width="16" height="16"> {/if}<font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_LECT}?{$OPT_LIENS}toplay_file={$T_affich[files]|urlencode}&toplay_rep={$REP|urlencode}">{$T_affich[files]|strip_delimiters|truncate:52}</a> +</font></td></tr> {/if} {/section} -{assign var=N_affich value=$T_affich|@count} -{assign var=N_affich_reste value=$NUM_ROW_AFFICH|max:15} - {if $MIN+$smarty.section.files.total<count($T_affich)} - -<tr><td colspan="2"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> <a href="{$PAGE_EXPLO}?start={$MIN+$smarty.section.files.total}&directory={$REP|urlencode}&mode={$MODE}"><font size=2>Suivant</font></a> - <font size=2><a href="{$PAGE_EXPLO}?start={$N_affich-$smarty.section.files.total}&directory={$REP|urlencode}&mode={$MODE}">Fin du r\xE9pertoire</a> - Page {$MIN/$NUM_ROW_AFFICH+1|ceil} / {$N_affich/$NUM_ROW_AFFICH|ceil}</font></td></tr> +<tr><td colspan="2"><table><tr><td><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> <a href="{$PAGE_EXPLO}?start={$MIN+$smarty.section.files.total}&directory={$REP|urlencode}&mode={$MODE}"><font size=2>Suivant</font></a> - <font size=2><a href="{$PAGE_EXPLO}?start={$N_affich-$smarty.section.files.total}&directory={$REP|urlencode}&mode={$MODE}">Fin du r\xE9pertoire</a> - Page {$MIN/$NUM_ROW_AFFICH+1|ceil} / {$N_affich/$NUM_ROW_AFFICH|ceil}</font></td> {assign var=temp value=$MIN+$smarty.section.files.total} {attribbouton touche="blue" lien="$PAGE_EXPLO?start=$temp&directory=$rep_encoded&mode=$MODE"} {else} -<tr><td colspan="2"><font size=2>Page {$MIN/$NUM_ROW_AFFICH+1|ceil} / {$N_affich/$NUM_ROW_AFFICH|ceil}</font></td></tr> +<tr><td colspan="2"><table><tr><td><font size=2>Page {$MIN/$NUM_ROW_AFFICH+1|ceil} / {$N_affich/$NUM_ROW_AFFICH|ceil}</font></td> {/if} + + +<td width="30" align="center"> +{if $PLAYREP} +<a href="{$PAGE_LECT_REP}?toplay={$REP|urlencode}&type=playrep"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$SKIN_REP}dossier/rep_all.gif" border="0" width="20" height="20"></td></tr></table></a> +{/if} +</td><td width="30" align="center"> +{if $AFF_FAVORIS} +<a href="{$RACINE_REP}module/favoris/index1.php?ajout={$REP|urlencode}&nom={$REP}"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$SKIN_REP}dossier/favoris.gif" border="0" width="20" height="20"></td></tr></table></a> +{/if} +</td></tr></table> +</td></tr> + {if $dvdmod} <tr><td colspan="2"><a href="index1.php?status=disques">Cliquez ici pour lire un dvd depuis un lecteur optique.</a></td></tr> {/if} Modified: trunk/module/_explorateur/index1.php =================================================================== --- trunk/module/_explorateur/index1.php 2007-02-23 11:42:46 UTC (rev 83) +++ trunk/module/_explorateur/index1.php 2007-02-23 21:42:19 UTC (rev 84) @@ -48,20 +48,13 @@ $min = 0; } + // Rechargement des disques if ($_GET['reload']=="1"){ save_variable('disques', serialize(DISQUES())); } - //Ajout dans la base de donn\xE9e pour les retours - if($extension==$ini['explorateur']['ext']){ - save_variable('lastexpl', 'explorateur'); - save_variable('lastrep', $rep); - save_variable('rep_min', $min); - save_variable('retour_fiche_film', 'explorateur'); - } - $extv = explode(",",$extension); $rep = realpath(stripslashes(urldecode($rep))); @@ -161,6 +154,20 @@ RETURN ($chemin); } + //Ajout dans la base de donn\xE9e pour les retours + if($extension==$ini['explorateur']['ext']){ + save_variable('lastexpl', 'explorateur'); + save_variable('lastrep', $rep); + save_variable('rep_min', $min); + save_variable('retour_fiche_film', 'explorateur'); + } + + // Gestion des num\xE9ros de page + $META['nochannel_page']=$apge_explo.'?directory='.urlencode($rep).'&mode='.$_GET['mode'].'&page=%d'; + if(isset($_GET['page'])){ + $min = ($_GET['page']-1)*14; + } + $smarty->assign('AFF_CDDA',$aff_cdda=="1" && strlen($rep_copy)<=3 && (PHP_OS == "WIN32" || PHP_OS == "WINNT")); $smarty->assign('AFF_LECTEUR',$dir_lecteur); $smarty->assign('AFF_FAVORIS',$aff_favoris); Modified: trunk/module/diaporama/index1.php =================================================================== --- trunk/module/diaporama/index1.php 2007-02-23 11:42:46 UTC (rev 83) +++ trunk/module/diaporama/index1.php 2007-02-23 21:42:19 UTC (rev 84) @@ -10,6 +10,23 @@ $ext_ok = explode(",",$extension); $ext = $ext_ok; +if (isset($_GET['show_band'])) { + $show_band = $_GET['show_band']; +}else{ + $show_band = get_variable('lastshowinfo'); + if($show_band != "non"){ + $show_band = "oui"; + } +} + +save_variable('lastshowinfo', $show_band); + +if($show_band == "non"){ + $show_band = false; +}else{ + $show_band = true; +} + if (isset($_GET['start'])) { $min = max($_GET['start'],0); }else{ @@ -155,7 +172,7 @@ $smarty->assign('T_Fichier',$T_Fichier); $smarty->assign('files',$files); -if (isset($_GET['image'])){ +if (isset($_GET['image'])){ $aff=$_GET['image']; } @@ -175,8 +192,52 @@ save_variable('lastrep', $rep); save_variable('photomin', $min); + + if(isset($aff)){ +if ($_GET['start_play']=='oui') { + $smarty->assign('start_play','non'); + + + if($pisteaudio=='TV'){ + $play = 'type=1'; + }elseif($pisteaudio=='PC'){ + $play = 'type=3'; + $decallage = $ini['multimedia']['compensation']; + $file2 = @readfile('http://127.0.0.1:8081/lecteur/modif-config.html?type=0&var=audio-desync&value='.$decallage); + }elseif($pisteaudio=='AC3'){ + // $META['aud'] = '69(en,ac3)'; + $play = 'type=5'; + } + + $db = sqlite_open($USER.'audio.db', 0666); + $query = 'SELECT max(id) FROM music'; + $result=sqlite_query($db, $query); + $row = sqlite_fetch_array($result); + $rand = rand(1,$row[0]-26); + $query = 'SELECT * FROM music WHERE ((id<="'.($rand+50).'") and (id>="'.$rand.'")) limit 25'; + $result=sqlite_query($db, $query); + + $variable = ''; + while ($row = sqlite_fetch_array($result)) { + $basename = $row[filename]; + $variable .= " + ".utf8_encode(realpath($basename)); + } + + $fp = fopen($AUDIOTEMP.'audiotemp'.get_variable('num_playlist').'.m3u',"w+"); + fputs($fp,"#EXTM3U"); + fputs($fp,$variable); + fclose($fp); + play_fichier('type=1',realpath($AUDIOTEMP.'audiotemp'.get_variable('num_playlist').'.m3u'),1,'mp3'); + $BACKGROUND = 'none'; + save_variable('num_playlist', get_variable('num_playlist')+1); +}else{ + $file1 = file_get_contents("http://127.0.0.1:8081/lecteur/action.html?control=stop"); + $smarty->assign('start_play','oui'); +} + if($delais){ $LINK['stop']='index1.php?start='.$min.'&rep='.urlencode($rep).'&image='.$aff.'&delais=0&tourne='.$tourne; $LINK['pause']='index1.php?start='.$min.'&rep='.urlencode($rep).'&image='.$aff.'&delais=0&tourne='.$tourne; @@ -185,6 +246,13 @@ $LINK['play']='index1.php?start='.$min.'&rep='.urlencode($rep).'&image='.$aff.'&delais=5&tourne='.$tourne; } +if($show_band){ + $LINK['info']='index1.php?start='.$min.'&rep='.urlencode($rep).'&image='.$aff.'&delais='.$delais.'&tourne='.$tourne.'&show_band=non'; +}else{ + $LINK['info']='index1.php?start='.$min.'&rep='.urlencode($rep).'&image='.$aff.'&delais='.$delais.'&tourne='.$tourne.'&show_band=oui'; +} + +$smarty->assign('show_band',$show_band); $smarty->assign('delais',$delais); $smarty->assign('aff',$aff); $smarty->display('photo.tpl'); @@ -199,3 +267,5 @@ $smarty->assign('CONTENT',$smarty->fetch('explorateur_photo.tpl')); $smarty->display('interface.tpl'); } + +?> Modified: trunk/module/diaporama/photo.tpl =================================================================== --- trunk/module/diaporama/photo.tpl 2007-02-23 11:42:46 UTC (rev 83) +++ trunk/module/diaporama/photo.tpl 2007-02-23 21:42:19 UTC (rev 84) @@ -15,19 +15,27 @@ <table width="635" height="510" border="0" cellpadding="0" cellspacing="0"><tr><td align="center" valign="top"> <table border="0" cellpadding="0" cellspacing="0" width="580" height="500"> <tr bgcolor="#0000003f"><td align="center" valign="middle" width="580" height="462"><img border=0 src="{$RACINE_REP}_framework/lib/img_cr.php?local=1&quality=max&formatw=570&formath=460&tourne={$tourne}&img={$REP|cat:'/'|cat:$files.$aff|urlencode}"></td></tr> + + {if $show_band} + <tr bgcolor="#00000000"><td width="580" height="3"><img src="transparent.gif" width="1" height="1"></td></tr> <tr><td width="580" height="35" bgcolor="#A3B7CD3f"> - <table border="0" cellpadding="0" cellspacing="0" width="580" bgcolor="#A3B7CD3f"><tr> - <td width="80" align="center">{if $aff >=1}<img src="{$INTERFACE_REP}btn_vert.gif" border="0"> <a href="index1.php?image={$prec}&start={$MIN}&rep={$rep_encoded}&delais={$delais}&tourne={$tourne}"><font size="1">Prec.</font></a>{else} {/if}</td> - <td width="200" align="center"><font size="1">{if $delais==0}<form name="form1" method="get" action="index1.php">Diaporama : <input name="delais" bgcolor="{#COULEUR_TEXTBOX#}" type=text value="" size=2 maxlength=2> sec<input name=image type=hidden value="{if $aff+1 == count($files)}0{else}{$aff}{/if}"><input name=rep type=hidden value="{$REP}"><input name=tourne type=hidden value="{$tourne}"><input name=start type=hidden value="{$MIN}"></form>{else}<a href="index1.php?rep={$REP|urlencode}&start={$MIN}&image={$aff}">Arr\xE9ter le diaporama</a> ({$delais}sec){/if}</font></td> - <td width="135" align="center"><a href="index1.php?start={$MIN}&rep={$REP|urlencode}&tosee={$aff}&force_back=1"><img src="{$INTERFACE_REP}btn_rouge.gif" border="0"><font size="1"> Expl.</font></a></td> - <td width="40" align="center"><font size="1">{$aff+1}/{$files|@count}</font></td> - <td width="20" align="center"><a href="index1.php?image={$aff}&start={$MIN}&rep={$REP|urlencode}&delais={$delais}&tourne={$tourne-90}"><table border="0" cellpadding="0" cellspacing="0" width="16" height="16" bgcolor="#A3B7CD3f" abgcolor="#4491CA3f"><tr height="16"><td width="16" height="16"><img src="gauche.gif" border="0" width="16" height="16"></td></tr></table></a></td> - <td width="5" align="center"> </td> - <td width="20" align="center"><a href="index1.php?image={$aff}&start={$MIN}&rep={$REP|urlencode}&delais={$delais}&tourne={$tourne+90}"><table border="0" cellpadding="0" cellspacing="0" width="16" height="16" bgcolor="#A3B7CD3f" abgcolor="#4491CA3f"><tr height="16"><td width="16" height="16"><img src="droite.gif" border="0" width="16" height="16"></td></tr></table></a></td> - <td width="80" align="center">{if $aff+1 < count($files)}<img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> <a focused href="index1.php?image={$next}&start={$MIN}&rep={$rep_encoded}&delais={$delais}&tourne={$tourne}"><font size="1">Suiv.</font></a>{else} {/if}</td> - </tr></table> + + <table border="0" cellpadding="0" cellspacing="0" width="580" bgcolor="#A3B7CD3f"><tr> + <td width="80" align="center">{if $aff >=1}<img src="{$INTERFACE_REP}btn_vert.gif" border="0"> <a href="index1.php?image={$prec}&start={$MIN}&rep={$rep_encoded}&delais={$delais}&tourne={$tourne}"><font size="1">Prec.</font></a>{else} {/if}</td> + <td width="187" align="center"><font size="1">{if $delais==0}<form name="form1" method="get" action="index1.php">Diapo : <input name="delais" bgcolor="{#COULEUR_TEXTBOX#}" type=text value="" size=2 maxlength=2> sec<input name=image type=hidden value="{if $aff+1 == count($files)}0{else}{$aff}{/if}"><input name=rep type=hidden value="{$REP}"><input name=tourne type=hidden value="{$tourne}"><input name=start type=hidden value="{$MIN}"></form>{else}<a href="index1.php?rep={$REP|urlencode}&start={$MIN}&image={$aff}">Arr\xE9ter le diaporama</a> ({$delais}sec){/if}</font></td> + <td width="135" align="center"><a href="index1.php?start={$MIN}&rep={$REP|urlencode}&tosee={$aff}&force_back=1"><img src="{$INTERFACE_REP}btn_rouge.gif" border="0"><font size="1"> Expl.</font></a></td> + <td width="40" align="center"><font size="1">{$aff+1}/{$files|@count}</font></td> + <td width="16" align="center"><a href="index1.php?image={$aff}&start={$MIN}&rep={$REP|urlencode}&delais={$delais}&tourne={$tourne-90}"><table border="0" cellpadding="0" cellspacing="0" width="16" bgcolor="#A3B7CD3f" abgcolor="#4491CA3f"><tr><td width="16"><img src="gauche.gif" border="0" width="16"></td></tr></table></a></td> + <td width="5" align="center"> </td> + <td width="16" align="center"><a href="index1.php?image={$aff}&start={$MIN}&rep={$REP|urlencode}&delais={$delais}&tourne={$tourne+90}"><table border="0" cellpadding="0" cellspacing="0" width="16" bgcolor="#A3B7CD3f" abgcolor="#4491CA3f"><tr><td width="16"><img src="droite.gif" border="0" width="16"></td></tr></table></a></td> + <td width="5" align="center"> </td> + <td width="16" align="center"><a href="index1.php?image={$aff}&start={$MIN}&rep={$REP|urlencode}&delais={$delais}&tourne={$tourne}&start_play={$start_play}"><table border="0" cellpadding="0" cellspacing="0" width="16" bgcolor="#A3B7CD3f" abgcolor="#4491CA3f"><tr><td width="16"><img src="zik.gif" border="0" width="16"></td></tr></table></a></td> + <td width="80" align="center">{if $aff+1 < count($files)}<img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> <a focused href="index1.php?image={$next}&start={$MIN}&rep={$rep_encoded}&delais={$delais}&tourne={$tourne}"><font size="1">Suiv.</font></a>{else} {/if}</td> + </tr></table> + </td></tr> + {/if} </table> </td></tr></table> </center> Added: trunk/module/diaporama/zik.gif =================================================================== (Binary files differ) Property changes on: trunk/module/diaporama/zik.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/module/films/info.php =================================================================== --- trunk/module/films/info.php 2007-02-23 11:42:46 UTC (rev 83) +++ trunk/module/films/info.php 2007-02-23 21:42:19 UTC (rev 84) @@ -147,12 +147,17 @@ $smarty->assign('chapitre',$chapitre); } + if($module=='signets'){ //Signets pour ce film $db = sqlite_open($USER.'utilisateur.db', 0666); + + $mov = new ffmpeg_movie(realpath($VLC['url_current'])); + echo $mov->getFrameCount(); $requete='SELECT * FROM signet WHERE lien="'.$signetsav[2].'" ORDER BY duree'; $result = sqlite_query($db,$requete); $smarty->assign('SIGNETS',sqlite_fetch_all($result)); + } //--Fin des options Modified: trunk/module/modules/modules.tpl =================================================================== --- trunk/module/modules/modules.tpl 2007-02-23 11:42:46 UTC (rev 83) +++ trunk/module/modules/modules.tpl 2007-02-23 21:42:19 UTC (rev 84) @@ -1,3 +1,4 @@ +<br> {if $action=="mod" OR $action=="skin"} {section name=mod loop=$MOD start=$MIN max=4} {if $smarty.section.mod.first} Modified: trunk/module/mp3/jaquette.php =================================================================== --- trunk/module/mp3/jaquette.php 2007-02-23 11:42:46 UTC (rev 83) +++ trunk/module/mp3/jaquette.php 2007-02-23 21:42:19 UTC (rev 84) @@ -29,29 +29,27 @@ } if (count($fichierjpg)=="0"){ -$info=$_GET['info']; -if($info!='' && $pagerecherche = file_get_contents('http://images.google.fr/images?q='.urlencode($info))){ - -$ereg = 'img src=\/images\?q=(.{1,25}):\/\/(.{1,75}) width'; -preg_match_all("/$ereg/s", $pagerecherche, $valeur); -$img='http://'.$valeur[2][rand(0,(floor(count($valeur[2])/3)))]; - -}else{ - if ($_GET['lec'] == "webradio") { - $img=realpath("./temp/radio.gif"); - }else{ - $img=realpath("./temp/pasdimage.gif"); - } -} - - $refaire="0"; - - if(Get_Extension_From_File($img)=="GIF"){ - $image = imagecreatefromgif($img); - }elseif(Get_Extension_From_File($img)=="JPG"){ - $image = imagecreatefromjpeg($img); - } - + $info=$_GET['info']; + if($info!='' && $pagerecherche = file_get_contents('http://images.google.fr/images?q='.urlencode($info))){ + $ereg = '\/images\?q=(.{1,25}):\/\/(.{1,75}) width'; + + $ereg = 'dyn.Img\("(.{0,200})","","(.{0,20})","(.{0,90})","(.{0,4})","(.{0,4})","(.{0,110})","","","(.{5,28})","jpg","(.{5,150})","","","(.{25,30})"\);'; + preg_match_all("/$ereg/s", $pagerecherche, $valeur); + $img_selected = rand(0,(floor(count($valeur[2])/3))); + $img=$valeur[9][$img_selected].'?q=tbn:'.$valeur[2][$img_selected]; + $image = imagecreatefromjpeg($img); + }else{ + if ($_GET['lec'] == "webradio") { + $img=realpath("./temp/radio.gif"); + }else{ + $img=realpath("./temp/pasdimage.gif"); + } + $image = imagecreatefromgif($img); + } + + $refaire="0"; + + }elseif(count($fichierjpg)=="1"){ $img=$rep.'/'.$fichierjpg[0]; $image = imagecreatefromjpeg($img); Modified: trunk/module/mp3/lecteuraudio.php =================================================================== --- trunk/module/mp3/lecteuraudio.php 2007-02-23 11:42:46 UTC (rev 83) +++ trunk/module/mp3/lecteuraudio.php 2007-02-23 21:42:19 UTC (rev 84) @@ -39,6 +39,8 @@ play_fichier('type=0',$toplay,0,'mp3'); $reload='1'; + $supplement = '?gomin=1'; + $pagedinfo=file_get_contents('http://localhost:8081/module/mp3/lecteuraudio.html'); eval($pagedinfo); @@ -46,6 +48,7 @@ if($morceau[3] == $toplay){ if(array_pop(explode(".", $morceau[2]))=='m3u'){ $supplement = '?toplaybis='.urlencode(realpath($_GET['url'])); + $gotobis=true; } } } @@ -63,7 +66,7 @@ } } $reload='1'; - + $supplement = '?gomin=1'; } if (isset($_REQUEST['control'])) { @@ -101,6 +104,7 @@ } $file1 = file_get_contents('http://127.0.0.1:8081/lecteur/action.html?control=seek&seek_value='.$value); $reload='1'; + $supplement = '?gomin=1'; } $i=0; @@ -128,8 +132,28 @@ } } } + if($mode=='pla'){ -$smarty->assign('min',$_GET['min']); +(isset($_GET['min'])?$min=$_GET['min']:$min=0); + +if(isset($_GET['gomin']) OR isset($_GET['toplay'])){ + foreach($pl_transformed as $key => $el){ + if($el[1]){ + $current = $key; + } + } + $min=floor(($key+1)/16)*16; +} + +if(isset($_GET['toplay'])){ + $min=floor(($_GET['num'])/16)*16; +} + +if($gotobis){ + $min=floor(count($pl_transformed)/16)*16; +} + +$smarty->assign('min',$min); }elseif($mode=='bib'){ (isset($_GET['t'])?$type=$_GET['t']:$type='ar'); (isset($_GET['l'])?$letter=$_GET['l']:$letter=''); Modified: trunk/module/mp3/playdb.php =================================================================== --- trunk/module/mp3/playdb.php 2007-02-23 11:42:46 UTC (rev 83) +++ trunk/module/mp3/playdb.php 2007-02-23 21:42:19 UTC (rev 84) @@ -10,9 +10,6 @@ $db = sqlite_open($USER.'audio.db', 0666); -// On teste si la base des fichiers mp3/ogg existe bien -if (sqlite_table_exists($db, 'music')) { - $ext_audio = $ini['explorateur']['ext_audio']; $audio_defaut = $ini['explorateur']['audio_defaut']; $afficher_fichier_cache = $ini['explorateur']['afficher_fichier_cache']; @@ -159,7 +156,6 @@ save_variable('num_playlist', get_variable('num_playlist')+1); } -} ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> Modified: trunk/module/mp3/playlist_audio.tpl =================================================================== --- trunk/module/mp3/playlist_audio.tpl 2007-02-23 11:42:46 UTC (rev 83) +++ trunk/module/mp3/playlist_audio.tpl 2007-02-23 21:42:19 UTC (rev 84) @@ -46,12 +46,13 @@ {assign var=temp value=$min-16} {attribbouton touche="green" lien="lecteuraudio.php?min=$temp"} {/if} - + + {counter name=indice print=false start=$min} {section name=playlist loop=$pl start=$min max=16} - <font size="1">{counter name=indice print=true start=$min}. </font> + <font size="1">{counter name=indice print=true assign=boucle}. </font> <font size="1"> {if $pl[playlist].1}<u>{/if} - <a href=lecteuraudio.php?toplay={$pl[playlist].3}&url={$pl[playlist].2|urlencode}>{$pl[playlist].0|truncate:130:''|strip_delimiters}</a> + <a href=lecteuraudio.php?num={$boucle}&toplay={$pl[playlist].3}&url={$pl[playlist].2|urlencode}>{$pl[playlist].0|truncate:130:''|strip_delimiters}</a> {if $pl[playlist].1}</u>{/if} </font><br> {/section} Modified: trunk/module/rss/index1.php =================================================================== --- trunk/module/rss/index1.php 2007-02-23 11:42:46 UTC (rev 83) +++ trunk/module/rss/index1.php 2007-02-23 21:42:19 UTC (rev 84) @@ -2,58 +2,49 @@ $RACINE_REP = "../../"; require($RACINE_REP.'_framework/framework.php'); +(isset($_REQUEST['cat'])?$cat=$_REQUEST['cat']:$cat=2); +$smarty->assign('cat',$cat); +(isset($_REQUEST['min'])?$min=$_REQUEST['min']:$min=0); +$smarty->assign('MIN',$min); +$db = sqlite_open($USER.'rss.db', 0666); +$result = sqlite_query($db,'SELECT * FROM cat ORDER BY name'); +$categories = sqlite_fetch_all($result); -if (isset($_REQUEST['url'])) { - $url=$_REQUEST['url']; -}else{ - $url=''; +foreach($categories as $c){ + if($c['id']==$cat){ + $cat = $c; + } + $MENU_ALT[]=array('lien'=>'index1.php?cat='.$c['id'], 'nom'=>$c['name'], 'selected'=>$cat==$c['id']); } -$smarty->assign('url',$url); +if(isset($_REQUEST['feed'])){ + $feed=$_REQUEST['feed']; +} -if ($url==""){ - - $db = sqlite_open('../../_utilisateur/rss.db', 0666); - $requete='SELECT * FROM cat ORDER BY name'; - $result = sqlite_query($db,$requete); - $resultsave = sqlite_query($db,$requete); - $index=0; - - $lenght=sqlite_num_rows($result); - - while ($row = sqlite_fetch_array($result)) { +if(!isset($feed)){ - $requete2="SELECT * FROM feeds WHERE cat = '".$row[name]."'"; - $result2 = sqlite_query($db,$requete2); - - $RSS[$row[name]]=array(); - - while ($row2 = sqlite_fetch_array($result2)) { - $RSS[$row[name]][]=array('url'=>$row2[add],'name'=>$row2[name]); - } - - } - - sqlite_close($db); - -$LINK['red']= page_retour_menu(); - -$smarty->assign('RSS',$RSS); -$smarty->assign('TITRE','Flux RSS'); -$smarty->assign('CONTENT',$smarty->fetch('rss.tpl')); -$smarty->display('interface.tpl'); + $LINK['red']= page_retour_menu(); + + $result = sqlite_query($db,'SELECT * FROM feeds WHERE cat="'.$cat['id'].'" ORDER BY name'); + + $smarty->assign('RSS',sqlite_fetch_all($result)); + $smarty->assign('TITRE','Flux RSS : '.$cat['name']); + $smarty->assign('CONTENT',$smarty->fetch('rss.tpl')); + $smarty->display('interface.tpl'); }else{ - $LINK['red']= 'index1.php'; - - $url=urldecode($url); - $xml = simplexml_load_file($url); + $LINK['red']= 'index1.php?cat='.$cat['id']; + $result = sqlite_query($db,'SELECT * FROM feeds WHERE cat="'.$cat.'" AND id="'.$feed.'" limit 1'); + $url = sqlite_fetch_array($result); + + $xml = simplexml_load_file($url['add']); + if($xml->channel->image->url!="") -$FLUX['image']=$xml->channel->image->url; -$FLUX['titre']=utf8_decode($xml->channel->title); + $FLUX['image']=$xml->channel->image->url; + $FLUX['titre']=utf8_decode($xml->channel->title); foreach($xml->channel->item as $post){ if($post->title!=''){ @@ -61,8 +52,11 @@ } } +$smarty->assign('feed',$feed); $smarty->assign('FLUX',$FLUX); -$smarty->display('rss.tpl'); +$smarty->display('rss.tpl'); } + +sqlite_close($db); ?> Modified: trunk/module/rss/rss.tpl =================================================================== --- trunk/module/rss/rss.tpl 2007-02-23 11:42:46 UTC (rev 83) +++ trunk/module/rss/rss.tpl 2007-02-23 21:42:19 UTC (rev 84) @@ -1,22 +1,42 @@ {if $url==''} - <table width="600" border="0" cellpadding="0" cellspacing="0" align="center" valign="top"><tr><td width="300" align="center" valign="top"> + {section name=liste loop=$RSS max=8 start=$MIN} + {if $smarty.section.liste.first} + {if $MIN!=0} + {assign var=temp value=$MIN-8} + {attribbouton touche="green" lien="index1.php?cat=$cat&min=$temp"} + <a href="index1.php?cat={$cat}&min={$temp}"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> Pr\xE9c\xE9dent</a> + {/if} + <table width="500" border="0" cellspacing="7" cellpadding="7" align="left" valign="top"><tr><td> + <table width="250" border="0" cellspacing="5" cellpadding="0" align="left" valign="top"> + {/if} + + + <tr><td><a href="index1.php?cat={$cat}&feed={$RSS[liste].id}"> + <table width="240" border="0" cellpadding="0" cellspacing="0" bgcolor="#COULEUR_FOND1#" abgcolor="{#COULEUR_ALINK#}"> + <tr> + <td align="left" valign="top" width="120"><img width="120" height="90" src="{$IMG2FBX}{$RSS[liste].img|urlencode}&new_width=120&new_height=90&cache=1"></td> + <td align="left" valign="top" width="110"><b><u>{$RSS[liste].name}</u></b></td> + </tr> + </table> + </a></td></tr> + + {if $smarty.section.liste.iteration == 4} + </table><table width="250" border="0" cellspacing="5" cellpadding="0" align="left" valign="top"> + {/if} + + {if $smarty.section.liste.last} + </table></td></tr></table> + {if $MIN+$smarty.section.liste.total < count($RSS)} + {assign var=temp value=$MIN+8} + {attribbouton touche="blue" lien="index1.php?cat=$cat&min=$temp"} + <a href="index1.php?cat={$cat}&min={$temp}"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> Suivant</a> + {/if} + {/if} + + {sectionelse} + Cette cat\xE9gorie ne contient aucun flux. Vous pouvez en ajouter depuis l'interface de configuration d'Easybox. + {/section} - {foreach name=cat item=cat from=$RSS key=key} - {counter assign=count} - {if $count == count($RSS)/2+1} - </td><td width="300" align="center" valign="top"> - {/if} - - <u>{$key}</u><br> - - {foreach name=flux item=flux from=$cat key=key2} - <a href="index1.php?url={$flux.url|urlencode}">{$flux.name}</a><br> - {/foreach} - - <br> - {/foreach} - - </td></tr></table> {else} <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> Modified: trunk/module/signet/index1.php =================================================================== --- trunk/module/signet/index1.php 2007-02-23 11:42:46 UTC (rev 83) +++ trunk/module/signet/index1.php 2007-02-23 21:42:19 UTC (rev 84) @@ -20,7 +20,9 @@ $requete='SELECT * FROM signet ORDER BY lien, duree'; $result = sqlite_query($db,$requete); - + +sqlite_close($db); + $smarty->assign('TITRE','Signets'); $smarty->assign('MIN',$min); $smarty->assign('CONTENT_TABLE',sqlite_fetch_all($result)); Modified: trunk/skin/simple/framework_skin.php =================================================================== --- trunk/skin/simple/framework_skin.php 2007-02-23 11:42:46 UTC (rev 83) +++ trunk/skin/simple/framework_skin.php 2007-02-23 21:42:19 UTC (rev 84) @@ -25,21 +25,21 @@ } $smarty->assign('BACKGROUND_REP',$BACKGROUND_REP); - // Fond d'\xE9cran par d\xE9faut - path d\xE9finit \xE0 partir du r\xE9pertoire /http/skin/simple/ $BACKGROUND = $_COULEUR['BACKGROUND']; // Fonction responsable de l'affichage du fond d'\xE9cran \xE0 la toute fin du processus de conception de la page (post-filtre de smarty) function background($output, &$smarty){ - global $contenu_html, $BACKGROUND, $BACKGROUND_REP, $SKIN_REP, $BACKGROUND_TYPE, $FORCED, $_SERVER, $BACK_DONE; + global $contenu_html, $BACKGROUND, $BACKGROUND_REP, $SKIN_REP, $BACKGROUND_TYPE, $FORCED, $_SERVER, $BACK_DONE, $smarty; if(((eregi("stop",$contenu_html) AND $BACKGROUND!="none" AND realpath($BACKGROUND_REP.$BACKGROUND)!='') OR $FORCED) AND !$BACK_DONE){ - if($BACKGROUND_TYPE == 'add'){ + if($BACKGROUND_TYPE == 'add'){ play_fichier('type=21&temps=8000',realpath($BACKGROUND_REP.$BACKGROUND),1,'photo'); }else{ play_fichier('type=20&temps=8000',realpath($BACKGROUND_REP.$BACKGROUND),1,'photo'); } //Pour ne pas lancer deux fois le background $BACK_DONE = 1; + } return($output); } Deleted: trunk/skin/simple/option.tpl =================================================================== --- trunk/skin/simple/option.tpl 2007-02-23 11:42:46 UTC (rev 83) +++ trunk/skin/simple/option.tpl 2007-02-23 21:42:19 UTC (rev 84) @@ -1,151 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> -<html> -<head> -{include file="bouton.tpl"} -{setbackground path="none"} -</head> -<body background="ts://127.0.0.1" text="{#COULEUR_LECTEUR_TEXT#}" link="{#COULEUR_LECTEUR_LINK#}" alink="{#COULEUR_LECTEUR_ALINK#}" vlink="{#COULEUR_LECTEUR_VLINK#}"> -<center> -<table border="0" cellpadding="0" cellspacing="0" width="560"><tr> - <td width="560" height="433" border="0" cellpadding="0" cellspacing="0" align="left" valign=top bgcolor="{#COULEUR_FOND_RADIO#}"> - <center><table width="560" height="25" border="0" align="center" cellpadding="0" cellspacing="0"> - <tr> - <td width="104" align=center><a href="options.php?module=infos" {if $module=='infos'}focused{/if}><table width="104" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td align=center width="104" height="25">Infos</td></tr></table></a></td> - <td width="104" align=center><a href="options.php?module=video" {if $module=='video'}focused{/if}><table width="104" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td align=center width="104" height="25">Video</td></tr></table></a></td> - <td width="104" align=center><a href="options.php?module=audio" {if $module=='audio'}focused{/if}><table width="104" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td align=center width="104" height="25">Audio</td></tr></table></a></td> - <td width="104" align=center><a href="options.php?module=sstitre" {if $module=='sstitre'}focused{/if}><table width="104" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td align=center width="104" height="25">Sous-titres</td></tr></table></a></td> - <td width="104" align=center><a href="options.php?module=navigation" {if $module=='navigation'}focused{/if}><table width="104" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td align=center width="104" height="25">Chapitres</td></tr></table></a></td> - </tr> - </table></center> - - -{if $module=='infos'} - {$content} -{elseif $module=='video'} -<font size="3"><u>Options vid\xE9o</u></font><br> - <form action="options.php" method="get"> - <input type=hidden name=module value=video><input type=hidden name=var value="video-es"><br> - {foreach from=$video item=pistev key=key name=video} - <input type=radio name=video bgcolor="{#COULEUR_FOND_RADIO#}" value="{$key}" {if $pistev.1} checked{/if}>{$pistev.0}<br> - {/foreach} - <br>Post-traitement - <table> - <tr> - <td><input type="radio" name="pp" bgcolor="{#COULEUR_FOND_RADIO#}" value="0" {if $pp_video.0} checked{/if}></td> - <td><input type="radio" name="pp" bgcolor="{#COULEUR_FOND_RADIO#}" value="1" {if $pp_video.1} checked{/if}></td> - <td><input type="radio" name="pp" bgcolor="{#COULEUR_FOND_RADIO#}" value="2" {if $pp_video.2} checked{/if}></td> - <td><input type="radio" name="pp" bgcolor="{#COULEUR_FOND_RADIO#}" value="3" {if $pp_video.3} checked{/if}></td> - <td><input type="radio" name="pp" bgcolor="{#COULEUR_FOND_RADIO#}" value="4" {if $pp_video.4} checked{/if}></td> - <td><input type="radio" name="pp" bgcolor="{#COULEUR_FOND_RADIO#}" value="5" {if $pp_video.5} checked{/if}></td> - <td><input type="radio" name="pp" bgcolor="{#COULEUR_FOND_RADIO#}" value="6" {if $pp_video.6} checked{/if}></td> - </tr> - <tr> - <td>0</td><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td></tr> - </table> - Augmenter la qualit\xE9 du traitement de l'image (de 0 vers 6) demande plus de puissance CPU. - <br> - -<table width="250" align="left"> -<tr><td width="130">4/3 Letterbox</td><td><input type=radio bgcolor="{#COULEUR_FOND_RADIO#}" name=display_aspect_ratio_conversion value=letterbox></td></tr> -<tr><td width="130">4/3 Combined</td><td><input type=radio bgcolor="{#COULEUR_FOND_RADIO#}" name=display_aspect_ratio_conversion value=combined></td></tr> -<tr><td width="130">4/3 Pan Scan</td><td><input type=radio bgcolor="{#COULEUR_FOND_RADIO#}" name=display_aspect_ratio_conversion value=panscan></td></tr> -<tr><td width="130">16/9</td><td><input type=radio bgcolor="{#COULEUR_FOND_RADIO#}" name=display_aspect_ratio_conversion value=ignore></td></tr> -</table> - -<table width="250" align="left"> -<tr><td width="90">Lumi\xE9re</td><td width="5">:</td><td><input bgcolor="{#COULEUR_FOND_RADIO#}" type=hslider name=denc_brightness min=0 max=255 grad=16></td></tr> -<tr><td width="90">Contraste</td><td width="5">:</td><td><input bgcolor="{#COULEUR_FOND_RADIO#}" type=hslider name=denc_contrast min='-128' max=127 grad=16></td></tr> -<tr><td width="90">Couleur</td><td width="5">:</td><td><input bgcolor="{#COULEUR_FOND_RADIO#}" type=hslider name=denc_saturation min=0 max=255 grad=16></td></tr> -<tr><td width="90">Zoom</td><td width="5">:</td><td><input bgcolor="{#COULEUR_FOND_RADIO#}" type=hslider name=video_output_scale min=25 max=100 grad=5></td></tr> -</table> - -<input bgcolor="{#COULEUR_TEXTBOX#}" type=submit value="Valider les modifications"> -</form> - -{elseif $module=='audio'} -<font size="3"><u>Options audio</u></font><br> - <form action="options.php" method="get"><input type=hidden name=module value=audio><input type=hidden name=var value="audio-es"><br> - {foreach from=$audio item=pistea key=key name=audio} - <input type=radio name=audio bgcolor="{#COULEUR_FOND_RADIO#}" value="{$key}" {if $pistea.1} checked{/if}>{$pistea.0}<br> - {/foreach} - <br><form action="none"> - <input type="radio" name="aud" value="69(en,mp2)" bgcolor="{#COULEUR_FOND_RADIO#}"> Son st\xE9r\xE9o<br> - <input type="radio" name="aud" value="69(en,ac3)" bgcolor="{#COULEUR_FOND_RADIO#}"> Dolby Digital (S/PDIF)<br> - <br><input bgcolor="{#COULEUR_TEXTBOX#}" type=submit value="Valider les modifications"></form> - -{elseif $module=='sstitre'} -<font size="3"><u>Sous-titres</u></font><br> - <form action="options.php" method="get"><input type=hidden name=module value=sstitre><br> - {foreach from=$sstitre item=pistess key=key name=sstitre} - <input type=radio name=sstitre bgcolor="{#COULEUR_FOND_RADIO#}" value="{$key}"{if $pistess.1} checked{/if}>{$pistess.0}<br> - {/foreach} - - <table width="560" border="1" cellpadding="1" cellspacing="0" align="left"> - <tr><td align="left"> - Les param\xE8tres suivants ne seront pris en compte qu'apr\xE8s le red\xE9marage du films. Ils seront sauvegard\xE9s dans Easybox pour les prochaines utilisations de easybox<br /> - <font size="3"><u>Position :</u></font> - <input type=text bgcolor="{#COULEUR_FOND_RADIO#}" name="sub_margin" size=3 maxlength=3 value="{$sub_margin}"><br> - <font size="3"><u>Aspect</u></font> - - <table width="300" border="1" cellpadding="1" cellspacing="0" align="left"> - <tr><td>Couleur</td><td>Taille</td></tr> - <tr><td> - <input bgcolor="{#COULEUR_FOND_RADIO#}" type=radio name='fontcolor' value="16777215"{if $fontcolor=='16777215'} checked{/if}> <font color="#FFFFFF"><b>Blanc</b></font> - </td> - <td> - <input bgcolor="{#COULEUR_FOND_RADIO#}" type=radio name='fontsize' value="12"{if $ffontsize=='12'} checked{/if}> Plus petit - </td></tr> - <tr><td> - <input bgcolor="{#COULEUR_FOND_RADIO#}" type=radio name='fontcolor' value="16776960"{if $fontcolor=='16776960'} checked{/if}> <font color="#FFFF00"><b>Jaune</b></font> - </td> - <td> - <input bgcolor="{#COULEUR_FOND_RADIO#}" type=radio name='fontsize' value="24"{if $ffontsize=='24'} checked{/if}> Petit - </td></tr> - <tr><td> - <input bgcolor="{#COULEUR_FOND_RADIO#}" type=radio name='fontcolor' value="65535"{if $fontcolor=='65535'} checked{/if}> <b><font color="#00CCFF">Cyan</font></b> - </td> - <td> - <input bgcolor="{#COULEUR_FOND_RADIO#}" type=radio name='fontsize' value="32"{if $ffontsize=='32'} checked{/if}> Normal - </td></tr> - <tr><td> - <input bgcolor="{#COULEUR_FOND_RADIO#}" type=radio name='fontcolor' value="16711680"{if $fontcolor=='16711680'} checked{/if}> <b><font color="#FF0000">Rouge</font></b> - </td> - <td> - <input bgcolor="{#COULEUR_FOND_RADIO#}" type=radio name='fontsize' value="36"{if $ffontsize=='36'} checked{/if}> Grand - </td></tr> - <tr><td> - <input bgcolor="{#COULEUR_FOND_RADIO#}" type=radio name='fontcolor' value="32768"{if $fontcolor=='32768'} checked{/if}> <b><font color="#00FF00">Vert</font></b> - </td> - <td> - <input bgcolor="{#COULEUR_FOND_RADIO#}" type=radio name='fontsize' value="40"{if $ffontsize=='40'} checked{/if}> Plus grand - </td></tr> - </table> - </td></tr></table> - <input bgcolor="{#COULEUR_TEXTBOX#}" type=submit value="Valider les modifications"></form> - -{elseif $module=='navigation'} - -<font size="3"><u>Chapitres</u></font><br> - - <table><tr><td> - -{assign var=keyb value=1} - - {foreach from=$chapitre item=chap key=key name=chap} - <a href="options.php?module=navigation&chap={$key}">{if $chap.1}<font family="Symbol">T</font>{/if}<font size="1">{$chap.0}</font></a><br> - {assign var=keyb value=$keyb+1} - {if $keyb is div by 17}</td><td>{/if} - {/foreach} - - </td></tr></table> - -{/if} - - - </td> -</tr></table> -</center> -<script language="javascript" src="/fb2ie.js"> -</script> -</body> -</html> Modified: trunk/skin/simplegreen/couleur.conf =================================================================== --- trunk/skin/simplegreen/couleur.conf 2007-02-23 11:42:46 UTC (rev 83) +++ trunk/skin/simplegreen/couleur.conf 2007-02-23 21:42:19 UTC (rev 84) @@ -67,7 +67,7 @@ COULEUR_FOND_AVERTISSEMENT = "#B7D88B3F" #///////////////////////////////// Fond d'\xE9cran /////////////////////////////////// -BACKGROUND = "background.png" -TYPE = "ext" +BACKGROUND = "background.jpg" +TYPE = "int" ?> Modified: trunk/skin/simplegreen/interface/barre1.gif =================================================================== (Binary files differ) Modified: trunk/skin/simplegreen/interface/barre2.gif =================================================================== (Binary files differ) Modified: trunk/skin/simplegreen/interface/barre3.gif =================================================================== (Binary files differ) Modified: trunk/skin/simplegreen/interface/player.gif =================================================================== (Binary files differ) Modified: trunk/skin/simplegreen/interface.tpl =================================================================== --- trunk/skin/simplegreen/interface.tpl 2007-02-23 11:42:46 UTC (rev 83) +++ trunk/skin/simplegreen/interface.tpl 2007-02-23 21:42:19 UTC (rev 84) @@ -50,12 +50,12 @@ <tr> <td align="center" valign="top"> {eval var=$CONTENT} -<a onFocus='service="ts://127.0.0.1?ox=20&oy=20&ow=720&oh=576,&ix=0&iy=0&iw=360&ih=192";'>1-1</a> -<a onFocus='service="ts://127.0.0.1?ox=20&oy=20&ow=720&oh=576,&ix=360&iy=0&iw=360&ih=192";'>1-2</a> -<a onFocus='service="ts://127.0.0.1?ox=20&oy=20&ow=720&oh=576,&ix=0&iy=192&iw=360&ih=192";'>2-1</a> -<a onFocus='service="ts://127.0.0.1?ox=20&oy=20&ow=720&oh=576,&ix=360&iy=192&iw=360&ih=192";'>2-2</a> -<a onFocus='service="ts://127.0.0.1?ox=20&oy=20&ow=720&oh=576,&ix=0&iy=384&iw=360&ih=192";'>3-1</a> -<a onFocus='service="ts://127.0.0.1?ox=20&oy=20&ow=720&oh=576,&ix=360&iy=384&iw=360&ih=192";'>3-2</a> +<a onFocus='service="ts://127.0.0.1?ox=0&oy=0&ow=720&oh=576,&ix=0&iy=0&iw=360&ih=192";'>1-1</a> +<a onFocus='service="ts://127.0.0.1?ox=0&oy=0&ow=720&oh=576,&ix=361&iy=0&iw=360&ih=192";'>1-2</a> +<a onFocus='service="ts://127.0.0.1?ox=0&oy=0&ow=720&oh=576,&ix=0&iy=193&iw=360&ih=192";'>2-1</a> +<a onFocus='service="ts://127.0.0.1?ox=0&oy=0&ow=720&oh=576,&ix=361&iy=193&iw=360&ih=192";'>2-2</a> +<a onFocus='service="ts://127.0.0.1?ox=0&oy=0&ow=720&oh=576,&ix=0&iy=385&iw=360&ih=192";'>3-1</a> +<a onFocus='service="ts://127.0.0.1?ox=0&oy=0&ow=720&oh=576,&ix=361&iy=385&iw=360&ih=192";'>3-2</a> </td> </tr> </table> Deleted: trunk/skin/simplegreen/option.tpl =================================================================== --- trunk/skin/simplegreen/option.tpl 2007-02-23 11:42:46 UTC (rev 83) +++ trunk/skin/simplegreen/option.tpl 2007-02-23 21:42:19 UTC (rev 84) @@ -1,152 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> -<html> -<head> -{include file="bouton.tpl"} -{setbackground path="none"} -</head> -<body background="ts://127.0.0.1" text="{#COULEUR_LECTEUR_TEXT#}" link="{#COULEUR_LECTEUR_LINK#}" alink="{#COULEUR_LECTEUR_ALINK#}" vlink="{#COULEUR_LECTEUR_VLINK#}"> -<center> -<table border="0" cellpadding="0" cellspacing="0" width="560"><tr> - <td width="560" height="433" border="0" cellpadding="0" cellspacing="0" align="left" valign=top bgcolor="{#COULEUR_FOND_RADIO#}"> - <center><table width="560" height="25" border="0" align="center" cellpadding="0" cellspacing="0"> - <tr> - <td width="104" align=center><a href="options.php?module=infos" {if $module=='infos'}focused{/if}><table width="104" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td align=center width="104" height="25">Infos</td></tr></table></a></td> - <td width="104" align=center><a href="options.php?module=video" {if $module=='video'}focused{/if}><table width="104" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td align=center width="104" height="25">Video</td></tr></table></a></td> - <td width="104" align=center><a href="options.php?module=audio" {if $module=='audio'}focused{/if}><table width="104" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td align=center width="104" height="25">Audio</td></tr></table></a></td> - <td width="104" align=center><a href="options.php?module=sstitre" {if $module=='sstitre'}focused{/if}><table width="104" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td align=center width="104" height="25">Sous-titres</td></tr></table></a></td> - <td width="104" align=center><a href="options.php?module=navigation" {if $module=='navigatio... [truncated message content] |
From: <ara...@us...> - 2007-03-04 08:03:09
|
Revision: 88 http://svn.sourceforge.net/easybox-mod/?rev=88&view=rev Author: aragornis Date: 2007-03-04 00:03:07 -0800 (Sun, 04 Mar 2007) Log Message: ----------- Mise ?\195?\160 jour du nom de la skin simple dans la cr?\195?\169ation du fichier configuration.ini Am?\195?\169lioration de l'arret d'enregistrement Correction d'un bug qui faisait se vider la base de donn?\195?\169es de vid?\195?\169os Modified Paths: -------------- trunk/_framework/img2fbx.php trunk/configuration/config.xml trunk/configuration/scan_video.php trunk/lecteur/stop_rec.php trunk/module/meteo/f2-france-512x384-j0pm.jpg trunk/module/meteo/f2-france-512x384-j1am.jpg trunk/module/meteo/f2-france-512x384-j1pm.jpg trunk/skin/simplegreen/couleur.conf trunk/version.html Added Paths: ----------- trunk/configuration/editrss.php trunk/module/guidetv/listechainetelepoche.txt Modified: trunk/_framework/img2fbx.php =================================================================== --- trunk/_framework/img2fbx.php 2007-03-03 21:43:07 UTC (rev 87) +++ trunk/_framework/img2fbx.php 2007-03-04 08:03:07 UTC (rev 88) @@ -3,14 +3,15 @@ $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; } -list($width, $height, $type) = getimagesize($sURL); - function is_cached($url){ global $CACHE_IMAGE; if(file_exists($CACHE_IMAGE.md5($url).'.gif')){ @@ -44,6 +45,7 @@ } 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 ); Modified: trunk/configuration/config.xml =================================================================== --- trunk/configuration/config.xml 2007-03-03 21:43:07 UTC (rev 87) +++ trunk/configuration/config.xml 2007-03-04 08:03:07 UTC (rev 88) @@ -178,7 +178,7 @@ <souscat name="skin" > <name>Skin par defaut</name> <type>hidden</type> - <defaut>simple</defaut> + <defaut>Simple</defaut> </souscat> </categorie> <categorie name="download" > Added: trunk/configuration/editrss.php =================================================================== --- trunk/configuration/editrss.php (rev 0) +++ trunk/configuration/editrss.php 2007-03-04 08:03:07 UTC (rev 88) @@ -0,0 +1,63 @@ +<HTML> +<HEAD> +<style type="text/css" class="tableau"> +<!-- +body { + margin-left: 0px; + margin-top: 0px; + margin-right: 0px; + margin-bottom: 0px; +} +body,td,th { + color: #000000; +} +.tableau { + background-color: #EEEEEE; + border: thin outset; +} +a:link { + color: #000000; + text-decoration: none; +} +a:visited { + text-decoration: none; + color: #000000; +} +a:hover { + text-decoration: none; + color: #999999; +} +a:active { + text-decoration: none; + color: #999999; +} + +--> +</style> +<?php +if(isset($_GET['id']) AND $_GET['id']>=0){ +$id = $_GET['id']; +}else{ +$id = '0'; +} + +?> +</HEAD> +<BODY> +Vous pouvez ici \xE9diter un flux RSS<br><br> +<form name="formnum1"> +Nom : <input type="text" value="" name="nom" id="nom" size="80" maxlenght="300"><br><br> +Adresse : <input type="text" value="" name="add" id="add" size="80" maxlenght="300"> <br><br> +Image : <input type="text" value="" name="image" id="image" size="80" maxlenght="300"><br><br> +Description : <input type="text" value="" name="description" id="description" size="80" maxlenght="300"> <br><br> +<input type="button" value="Modifier" onClick="window.opener.editchamp2('<?= $_GET['form']; ?>','<?= $_GET['select']; ?>','<?= $id; ?>',document.forms.formnum1.nom.value,document.forms.formnum1.add.value,document.forms.formnum1.image.value,document.forms.formnum1.description.value);window.close()"> +</form> + +<script language="javascript"> +document.forms.formnum1.nom.value = window.opener.document.forms.<?= $_GET['form']; ?>.list<?= $_GET['select']; ?>.options[<?= $id; ?>].text; +document.forms.formnum1.add.value = window.opener.document.forms.<?= $_GET['form']; ?>.list<?= $_GET['select']; ?>.options[<?= $id; ?>].value.split('|')[1]; +document.forms.formnum1.image.value = window.opener.document.forms.<?= $_GET['form']; ?>.list<?= $_GET['select']; ?>.options[<?= $id; ?>].value.split('|')[2]; +document.forms.formnum1.description.value = window.opener.document.forms.<?= $_GET['form']; ?>.list<?= $_GET['select']; ?>.options[<?= $id; ?>].value.split('|')[3]; +</script> +</BODY> +</HTML> Modified: trunk/configuration/scan_video.php =================================================================== --- trunk/configuration/scan_video.php 2007-03-03 21:43:07 UTC (rev 87) +++ trunk/configuration/scan_video.php 2007-03-04 08:03:07 UTC (rev 88) @@ -4,6 +4,10 @@ <?php include("../_framework/lib/get_info.php"); +require_once('../_framework/lib/ini.php'); + +$CONFIG_INI = "../_utilisateur/configuration.ini"; +$ini_class = new INI($CONFIG_INI); $ext = $ini['explorateur']['ext']; $ext_noscan = $ini['explorateur']['ext_noscan']; @@ -46,7 +50,7 @@ } $items=Array(); - + function scandirrec($rep){ global $extv, $ext_NoScanExploded; $item=Array(); @@ -105,7 +109,7 @@ } } } - echo '<meta http-equiv="refresh" content="0;url=index1.php?page=52&get_info=1">'."\n"; + // echo '<meta http-equiv="refresh" content="0;url=index1.php?page=52&get_info=1">'."\n"; ?> <font size="3"> Liste des fichiers cr\xE9\xE9e... R\xE9cup\xE9ration des informations depuis allocin\xE9 (0%) Modified: trunk/lecteur/stop_rec.php =================================================================== --- trunk/lecteur/stop_rec.php 2007-03-03 21:43:07 UTC (rev 87) +++ trunk/lecteur/stop_rec.php 2007-03-04 08:03:07 UTC (rev 88) @@ -3,7 +3,18 @@ $db = sqlite_open('../_utilisateur/records.db', 0666); $requete='UPDATE records SET statut=\'Enregistr\xE9\' WHERE id='.$_GET['id']; $result = sqlite_query($db,$requete); + + $requete='SELECT * from records WHERE id='.$_GET['id']; + $result = sqlite_query($db,$requete); + $result = sqlite_fetch_array($result); + + @unlink($result['fichierbat']); + @unlink(ereg_replace(".bat","-end.bat",$result['fichierbat'])); + $at=exec('at '.$result['task'].' /delete'); + $at.=exec('at '.$result['taskend'].' /delete'); + + $file1 = @file_get_contents("http://127.0.0.1:8082/lecteur/action.html?control=shutdown"); ?> Added: trunk/module/guidetv/listechainetelepoche.txt =================================================================== --- trunk/module/guidetv/listechainetelepoche.txt (rev 0) +++ trunk/module/guidetv/listechainetelepoche.txt 2007-03-04 08:03:07 UTC (rev 88) @@ -0,0 +1,69 @@ +"001" = "1|TF1|612"[end] +"002" = "2|France 2|201"[end] +"003" = "3|France 3 national|202"[end] +"003" = "300|France 3 national|258"[end] +"003" = "301|France 3 Alsace|280"[end] +"003" = "302|France 3 Alpes|283"[end] +"003" = "303|France 3 Aquitaine|284"[end] +"003" = "304|France 3 Auvergne|285"[end] +"003" = "305|France 3 Bourgogne|279"[end] +"003" = "306|France 3 Bretagne|286"[end] +"003" = "307|France 3 Centre|287"[end] +"003" = "308|France 3 Champagne-Ardenne|288"[end] +"003" = "310|France 3 Côte-d'Azur|290"[end] +"003" = "311|France 3 Franche-Comté|291"[end] +"003" = "312|France 3 Languedoc-Roussillon|292"[end] +"003" = "313|France 3 Limousin|293"[end] +"003" = "314|France 3 Lorraine|294"[end] +"003" = "315|France 3 Midi Pyrénées|295"[end] +"003" = "316|France 3 Nord Pas-de-Calais|296"[end] +"003" = "317|France 3 Haute-Normandie|297"[end] +"003" = "318|France 3 Basse-Normandie|298"[end] +"003" = "319|France 3 Paris Ile-de-France|257"[end] +"003" = "320|France 3 Pays de Loire|299"[end] +"003" = "321|France 3 Picardie|300"[end] +"003" = "322|France 3 Poitou-Charentes|301"[end] +"003" = "323|France 3 Provence-Alpes|302"[end] +"003" = "324|France 3 Rhône-Alpes|303"[end] +"005" = "7|Arte|204"[end] +"006" = "6|M6|613"[end] +"007" = "5|France 5|203"[end] +"009" = "10|TMC|497"[end] +"011" = "19|Paris Première|213"[end] +"017" = "93|Histoire|235"[end] +"028" = "14|France 4|376"[end] +"029" = "53|Mezzo|265"[end] +"031" = "44|MTV|219"[end] +"033" = "43|Fun TV|433"[end] +"038" = "9|W9|373"[end] +"040" = "22|AB 1|211"[end] +"045" = "230|TVE I|306"[end] +"050" = "88|Animaux|248"[end] +"079" = "73|BBC World|240"[end] +"080" = "36|Mangas|253"[end] +"081" = "91|Escales|252"[end] +"113" = "89|Chasse et pêche|249"[end] +"116" = "61|Equidia|212"[end] +"121" = "69|Euronews|205"[end] +"124" = "37|Game One|220"[end] +"131" = "110|Action|242"[end] +"147" = "111|Ciné Polar|244"[end] +"149" = "112|Ciné FX|243"[end] +"161" = "51|Trace TV|228"[end] +"162" = "70|Bloomberg TV|207"[end] +"163" = "84|Fashion TV|221"[end] +"167" = "8|Direct 8|372"[end] +"168" = "11|NT1|374"[end] +"169" = "12|NRJ 12 5.1|381"[end] +"169" = "12|NRJ 12 Stéréo|382"[end] +"170" = "13|La Chaîne Parlementaire|226"[end] +"173" = "266|2M Maroc|272"[end] +"180" = "42|M6 Music Black|432"[end] +"181" = "41|M6 Music Rock|431"[end] +"183" = "64|Motors TV|216"[end] +"189" = "48|VH1|233"[end] +"191" = "40|M6 Music Hits|430"[end] +"194" = "15|BFM TV|418"[end] +"195" = "18|Gulli|419"[end] +"201" = "131|M6 Boutique|359"[end] +"202" = "87|Liberty TV|215"[end] \ No newline at end of file Modified: trunk/module/meteo/f2-france-512x384-j0pm.jpg =================================================================== (Binary files differ) Modified: trunk/module/meteo/f2-france-512x384-j1am.jpg =================================================================== (Binary files differ) Modified: trunk/module/meteo/f2-france-512x384-j1pm.jpg =================================================================== (Binary files differ) Modified: trunk/skin/simplegreen/couleur.conf =================================================================== --- trunk/skin/simplegreen/couleur.conf 2007-03-03 21:43:07 UTC (rev 87) +++ trunk/skin/simplegreen/couleur.conf 2007-03-04 08:03:07 UTC (rev 88) @@ -67,7 +67,7 @@ COULEUR_FOND_AVERTISSEMENT = "#B7D88B3F" #///////////////////////////////// Fond d'\xE9cran /////////////////////////////////// -BACKGROUND = "background.jpg" -TYPE = "int" +BACKGROUND = "background.png" +TYPE = "ext" ?> Modified: trunk/version.html =================================================================== --- trunk/version.html 2007-03-03 21:43:07 UTC (rev 87) +++ trunk/version.html 2007-03-04 08:03:07 UTC (rev 88) @@ -4,6 +4,6 @@ </head> <body> <h1>Easybox</h1> -<h2>3.4.15</h2> +<h2>4.0.0</h2> </body> </html> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2007-03-04 08:04:58
|
Revision: 89 http://svn.sourceforge.net/easybox-mod/?rev=89&view=rev Author: aragornis Date: 2007-03-04 00:04:56 -0800 (Sun, 04 Mar 2007) Log Message: ----------- Petit oubli sur le scan Modified Paths: -------------- trunk/configuration/scan_video.php Removed Paths: ------------- trunk/_utilisateur/audiotemp.m3u trunk/_utilisateur/background.m3u Deleted: trunk/_utilisateur/audiotemp.m3u =================================================================== --- trunk/_utilisateur/audiotemp.m3u 2007-03-04 08:03:07 UTC (rev 88) +++ trunk/_utilisateur/audiotemp.m3u 2007-03-04 08:04:56 UTC (rev 89) @@ -1,26 +0,0 @@ -#EXTM3U - d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 01 - Vivement La Fin.mp3 - d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 02 - Plateau Tele.mp3 - d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 03 - Mathilde.mp3 - d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 04 - Cadaques.mp3 - d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 05 - Un Contrat Merveilleux.mp3 - d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 06 - Calculateurs.mp3 - d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 07 - Le Petit Chef.mp3 - d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 08 - Un Marriage T'reggae.mp3 - d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 09 - Le Manege (Live).mp3 - d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 10 - Tu T'amuses Quand (Live).mp3 - d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 11 - Besac (Live).mp3 - d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 12 - Vivement La Fin (Version Plage).mp3 - d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 01 - Saint'nitouche.mp3 - d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 02 - Tête En L'air.mp3 - d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 03 - La Méthode Couette.mp3 - d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 04 - Indélébile.mp3 - d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 05 - Rentrée Des Classes.mp3 - d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 06 - Sur Place Ou À Emporter.mp3 - d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 07 - La Dame Aux Camel Lights.mp3 - d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 08 - Casanova Ou Quasimodo.mp3 - d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 09 - Hypocondriaque.mp3 - d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 10 - Noctambule.mp3 - d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 11 - Rien Qu'un Été.mp3 - d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 12 - Petite Peine.mp3 - d:\Ma musique\fernando.mp3 \ No newline at end of file Deleted: trunk/_utilisateur/background.m3u =================================================================== --- trunk/_utilisateur/background.m3u 2007-03-04 08:03:07 UTC (rev 88) +++ trunk/_utilisateur/background.m3u 2007-03-04 08:04:56 UTC (rev 89) @@ -1,21 +0,0 @@ -#EXTM3U -#EXTM3U -#EXTINF:0,background -#EXTVLCOPT:sout=#transcode:std -#EXTVLCOPT:sout-transcode-width=480 -#EXTVLCOPT:sout-transcode-height=576 -#EXTVLCOPT:sout-transcode-vb=4800 -#EXTVLCOPT:sout-transcode-vcodec=mp2v -#EXTVLCOPT:sout-transcode-vfilter=deinterlace -#EXTVLCOPT:sout-deinterlace-mode=blend -#EXTVLCOPT:fake-file= -#EXTVLCOPT:sout-transcode-vb=9000 -#EXTVLCOPT:sout-transcode-vcodec=mp2v -#EXTVLCOPT:sout-ffmpeg-keyint=8 -#EXTVLCOPT:sout-ffmpeg-interlace -#EXTVLCOPT:no-sout-ffmpeg-interlace-me -#EXTVLCOPT:fake-aspect-ratio=4:3 -#EXTVLCOPT:fake-keep-ar -#EXTVLCOPT:fake-deinterlace -#EXTVLCOPT:deinterlace-mode=blend -fake: \ No newline at end of file Modified: trunk/configuration/scan_video.php =================================================================== --- trunk/configuration/scan_video.php 2007-03-04 08:03:07 UTC (rev 88) +++ trunk/configuration/scan_video.php 2007-03-04 08:04:56 UTC (rev 89) @@ -109,7 +109,7 @@ } } } - // echo '<meta http-equiv="refresh" content="0;url=index1.php?page=52&get_info=1">'."\n"; + echo '<meta http-equiv="refresh" content="0;url=index1.php?page=52&get_info=1">'."\n"; ?> <font size="3"> Liste des fichiers cr\xE9\xE9e... R\xE9cup\xE9ration des informations depuis allocin\xE9 (0%) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <cra...@us...> - 2007-03-07 06:39:03
|
Revision: 92 http://svn.sourceforge.net/easybox-mod/?rev=92&view=rev Author: craftsnux Date: 2007-03-06 22:38:57 -0800 (Tue, 06 Mar 2007) Log Message: ----------- correction probl?\195?\168me d'accents sous linux Modified Paths: -------------- trunk/configuration/config.xml trunk/configuration/general.php trunk/configuration/index1.php trunk/http-vlc/lecteur/play.html Modified: trunk/configuration/config.xml =================================================================== --- trunk/configuration/config.xml 2007-03-04 10:24:49 UTC (rev 91) +++ trunk/configuration/config.xml 2007-03-07 06:38:57 UTC (rev 92) @@ -3,19 +3,19 @@ <channel> <categorie name="explorateur" > <souscat name="films_defaut" > - <name>Dossiers o\xF9 le scanner doit chercher vos vid\xE9os. Le premier de la liste sera le dossier par d\xE9faut de l'explorateur de films</name> + <name>Dossiers o&ugrave; le scanner doit chercher vos vid&eacute;os. Le premier de la liste sera le dossier par d&eacute;faut de l'explorateur de films</name> <type>navigateur</type> <defaut1>c:\</defaut1> <defaut2>/</defaut2> </souscat> <souscat name="photos_defaut" > - <name>Dossier des photos par d\xE9faut. Le premier de la liste sera le dossier par d\xE9faut de l'explorateur de photos</name> + <name>Dossier des photos par d&eacute;faut. Le premier de la liste sera le dossier par d&eacute;faut de l'explorateur de photos</name> <type>navigateur</type> <defaut1>c:\</defaut1> <defaut2>/</defaut2> </souscat> <souscat name="audio_defaut" > - <name>Dossiers o\xF9 le scanner doit chercher vos fichiers audios. Le premier de la liste sera le dossier par d\xE9faut de l'explorateur audio</name> + <name>Dossiers o&ugrave; le scanner doit chercher vos fichiers audios. Le premier de la liste sera le dossier par d&eacute;faut de l'explorateur audio</name> <type>navigateur</type> <defaut1>c:\</defaut1> <defaut2>/</defaut2> @@ -27,49 +27,49 @@ <defaut2>/mnt/cdrom</defaut2> </souscat> <souscat name="ext" > - <name>Extensions interpr\xE9t\xE9es comme des fichiers vid\xE9os par Easy-Box</name> + <name>Extensions interpr&eacute;t&eacute;es comme des fichiers vid&eacute;os par Easy-Box</name> <type>text</type> <defaut>.avi,.mpg,.mpeg,.mkv,.ogg,.wmv,.wma,.mp4,.3gp,.mov</defaut> </souscat> <souscat name="ext_photo" > - <name>Extensions interpr\xE9t\xE9es comme des photos par Easy-Box</name> + <name>Extensions interpr&eacute;t&eacute;es comme des photos par Easy-Box</name> <type>text</type> <defaut>.jpg,.gif,.bmp,.jpeg,.png</defaut> </souscat> <souscat name="ext_audio" > - <name>Extensions interpr\xE9t\xE9es comme des fichiers audios par Easy-Box</name> + <name>Extensions interpr&eacute;t&eacute;es comme des fichiers audios par Easy-Box</name> <type>text</type> <defaut>.mp3,.ogg,.wma,.cda,.m3u,.wav</defaut> </souscat> <souscat name="ext_noscan" > - <name>Ne pas traiter les r\xE9pertoires dont le nom contient une des valeurs suivantes</name> + <name>Ne pas traiter les r&eacute;pertoires dont le nom contient une des valeurs suivantes</name> <type>text</type> <defaut>NOSCAN</defaut> </souscat> <souscat name="afficher_fichier_cache" > - <name>Afficher les fichiers cach\xE9s dans les explorateurs</name> + <name>Afficher les fichiers cach&eacute;s dans les explorateurs</name> <type>boolean</type> <defaut>non</defaut> </souscat> <souscat name="nettoyer" > - <name>Chaines de caract\xE8res supprim\xE9es dans le nom des films pour une recherche plus ais\xE9e d'information sur internet</name> + <name>Chaines de caract&egrave;res supprim&eacute;es dans le nom des films pour une recherche plus ais&eacute;e d'information sur internet</name> <type>text</type> <defaut>cd1,cd2,divx,dvdrip,_,FRENCH,FR,VOSTFR,Vostfr</defaut> </souscat> <souscat name="liste_amc_defaut" > - <name>Dossier contenant le fichier a scanner pour importer les donn\xE9es du logiciel Ant Movie Catalogue.</name> + <name>Dossier contenant le fichier a scanner pour importer les donn&eacute;es du logiciel Ant Movie Catalogue.</name> <type>text</type> <defaut1>C:\Program Files\Ant Movie Catalog\Catalogs</defaut1> <defaut2>/</defaut2> </souscat> <souscat name="nom_amc_defaut" > - <name>Nom du fichier Ant Movie Catalogue au format XML qui doit \xEAtre scann\xE9.</name> + <name>Nom du fichier Ant Movie Catalogue au format XML qui doit &eacute;tre scann&eacute;.</name> <type>text</type> <defaut1>exemple.xml</defaut1> <defaut2>/</defaut2> </souscat> <souscat name="image_amc_defaut" > - <name>Dossier contenant les images g\xE9n\xE9r\xE9es lors de la sauvegarde du fichier XML par Ant Movie Catalogue.</name> + <name>Dossier contenant les images g&eacute;n&eacute;r&eacute;es lors de la sauvegarde du fichier XML par Ant Movie Catalogue.</name> <type>text</type> <defaut1>C:\Program Files\Ant Movie Catalog\Catalogs</defaut1> <defaut2>/</defaut2> @@ -91,11 +91,11 @@ <type>options</type> <option> <choix> - <nom>Sortie TV transcod\xE9e (St\xE9r\xE9o)</nom> + <nom>Sortie TV transcod&eacute;e (St&eacute;r&eacute;o)</nom> <titre>TV</titre> </choix> <choix> - <nom>Sortie TV non-transcod\xE9e (AC3)</nom> + <nom>Sortie TV non-transcod&eacute;e (AC3)</nom> <titre>AC3</titre> </choix> <choix> @@ -106,13 +106,13 @@ <defaut>TV</defaut> </souscat> <souscat name="compensation" > - <name>Permet de d\xE9caler la bande son pour qu'elle commence apr\xE8s la vid\xE9o (\xE0 utiliser quand le son sort de la carte son du PC et que le son est d\xE9cal\xE9 sinon mettre \xE0 0) (en millisecondes)</name> + <name>Permet de d&eacute;caler la bande son pour qu'elle commence apr&egrave;s la vid&eacute;o (&agrave; utiliser quand le son sort de la carte son du PC et que le son est d&eacute;cal&eacute; sinon mettre &agrave; 0) (en millisecondes)</name> <type>text</type> <typeplus>numeric</typeplus> <defaut>0</defaut> </souscat> <souscat name="qualite" > - <name>Selectionnez ici le profil de qualit\xE9 de VLC</name> + <name>Selectionnez ici le profil de qualit&eacute; de VLC</name> <type>options</type> <option> <choix> @@ -120,11 +120,11 @@ <titre>play.html</titre> </choix> <choix> - <nom>Wifi et ordinateurs moyens (les d\xE9bits sont un peu diminu\xE9s, \xE0 essayer en cas de lags l\xE9gers)</nom> + <nom>Wifi et ordinateurs moyens (les d&eacute;bits sont un peu diminu&eacute;s, &agrave; essayer en cas de lags l&eacute;gers)</nom> <titre>play-wifi.html</titre> </choix> <choix> - <nom>Wifi difficile et ordinateurs peu puissants (les d\xE9bits sont pas mal diminu\xE9s, \xE0 essayer en cas de lags importants)</nom> + <nom>Wifi difficile et ordinateurs peu puissants (les d&eacute;bits sont pas mal diminu&eacute;s, &agrave; essayer en cas de lags importants)</nom> <titre>play-low.html</titre> </choix> </option> @@ -138,7 +138,7 @@ <defaut/> </souscat> <souscat name="service_port" > - <name>Port sur lequel Easy-Box se connecte \xE0 votre serveur mail</name> + <name>Port sur lequel Easy-Box se connecte &agrave; votre serveur mail</name> <type>text</type> <typeplus>numeric</typeplus> <defaut>110</defaut> @@ -149,20 +149,20 @@ <defaut/> </souscat> <souscat name="pass" > - <name>Mot de passe pour vous connecter \xE0 votre compte mail</name> + <name>Mot de passe pour vous connecter &agrave; votre compte mail</name> <type>password</type> <defaut/> </souscat> </categorie> <categorie name="messagerie" > <souscat name="compte" > - <name>Num\xE9ro de votre compte Free Haut-D\xE9bit (inutilis\xE9 pour l'instant)</name> + <name>Num&eacute;ro de votre compte Free Haut-D&eacute;bit (inutilis&eacute; pour l'instant)</name> <type>text</type> <typeplus>numeric</typeplus> <defaut/> </souscat> <souscat name="motdepasse" > - <name>Mot de passe de votre compte Free Haut-D\xE9bit (inutilis\xE9 pour l'instant)</name> + <name>Mot de passe de votre compte Free Haut-D&eacute;bit (inutilis&eacute; pour l'instant)</name> <type>password</type> <defaut/> </souscat> @@ -183,31 +183,31 @@ </categorie> <categorie name="download" > <souscat name="patch" > - <name>Chemin o\xF9 sont stock\xE9es les mises \xE0 jour</name> + <name>Chemin o&ugrave; sont stock&eacute;es les mises &agrave; jour</name> <type>text</type> <defaut>http://www.easybox-mod.org/modules/addon/</defaut> </souscat> <souscat name="xml" > - <name>Chemin vers le fichier listant les mises \xE0 jour</name> + <name>Chemin vers le fichier listant les mises &agrave; jour</name> <type>text</type> <defaut>http://www.easybox-mod.org/genxml.php</defaut> </souscat> </categorie> <categorie name="demarrage" > <souscat name="demarrage" > - <name>Modifier la page de d\xE9marrage</name> + <name>Modifier la page de d&eacute;marrage</name> <type>hidden</type> <defaut>_menu/menu.php</defaut> </souscat> </categorie> <categorie name="utilisateur" > <souscat name="actif" > - <name>Activer la gestion des login de connexion \xE0 Easy-Box</name> + <name>Activer la gestion des login de connexion &agrave; Easy-Box</name> <type>boolean</type> <defaut>non</defaut> </souscat> <souscat name="namelevel5" > - <name>Nom de l'acces niveau 5 (le plus haut grade, permet d'acc\xE9der \xE0 tous les modules et \xE0 la configuration \xE0 tout)</name> + <name>Nom de l'acces niveau 5 (le plus haut grade, permet d'acc&egrave;der &agrave; tous les modules et &agrave; la configuration &agrave; tout)</name> <type>text</type> <defaut>Admin</defaut> </souscat> @@ -218,7 +218,7 @@ <defaut/> </souscat> <souscat name="namelevel4" > - <name>Nom de l'acces niveau 4 - En laissant le nom vide, ce niveau d'acces sera supprim\xE9</name> + <name>Nom de l'acces niveau 4 - En laissant le nom vide, ce niveau d'acces sera supprim&eacute;</name> <type>text</type> <defaut/> </souscat> @@ -229,7 +229,7 @@ <defaut/> </souscat> <souscat name="namelevel3" > - <name>Nom de l'acces niveau 3 - En laissant le nom vide, ce niveau d'acces sera supprim\xE9</name> + <name>Nom de l'acces niveau 3 - En laissant le nom vide, ce niveau d'acces sera supprim&eacute;</name> <type>text</type> <defaut/> </souscat> @@ -240,7 +240,7 @@ <defaut/> </souscat> <souscat name="namelevel2" > - <name>Nom de l'acces niveau 2 - En laissant le nom vide, ce niveau d'acces sera supprim\xE9</name> + <name>Nom de l'acces niveau 2 - En laissant le nom vide, ce niveau d'acces sera supprim&eacute;</name> <type>text</type> <defaut/> </souscat> @@ -251,7 +251,7 @@ <defaut/> </souscat> <souscat name="namelevel1" > - <name>Nom de l'acces niveau 1 (le plus petit grade, acc\xE8s le plus control\xE9) - En laissant le nom vide, ce niveau d'acces sera supprim\xE9</name> + <name>Nom de l'acces niveau 1 (le plus petit grade, acc&egrave;s le plus control&eacute;) - En laissant le nom vide, ce niveau d'acc&egrave;s sera supprim&eacute;</name> <type>text</type> <defaut/> </souscat> @@ -311,7 +311,7 @@ </categorie> <categorie name="multiposte" > <souscat name="muxer" > - <name>Muxer \xE0 utiliser pour l'enregistrement</name> + <name>Muxer &agrave; utiliser pour l'enregistrement</name> <type>options</type> <option> <choix> @@ -354,7 +354,7 @@ <defaut>ps</defaut> </souscat> <souscat name="cvid" > - <name>Codec vid\xE9o</name> + <name>Codec vid&eacute;o</name> <type>options</type> <option> <choix> @@ -460,7 +460,7 @@ <defaut>none</defaut> </souscat> <souscat name="bvid" > - <name>Bitrate vid\xE9o</name> + <name>Bitrate vid&eacute;o</name> <type>text</type> <typeplus>numeric</typeplus> <defaut>2000</defaut> @@ -472,7 +472,7 @@ <defaut>256</defaut> </souscat> <souscat name="multiposte" > - <name>Disque \xE0 la base duquel sont mis les enregistrements vid\xE9o</name> + <name>Disque &agrave; la base duquel sont mis les enregistrements vid&eacute;o</name> <type>dvd</type> <defaut>c:</defaut> </souscat> @@ -489,14 +489,14 @@ <defaut>60</defaut> </souscat> <souscat name="scr_temps" > - <name>D\xE9lais entre le changement d'image (0 = al\xE9atoire)</name> + <name>D&eacute;lais entre le changement d'image (0 = al&eacute;atoire)</name> <type>text</type> <defaut>0</defaut> </souscat> </categorie> <categorie name="modules" > <souscat name="afficher_categories" > - <name>Afficher les cat\xE9gories dans le menu principal.</name> + <name>Afficher les cat&eacute;gories dans le menu principal.</name> <type>boolean</type> <defaut>oui</defaut> </souscat> Modified: trunk/configuration/general.php =================================================================== --- trunk/configuration/general.php 2007-03-04 10:24:49 UTC (rev 91) +++ trunk/configuration/general.php 2007-03-07 06:38:57 UTC (rev 92) @@ -53,9 +53,9 @@ foreach($ici->souscat as $soucate){ if ($soucate['name'] == $subkey) $icisous=$soucate; } - $name = utf8_decode($icisous->name); - $type = utf8_decode($icisous->type); - $typeplus = utf8_decode($icisous->typeplus); + $name = $icisous->name; + $type = $icisous->type; + $typeplus = $icisous->typeplus; $affichepage[$numero_id].=<<<EOD <tr> @@ -178,12 +178,12 @@ EOD; $affichepage[$numero_id].='<option value="."'; if($entry==".") { $affichepage[$numero_id].='selected'; } - $affichepage[$numero_id].='>Pas Utilis\xE9</option>'; + $affichepage[$numero_id].='>Pas Utilisé</option>'; foreach($MOD as $module){ $affichepage[$numero_id].= '<option value="'.$module['repertoire'].$module['lien'].'"'; if($entry==$module['repertoire'].$module['lien']) { $affichepage[$numero_id].='selected'; } - $affichepage[$numero_id].= '>'.$module['nom'].'</option>'; + $affichepage[$numero_id].= '>'.htmlentities($module['nom']).'</option>'; } $db = sqlite_open('../_utilisateur/utilisateur.db', 0666); Modified: trunk/configuration/index1.php =================================================================== --- trunk/configuration/index1.php 2007-03-04 10:24:49 UTC (rev 91) +++ trunk/configuration/index1.php 2007-03-07 06:38:57 UTC (rev 92) @@ -175,7 +175,7 @@ if ($_REQUEST['page']) $page=$_REQUEST['page']; -$titre=array("Général","Permissions","Skin","Démarrage","Scan","T\xE9l\xE9chargement","Agenda","RSS","Podcast","Screensaver","Site web"); +$titre=array("Général","Permissions","Skin","Démarrage","Scan","Téléchargement","Agenda","RSS","Podcast","Screensaver","Site web"); $b_menu=array(); $i=0; Modified: trunk/http-vlc/lecteur/play.html =================================================================== --- trunk/http-vlc/lecteur/play.html 2007-03-04 10:24:49 UTC (rev 91) +++ trunk/http-vlc/lecteur/play.html 2007-03-07 06:38:57 UTC (rev 92) @@ -1,46 +1,46 @@ -<!-- R\xE9cup\xE9ration des variables --> +<!-- Recuperation des variables --> <vlc id="rpn" param1="mrl 'mrl' url_extract store" /> <vlc id="rpn" param1="type 'type' url_extract store" /> <vlc id="rpn" param1="qfile '\'' mrl value strcat '\'' strcat store" /> -<!-- Fichiers vid\xE9os --> +<!-- Fichiers videos --> <!-- audio/video Lecture d'un fichier dans la playlist - Type 0 --> <vlc id="if" param1="type value 0 =" /> <vlc id="rpn" param1="mrl value vlc_play" /> <vlc id="end" /> -<!-- audio/video jou\xE9 et transcod\xE9 normalement TV - Type 1 --> +<!-- audio/video joue et transcode normalement TV - Type 1 --> <vlc id="if" param1="type value 1 =" /> <vlc id="rpn" param1="vlc_stop" /> <vlc id="rpn" param1="playlist_empty" /> <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=4096 :sout-transcode-acodec=mpga :sout-transcode-ab=256 :sout-transcode-channels=2 :sout-transcode-samplerate=44100 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay' strcat mrl value playlist_add vlc_play" /> <vlc id="end" /> -<!-- audio/video ajout\xE9 et transcod\xE9 normalement TV - Type 2 --> +<!-- audio/video ajoute et transcode normalement TV - Type 2 --> <vlc id="if" param1="type value 2 =" /> <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=4096 :sout-transcode-acodec=mpga :sout-transcode-ab=256 :sout-transcode-channels=2 :sout-transcode-samplerate=44100 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay' strcat mrl value playlist_add" /> <vlc id="end" /> -<!-- audio/video jou\xE9 et transcod\xE9 avec sortie sur PC - Type 3 --> +<!-- audio/video joue et transcode avec sortie sur PC - Type 3 --> <vlc id="if" param1="type value 3 =" /> <vlc id="rpn" param1="vlc_stop" /> <vlc id="rpn" param1="playlist_empty" /> <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout=#duplicate{dst=transcode:std,select=video,dst=display,select=audio} :sout-transcode-vcodec=mp2v :sout-transcode-vb=4096 :sout-transcode-acodec=a52 :sout-transcode-ab=512 :sout-transcode-channels=6 :sout-transcode-samplerate=44100 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay' strcat mrl value playlist_add vlc_play" /> <vlc id="end" /> -<!-- audio/video ajout\xE9 et transcod\xE9 avec sortie sur PC - Type 4 --> +<!-- audio/video ajoute et transcode avec sortie sur PC - Type 4 --> <vlc id="if" param1="type value 4 =" /> <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout=#duplicate{dst=transcode:std,select=video,dst=display,select=audio} :sout-transcode-vcodec=mp2v :sout-transcode-vb=4096 :sout-transcode-acodec=a52 :sout-transcode-ab=512 :sout-transcode-channels=6 :sout-transcode-samplerate=44100 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay' strcat mrl value playlist_add" /> <vlc id="end" /> -<!-- audio/video jou\xE9 et transcod\xE9 avec sortie en AC3 - Type 5 --> +<!-- audio/video joue et transcode avec sortie en AC3 - Type 5 --> <vlc id="if" param1="type value 5 =" /> <vlc id="rpn" param1="vlc_stop" /> <vlc id="rpn" param1="playlist_empty" /> <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=4096 :sout-transcode-ab=512 :sout-transcode-channels=6 :sout-transcode-acodec=a52 :sout-transcode-samplerate=44100 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay' strcat mrl value playlist_add vlc_play" /> <vlc id="end" /> -<!-- audio/video ajout\xE9 et transcod\xE9 avec sortie en AC3 - Type 6 --> +<!-- audio/video ajoute et transcode avec sortie en AC3 - Type 6 --> <vlc id="if" param1="type value 6 =" /> <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=4096 :sout-transcode-ab=512 :sout-transcode-channels=6 :sout-transcode-acodec=a52 :sout-transcode-samplerate=44100 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay' strcat mrl value playlist_add" /> <vlc id="end" /> @@ -54,7 +54,7 @@ <!-- Fichiers photos --> -<!-- photo jou\xE9e normalement - Type 20 --> +<!-- photo jouee normalement - Type 20 --> <vlc id="if" param1="type value 20 =" /> <vlc id="rpn" param1="0 loop 'VLC_OBJECT_PLAYLIST' vlc_var_set"/> <vlc id="rpn" param1="0 random 'VLC_OBJECT_PLAYLIST' vlc_var_set"/> @@ -66,7 +66,7 @@ <vlc id="end" /> -<!-- photo ajout\xE9e normalement - Type 21 --> +<!-- photo ajoutee normalement - Type 21 --> <vlc id="if" param1="type value 21 =" /> <vlc id="rpn" param1="0 loop 'VLC_OBJECT_PLAYLIST' vlc_var_set"/> <vlc id="rpn" param1="0 random 'VLC_OBJECT_PLAYLIST' vlc_var_set"/> @@ -76,7 +76,7 @@ <vlc id="end" /> -<!-- playlist de photo jou\xE9e normalement - Type 22 --> +<!-- playlist de photo jouee normalement - Type 22 --> <vlc id="if" param1="type value 22 =" /> <vlc id="rpn" param1="vlc_stop" /> <vlc id="rpn" param1="playlist_empty" /> @@ -87,7 +87,7 @@ <vlc id="rpn" param1="qfile value mrl value playlist_add vlc_play" /> <vlc id="end" /> -<!-- playlist de photo ajout\xE9e normalement - Type 23 --> +<!-- playlist de photo ajoutee normalement - Type 23 --> <vlc id="if" param1="type value 23 =" /> <vlc id="rpn" param1="0 loop 'VLC_OBJECT_PLAYLIST' vlc_var_set"/> <vlc id="rpn" param1="0 random 'VLC_OBJECT_PLAYLIST' vlc_var_set"/> @@ -99,38 +99,38 @@ <!-- DVDs --> -<!-- dvd jou\xE9 normalement - transcodage audio - Type 30 --> +<!-- dvd joue normalement - transcodage audio - Type 30 --> <vlc id="if" param1="type value 30 =" /> <vlc id="rpn" param1="vlc_stop" /> <vlc id="rpn" param1="playlist_empty" /> <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-ab=256 :sout-transcode-acodec=mpga :sout-transcode-channels=2 :sout-transcode-samplerate=44100 :sout-transcode-soverlay :sout-transcode-vt=1000000 :sout-transcode-fps=25.0' strcat mrl value playlist_add vlc_play" /> <vlc id="end" /> -<!-- dvd jou\xE9 normalement - sortie audio PC - Type 31 --> +<!-- dvd joue normalement - sortie audio PC - Type 31 --> <vlc id="if" param1="type value 31 =" /> <vlc id="rpn" param1="vlc_stop" /> <vlc id="rpn" param1="playlist_empty" /> <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout=#duplicate{dst=transcode:std,select=video,dst=display,select=audio} :sout-transcode-ab=512 :sout-transcode-acodec=a52 :sout-transcode-channels=6 :sout-transcode-samplerate=44100 :sout-transcode-soverlay :sout-transcode-vt=1000000 :sout-transcode-fps=25.0' strcat mrl value playlist_add vlc_play" /> <vlc id="end" /> -<!-- dvd jou\xE9 normalement - Sortie AC3 audio - Type 32 --> +<!-- dvd joue normalement - Sortie AC3 audio - Type 32 --> <vlc id="if" param1="type value 32 =" /> <vlc id="rpn" param1="vlc_stop" /> <vlc id="rpn" param1="playlist_empty" /> <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-ab=512 :sout-transcode-acodec=a52 :sout-transcode-channels=6 :sout-transcode-samplerate=44100 :sout-transcode-soverlay :sout-transcode-vt=1000000 :sout-transcode-fps=25.0' strcat mrl value playlist_add vlc_play" /> <vlc id="end" /> -<!-- dvd ajout\xE9 normalement - transcodage audio - Type 33 --> +<!-- dvd ajoute normalement - transcodage audio - Type 33 --> <vlc id="if" param1="type value 33 =" /> <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-ab=256 :sout-transcode-acodec=mpga :sout-transcode-channels=2 :sout-transcode-samplerate=44100 :sout-transcode-soverlay :sout-transcode-vt=1000000 :sout-transcode-fps=25.0' strcat mrl value playlist_add" /> <vlc id="end" /> -<!-- dvd ajout\xE9 normalement - sortie audio PC - Type 34 --> +<!-- dvd ajoute normalement - sortie audio PC - Type 34 --> <vlc id="if" param1="type value 34 =" /> <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout=#duplicate{dst=transcode:std,select=video,dst=display,select=audio} :sout-transcode-ab=512 :sout-transcode-acodec=a52 :sout-transcode-channels=6 :sout-transcode-samplerate=44100 :sout-transcode-soverlay :sout-transcode-vt=1000000 :sout-transcode-fps=25.0' strcat mrl value playlist_add" /> <vlc id="end" /> -<!-- dvd ajout\xE9 normalement - Sortie AC3 audio - Type 35 --> +<!-- dvd ajoute normalement - Sortie AC3 audio - Type 35 --> <vlc id="if" param1="type value 35 =" /> <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-ab=512 :sout-transcode-acodec=a52 :sout-transcode-channels=6 :sout-transcode-samplerate=44100 :sout-transcode-soverlay :sout-transcode-vt=1000000 :sout-transcode-fps=25.0' strcat mrl value playlist_add" /> <vlc id="end" /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2007-03-09 16:06:53
|
Revision: 93 http://svn.sourceforge.net/easybox-mod/?rev=93&view=rev Author: aragornis Date: 2007-03-09 08:06:45 -0800 (Fri, 09 Mar 2007) Log Message: ----------- Introduction des zones de texte dynamiques R?\195?\169paration du module horloge Miscellanius et surprises ^^ R?\195?\169paration de la lecture des photos Modified Paths: -------------- trunk/http-vlc/lecteur/play.html trunk/module/_explorateur/explorateur.tpl trunk/module/diaporama/explorateur_photo.tpl trunk/module/films/films.tpl trunk/module/films/info.php trunk/module/films/lecture.php trunk/module/horloge/index1.php trunk/module/modules/modules.tpl trunk/settings.html trunk/skin/simple/interface.tpl trunk/skin/simplegreen/interface/Thumbs.db trunk/skin/simplegreen/interface.tpl Modified: trunk/http-vlc/lecteur/play.html =================================================================== --- trunk/http-vlc/lecteur/play.html 2007-03-07 06:38:57 UTC (rev 92) +++ trunk/http-vlc/lecteur/play.html 2007-03-09 16:06:45 UTC (rev 93) @@ -1,164 +1,164 @@ -<!-- Recuperation des variables --> -<vlc id="rpn" param1="mrl 'mrl' url_extract store" /> -<vlc id="rpn" param1="type 'type' url_extract store" /> -<vlc id="rpn" param1="qfile '\'' mrl value strcat '\'' strcat store" /> - -<!-- Fichiers videos --> -<!-- audio/video Lecture d'un fichier dans la playlist - Type 0 --> - <vlc id="if" param1="type value 0 =" /> - <vlc id="rpn" param1="mrl value vlc_play" /> - <vlc id="end" /> - -<!-- audio/video joue et transcode normalement TV - Type 1 --> - <vlc id="if" param1="type value 1 =" /> - <vlc id="rpn" param1="vlc_stop" /> - <vlc id="rpn" param1="playlist_empty" /> - <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=4096 :sout-transcode-acodec=mpga :sout-transcode-ab=256 :sout-transcode-channels=2 :sout-transcode-samplerate=44100 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay' strcat mrl value playlist_add vlc_play" /> - <vlc id="end" /> - -<!-- audio/video ajoute et transcode normalement TV - Type 2 --> - <vlc id="if" param1="type value 2 =" /> - <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=4096 :sout-transcode-acodec=mpga :sout-transcode-ab=256 :sout-transcode-channels=2 :sout-transcode-samplerate=44100 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay' strcat mrl value playlist_add" /> - <vlc id="end" /> - -<!-- audio/video joue et transcode avec sortie sur PC - Type 3 --> - <vlc id="if" param1="type value 3 =" /> - <vlc id="rpn" param1="vlc_stop" /> - <vlc id="rpn" param1="playlist_empty" /> - <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout=#duplicate{dst=transcode:std,select=video,dst=display,select=audio} :sout-transcode-vcodec=mp2v :sout-transcode-vb=4096 :sout-transcode-acodec=a52 :sout-transcode-ab=512 :sout-transcode-channels=6 :sout-transcode-samplerate=44100 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay' strcat mrl value playlist_add vlc_play" /> - <vlc id="end" /> - -<!-- audio/video ajoute et transcode avec sortie sur PC - Type 4 --> - <vlc id="if" param1="type value 4 =" /> - <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout=#duplicate{dst=transcode:std,select=video,dst=display,select=audio} :sout-transcode-vcodec=mp2v :sout-transcode-vb=4096 :sout-transcode-acodec=a52 :sout-transcode-ab=512 :sout-transcode-channels=6 :sout-transcode-samplerate=44100 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay' strcat mrl value playlist_add" /> - <vlc id="end" /> - -<!-- audio/video joue et transcode avec sortie en AC3 - Type 5 --> - <vlc id="if" param1="type value 5 =" /> - <vlc id="rpn" param1="vlc_stop" /> - <vlc id="rpn" param1="playlist_empty" /> - <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=4096 :sout-transcode-ab=512 :sout-transcode-channels=6 :sout-transcode-acodec=a52 :sout-transcode-samplerate=44100 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay' strcat mrl value playlist_add vlc_play" /> - <vlc id="end" /> - -<!-- audio/video ajoute et transcode avec sortie en AC3 - Type 6 --> - <vlc id="if" param1="type value 6 =" /> - <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=4096 :sout-transcode-ab=512 :sout-transcode-channels=6 :sout-transcode-acodec=a52 :sout-transcode-samplerate=44100 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay' strcat mrl value playlist_add" /> - <vlc id="end" /> - -<!-- messagerie audio - Type 7 --> - <vlc id="if" param1="type value 7 =" /> - <vlc id="rpn" param1="vlc_stop" /> - <vlc id="rpn" param1="playlist_empty" /> - <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-ab=256 :sout-transcode-acodec=mpga :sout-transcode-channels=2 :sout-transcode-samplerate=48000' strcat mrl value playlist_add vlc_play" /> - <vlc id="end" /> - -<!-- Fichiers photos --> - -<!-- photo jouee normalement - Type 20 --> - <vlc id="if" param1="type value 20 =" /> - <vlc id="rpn" param1="0 loop 'VLC_OBJECT_PLAYLIST' vlc_var_set"/> - <vlc id="rpn" param1="0 random 'VLC_OBJECT_PLAYLIST' vlc_var_set"/> - <vlc id="rpn" param1="0 repeat 'VLC_OBJECT_PLAYLIST' vlc_var_set"/> - <vlc id="rpn" param1="vlc_stop" /> - <vlc id="rpn" param1="playlist_empty" /> - <vlc id="rpn" param1="'temps' url_extract 'fake-duration' vlc_config_set" /> - <vlc id="rpn" param1="'fake: :sout=#transcode:std :sout-transcode-width=720 :sout-transcode-height=576 :sout-transcode-vb=4096 :sout-transcode-vcodec=mp2v :sout-transcode-vfilter=deinterlace :sout-deinterlace-mode=blend :sout-transcode-vb=9000 :sout-transcode-vcodec=mp2v :sout-ffmpeg-keyint=8 :sout-ffmpeg-interlace :no-sout-ffmpeg-interlace-me :fake-aspect-ratio=4:3 :fake-keep-ar :fake-deinterlace :deinterlace-mode=blend :fake-file=' mrl value strcat mrl value playlist_add vlc_play" /> - <vlc id="end" /> - - -<!-- photo ajoutee normalement - Type 21 --> - <vlc id="if" param1="type value 21 =" /> - <vlc id="rpn" param1="0 loop 'VLC_OBJECT_PLAYLIST' vlc_var_set"/> - <vlc id="rpn" param1="0 random 'VLC_OBJECT_PLAYLIST' vlc_var_set"/> - <vlc id="rpn" param1="0 repeat 'VLC_OBJECT_PLAYLIST' vlc_var_set"/> - <vlc id="rpn" param1="'temps' url_extract 'fake-duration' vlc_config_set" /> - <vlc id="rpn" param1="'fake: :sout=#transcode:std :sout-transcode-width=720 :sout-transcode-height=576 :sout-transcode-vb=4096 :sout-transcode-vcodec=mp2v :sout-transcode-vfilter=deinterlace :sout-deinterlace-mode=blend :sout-transcode-vb=9000 :sout-transcode-vcodec=mp2v :sout-ffmpeg-keyint=8 :sout-ffmpeg-interlace :no-sout-ffmpeg-interlace-me :fake-aspect-ratio=4:3 :fake-keep-ar :fake-deinterlace :deinterlace-mode=blend :fake-file=' mrl value strcat mrl value playlist_add" /> - <vlc id="end" /> - - -<!-- playlist de photo jouee normalement - Type 22 --> - <vlc id="if" param1="type value 22 =" /> - <vlc id="rpn" param1="vlc_stop" /> - <vlc id="rpn" param1="playlist_empty" /> - <vlc id="rpn" param1="0 loop 'VLC_OBJECT_PLAYLIST' vlc_var_set"/> - <vlc id="rpn" param1="0 random 'VLC_OBJECT_PLAYLIST' vlc_var_set"/> - <vlc id="rpn" param1="0 repeat 'VLC_OBJECT_PLAYLIST' vlc_var_set"/> - <vlc id="rpn" param1="'temps' url_extract 'fake-duration' vlc_config_set" /> - <vlc id="rpn" param1="qfile value mrl value playlist_add vlc_play" /> - <vlc id="end" /> - -<!-- playlist de photo ajoutee normalement - Type 23 --> - <vlc id="if" param1="type value 23 =" /> - <vlc id="rpn" param1="0 loop 'VLC_OBJECT_PLAYLIST' vlc_var_set"/> - <vlc id="rpn" param1="0 random 'VLC_OBJECT_PLAYLIST' vlc_var_set"/> - <vlc id="rpn" param1="0 repeat 'VLC_OBJECT_PLAYLIST' vlc_var_set"/> - <vlc id="rpn" param1="'temps' url_extract 'fake-duration' vlc_config_set" /> - <vlc id="rpn" param1="qfile value mrl value playlist_add" /> - <vlc id="end" /> - - -<!-- DVDs --> - -<!-- dvd joue normalement - transcodage audio - Type 30 --> - <vlc id="if" param1="type value 30 =" /> - <vlc id="rpn" param1="vlc_stop" /> - <vlc id="rpn" param1="playlist_empty" /> - <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-ab=256 :sout-transcode-acodec=mpga :sout-transcode-channels=2 :sout-transcode-samplerate=44100 :sout-transcode-soverlay :sout-transcode-vt=1000000 :sout-transcode-fps=25.0' strcat mrl value playlist_add vlc_play" /> - <vlc id="end" /> - -<!-- dvd joue normalement - sortie audio PC - Type 31 --> - <vlc id="if" param1="type value 31 =" /> - <vlc id="rpn" param1="vlc_stop" /> - <vlc id="rpn" param1="playlist_empty" /> - <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout=#duplicate{dst=transcode:std,select=video,dst=display,select=audio} :sout-transcode-ab=512 :sout-transcode-acodec=a52 :sout-transcode-channels=6 :sout-transcode-samplerate=44100 :sout-transcode-soverlay :sout-transcode-vt=1000000 :sout-transcode-fps=25.0' strcat mrl value playlist_add vlc_play" /> - <vlc id="end" /> - -<!-- dvd joue normalement - Sortie AC3 audio - Type 32 --> - <vlc id="if" param1="type value 32 =" /> - <vlc id="rpn" param1="vlc_stop" /> - <vlc id="rpn" param1="playlist_empty" /> - <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-ab=512 :sout-transcode-acodec=a52 :sout-transcode-channels=6 :sout-transcode-samplerate=44100 :sout-transcode-soverlay :sout-transcode-vt=1000000 :sout-transcode-fps=25.0' strcat mrl value playlist_add vlc_play" /> - <vlc id="end" /> - -<!-- dvd ajoute normalement - transcodage audio - Type 33 --> - <vlc id="if" param1="type value 33 =" /> - <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-ab=256 :sout-transcode-acodec=mpga :sout-transcode-channels=2 :sout-transcode-samplerate=44100 :sout-transcode-soverlay :sout-transcode-vt=1000000 :sout-transcode-fps=25.0' strcat mrl value playlist_add" /> - <vlc id="end" /> - -<!-- dvd ajoute normalement - sortie audio PC - Type 34 --> - <vlc id="if" param1="type value 34 =" /> - <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout=#duplicate{dst=transcode:std,select=video,dst=display,select=audio} :sout-transcode-ab=512 :sout-transcode-acodec=a52 :sout-transcode-channels=6 :sout-transcode-samplerate=44100 :sout-transcode-soverlay :sout-transcode-vt=1000000 :sout-transcode-fps=25.0' strcat mrl value playlist_add" /> - <vlc id="end" /> - -<!-- dvd ajoute normalement - Sortie AC3 audio - Type 35 --> - <vlc id="if" param1="type value 35 =" /> - <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-ab=512 :sout-transcode-acodec=a52 :sout-transcode-channels=6 :sout-transcode-samplerate=44100 :sout-transcode-soverlay :sout-transcode-vt=1000000 :sout-transcode-fps=25.0' strcat mrl value playlist_add" /> - <vlc id="end" /> -<!-- MMS --> - -<!-- MMS - Sortie TV - Type 40 --> - <vlc id="if" param1="type value 40 =" /> - <vlc id="rpn" param1="vlc_stop" /> - <vlc id="rpn" param1="playlist_empty" /> - <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=4096 :sout-transcode-acodec=mpga :sout-transcode-ab=256 :sout-transcode-channels=2 :sout-transcode-samplerate=44100 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :sout-transcode-soverlay :mms-caching=5000 :http-caching=5000 :http-reconnect' strcat mrl value playlist_add vlc_play" /> - <vlc id="end" /> - -<!-- MMS - Sortie PC - Type 41 --> - <vlc id="if" param1="type value 41 =" /> - <vlc id="rpn" param1="vlc_stop" /> - <vlc id="rpn" param1="playlist_empty" /> - <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout=#duplicate{dst=transcode:std,select=video,dst=display,select=audio} :sout-transcode-vcodec=a52 :sout-transcode-channels=6 :sout-transcode-samplerate=44100 :sout-transcode-vb=4096 :sout-transcode-acodec=mpga :sout-transcode-ab=512 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay :mms-caching=5000 :http-caching=5000 :http-reconnect' strcat mrl value playlist_add vlc_play" /> - <vlc id="end" /> - -<!-- MMS - Sortie AC3 - Type 42 --> - <vlc id="if" param1="type value 42 =" /> - <vlc id="rpn" param1="vlc_stop" /> - <vlc id="rpn" param1="playlist_empty" /> - <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=4096 :sout-transcode-ab=512 :sout-transcode-acodec=a52 :sout-transcode-channels=6 :sout-transcode-samplerate=44100 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay :mms-caching=5000 :http-caching=5000 :http-reconnect' strcat mrl value playlist_add vlc_play" /> - <vlc id="end" /> - -<!-- Vide la playlist - Type 999 --> - <vlc id="if" param1="type value 999 =" /> - <vlc id="rpn" param1="vlc_stop" /> - <vlc id="rpn" param1="playlist_empty" /> - <vlc id="end" /> +<!-- Recuperation des variables --> +<vlc id="rpn" param1="mrl 'mrl' url_extract store" /> +<vlc id="rpn" param1="type 'type' url_extract store" /> +<vlc id="rpn" param1="qfile '\'' mrl value strcat '\'' strcat store" /> + +<!-- Fichiers videos --> +<!-- audio/video Lecture d'un fichier dans la playlist - Type 0 --> + <vlc id="if" param1="type value 0 =" /> + <vlc id="rpn" param1="mrl value vlc_play" /> + <vlc id="end" /> + +<!-- audio/video joue et transcode normalement TV - Type 1 --> + <vlc id="if" param1="type value 1 =" /> + <vlc id="rpn" param1="vlc_stop" /> + <vlc id="rpn" param1="playlist_empty" /> + <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=4096 :sout-transcode-acodec=mpga :sout-transcode-ab=256 :sout-transcode-channels=2 :sout-transcode-samplerate=44100 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay' strcat mrl value playlist_add vlc_play" /> + <vlc id="end" /> + +<!-- audio/video ajoute et transcode normalement TV - Type 2 --> + <vlc id="if" param1="type value 2 =" /> + <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=4096 :sout-transcode-acodec=mpga :sout-transcode-ab=256 :sout-transcode-channels=2 :sout-transcode-samplerate=44100 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay' strcat mrl value playlist_add" /> + <vlc id="end" /> + +<!-- audio/video joue et transcode avec sortie sur PC - Type 3 --> + <vlc id="if" param1="type value 3 =" /> + <vlc id="rpn" param1="vlc_stop" /> + <vlc id="rpn" param1="playlist_empty" /> + <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout=#duplicate{dst=transcode:std,select=video,dst=display,select=audio} :sout-transcode-vcodec=mp2v :sout-transcode-vb=4096 :sout-transcode-acodec=a52 :sout-transcode-ab=512 :sout-transcode-channels=6 :sout-transcode-samplerate=44100 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay' strcat mrl value playlist_add vlc_play" /> + <vlc id="end" /> + +<!-- audio/video ajoute et transcode avec sortie sur PC - Type 4 --> + <vlc id="if" param1="type value 4 =" /> + <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout=#duplicate{dst=transcode:std,select=video,dst=display,select=audio} :sout-transcode-vcodec=mp2v :sout-transcode-vb=4096 :sout-transcode-acodec=a52 :sout-transcode-ab=512 :sout-transcode-channels=6 :sout-transcode-samplerate=44100 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay' strcat mrl value playlist_add" /> + <vlc id="end" /> + +<!-- audio/video joue et transcode avec sortie en AC3 - Type 5 --> + <vlc id="if" param1="type value 5 =" /> + <vlc id="rpn" param1="vlc_stop" /> + <vlc id="rpn" param1="playlist_empty" /> + <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=4096 :sout-transcode-ab=512 :sout-transcode-channels=6 :sout-transcode-acodec=a52 :sout-transcode-samplerate=44100 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay' strcat mrl value playlist_add vlc_play" /> + <vlc id="end" /> + +<!-- audio/video ajoute et transcode avec sortie en AC3 - Type 6 --> + <vlc id="if" param1="type value 6 =" /> + <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=4096 :sout-transcode-ab=512 :sout-transcode-channels=6 :sout-transcode-acodec=a52 :sout-transcode-samplerate=44100 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay' strcat mrl value playlist_add" /> + <vlc id="end" /> + +<!-- messagerie audio - Type 7 --> + <vlc id="if" param1="type value 7 =" /> + <vlc id="rpn" param1="vlc_stop" /> + <vlc id="rpn" param1="playlist_empty" /> + <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-ab=256 :sout-transcode-acodec=mpga :sout-transcode-channels=2 :sout-transcode-samplerate=48000' strcat mrl value playlist_add vlc_play" /> + <vlc id="end" /> + +<!-- Fichiers photos --> + +<!-- photo jouee normalement - Type 20 --> + <vlc id="if" param1="type value 20 =" /> + <vlc id="rpn" param1="0 loop 'VLC_OBJECT_PLAYLIST' vlc_var_set"/> + <vlc id="rpn" param1="0 random 'VLC_OBJECT_PLAYLIST' vlc_var_set"/> + <vlc id="rpn" param1="0 repeat 'VLC_OBJECT_PLAYLIST' vlc_var_set"/> + <vlc id="rpn" param1="vlc_stop" /> + <vlc id="rpn" param1="playlist_empty" /> + <vlc id="rpn" param1="'temps' url_extract 'fake-duration' vlc_config_set" /> + <vlc id="rpn" param1="'fake: :sout=#transcode:std :sout-transcode-width=720 :sout-transcode-height=576 :sout-transcode-vb=4096 :sout-transcode-vcodec=mp2v :sout-transcode-vfilter=deinterlace :sout-deinterlace-mode=blend :sout-transcode-vb=9000 :sout-transcode-vcodec=mp2v :sout-ffmpeg-keyint=8 :sout-ffmpeg-interlace :no-sout-ffmpeg-interlace-me :fake-aspect-ratio=4:3 :fake-keep-ar :fake-deinterlace :deinterlace-mode=blend :fake-file=' mrl value strcat mrl value playlist_add vlc_play" /> + <vlc id="end" /> + + +<!-- photo ajoutee normalement - Type 21 --> + <vlc id="if" param1="type value 21 =" /> + <vlc id="rpn" param1="0 loop 'VLC_OBJECT_PLAYLIST' vlc_var_set"/> + <vlc id="rpn" param1="0 random 'VLC_OBJECT_PLAYLIST' vlc_var_set"/> + <vlc id="rpn" param1="0 repeat 'VLC_OBJECT_PLAYLIST' vlc_var_set"/> + <vlc id="rpn" param1="'temps' url_extract 'fake-duration' vlc_config_set" /> + <vlc id="rpn" param1="'fake: :sout=#transcode:std :sout-transcode-width=720 :sout-transcode-height=576 :sout-transcode-vb=4096 :sout-transcode-vcodec=mp2v :sout-transcode-vfilter=deinterlace :sout-deinterlace-mode=blend :sout-transcode-vb=9000 :sout-transcode-vcodec=mp2v :sout-ffmpeg-keyint=8 :sout-ffmpeg-interlace :no-sout-ffmpeg-interlace-me :fake-aspect-ratio=4:3 :fake-keep-ar :fake-deinterlace :deinterlace-mode=blend :fake-file=' mrl value strcat mrl value playlist_add" /> + <vlc id="end" /> + + +<!-- playlist de photo jouee normalement - Type 22 --> + <vlc id="if" param1="type value 22 =" /> + <vlc id="rpn" param1="vlc_stop" /> + <vlc id="rpn" param1="playlist_empty" /> + <vlc id="rpn" param1="0 loop 'VLC_OBJECT_PLAYLIST' vlc_var_set"/> + <vlc id="rpn" param1="0 random 'VLC_OBJECT_PLAYLIST' vlc_var_set"/> + <vlc id="rpn" param1="0 repeat 'VLC_OBJECT_PLAYLIST' vlc_var_set"/> + <vlc id="rpn" param1="'temps' url_extract 'fake-duration' vlc_config_set" /> + <vlc id="rpn" param1="qfile value mrl value playlist_add vlc_play" /> + <vlc id="end" /> + +<!-- playlist de photo ajoutee normalement - Type 23 --> + <vlc id="if" param1="type value 23 =" /> + <vlc id="rpn" param1="0 loop 'VLC_OBJECT_PLAYLIST' vlc_var_set"/> + <vlc id="rpn" param1="0 random 'VLC_OBJECT_PLAYLIST' vlc_var_set"/> + <vlc id="rpn" param1="0 repeat 'VLC_OBJECT_PLAYLIST' vlc_var_set"/> + <vlc id="rpn" param1="'temps' url_extract 'fake-duration' vlc_config_set" /> + <vlc id="rpn" param1="qfile value mrl value playlist_add" /> + <vlc id="end" /> + + +<!-- DVDs --> + +<!-- dvd joue normalement - transcodage audio - Type 30 --> + <vlc id="if" param1="type value 30 =" /> + <vlc id="rpn" param1="vlc_stop" /> + <vlc id="rpn" param1="playlist_empty" /> + <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-ab=256 :sout-transcode-acodec=mpga :sout-transcode-channels=2 :sout-transcode-samplerate=44100 :sout-transcode-soverlay :sout-transcode-vt=1000000 :sout-transcode-fps=25.0' strcat mrl value playlist_add vlc_play" /> + <vlc id="end" /> + +<!-- dvd joue normalement - sortie audio PC - Type 31 --> + <vlc id="if" param1="type value 31 =" /> + <vlc id="rpn" param1="vlc_stop" /> + <vlc id="rpn" param1="playlist_empty" /> + <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout=#duplicate{dst=transcode:std,select=video,dst=display,select=audio} :sout-transcode-ab=512 :sout-transcode-acodec=a52 :sout-transcode-channels=6 :sout-transcode-samplerate=44100 :sout-transcode-soverlay :sout-transcode-vt=1000000 :sout-transcode-fps=25.0' strcat mrl value playlist_add vlc_play" /> + <vlc id="end" /> + +<!-- dvd joue normalement - Sortie AC3 audio - Type 32 --> + <vlc id="if" param1="type value 32 =" /> + <vlc id="rpn" param1="vlc_stop" /> + <vlc id="rpn" param1="playlist_empty" /> + <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-ab=512 :sout-transcode-acodec=a52 :sout-transcode-channels=6 :sout-transcode-samplerate=44100 :sout-transcode-soverlay :sout-transcode-vt=1000000 :sout-transcode-fps=25.0' strcat mrl value playlist_add vlc_play" /> + <vlc id="end" /> + +<!-- dvd ajoute normalement - transcodage audio - Type 33 --> + <vlc id="if" param1="type value 33 =" /> + <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-ab=256 :sout-transcode-acodec=mpga :sout-transcode-channels=2 :sout-transcode-samplerate=44100 :sout-transcode-soverlay :sout-transcode-vt=1000000 :sout-transcode-fps=25.0' strcat mrl value playlist_add" /> + <vlc id="end" /> + +<!-- dvd ajoute normalement - sortie audio PC - Type 34 --> + <vlc id="if" param1="type value 34 =" /> + <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout=#duplicate{dst=transcode:std,select=video,dst=display,select=audio} :sout-transcode-ab=512 :sout-transcode-acodec=a52 :sout-transcode-channels=6 :sout-transcode-samplerate=44100 :sout-transcode-soverlay :sout-transcode-vt=1000000 :sout-transcode-fps=25.0' strcat mrl value playlist_add" /> + <vlc id="end" /> + +<!-- dvd ajoute normalement - Sortie AC3 audio - Type 35 --> + <vlc id="if" param1="type value 35 =" /> + <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-ab=512 :sout-transcode-acodec=a52 :sout-transcode-channels=6 :sout-transcode-samplerate=44100 :sout-transcode-soverlay :sout-transcode-vt=1000000 :sout-transcode-fps=25.0' strcat mrl value playlist_add" /> + <vlc id="end" /> +<!-- MMS --> + +<!-- MMS - Sortie TV - Type 40 --> + <vlc id="if" param1="type value 40 =" /> + <vlc id="rpn" param1="vlc_stop" /> + <vlc id="rpn" param1="playlist_empty" /> + <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=4096 :sout-transcode-acodec=mpga :sout-transcode-ab=256 :sout-transcode-channels=2 :sout-transcode-samplerate=44100 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :sout-transcode-soverlay :mms-caching=5000 :http-caching=5000 :http-reconnect' strcat mrl value playlist_add vlc_play" /> + <vlc id="end" /> + +<!-- MMS - Sortie PC - Type 41 --> + <vlc id="if" param1="type value 41 =" /> + <vlc id="rpn" param1="vlc_stop" /> + <vlc id="rpn" param1="playlist_empty" /> + <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout=#duplicate{dst=transcode:std,select=video,dst=display,select=audio} :sout-transcode-vcodec=a52 :sout-transcode-channels=6 :sout-transcode-samplerate=44100 :sout-transcode-vb=4096 :sout-transcode-acodec=mpga :sout-transcode-ab=512 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay :mms-caching=5000 :http-caching=5000 :http-reconnect' strcat mrl value playlist_add vlc_play" /> + <vlc id="end" /> + +<!-- MMS - Sortie AC3 - Type 42 --> + <vlc id="if" param1="type value 42 =" /> + <vlc id="rpn" param1="vlc_stop" /> + <vlc id="rpn" param1="playlist_empty" /> + <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=4096 :sout-transcode-ab=512 :sout-transcode-acodec=a52 :sout-transcode-channels=6 :sout-transcode-samplerate=44100 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay :mms-caching=5000 :http-caching=5000 :http-reconnect' strcat mrl value playlist_add vlc_play" /> + <vlc id="end" /> + +<!-- Vide la playlist - Type 999 --> + <vlc id="if" param1="type value 999 =" /> + <vlc id="rpn" param1="vlc_stop" /> + <vlc id="rpn" param1="playlist_empty" /> + <vlc id="end" /> Modified: trunk/module/_explorateur/explorateur.tpl =================================================================== --- trunk/module/_explorateur/explorateur.tpl 2007-03-07 06:38:57 UTC (rev 92) +++ trunk/module/_explorateur/explorateur.tpl 2007-03-09 16:06:45 UTC (rev 93) @@ -100,13 +100,13 @@ {if $MIN!=0} {assign var=temp value=$MIN-$NUM_ROW_AFFICH|max:0} -<tr><td colspan="2"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> <a href="{$PAGE_EXPLO}?start={$MIN-$NUM_ROW_AFFICH|max:0}&directory={$REP|urlencode}&mode={$MODE}"><font size=2>Pr\xE9c\xE9dent</font></a> <a href="{$PAGE_EXPLO}?start=0&directory={$REP|urlencode}&mode={$MODE}"><font size=2>D\xE9but du r\xE9pertoire</font></a></td></tr> +<tr><td colspan="2"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> <a href="{$PAGE_EXPLO}?start={$MIN-$NUM_ROW_AFFICH|max:0}&directory={$REP|urlencode}&mode={$MODE}" onfocus='aide="Page pr\xE9c\xE9dente";'><font size=2>Pr\xE9c\xE9dent</font></a> <a href="{$PAGE_EXPLO}?start=0&directory={$REP|urlencode}&mode={$MODE}"><font size=2>D\xE9but du r\xE9pertoire</font></a></td></tr> {attribbouton touche="green" lien="$PAGE_EXPLO?start=$temp&directory=$rep_encoded&mode=$MODE"} {/if} {if $Nb_rep_path >='2' AND $MIN==0} {assign var=temp value=$REP|dirname|realpath|urlencode} -<tr><td colspan="2"><img src="{$INTERFACE_REP}btn_jaune.gif" border="0"> <a focused href="{$PAGE_EXPLO}?directory={$REP|dirname|realpath|urlencode}&mode={$MODE}"><font size="2">Dossier parent</font></a></td></tr> +<tr><td colspan="2"><img src="{$INTERFACE_REP}btn_jaune.gif" border="0"> <a focused href="{$PAGE_EXPLO}?directory={$REP|dirname|realpath|urlencode}&mode={$MODE}" onfocus='aide="Dossier parent";'><font size="2">Dossier parent</font></a></td></tr> {attribbouton touche="yellow" lien="$PAGE_EXPLO?directory=$temp&mode=$MODE"} {elseif $Nb_rep_path >='2'} {assign var=temp value=$REP|dirname|realpath|urlencode} @@ -130,7 +130,7 @@ {/section} {if $MIN+$smarty.section.files.total<count($T_affich)} -<tr><td colspan="2"><table><tr><td><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> <a href="{$PAGE_EXPLO}?start={$MIN+$smarty.section.files.total}&directory={$REP|urlencode}&mode={$MODE}"><font size=2>Suivant</font></a> - <font size=2><a href="{$PAGE_EXPLO}?start={$N_affich-$smarty.section.files.total}&directory={$REP|urlencode}&mode={$MODE}">Fin du r\xE9pertoire</a> - Page {$MIN/$NUM_ROW_AFFICH+1|ceil} / {$N_affich/$NUM_ROW_AFFICH|ceil}</font></td> +<tr><td colspan="2"><table><tr><td><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> <a href="{$PAGE_EXPLO}?start={$MIN+$smarty.section.files.total}&directory={$REP|urlencode}&mode={$MODE}" onfocus='aide="Page suivante";'><font size=2>Suivant</font></a> - <font size=2><a href="{$PAGE_EXPLO}?start={$N_affich-$smarty.section.files.total}&directory={$REP|urlencode}&mode={$MODE}">Fin du r\xE9pertoire</a> - Page {$MIN/$NUM_ROW_AFFICH+1|ceil} / {$N_affich/$NUM_ROW_AFFICH|ceil}</font></td> {assign var=temp value=$MIN+$smarty.section.files.total} {attribbouton touche="blue" lien="$PAGE_EXPLO?start=$temp&directory=$rep_encoded&mode=$MODE"} {else} Modified: trunk/module/diaporama/explorateur_photo.tpl =================================================================== --- trunk/module/diaporama/explorateur_photo.tpl 2007-03-07 06:38:57 UTC (rev 92) +++ trunk/module/diaporama/explorateur_photo.tpl 2007-03-09 16:06:45 UTC (rev 93) @@ -35,16 +35,16 @@ {if $files[files]|in_array:$T_repertoire} {if $DOS} - <td width="100" height="130"><a href="index1.php?rep={$files[files].path|urlencode}"><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align="center"><img border=0 width="64" height="64" src="lecteur.gif"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><font size="1">{$files[files].nom} ({$files[files].lettre|strtolower}:)</font></td></tr></table></a></td> + <td width="100" height="130"><a href="index1.php?rep={$files[files].path|urlencode}" onfocus='aide="{$files[files]|strip_delimiters}";'><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align="center"><img border=0 width="64" height="64" src="lecteur.gif"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><font size="1">{$files[files].nom} ({$files[files].lettre|strtolower}:)</font></td></tr></table></a></td> {else} - <td width="100" height="130"><a href="index1.php?rep={$REP|cat:'/'|cat:$files[files]|urlencode}"><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align="center"><img border=0 width="64" height="64" src="big_dossier.gif"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><font size="1">{$files[files]|truncate:26:"":true|wordwrap:15:"<br>":true|strip_delimiters}</font></td></tr></table></a></td> + <td width="100" height="130"><a href="index1.php?rep={$REP|cat:'/'|cat:$files[files]|urlencode}" onfocus='aide="{$files[files]|strip_delimiters}";'><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align="center"><img border=0 width="64" height="64" src="big_dossier.gif"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><font size="1">{$files[files]|truncate:20:"":true|wordwrap:10:"<br>":true|strip_delimiters}</font></td></tr></table></a></td> {/if} - {else} + {else} {assign var="dim" value=$REP|cat:'/'|cat:$files[files]|getimagesize} {assign var="newdim" value=$dim.0|get_size:$dim.1} - <td width="100" height="130" valign="middle" align="center"><a href="index1.php?image={$smarty.section.files.index}&rep={$rep_encoded}&start={$MIN}"><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align="center" background="fond_cell.gif"><img width="{$newdim.0}" height="{$newdim.1}" border="0" src="{$RACINE_REP}_framework/lib/img_cr.php?local=1&formatw=88&formath=68&img={$REP|cat:'/'|cat:$files[files]|urlencode}"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><font size="1">{$files[files]|truncate:26:"":true|wordwrap:15:"<br>":true|strip_delimiters}</font></td></tr></table></a></td> - {/if} + <td width="100" height="130" valign="middle" align="center"><a href="index1.php?image={$smarty.section.files.index}&rep={$rep_encoded}&start={$MIN}" onfocus='aide="{$files[files]|strip_delimiters}";'><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align="center" background="fond_cell.gif"><img width="{$newdim.0}" height="{$newdim.1}" border="0" src="{$RACINE_REP}_framework/lib/img_cr.php?local=1&formatw=88&formath=68&img={$REP|cat:'/'|cat:$files[files]|urlencode}"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><font size="1">{$files[files]|truncate:20:"":true|wordwrap:10:"<br>":true|strip_delimiters}</font></td></tr></table></a></td> + {/if} {if $smarty.section.files.iteration is div by 5 AND NOT $smarty.section.files.last} Modified: trunk/module/films/films.tpl =================================================================== --- trunk/module/films/films.tpl 2007-03-07 06:38:57 UTC (rev 92) +++ trunk/module/films/films.tpl 2007-03-09 16:06:45 UTC (rev 93) @@ -34,24 +34,31 @@ <input type=radio name=video bgcolor="{#COULEUR_FOND_RADIO#}" value="{$key}" {if $pistev.1} checked{/if}>{$pistev.0}<br> {/foreach} <br>Post-traitement - - <input type="hslider" bgcolor="{#COULEUR_FOND_RADIO#}" name="pp" min="0" max="6" grad="1" value="{$pp_video}"> + +<select name="pp"> +<option value=1 {if $pp_video==1}selected{/if}>1 +<option value=2 {if $pp_video==2}selected{/if}>2 +<option value=3 {if $pp_video==3}selected{/if}>3 +<option value=4 {if $pp_video==4}selected{/if}>4 +<option value=5 {if $pp_video==5}selected{/if}>5 +<option value=6 {if $pp_video==6}selected{/if}>6 +</select> + Augmenter la qualit\xE9 du traitement de l'image (de 0 vers 6) demande plus de puissance CPU. <br> -<table width="250" align="left"> -<tr><td width="130">4/3 Letterbox</td><td><input type=radio bgcolor="{#COULEUR_FOND_RADIO#}" name=display_aspect_ratio_conversion value=letterbox></td></tr> -<tr><td width="130">4/3 Combined</td><td><input type=radio bgcolor="{#COULEUR_FOND_RADIO#}" name=display_aspect_ratio_conversion value=combined></td></tr> -<tr><td width="130">4/3 Pan Scan</td><td><input type=radio bgcolor="{#COULEUR_FOND_RADIO#}" name=display_aspect_ratio_conversion value=panscan></td></tr> -<tr><td width="130">16/9</td><td><input type=radio bgcolor="{#COULEUR_FOND_RADIO#}" name=display_aspect_ratio_conversion value=ignore></td></tr> -</table> +<select name=display_scaling> +<option value=letterbox>Letterbox +<option value=panscan>Pan Scan +<option value=fullscreen>Fullscreen +</select> -<table width="250" align="left"> +<table width="500" align="left"> <tr><td width="90">Lumi\xE9re</td><td width="5">:</td><td><input bgcolor="{#COULEUR_FOND_RADIO#}" type=hslider name=denc_brightness min=0 max=255 grad=16></td></tr> <tr><td width="90">Contraste</td><td width="5">:</td><td><input bgcolor="{#COULEUR_FOND_RADIO#}" type=hslider name=denc_contrast min='-128' max=127 grad=16></td></tr> <tr><td width="90">Couleur</td><td width="5">:</td><td><input bgcolor="{#COULEUR_FOND_RADIO#}" type=hslider name=denc_saturation min=0 max=255 grad=16></td></tr> -<tr><td width="90">Zoom</td><td width="5">:</td><td><input bgcolor="{#COULEUR_FOND_RADIO#}" type=hslider name=video_output_scale min=25 max=100 grad=5></td></tr> +<tr><td width="90">Zoom</td><td width="5">:</td><td><input bgcolor="{#COULEUR_FOND_RADIO#}" type=hslider name=video_output_scale min=25 max=150 grad=5></td></tr> </table> - +<br> <input bgcolor="{#COULEUR_TEXTBOX#}" type=submit value="Valider les modifications"> </form> @@ -59,10 +66,14 @@ <font size="3"><u>Options audio</u></font><br> <form action="info.php" method="get"><input type=hidden name=module value=audio><input type=hidden name=var value="audio-es"><br> - {foreach from=$audio item=pistea key=key name=audio} - <input type=radio name=audio bgcolor="{#COULEUR_FOND_RADIO#}" value="{$key}" {if $pistea.1} checked{/if}>{$pistea.0}<br> - {/foreach}</form> - <br><form action="none"> + <select name="audio"> + {foreach from=$audio item=pistea key=key name=audio} + <option value={$key} {if $pistea.1}selected{/if}>{$pistea.0} + {*<input type=radio name=audio bgcolor="{#COULEUR_FOND_RADIO#}" value="{$key}" {if $pistea.1} checked{/if}>{$pistea.0}<br>*} + {/foreach} + </select> + </form> + <br> <br><form action="none"> <input type="radio" name="aud" value="69(en,mp2)" bgcolor="{#COULEUR_FOND_RADIO#}"> Son st\xE9r\xE9o<br> <input type="radio" name="aud" value="69(en,ac3)" bgcolor="{#COULEUR_FOND_RADIO#}"> Dolby Digital (S/PDIF)<br> <br><input bgcolor="{#COULEUR_TEXTBOX#}" type=submit value="Valider les modifications"> @@ -153,7 +164,7 @@ {section name=foo1 start=1 loop=$stream_3 step=1} {assign var=time value="`$smarty.section.foo1.iteration*$largeursautmoins`"} {assign var=heure value=$time|date_format:"%H"} -<td width="5"><a onfocus='front_panel="{$time|calcul_hours|cleanaff}";' href="info.php?heures={$heure-1}&minutes={$time|date_format:"%M"}&secondes={$time|date_format:"%S"}"><table border="0" cellpadding="0" cellspacing="0" bgcolor="#BDBDC23f" abgcolor="#0000003f"><tr><td><img src="" width="5" height="5" border="0"></td></tr></table></a></td> +<td width="5"><a onfocus='front_panel="{$time|calcul_hours|cleanaff}";temp_affich="{$time|calcul_hours}";' onBlur='front_panel="{$original_front|calcul_hours|cleanaff}";temp_affich="{$temps_affich}";' href="info.php?heures={$heure-1}&minutes={$time|date_format:"%M"}&secondes={$time|date_format:"%S"}"><table border="0" cellpadding="0" cellspacing="0" bgcolor="#BDBDC23f" abgcolor="#0000003f"><tr><td><img src="" width="5" height="5" border="0"></td></tr></table></a></td> {/section} @@ -201,7 +212,7 @@ <input name=secondes bgcolor="{#COULEUR_TEXTBOX#}" type=text value="" size=2 maxlength=2> sec </form> </td> -<td><font size="1" color="#ffffff3f">{$temps_affich}</font> +<td><font size="1" color="#ffffff3f"><var name=temps_affich width=200></font> </td> </tr></table></td> </tr> Modified: trunk/module/films/info.php =================================================================== --- trunk/module/films/info.php 2007-03-07 06:38:57 UTC (rev 92) +++ trunk/module/films/info.php 2007-03-09 16:06:45 UTC (rev 93) @@ -15,7 +15,7 @@ }elseif($module!=''){ unset($META['refresh']); }else{ - $META['refresh']= '30;url=lecture.php'; + $META['blank']= '20;url=lecture.php'; } if (isset($_REQUEST['control'])){ @@ -33,7 +33,8 @@ }else{ $META['front_panel'] = strtoupper($VLC['etat']); } - + $smarty->assign('original_front',$META['front_panel']); + //-- Ce deplac\xE9 a un temps definie par l'utilisateur. if (isset($_REQUEST['heures']) OR isset($_REQUEST['minutes']) OR isset($_REQUEST['secondes'])) { $heure = '0'; @@ -151,8 +152,8 @@ //Signets pour ce film $db = sqlite_open($USER.'utilisateur.db', 0666); - $mov = new ffmpeg_movie(realpath($VLC['url_current'])); - echo $mov->getFrameCount(); + //$mov = new ffmpeg_movie(realpath($VLC['url_current'])); + //echo $mov->getFrameCount(); $requete='SELECT * FROM signet WHERE lien="'.$signetsav[2].'" ORDER BY duree'; $result = sqlite_query($db,$requete); @@ -173,6 +174,7 @@ } $temps_affich=calcul_hours($VLC['duree_courante']).' / '.calcul_hours($VLC['duree_totale']).' ('.$VLC['pourcentage_courant'].'%)'; + $META['temps_affich']= $temps_affich; $LINK['stop']=$MODULE.'films/lecture.php?control=stop'; $LINK['play']=$MODULE.'films/lecture.php?control=pause'; Modified: trunk/module/films/lecture.php =================================================================== --- trunk/module/films/lecture.php 2007-03-07 06:38:57 UTC (rev 92) +++ trunk/module/films/lecture.php 2007-03-09 16:06:45 UTC (rev 93) @@ -221,7 +221,7 @@ } if ($act != "non") { - @readfile('http://localhost:8081/lecteur/modif-config.html?type=2&type2=2&var=spu-es&value='.$keysst[$nnn]); + @readfile('http://localhost:8081/lecteur/modif-config.html?type=2&type2=4&var=spu-es&value='.$keysst[$nnn]); } } Modified: trunk/module/horloge/index1.php =================================================================== --- trunk/module/horloge/index1.php 2007-03-07 06:38:57 UTC (rev 92) +++ trunk/module/horloge/index1.php 2007-03-09 16:06:45 UTC (rev 93) @@ -1,571 +1,14 @@ -<?php -$RACINE_REP = "../../"; -require($RACINE_REP.'_framework/framework.php'); - -$LINK['red']= $MODULE.'_menu/menu.php?cat=9'; - -global $affichage,$level, $nb_joueurs, $nb_win, $fini; - -if ($_GET['rep']) { - $level = $_GET['level']; -}else{ - $level=1; -} - - -$MENU_ALT=array( - array('lien'=>'index1.php?level=1', 'nom'=>'LEVEL 1', 'selected'=>$level=='1'), - array('lien'=>'index1.php?level=2', 'nom'=>'LEVEL 2', 'selected'=>$level=='2'), - array('lien'=>'index1.php?level=3', 'nom'=>'LEVEL 3', 'selected'=>$level=='3') - ); - - -$affichage=""; - -$nb_joueurs1=0; -$nb_joueurs2=0; -$nb_joueurs3=0; - - if(isset($_GET['level'])){ $level=$_GET['level']; } elseif(isset($_GET['level'])){ $level=$_GET['level']; } - if(!isset($_GET['tour'])) { $tour=0; } else { $tour=$_GET['tour']; } - if(isset($_GET['fini'])){ $fini = $_GET['fini']; } else { $fini=0; } - $joue=0; - $jouer_1=0; - $jouer_2=0; - $jouer_3=0; - - if(!isset($_GET['t11'])) { $tab[1][1]='-'; } elseif(isset($_GET['st11'])){ $tab[1][1] = 'b'; } else { $tab[1][1] = $_GET['t11']; } - if(!isset($_GET['t12'])) { $tab[1][2]='-'; } elseif(isset($_GET['st12'])){ $tab[1][2] = 'b'; } else { $tab[1][2] = $_GET['t12']; } - if(!isset($_GET['t13'])) { $tab[1][3]='-'; } elseif(isset($_GET['st13'])){ $tab[1][3] = 'b'; } else { $tab[1][3] = $_GET['t13']; } - if(!isset($_GET['t21'])) { $tab[2][1]='-'; } elseif(isset($_GET['st21'])){ $tab[2][1] = 'b'; } else { $tab[2][1] = $_GET['t21']; } - if(!isset($_GET['t22'])) { $tab[2][2]='-'; } elseif(isset($_GET['st22'])){ $tab[2][2] = 'b'; } else { $tab[2][2] = $_GET['t22']; } - if(!isset($_GET['t23'])) { $tab[2][3]='-'; } elseif(isset($_GET['st23'])){ $tab[2][3] = 'b'; } else { $tab[2][3] = $_GET['t23']; } - if(!isset($_GET['t31'])) { $tab[3][1]='-'; } elseif(isset($_GET['st31'])){ $tab[3][1] = 'b'; } else { $tab[3][1] = $_GET['t31']; } - if(!isset($_GET['t32'])) { $tab[3][2]='-'; } elseif(isset($_GET['st32'])){ $tab[3][2] = 'b'; } else { $tab[3][2] = $_GET['t32']; } - if(!isset($_GET['t33'])) { $tab[3][3]='-'; } elseif(isset($_GET['st33'])){ $tab[3][3] = 'b'; } else { $tab[3][3] = $_GET['t33']; } - - // on d\xE9finit les lignes qui seront test\xE9es lors du jeu - $row1 = $tab[1][1] . $tab[1][2] . $tab[1][3]; - $row2 = $tab[2][1] . $tab[2][2] . $tab[2][3]; - $row3 = $tab[3][1] . $tab[3][2] . $tab[3][3]; - $row4 = $tab[1][1] . $tab[2][2] . $tab[3][3]; - $row5 = $tab[3][1] . $tab[2][2] . $tab[1][3]; - $row6 = $tab[1][1] . $tab[2][1] . $tab[3][1]; - $row7 = $tab[1][2] . $tab[2][2] . $tab[3][2]; - $row8 = $tab[1][3] . $tab[2][3] . $tab[3][3]; - - // ces valeurs ne sont utiles que lors du d\xE9veloppement/ d\xE9buggage - $ligne[1][1] = '1-1'; - $ligne[1][2] = '1-2'; - $ligne[1][3] = '1-3'; - $ligne[2][1] = '2-1'; - $ligne[2][2] = '2-2'; - $ligne[2][3] = '2-3'; - $ligne[3][1] = '3-1'; - $ligne[3][2] = '3-2'; - $ligne[3][3] = '3-3'; - $ligne[4][1] = '1-1'; - $ligne[4][2] = '2-2'; - $ligne[4][3] = '3-3'; - $ligne[5][1] = '3-1'; - $ligne[5][2] = '2-2'; - $ligne[5][3] = '1-3'; - $ligne[6][1] = '1-1'; - $ligne[6][2] = '2-1'; - $ligne[6][3] = '3-1'; - $ligne[7][1] = '1-2'; - $ligne[7][2] = '2-2'; - $ligne[7][3] = '3-2'; - $ligne[8][1] = '1-3'; - $ligne[8][2] = '2-3'; - $ligne[8][3] = '3-3'; - - //------------------- - // Fonction de conversion des lignes de type $tab[x][y] - // pour ressortir la coordonn\xE9e des cases (comprise entre 1 et 3) - //------------------- - - function cv($i, $j) - { - // si $tab[6][2] alors val1C=2 val2c=1 - if($i>3) - { - if($i==4 && $j==1) { $valc1=1; $valc2=1; } - if($i==4 && $j==2) { $valc1=2; $valc2=2; } - if($i==4 && $j==3) { $valc1=3; $valc2=3; } - if($i==5 && $j==1) { $valc1=3; $valc2=1; } - if($i==5 && $j==2) { $valc1=2; $valc2=2; } - if($i==5 && $j==3) { $valc1=1; $valc2=3; } - if($i==8 && $j==1) { $valc1=1; $valc2=3; } - if($i==6 && $j==1) { $valc1=1; $valc2=1; } - if($i==6 && $j==2) { $valc1=2; $valc2=1; } - if($i==6 && $j==3) { $valc1=3; $valc2=1; } - if($i==7 && $j==1) { $valc1=1; $valc2=2; } - if($i==7 && $j==2) { $valc1=2; $valc2=2; } - if($i==7 && $j==3) { $valc1=3; $valc2=2; } - if($i==8 && $j==1) { $valc1=1; $valc2=3; } - if($i==8 && $j==2) { $valc1=2; $valc2=3; } - if($i==8 && $j==3) { $valc1=3; $valc2=3; } - } - else - { - $valc1=$i; - $valc2=$j; - } - - return array($valc1,$valc2); - } - - - if($tour!=0 && $fini!=true) - { - if($tour==1) - { - /*--------*/ - /* TOUR 1 */ - /*--------*/ - - // si le joueur a jou\xE9 au centre alors on joue dans un coin - if($tab[2][2] == 'b' && $joue != true) - { - $valr1 = ((rand(1,2)*2)-1); - $valr2 = ((rand(1,2)*2)-1); - $tab[$valr1][$valr2] = 'a'; - $joue = true; - } - - // si le joueur a jou\xE9 dans un coin alors on joue au centre - if(($tab[1][1] == 'b' | $tab[1][3] == 'b' | $tab[3][1] == 'b' | $tab[3][3] == 'b') && $joue != true) - { - $tab[2][2] = 'a'; - $joue = true; - } - - // si le joueur a jou\xE9 au milieu d'une ligne alors on joue au centre - if(($tab[1][2] == 'b' | $tab[2][1] == 'b' | $tab[2][3] == 'b' | $tab[3][2] == 'b') && $joue != true) - { - $tab[2][2] = 'a'; - $joue = true; - } - } - - elseif($tour>1 | !$tour) - { - if($level==3) - { - /*----------------------------*/ - /* PHASE 1 : PEUT ON GAGNER ? */ - /*----------------------------*/ - - // Au d\xE9but de chaque tour, on regarde si il est possible de gagner - for($i=1;$i<9;$i++) - { - $var = 'row'.$i; - $combi = $$var; - - if($combi=='a-a' && $joue!=true) - { - $j=2; - list($val1, $val2) = cv($i, $j); - $tab[$val1][$val2] = 'a'; - $joue=true; - } - - if($combi=='aa-' && $joue!=true) - { - $j=3; - list($val1, $val2) = cv($i, $j); - $tab[$val1][$val2] = 'a'; - $joue=true; - } - - if($combi=='-aa' && $joue!=true) - { - $j=1; - list($val1, $val2) = cv($i, $j); - $tab[$val1][$val2] = 'a'; - $joue=true; - } - - } - - /*--------------------------------------*/ - /* PHASE 2 : LE JOUEUR PEUT IL GAGNER ? */ - /*--------------------------------------*/ - - // Au d\xE9but de chaque tour, on regarde si le joueur adverse peut gagner (b-b ou bb- ou -bb) - - for($i=1;$i<9;$i++) - { - $var = 'row'.$i; - $combi = $$var; - - if($combi=='b-b' && $joue!=true) - { - $j=2; - list($val1, $val2) = cv($i, $j); - $tab[$val1][$val2] = 'a'; - $joue=true; - } - - if($combi=='bb-' && $joue!=true) - { - $j=3; - list($val1, $val2) = cv($i, $j); - $tab[$val1][$val2] = 'a'; - $joue=true; - } - - if($combi=='-bb' && $joue!=true) - { - $j=1; - list($val1, $val2) = cv($i, $j); - $tab[$val1][$val2] = 'a'; - $joue=true; - } - } - - /*-------------------------------------------*/ - /* PHASE 3 : OU JOUER SI LA VOIE EST LIBRE ? */ - /*-------------------------------------------*/ - - // Si on ne peut pas gagner et que le joueur ne peut pas non plus gagner ce tour, alors on joue - // Mais attention, on joue "intelligemment". - - if($joue!=true) - { - for($i=1;$i<9;$i++) - { - $var = 'row'.$i; - $combi = $$var; - - if($tour==2 && $joue!=true && ($row4=='bab' | $row5=='bab')) - { - $tab[1][2] = 'a'; - $joue=true; - } - - // teste le cas o\xF9 on doit jouer coin \xE0 cot\xE9 des deux croix pour ne pas perdre - elseif($tour==2 && $joue!=true && ($row2=='ba-' | $row7=='-ab')) - { - $tab[3][1] = 'a'; - $joue=true; - } - elseif($tour==2 && $joue!=true && ($row2=='-ab' | $row7=='-ab')) - { - $tab[3][3] = 'a'; - $joue=true; - } - elseif($tour==2 && $joue!=true && ($row2=='ba-' | $row7=='ba-')) - { - $tab[1][1] = 'a'; - $joue=true; - } - elseif($tour==2 && $joue!=true && ($row2=='-ab' | $row7=='ba-')) - { - $tab[1][3] = 'a'; - $joue=true; - } - - $aab=0; - $baa=0; - - if($i<4) - { - // aab, donc il faut jouer coin haut-droite ou bas-droite - // baa, donc il faut jouer coin haut-gauche ou bas-gauche - if($tour==3 && $aab!=0 && $joue!=true) - { - $j = 3; - list($val1, $val2) = cv($i, $j); - $tab[$val1][$val2] = 'a'; - $joue=true; - } - if($tour==3 && $baa!=0 && $joue!=true) - { - $j=1; - list($val1, $val2) = cv($i, $j); - $tab[$val1][$val2] = 'a'; - $joue=true; - } - if($combi=='aab') - { - $aab++; - } - if($combi=='baa') - { - $baa++; - } - } - - if($combi=='-a-' && $tab[2][2]=='a' && $i==2 && $joue!=true) - { - if($tab[1][1]=='b') - { - $tab[3][1] = 'a'; - $joue=true; - } - elseif($tab[1][3]=='b') - { - $tab[3][3] = 'a'; - $joue=true; - } - elseif($tab[3][1]=='b') - { - $tab[1][1] = 'a'; - $joue=true; - } - elseif($tab[3][3]=='b') - { - $tab[1][3] = 'a'; - $joue=true; - } - } - - elseif($combi=='-a-' && $tab[2][2]=='a' && $i==7 && $joue!=true) - { - if($tab[1][1]=='b') - { - $tab[1][3] = 'a'; - $joue=true; - } - elseif($tab[1][3]=='b') - { - $tab[1][1] = 'a'; - $joue=true; - } - elseif($tab[3][1]=='b') - { - $tab[3][3] = 'a'; - $joue=true; - } - elseif($tab[3][3]=='b') - { - $tab[3][1] = 'a'; - $joue=true; - } - } - - elseif($combi=='--a' && $joue!=true) - { - $j=1; - list($val1, $val2) = cv($i, $j); - $tab[$val1][$val2] = 'a'; - $joue=true; - } - - // on regarde les cases vides pour jouer al\xE9atoirement si on a rien de mieux a faire - if($joue!=true) - { - - // peut-on jouer en case 1 ? Si oui on enregistre la case possible - if($combi=='-bb' | $combi=='-aa' | $combi=='-ab' | $combi=='-ba' | $combi=='---' | $combi=='--a' | $combi=='--b' | $combi=='-b-' | $combi=='-a-') - { - $jouer_1=true; - $val_1=$i; - } - - // peut-on jouer en case 2 ? Si oui on enregistre la case possible - if($combi=='b-b' | $combi=='a-a' | $combi=='a-b' | $combi=='b-a' | $combi=='---' | $combi=='--a' | $combi=='--b' | $combi=='b--' | $combi=='a--') - { - $jouer_2=true; - $val_2=$i; - } - - // peut-on jouer en case 3 ? Si oui on enregistre la case possible - if($combi=='bb-' | $combi=='aa-' | $combi=='ab-' | $combi=='ba-' | $combi=='---' | $combi=='-a-' | $combi=='-b-' | $combi=='b--' | $combi=='a--') - { - $jouer_3=true; - $val_3=$i; - } - - } - - } // for($i=1;$i<9;$i++) - - // si l'on a pas r\xE9ussi a jouer avec tous les tests pr\xE9c\xE9dents - // alors on joue al\xE9atoirement dans une case vide - // c'est la meilleure - et seule - solution ! - if($joue!=true) - { - // on joue case 1 si on a pas jou\xE9 - if($jouer_1==true && $joue!=true) - { - $j=1; - $i=$val_1; - list($val1, $val2) = cv($i, $j); - $tab[$val1][$val2] = 'a'; - $joue=true; - } - - // on joue case 2 si on a pas jou\xE9 - if($jouer_2==true && $joue!=true) - { - $j=2; - $i=$val_2; - list($val1, $val2) = cv($i, $j); - $tab[$val1][$val2] = 'a'; - $joue=true; - } - - // on joue case 3 si on a pas jou\xE9 - if($jouer_3==true && $joue!=true) - { - $j=3; - $i=$val_3; - list($val1, $val2) = cv($i, $j); - $tab[$val1][$val2] = 'a'; - $joue=true; - } - } // if $joue!=true - } // if($joue!=true) - } // if($level==3) - // si $level==2 n'est pas inhumain - // alors on joue l\xE0 ou on peut, sans r\xE9fl\xE9chir. - else - { - for($i=1;$i<4;$i++) - { - if($joue!=true) - { - for($j=1;$j<4;$j++) - { - if($tab[$i][$j]=='-' && $joue!=true) - { - $tab[$i][$j] = 'a'; - $joue=true; - } - } - } - } - } // else (if - - - /*-------------------------------------*/ - /* PHASE 4 : PERDU, GAGNE, MATCH NUL ? */ - /*-------------------------------------*/ - - // on red\xE9finit les lignes apr\xE8s le traitement - // du jeu du computer pour tester la victoire - - $row1 = $tab[1][1] . $tab[1][2] . $tab[1][3]; - $row2 = $tab[2][1] . $tab[2][2] . $tab[2][3]; - $row3 = $tab[3][1] . $tab[3][2] . $tab[3][3]; - $row4 = $tab[1][1] . $tab[2][2] . $tab[3][3]; - $row5 = $tab[3][1] . $tab[2][2] . $tab[1][3]; - $row6 = $tab[1][1] . $tab[2][1] . $tab[3][1]; - $row7 = $tab[1][2] . $tab[2][2] . $tab[3][2]; - $row8 = $tab[1][3] . $tab[2][3] . $tab[3][3]; - - if($fini!=true) - { - for($i=1;$i<9;$i++) - { - $var = 'row'.$i; - $combi = $$var; - if($combi == 'aaa') - { - $affichage.="<h2>PERDU !</h2>"; - $fini=true; - } - if($combi == 'bbb' && $fini!=true) - { - $affichage.="<h2>GAGNE !</H2>"; - $fini=true; - } - } - } // if fini!=true - } // if $tour>1 | !$tour - } // if($tour!=0 && $fini!=true) - - - // si on est au cinqui\xE8me tour et qu'il - // n'y a pas de vainqueur, alors match nul - if($tour==5 && $fini!=true) - { - $affichage.="<h2>MATCH NUL !</h2>"; - $fini=true; - } - - // sinon on incr\xE9mente le compteur tour - // (jusqu'\xE0 ce que sa valeur soit 5) - else - { - $tour++; - } - - /*----------------*/ - /* AFFICHAGE HTML */ - /*----------------*/ - - $t11 = $tab[1][1]; - $t12 = $tab[1][2]; - $t13 = $tab[1][3]; - $t21 = $tab[2][1]; - $t22 = $tab[2][2]; - $t23 = $tab[2][3]; - $t31 = $tab[3][1]; - $t32 = $tab[3][2]; - $t33 = $tab[3][3]; - - $affichage.="<table border=\"1\" cellpadding=\"1\" cellspacing=\"1\" bgcolor=\"#FFFFFF22\" align=\"center\">"; - $affichage.="<tr>"; - - $affichage.="<tr>\n\r"; - - $query="level=$level"; - $query.="&tour=$tour"; - $query.="&fini=$fini"; - $query.="&t11=$t11"; - $query.="&t12=$t12"; - $query.="&t13=$t13"; - $query.="&t21=$t21"; - $query.="&t22=$t22"; - $query.="&t23=$t23"; - $query.="&t31=$t31"; - $query.="&t32=$t32"; - $query.="&t33=$t33"; - - if($t11=='-') { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><a href=\"index1.php?st11=b&$query\">X</a></td>\n"; } - else { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><img src=\"$t11.gif\" width=\"50\" height=\"54\">\n"; } - - if($t12=='-') { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><a href=\"index1.php?st12=1&$query\">X</a></td>\n"; } - else { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><img src=\"$t12.gif\" width=\"50\" height=\"54\"></td>\n"; } - - if($t13=='-') { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><a href=\"index1.php?st13=1&$query\">X</a></td>\n"; } - else { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><img src=\"$t13.gif\" width=\"50\" height=\"54\"></td>\n"; } - - $affichage.="</tr>\n<tr>\n"; - if($t21=='-') { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><a href=\"index1.php?st21=1&$query\">X</a></td>\n"; } - else { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><img src=\"$t21.gif\" width=\"50\" height=\"54\"></td>\n"; } - - if($t22=='-') { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><a href=\"index1.php?st22=1&$query\">X</a></td>\n"; } - else { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><img src=\"$t22.gif\" width=\"50\" height=\"54\"></td>\n"; } - - if($t23=='-') { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><a href=\"index1.php?st23=1&$query\">X</a></td>\n"; } - else { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><img src=\"$t23.gif\" width=\"50\" height=\"54\"></td>\n"; } - - $affichage.="</tr>\n<tr>\n"; - if($t31=='-') { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><a href=\"index1.php?st31=1&$query\">X</a></td>\n"; } - else { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><img src=\"$t31.gif\" width=\"50\" height=\"54\"></td>\n"; } - - if($t32=='-') { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><a href=\"index1.php?st32=1&$query\">X</a></td>\n"; } - else { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><img src=\"$t32.gif\" width=\"50\" height=\"54\"></td>\n"; } - - if($t33=='-') { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><a href=\"index1.php?st33=1&$query\">X</a></td>\n"; } - else { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><img src=\"$t33.gif\" width=\"50\" height=\"54\"></td>\n"; } - - $affichage.="</tr>\n</table> - <br> - <br><font size=\"1\"> - Jeu du Morpion adapt\xE9 pour EasyBox par InPhoVid (06/2006)<br> - Jeu du Morpion imbattable d\xE9velopp\xE9 en php. License GPL. Auteur : Matthieu Aubry - </font> - </center> - "; - -$smarty->assign('TITRE','MORPION'); -$smarty->assign('affichage',$affichage); -$smarty->assign('CONTENT',$smarty->fetch('generique.tpl')); -$smarty->display('interface.tpl'); -?> +<?php +$RACINE_REP = "../../"; +require($RACINE_REP.'_framework/framework.php'); + +$LINK['red']= page_retour_menu(); + + $META['refresh']='30;url=index1.php'; + + $smarty->assign('TITRE','Here is the current time (lol)'); + + $smarty->assign('CONTENT',$smarty->fetch('horloge.tpl')); + $smarty->display('interface.tpl'); + +?> Modified: trunk/module/modules/modules.tpl =================================================================== --- trunk/module/modules/modules.tpl 2007-03-07 06:38:57 UTC (rev 92) +++ trunk/module/modules/modules.tpl 2007-03-09 16:06:45 UTC (rev 93) @@ -15,8 +15,8 @@ <td align="left" valign="top"><b><u>{$MOD[mod].nom}{if $action=="skin" AND $MOD[mod].current} - Skin actif{/if}</u></b><br> <b>Version</b> : {$MOD[mod].version}<br> <b>Description</b> : {$MOD[mod].description}</td> - {if $action=="skin"}{if NOT $MOD[mod].current}<td width="20"><a href="index1.php?setskinid={$MOD[mod].id}&action={$action}"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="#COULEUR_FOND1#" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}valider.gif" border="0" width="20" height="20"></td></tr></table></a></td>{else}<td> </td>{/if}{/if} - <td width="20"><a href="index1.php?delid={$MOD[mod].id}&action={$action}"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="#COULEUR_FOND1#" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}delete.gif" border="0" width="20" height="20"></td></tr></table></a></td> + {if $action=="skin"}{if NOT $MOD[mod].current}<td width="20"><a href="index1.php?setskinid={$MOD[mod].id}&action={$action}" onfocus='aide="Activer la {$MOD[mod].nom}";'><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="#COULEUR_FOND1#" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}valider.gif" border="0" width="20" height="20"></td></tr></table></a></td>{else}<td> </td>{/if}{/if} + <td width="20"><a href="index1.php?delid={$MOD[mod].id}&action={$action}" onfocus='aide="Supprimer {if $action=="skin"}la skin{else}le ... [truncated message content] |
From: <ara...@us...> - 2007-03-10 13:09:33
|
Revision: 96 http://svn.sourceforge.net/easybox-mod/?rev=96&view=rev Author: aragornis Date: 2007-03-10 05:09:31 -0800 (Sat, 10 Mar 2007) Log Message: ----------- Maj pour HD Encore quelques embellissements graphiques Modified Paths: -------------- trunk/module/_explorateur/explorateur.tpl trunk/module/_menu/menu.php trunk/module/diaporama/explorateur_photo.tpl trunk/module/films/play.php trunk/module/films/playrep.php trunk/settings.html trunk/skin/simple/interface.tpl Modified: trunk/module/_explorateur/explorateur.tpl =================================================================== --- trunk/module/_explorateur/explorateur.tpl 2007-03-09 21:54:45 UTC (rev 95) +++ trunk/module/_explorateur/explorateur.tpl 2007-03-10 13:09:31 UTC (rev 96) @@ -117,14 +117,14 @@ {section name=files loop=$T_affich max=$NUM_ROW_AFFICH start=$MIN} {if $T_affich[files]|in_array:$T_rep} {assign var="rep_a_affich" value=$REP|cat:'/'|cat:$T_affich[files]} -<tr><td colspan="2"><img src="{$SKIN_REP}dossier/folder.gif"> <font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_EXPLO}?directory={$rep_a_affich|realpath|urlencode}&mode={$MODE}">{$T_affich[files]|truncate:55|strip_delimiters}</a></font></td></tr> +<tr><td colspan="2"><img src="{$SKIN_REP}dossier/folder.gif"> <font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_EXPLO}?directory={$rep_a_affich|realpath|urlencode}&mode={$MODE}" onfocus='aide="Explorer {$T_affich[files]|strip_delimiters|escape:"htmlall"}";'>{$T_affich[files]|truncate:55|strip_delimiters}</a></font></td></tr> {else} <tr><td width="35"> {if $AFF_INFO} {assign var="nb" value=$T_affich[files]|strrpos:"."} <a href="fichefilm.php?start={$MIN}&comeback=expl&film={$T_affich[files]|substr:0:$nb|urlencode}&fichier={$REP|cat:'/'|cat:$T_affich[files]|realpath|urlencode}"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}/information.gif" border="0" width="20" height="20"></td></tr></table></a> {/if} - </td><td>{if NOT $AFF_INFO}<img src="{$SKIN_REP}dossier/{$ICONE_FICHIER}" width="16" height="16"> {/if}<font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_LECT}?{$OPT_LIENS}toplay_file={$T_affich[files]|urlencode}&toplay_rep={$REP|urlencode}">{$T_affich[files]|strip_delimiters|truncate:52}</a> + </td><td>{if NOT $AFF_INFO}<img src="{$SKIN_REP}dossier/{$ICONE_FICHIER}" width="16" height="16"> {/if}<font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_LECT}?{$OPT_LIENS}toplay_file={$T_affich[files]|urlencode}&toplay_rep={$REP|urlencode}" onfocus='aide="Jouer {$T_affich[files]|strip_delimiters|escape:"htmlall"}";'>{$T_affich[files]|strip_delimiters|truncate:52}</a> </font></td></tr> {/if} {/section} @@ -140,11 +140,11 @@ <td width="30" align="center"> {if $PLAYREP} -<a href="{$PAGE_LECT_REP}?toplay={$REP|urlencode}&type=playrep"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$SKIN_REP}dossier/rep_all.gif" border="0" width="20" height="20"></td></tr></table></a> +<a href="{$PAGE_LECT_REP}?toplay={$REP|urlencode}&type=playrep" onfocus='aide="Lire le dossier en entier";'><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$SKIN_REP}dossier/rep_all.gif" border="0" width="20" height="20"></td></tr></table></a> {/if} </td><td width="30" align="center"> {if $AFF_FAVORIS} -<a href="{$RACINE_REP}module/favoris/index1.php?ajout={$REP|urlencode}&nom={$REP}"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$SKIN_REP}dossier/favoris.gif" border="0" width="20" height="20"></td></tr></table></a> +<a href="{$RACINE_REP}module/favoris/index1.php?ajout={$REP|urlencode}&nom={$REP}" onfocus='aide="Ajouter le dossier aux favoris";'><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$SKIN_REP}dossier/favoris.gif" border="0" width="20" height="20"></td></tr></table></a> {/if} </td></tr></table> </td></tr> Modified: trunk/module/_menu/menu.php =================================================================== --- trunk/module/_menu/menu.php 2007-03-09 21:54:45 UTC (rev 95) +++ trunk/module/_menu/menu.php 2007-03-10 13:09:31 UTC (rev 96) @@ -81,4 +81,5 @@ $smarty->assign('FAVORIS',FAVORIS()); $smarty->assign('CONTENT',$smarty->fetch('menu.tpl')); $smarty->display('interface.tpl'); + ?> Modified: trunk/module/diaporama/explorateur_photo.tpl =================================================================== --- trunk/module/diaporama/explorateur_photo.tpl 2007-03-09 21:54:45 UTC (rev 95) +++ trunk/module/diaporama/explorateur_photo.tpl 2007-03-10 13:09:31 UTC (rev 96) @@ -35,15 +35,15 @@ {if $files[files]|in_array:$T_repertoire} {if $DOS} - <td width="100" height="130"><a href="index1.php?rep={$files[files].path|urlencode}" onfocus='aide="{$files[files]|strip_delimiters}";'><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align="center"><img border=0 width="64" height="64" src="lecteur.gif"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><font size="1">{$files[files].nom} ({$files[files].lettre|strtolower}:)</font></td></tr></table></a></td> + <td width="100" height="130"><a href="index1.php?rep={$files[files].path|urlencode}" onfocus='aide="{$files[files]|strip_delimiters|replace:"'":"'"}";'><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align="center"><img border=0 width="64" height="64" src="lecteur.gif"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><font size="1">{$files[files].nom} ({$files[files].lettre|strtolower}:)</font></td></tr></table></a></td> {else} - <td width="100" height="130"><a href="index1.php?rep={$REP|cat:'/'|cat:$files[files]|urlencode}" onfocus='aide="{$files[files]|strip_delimiters}";'><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align="center"><img border=0 width="64" height="64" src="big_dossier.gif"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><font size="1">{$files[files]|truncate:20:"":true|wordwrap:10:"<br>":true|strip_delimiters}</font></td></tr></table></a></td> + <td width="100" height="130"><a href="index1.php?rep={$REP|cat:'/'|cat:$files[files]|urlencode}" onfocus='aide="{$files[files]|strip_delimiters|replace:"'":"'"}";'><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align="center"><img border=0 width="64" height="64" src="big_dossier.gif"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><font size="1">{$files[files]|truncate:20:"":true|wordwrap:10:"<br>":true|strip_delimiters}</font></td></tr></table></a></td> {/if} {else} {assign var="dim" value=$REP|cat:'/'|cat:$files[files]|getimagesize} {assign var="newdim" value=$dim.0|get_size:$dim.1} - <td width="100" height="130" valign="middle" align="center"><a href="index1.php?image={$smarty.section.files.index}&rep={$rep_encoded}&start={$MIN}" onfocus='aide="{$files[files]|strip_delimiters}";'><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align="center" background="fond_cell.gif"><img width="{$newdim.0}" height="{$newdim.1}" border="0" src="{$RACINE_REP}_framework/lib/img_cr.php?local=1&formatw=88&formath=68&img={$REP|cat:'/'|cat:$files[files]|urlencode}"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><font size="1">{$files[files]|truncate:20:"":true|wordwrap:10:"<br>":true|strip_delimiters}</font></td></tr></table></a></td> + <td width="100" height="130" valign="middle" align="center"><a href="index1.php?image={$smarty.section.files.index}&rep={$rep_encoded}&start={$MIN}" onfocus='aide="{$files[files]|strip_delimiters|replace:"'":"'"}";'><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align="center" background="fond_cell.gif"><img width="{$newdim.0}" height="{$newdim.1}" border="0" src="{$RACINE_REP}_framework/lib/img_cr.php?local=1&formatw=88&formath=68&img={$REP|cat:'/'|cat:$files[files]|urlencode}"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><font size="1">{$files[files]|truncate:20:"":true|wordwrap:10:"<br>":true|strip_delimiters}</font></td></tr></table></a></td> {/if} Modified: trunk/module/films/play.php =================================================================== --- trunk/module/films/play.php 2007-03-09 21:54:45 UTC (rev 95) +++ trunk/module/films/play.php 2007-03-10 13:09:31 UTC (rev 96) @@ -149,6 +149,7 @@ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> <head> + <?php $smarty->display('bouton.tpl'); ?> <meta name="refresh" content="1;url=lecture.php?newfile=1"> <flags volume_key=true> Modified: trunk/module/films/playrep.php =================================================================== --- trunk/module/films/playrep.php 2007-03-09 21:54:45 UTC (rev 95) +++ trunk/module/films/playrep.php 2007-03-10 13:09:31 UTC (rev 96) @@ -58,5 +58,8 @@ <meta name="refresh" content="0;url=lecture.php?newfichier=1"> </head> -<body></body></html> +<body background="ts://127.0.0.1"> +<script language="javascript" src="/fb2ie.js"> +</script> +</body></html> Modified: trunk/settings.html =================================================================== --- trunk/settings.html 2007-03-09 21:54:45 UTC (rev 95) +++ trunk/settings.html 2007-03-10 13:09:31 UTC (rev 96) @@ -1,8 +1,6 @@ <!DOCTYPE HTML PUBLIC "-//Freebox//DTD HTML 3.2//EN"> <html> <head> -<meta name="service" content="ts://127.0.0.1"> -<meta name="display_aspect_ratio_conversion" content="letterbox"> <title>EasyBox</title> <meta name="settings_page" content="http://212.27.38.254:8080/settings.html"> Modified: trunk/skin/simple/interface.tpl =================================================================== --- trunk/skin/simple/interface.tpl 2007-03-09 21:54:45 UTC (rev 95) +++ trunk/skin/simple/interface.tpl 2007-03-10 13:09:31 UTC (rev 96) @@ -1,7 +1,6 @@ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> <head> -<meta name="service" content="ts://127.0.0.1"> {include file="bouton.tpl"} </head> <body background="ts://127.0.0.1" text="{#COULEUR_TEXT#}" link="{#COULEUR_LINK#}" alink="{#COULEUR_ALINK#}" vlink="{#COULEUR_VLINK#}"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2007-03-10 13:27:25
|
Revision: 97 http://svn.sourceforge.net/easybox-mod/?rev=97&view=rev Author: aragornis Date: 2007-03-10 05:27:23 -0800 (Sat, 10 Mar 2007) Log Message: ----------- R?\195?\169solution des pb de vid?\195?\169o sur v3,v4 ET HD Modified Paths: -------------- trunk/_framework/aide/help.php trunk/_framework/demarrage.php trunk/_framework/framework.php trunk/_utilisateur/modules.db trunk/configuration/config.xml Modified: trunk/_framework/aide/help.php =================================================================== --- trunk/_framework/aide/help.php 2007-03-10 13:09:31 UTC (rev 96) +++ trunk/_framework/aide/help.php 2007-03-10 13:27:23 UTC (rev 97) @@ -2,7 +2,7 @@ $RACINE_REP = "../../"; require($RACINE_REP.'_framework/framework.php'); - if ($ini['explorateur']['freeboxHD'] == 'oui') $typeTel = 'telehd'; + if ($vers_fbx==5) $typeTel = 'telehd'; else $typeTel = 'tele'; if (isset($_GET['affichage'])) $affichage = $_GET['affichage']; Modified: trunk/_framework/demarrage.php =================================================================== --- trunk/_framework/demarrage.php 2007-03-10 13:09:31 UTC (rev 96) +++ trunk/_framework/demarrage.php 2007-03-10 13:27:23 UTC (rev 97) @@ -54,6 +54,11 @@ switch($etape){ case 1: + if($vers_fbx<=4){ + $META['service'] = 'ts://127.0.0.1'; + $META['display_aspect_ratio_conversion'] = 'letterbox'; + } + list_templates(); function RemoveDir($dir) { if(!$dh = @opendir($dir)) return; Modified: trunk/_framework/framework.php =================================================================== --- trunk/_framework/framework.php 2007-03-10 13:09:31 UTC (rev 96) +++ trunk/_framework/framework.php 2007-03-10 13:27:23 UTC (rev 97) @@ -5,6 +5,12 @@ } setlocale(LC_TIME, "fr"); + + $vers_fbx = $_SERVER["HTTP_USER_AGENT"]; + $ereg = 'freebox\/[0-9]\.[0-9]\.[0-9] \(hw:([0-9]).0;'; + preg_match("/$ereg/s", $vers_fbx, $val_vers); + $vers_fbx = $val_vers[1]; + unset($val_vers); //-- Chargement du r\xE9pertoire du framework $FRAMEWORK_REP = $RACINE_REP."_framework/"; Modified: trunk/_utilisateur/modules.db =================================================================== (Binary files differ) Modified: trunk/configuration/config.xml =================================================================== --- trunk/configuration/config.xml 2007-03-10 13:09:31 UTC (rev 96) +++ trunk/configuration/config.xml 2007-03-10 13:27:23 UTC (rev 97) @@ -79,11 +79,6 @@ <type>boolean</type> <defaut>oui</defaut> </souscat> - <souscat name="freeboxHD" > - <name>Mettre 'oui' si vous possedez une FreeBox HD.</name> - <type>boolean</type> - <defaut>non</defaut> - </souscat> </categorie> <categorie name="multimedia" > <souscat name="sortiefreebox" > This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |