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("config.php");
13 include_once("class_participant.php");
14 include_once("connexion.php");
15 include_once("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" />
37 <title
>Corcelles
-Lan
7</title
>
38 <link rel
="stylesheet" href
="css/style.css" type
="text/css" media
="screen" ></link
>
39 <script type
="text/javascript" src
="js/jquery-1.2.6.min.js"></script
>
40 <script type
="text/javascript" src
="js/betterjs.js"></script
>
41 <script type
="text/javascript" src
="js/cl7.js"></script
>
42 <script type
="text/javascript" src
="js/util.js"></script
>
45 <div id
="info" style
="display:none" ><div id
="icone"></div
><div
class="fermer" ></div
><div
class="message" ></div
><div
class="boutons"></div
></div
>
49 <div id
="nbPlacesRestantes">
51 $nb_places_libres = Participant
::nombre_place_restante();
52 if ($nb_places_libres <= 0)
54 echo "Il n'y a plus de places libres";
58 $s = $nb_places_libres > 1 ? 's' : '';
59 echo "Il reste <em>", $nb_places_libres, "</em> place", $s, " libre", $s;
68 foreach($MENU as $p => $titre )
70 $lien_externe = substr($p, 0, 4) == 'http';
71 echo '<li' . ($p == $page ? ' class="courante"' : '') . '><a href="'.($lien_externe ? $p : $p.'.html').'" '.($lien_externe ? 'class="externe"' : '').'>' . $titre . '</a></li>';
76 <div id
="informations"><?php
include("menu_droit.php") ?></div
>
81 include("tx_informations.php");
84 include("tx_jeux_joues.php");
87 if (Participant
::nombre_participant_max_atteint() && !$le_participant->valide
)
88 echo 'Nous sommes désolés, il n\'y a plus de places libres';
90 include("tx_inscription.php");
93 include("tx_inscrits.php");
96 include("tx_tournoi.php");
99 include("tx_intranet.php");
102 include("tx_bienvenue.php");
105 include("tx_contacts.php");
108 include("tx_photos.php");
111 include("pizzas.php");
114 echo 'erreur, page introuvable';
119 <div id
="pieddepage">
120 ~ site codé en PHP avec les pieds ~