MOD maj todo et page d'infos
[cl7.git] / index.php
index 9e1c878..e1d6fb1 100644 (file)
--- a/index.php
+++ b/index.php
@@ -9,10 +9,10 @@ $MASK_RESEAU = '255.255.255.0';
 if($titre[1] && (ip2long($REMOTE_ADDR) & ip2long($MASK_RESEAU)) != (ip2long($IP_SERVEUR) & ip2long($MASK_RESEAU)))
 */
 
-include_once("config.php");
-include_once("class_participant.php");\r
-include_once("connexion.php");
-include_once("controller.php");
+include_once("php/class_participant.php");\r
+include_once("php/connexion.php");
+include_once("php/config.php");
+include_once("php/controller.php");
 
 $MENU = array(
    'acceuil' => 'Accueil',
@@ -34,6 +34,11 @@ echo '<?xml version="1.0" encoding="UTF-8"?>';
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+   <?php
+      if ($message_utilisateur) echo '<meta name="messageUtilisateur" content="'.$message_utilisateur.'" />';
+      echo '<meta name="cout_periode" content="'.$config->get('cout_periode').'" />';
+      echo '<meta name="cout_total" content="'.$config->get('cout_total').'" />';
+   ?>
    <title>Corcelles-Lan 7</title>\r
    <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" ></link>\r
    <script type="text/javascript" src="js/jquery-1.2.6.min.js"></script>
@@ -73,42 +78,42 @@ echo '<?xml version="1.0" encoding="UTF-8"?>';
                   ?>
             </ul>
             <div id="contenu">
-               <div id="informations"><?php include("menu_droit.php") ?></div>
+               <div id="informations"><?php include("php/menu_droit.php") ?></div>
                 <?php
                   switch ($page)
                   {
                   case 'acceuil':
-                     include("tx_informations.php");
+                     include("php/tx_informations.php");
                      break;
                   case 'jeux_joues' :
-                     include("tx_jeux_joues.php");
+                     include("php/tx_jeux_joues.php");
                      break;
                   case 'inscription' :
                      if (Participant::nombre_participant_max_atteint() && !$le_participant->valide)
                         echo 'Nous sommes désolés, il n\'y a plus de places libres';
                      else
-                        include("tx_inscription.php");
+                        include("php/tx_inscription.php");
                      break;
                   case 'inscrits' :
-                     include("tx_inscrits.php");
+                     include("php/tx_inscrits.php");
                      break;
                   case 'tournoi' :
-                     include("tx_tournoi.php");
+                     include("php/tx_tournoi.php");
                      break;
                   case 'intranet' :
-                     include("tx_intranet.php");
+                     include("php/tx_intranet.php");
                      break;
                   case 'bienvenue' :
-                     include("tx_bienvenue.php");
+                     include("php/tx_bienvenue.php");
                      break;
                   case 'contacts' :
-                     include("tx_contacts.php");
+                     include("php/tx_contacts.php");
                      break;
                   case 'photos' :
-                     include("tx_photos.php");
+                     include("php/tx_photos.php");
                      break;
                   case 'pizzas':
-                     include("pizzas.php");
+                     include("php/pizzas.php");
                      break;
                   default :
                      echo 'erreur, page introuvable';