X-Git-Url: http://git.euphorik.ch/?p=cl7.git;a=blobdiff_plain;f=index.php;h=ebe978138028791861376ed2293c07f51a69deca;hp=e41a32e2517b29fb5312d7ad110a756a6827ff51;hb=HEAD;hpb=23bc2016d5fbd8f7daa9b7ba5c7fa862709ff7a7 diff --git a/index.php b/index.php index e41a32e..ebe9781 100644 --- a/index.php +++ b/index.php @@ -1,16 +1,16 @@ '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', -); + +$MENU = array( + 'accueil' => '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', +); include_once("php/participant.php"); include_once("php/connexion.php"); @@ -18,8 +18,8 @@ include_once("php/config.php"); include_once("php/controller.php"); include_once("php/panel.php"); -# Différents objets, sont accessibles directement par les pages (voir dossier '/php/pages/'). -$page = $_GET['page'] ? $_GET['page'] : 'accueil'; +# Différents objets, sont accessibles directement par les pages (voir dossier '/php/pages/'). +$page = isset($_GET['page']) ? $_GET['page'] : 'accueil'; $connexion = new Connexion(); $config = new Config(); $participant = $connexion->participant; @@ -28,7 +28,7 @@ $panel = new Panel($participant); if ($controller->nouvel_inscrit) $page = "bienvenue"; - + echo ''; ?> @@ -50,6 +50,7 @@ echo ''; echo ''; $nbPeriodes = pg_fetch_array(pg_query("SELECT COUNT(*) FROM periodes")); echo ''; + echo ''; ?> Corcelles-Lan 8