// die("Site en maintenance, notre forum est cependant disponible."); include("includes/connexion.conf.php"); define('PUN_TURN_OFF_MAINT', 1); define('PUN_QUIET_VISIT', 0); define('PUN_ROOT', 'Forum/'); require PUN_ROOT.'include/common.php'; require PUN_ROOT.'include/parser.php'; header('Content-type: text/html; charset=utf-8'); $result = $db->query('SELECT user_id, ident, color FROM '.$db->prefix.'online WHERE idle=0 ORDER BY ident', true) or error('Impossible de retrouver la liste des utilisateurs en ligne', __FILE__, __LINE__, $db->error()); $users = ""; while ($pun_user_online = $db->fetch_assoc($result)) { if ($pun_user_online['user_id'] > 1) { $colorspan = (!empty($pun_user_online['color'])) ? '' : ''; $colorspan2 = (!empty($pun_user_online['color'])) ? '' : ''; $users .= ' '.$colorspan.pun_htmlspecialchars($pun_user_online['ident']).$colorspan2.''; } } ?>