X-Git-Url: http://git.euphorik.ch/?p=cl7.git;a=blobdiff_plain;f=index.php;h=d0629dda360760c9f404fadcd810c3c5c0379b99;hp=575f4b019667091219b2dada5da4ca78a5e1b225;hb=9caf6ae04ba0c163a4bfe97fcee3cf1bfa0e78e8;hpb=297dca49a2a9b2046e12078fc864fd4333fdcbde diff --git a/index.php b/index.php index 575f4b0..d0629dd 100644 --- a/index.php +++ b/index.php @@ -3,6 +3,7 @@ $page = $_GET['page']; if (!isset($page)) $page = "acceuil"; #la page par défaut + /* Pour déterminer si en LAN !? $IP_SERVEUR = '192.168.1.1'; $MASK_RESEAU = '255.255.255.0'; @@ -42,93 +43,97 @@ echo ''; Corcelles-Lan 7 - - - + + + - - -
-
-
-
- 1 ? 's' : ''; - echo "Il reste ", $nb_places_libres, " place", $s, " libre", $s; - } - ?> -
- Corcelles-Lan 7 -
- -
- '; - include("php/menu_droit.php"); - echo '
'; - } - switch ($page) - { - case 'acceuil': - include("php/tx_informations.php"); - break; - case 'jeux_joues' : - 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("php/tx_inscription.php"); - break; - case 'inscrits' : - include("php/tx_inscrits.php"); - break; - case 'tournoi' : - include("php/tx_tournoi.php"); - break; - case 'intranet' : - include("php/tx_intranet.php"); - break; - case 'bienvenue' : - include("php/tx_bienvenue.php"); - break; - case 'contacts' : - include("php/tx_contacts.php"); - break; - case 'photos' : - include("php/tx_photos.php"); - break; - case 'pizzas': - include("php/pizzas.php"); - break; - default : - echo 'erreur, page introuvable'; - break; - } - ?> -
-
- ~ site codé en PHP avec les pieds ~ -
-
- - + + +
+
+
+
+get("inscription_terminees")) +{ + echo "Les inscriptions sont terminées !"; +} +else if ($nb_places_libres <= 0) +{ + echo "Il n'y a plus de places libres"; +} +else +{ + $s = $nb_places_libres > 1 ? 's' : ''; + echo "Il reste ", $nb_places_libres, " place", $s, " libre", $s; +} +?> +
+Corcelles-Lan 7 +
+ +
+'; +include("php/menu_droit.php"); +echo '
'; +} +switch ($page) +{ +case 'acceuil': +include("php/tx_informations.php"); +break; +case 'jeux_joues' : +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("php/tx_inscription.php"); +break; +case 'inscrits' : +include("php/tx_inscrits.php"); +break; +case 'tournoi' : +include("php/tx_tournoi.php"); +break; +case 'intranet' : +include("php/tx_intranet.php"); +break; +case 'bienvenue' : +include("php/tx_bienvenue.php"); +break; +case 'contacts' : +include("php/tx_contacts.php"); +break; +case 'photos' : +include("php/tx_photos.php"); +break; +case 'pizzas': +include("php/pizzas.php"); +break; +default : +echo 'erreur, page introuvable'; +break; +} +?> +
+
+~ site codé en PHP avec les pieds ~ +
+
+ +