From: Greg Burri Date: Fri, 11 Sep 2009 17:06:53 +0000 (+0200) Subject: Merge ssh://git@dev.euphorik.ch/cl7 X-Git-Url: http://git.euphorik.ch/?p=cl7.git;a=commitdiff_plain;h=72508fb3290057e8afd090d06e5763ee8ff68cd7;hp=-c Merge ssh://git@dev.euphorik.ch/cl7 --- 72508fb3290057e8afd090d06e5763ee8ff68cd7 diff --combined index.php index 363de7a,ea5c35e..73edd6e --- a/index.php +++ b/index.php @@@ -1,31 -1,30 +1,30 @@@ 'Accueil', # la page par défaut + 'jeux_joues' => 'Jeux joués', + 'inscription' => 'Inscription', + 'inscrits' => 'Inscrits', + 'http://www.euphorik.ch/#page="minichat";conv=[1642]' => 'Chat', + 'contacts' => 'Contacts', + #'mods' => 'Mods', + #'cracks' => 'Cracks', + #'pizzas' => 'Pizza', + ); - $page = $_GET['page']; - if (!isset($page)) $page = "accueil"; #la page par défaut - - - /* Pour déterminer si en LAN !? - $IP_SERVEUR = '192.168.1.1'; - $MASK_RESEAU = '255.255.255.0'; - if($titre[1] && (ip2long($REMOTE_ADDR) & ip2long($MASK_RESEAU)) != (ip2long($IP_SERVEUR) & ip2long($MASK_RESEAU))) - */ - - include_once("php/class_participant.php"); + include_once("php/participant.php"); include_once("php/connexion.php"); include_once("php/config.php"); include_once("php/controller.php"); + include_once("php/panel.php"); - $MENU = array( - 'accueil' => 'Accueil', - 'jeux_joues' => 'Jeux joués', - 'inscription' => 'Inscription', - 'inscrits' => 'Inscrits', - 'http://www.euphorik.ch/#page="minichat";conv=[1642]' => 'Chat', - 'contacts' => 'Contacts', - #'mods' => 'Mods', - #'cracks' => 'Cracks', - #'pizzas' => 'Pizza', - ); + # Différents objets, sont accessibles directement par les pages (voir dossier '/php/pages/'). + $page = $_GET['page'] ? $_GET['page'] : 'accueil'; + $config = new Config(); + $connexion = new Connexion(); + $participant = $connexion->participant; + $controller = new Controller($participant); + $panel = new Panel($participant); echo ''; ?> @@@ -35,17 -34,17 +34,17 @@@ - '; - + if ($controller->message_utilisateur) echo ''; + # Des constantes stockées en BD accessible par le javascript. echo ''; echo ''; $nbPeriodes = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM periodes")); echo ''; ?> - Corcelles-Lan 7 + Corcelles-Lan 8 @@@ -75,7 -74,7 +74,7 @@@ } ?> - Corcelles-Lan 7 + Corcelles-Lan 8