X-Git-Url: http://git.euphorik.ch/?p=cl7.git;a=blobdiff_plain;f=index.php;h=e0b42df58eedf8b2b43c24c4bca4e8a0c812a8c5;hp=4aa606b4d781b164b14c261c3439df7d15350304;hb=2dd3ec5a6855e861d5d678126a344a2d9227d886;hpb=9340750d8800cc52b13fe6c7f7fffe51cedc6318 diff --git a/index.php b/index.php index 4aa606b..e0b42df 100644 --- a/index.php +++ b/index.php @@ -3,20 +3,27 @@ $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"); + +# Différents objets, sont accessibles directements par les pages (voir dossier '/php/pages/'). +$config = new Config(); +$connexion = new Connexion(); +$participant = $connexion->participant; +$controller = new Controller($participant); +$panel = new Panel($participant); $MENU = array( - 'acceuil' => 'Acceuil', + 'accueil' => 'Accueil', 'jeux_joues' => 'Jeux joués', 'inscription' => 'Inscription', 'inscrits' => 'Inscrits', @@ -35,14 +42,15 @@ echo '';
- '; - + if ($controller->message_utilisateur) echo ''; + # Des constantes stockées en BD accessible par le javascript. echo ''; echo ''; - echo ''; + $nbPeriodes = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM periodes")); + echo ''; ?>