4 if (!isset($page)) $page = "acceuil"; #la page par défaut
6 /* Pour déterminer si en LAN !?
7 $IP_SERVEUR = '192.168.1.1';
8 $MASK_RESEAU = '255.255.255.0';
9 if($titre[1] && (ip2long($REMOTE_ADDR) & ip2long($MASK_RESEAU)) != (ip2long($IP_SERVEUR) & ip2long($MASK_RESEAU)))
12 include_once("php/config.php");
13 include_once("php/class_participant.php");
14 include_once("php/connexion.php");
15 include_once("php/controller.php");
18 'acceuil' => 'Accueil',
19 'jeux_joues' => 'Jeux joués',
20 'inscription' => 'Inscription',
21 'inscrits' => 'Inscrits',
22 'http://www.euphorik.ch/#page="minichat";conv=[1642]' => 'Chat',
23 'contacts' => 'Contacts',
25 #'cracks' => 'Cracks',
29 echo '<?xml version="1.0" encoding="UTF-8"?>';
32 <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.1//EN"
33 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
34 <html xmlns
="http://www.w3.org/1999/xhtml">
36 <meta http
-equiv
="Content-Type" content
="text/html; charset=utf-8" />
38 if ($message_utilisateur) echo '<meta name="messageUtilisateur" content="'.$message_utilisateur.'" />';
40 <title
>Corcelles
-Lan
7</title
>
41 <link rel
="stylesheet" href
="css/style.css" type
="text/css" media
="screen" ></link
>
42 <script type
="text/javascript" src
="js/jquery-1.2.6.min.js"></script
>
43 <script type
="text/javascript" src
="js/betterjs.js"></script
>
44 <script type
="text/javascript" src
="js/cl7.js"></script
>
45 <script type
="text/javascript" src
="js/util.js"></script
>
48 <div id
="info" style
="display:none" ><div id
="icone"></div
><div
class="fermer" ></div
><div
class="message" ></div
><div
class="boutons"></div
></div
>
52 <div id
="nbPlacesRestantes">
54 $nb_places_libres = Participant
::nombre_place_restante();
55 if ($nb_places_libres <= 0)
57 echo "Il n'y a plus de places libres";
61 $s = $nb_places_libres > 1 ? 's' : '';
62 echo "Il reste <em>", $nb_places_libres, "</em> place", $s, " libre", $s;
71 foreach($MENU as $p => $titre )
73 $lien_externe = substr($p, 0, 4) == 'http';
74 echo '<li' . ($p == $page ? ' class="courante"' : '') . '><a href="'.($lien_externe ? $p : $p.'.html').'" '.($lien_externe ? 'class="externe"' : '').'>' . $titre . '</a></li>';
79 <div id
="informations"><?php
include("php/menu_droit.php") ?></div
>
84 include("php/tx_informations.php");
87 include("php/tx_jeux_joues.php");
90 if (Participant
::nombre_participant_max_atteint() && !$le_participant->valide
)
91 echo 'Nous sommes désolés, il n\'y a plus de places libres';
93 include("php/tx_inscription.php");
96 include("php/tx_inscrits.php");
99 include("php/tx_tournoi.php");
102 include("php/tx_intranet.php");
105 include("php/tx_bienvenue.php");
108 include("php/tx_contacts.php");
111 include("php/tx_photos.php");
114 include("php/pizzas.php");
117 echo 'erreur, page introuvable';
122 <div id
="pieddepage">
123 ~ site codé en PHP avec les pieds ~