X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=index.php;h=9f5f1e88ebcd15f24f0207a76bcdce2ac06e7b62;hb=c6ae5deb1fbef72523af41ba84f5eb8840473fd2;hp=f7136c5c64d5b051ac94080d1a0273e2fb386e7b;hpb=c1d939c263d7748af8a126f4fba72972c263561d;p=cl7.git diff --git a/index.php b/index.php index f7136c5..9f5f1e8 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( - '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'; +$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 ''; $nbPeriodes = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM periodes")); echo ''; ?> - Corcelles-Lan 7 + Corcelles-Lan 8 @@ -75,7 +81,7 @@ echo ''; } ?> - Corcelles-Lan 7 + Corcelles-Lan 8