X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=index.php;h=ea5c35e746096e969561d4467d364a6883ed1c85;hb=05461da5dec2f7179e2fd0e12c1e9c97429af78e;hp=e1d6fb1802d8a66fd2d2e25f62ec61acb7cb75a9;hpb=eb13d74a54796fabaa4034eeb2e803f41c7424ab;p=cl7.git diff --git a/index.php b/index.php index e1d6fb1..ea5c35e 100644 --- a/index.php +++ b/index.php @@ -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', +); -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' => '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,96 +35,110 @@ echo '';
'; + # Permet d'afficher un message à l'utilisateur lors du chargement de la page via le javascript, voir 'cl7.js'. + 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 ''; ?> -