X-Git-Url: http://git.euphorik.ch/?p=cl7.git;a=blobdiff_plain;f=index.php;h=ebe978138028791861376ed2293c07f51a69deca;hp=e1d6fb1802d8a66fd2d2e25f62ec61acb7cb75a9;hb=HEAD;hpb=eb13d74a54796fabaa4034eeb2e803f41c7424ab diff --git a/index.php b/index.php index e1d6fb1..ebe9781 100644 --- a/index.php +++ b/index.php @@ -1,24 +1,10 @@ - 'Accueil', + 'accueil' => 'Accueil', # la page par défaut 'jeux_joues' => 'Jeux joués', 'inscription' => 'Inscription', - 'inscrits' => 'Inscrits', + 'inscrits' => 'Inscrits', 'http://www.euphorik.ch/#page="minichat";conv=[1642]' => 'Chat', 'contacts' => 'Contacts', #'mods' => 'Mods', @@ -26,7 +12,25 @@ $MENU = array( #'pizzas' => 'Pizza', ); +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 directement par les pages (voir dossier '/php/pages/'). +$page = isset($_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 ''; + ?> ';
'; + # Permet d'afficher un message à l'utilisateur lors du chargement de la page via le javascript, voir 'cl7.js'. + if ($controller->message_utilisateur) + echo ''; + else if ($connexion->message_utilisateur) + echo ''; + + # Des constantes stockées en BD accessible par le javascript. echo ''; echo ''; + $nbPeriodes = pg_fetch_array(pg_query("SELECT COUNT(*) FROM periodes")); + echo ''; + echo ''; ?> -