X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=index.php;h=e41a32e2517b29fb5312d7ad110a756a6827ff51;hb=23bc2016d5fbd8f7daa9b7ba5c7fa862709ff7a7;hp=4aa606b4d781b164b14c261c3439df7d15350304;hpb=9340750d8800cc52b13fe6c7f7fffe51cedc6318;p=cl7.git diff --git a/index.php b/index.php index 4aa606b..e41a32e 100644 --- a/index.php +++ b/index.php @@ -1,33 +1,36 @@ '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( - 'acceuil' => 'Acceuil', - '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'; +$connexion = new Connexion(); +$config = new Config(); +$participant = $connexion->participant; +$controller = new Controller($participant, $config); +$panel = new Panel($participant); +if ($controller->nouvel_inscrit) + $page = "bienvenue"; + echo ''; + ?> '; - '; - + if ($controller->message_utilisateur) + echo ''; + else if ($connexion->message_utilisateur) + echo ''; + # Des constantes stockées en BD accessible par le javascript. echo ''; echo ''; - echo ''; + $nbPeriodes = pg_fetch_array(pg_query("SELECT COUNT(*) FROM periodes")); + echo ''; ?> - Corcelles-Lan 7 + Corcelles-Lan 8 @@ -74,7 +81,7 @@ echo ''; } ?> - Corcelles-Lan 7 + Corcelles-Lan 8