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. |