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/class_participant.php");
13 include_once("php/connexion.php");
14 include_once("php/config.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.'" />';
39 echo '<meta name="cout_periode" content="'.$config->get('cout_periode').'" />';
40 echo '<meta name="cout_total" content="'.$config->get('cout_total').'" />';
42 <title
>Corcelles
-Lan
7</title
>
43 <link rel
="stylesheet" href
="css/style.css" type
="text/css" media
="screen" ></link
>
44 <script type
="text/javascript" src
="js/jquery-1.2.6.min.js"></script
>
45 <script type
="text/javascript" src
="js/betterjs.js"></script
>
46 <script type
="text/javascript" src
="js/cl7.js"></script
>
47 <script type
="text/javascript" src
="js/util.js"></script
>
50 <div id
="info" style
="display:none" ><div id
="icone"></div
><div
class="fermer" ></div
><div
class="message" ></div
><div
class="boutons"></div
></div
>
54 <div id
="nbPlacesRestantes">
56 $nb_places_libres = Participant
::nombre_place_restante();
57 if ($nb_places_libres <= 0)
59 echo "Il n'y a plus de places libres";
63 $s = $nb_places_libres > 1 ? 's' : '';
64 echo "Il reste <em>", $nb_places_libres, "</em> place", $s, " libre", $s;
73 foreach($MENU as $p => $titre )
75 $lien_externe = substr($p, 0, 4) == 'http';
76 echo '<li' . ($p == $page ? ' class="courante"' : '') . '><a href="'.($lien_externe ? $p : $p.'.html').'" '.($lien_externe ? 'class="externe"' : '').'>' . $titre . '</a></li>';
81 <div id
="informations"><?php
include("php/menu_droit.php") ?></div
>
86 include("php/tx_informations.php");
89 include("php/tx_jeux_joues.php");
92 if (Participant
::nombre_participant_max_atteint() && !$le_participant->valide
)
93 echo 'Nous sommes désolés, il n\'y a plus de places libres';
95 include("php/tx_inscription.php");
98 include("php/tx_inscrits.php");
101 include("php/tx_tournoi.php");
104 include("php/tx_intranet.php");
107 include("php/tx_bienvenue.php");
110 include("php/tx_contacts.php");
113 include("php/tx_photos.php");
116 include("php/pizzas.php");
119 echo 'erreur, page introuvable';
124 <div id
="pieddepage">
125 ~ site codé en PHP avec les pieds ~