-<?php # coding:utf-8
-\r
-include_once("traitement_pre_affichage.php");\r
-\r
-
-# selection de tous les participants
-$res_SQL = mysql_query("SELECT pseudo FROM participants ORDER BY id");
-
-echo '<div id="nbParticipants"><em>', mysql_num_rows($res_SQL), '</em> inscrit', (mysql_num_rows($res_SQL) > 1 ? 's' : ''), '</div>';
-
-# affichage des participants
-if (mysql_num_rows($res_SQL) > 0)
- echo '<ul id="participants">';
-for ($i=0; $i<mysql_num_rows($res_SQL); $i++)
-{
- mysql_data_seek($res_SQL, $i);
- $le_participant_pseudo = mysql_fetch_object($res_SQL);
- echo '<li>', traitement_pre_affichage($le_participant_pseudo->pseudo, 8), '</li>';
-}
-if (mysql_num_rows($res_SQL) > 0)
- echo '</ul>';
-?>
-
-
-<?php
-if($le_participant->valide)
-{
- echo'
- <form method="post" action="index.php?';
-
- foreach($HTTP_GET_VARS as $nom => $valeur)
- echo $nom,'=',$valeur,'&';
-
- echo'">
- <p><input type="hidden" name="effacer_cookie" value="1" /></p>
- <p><input type="submit" value="logout" /></p>
- </form>';
-}
-else
-{
- if (isset($log)) echo '<em>[erreur de loggation]</em>';
-
- echo'
- <form method="post" action="index.php?';
-
- foreach($HTTP_GET_VARS as $nom => $valeur)
- echo $nom,'=',$valeur,'&';
-
- echo'">
- <p>login / pass</p>
- <p><input type="hidden" name="log" value="1" /></p>
- <p><input type="text" name="pseudo" size="10" maxlength="30" /></p>
- <p><input type="password" name="password" size="10" maxlength="10" /></p>
- <p><input type="submit" value="oki" class="submitInvisible" /></p>
- </form>
- ';
-}
-?>