garbage_manager(TRUE); if (($user = &$bri->get_user($sess, &$idx)) != FALSE) { if ($user->stat == "table") { header ("Location: table.php"); unlock_data($sem); exit; } $ACTION = "room"; } } if ($ACTION == "login" && isset($name)) { $bri->garbage_manager(TRUE); /* try login */ $name = substr($name, 0, 12); $name = str_replace(" ", "_", $name); if (($user = &$bri->add_user(&$sess, &$idx, $name)) != FALSE) { $ACTION = "room"; // setcookie ("sess", "", time() + 180); $bri->standup_update(&$user); if (save_data(&$bri) == FALSE) { echo "ERRORE SALVATAGGIO\n"; exit; } } else { /* Login Rendering */ if ($idx == -1) $body .= '
Spiacenti, non ci sono più posti liberi. Riprova più tardi.
'; else $body .= '
Il tuo nickname è già in uso.
'; } } unlock_data($sem); } /* Rendering. */ if ($BRISK_DEBUG == "debugtable") { $ACTION = "room"; } else if ($BRISK_DEBUG == "debuglogin") { $ACTION = "login"; } if ($ACTION == "room") { $tables .= ''; for ($i = 0 ; $i < TABLES_N ; $i++) { if ($i % 4 == 0) $tables .= ''; $tables .= ''."\n"; if ($i % 4 == 3) $tables .= ''; } $tables .= ''; $tables .= '
Tavolo '.$i.'

'; $tables .= sprintf('
', $i); $tables .= sprintf('
', $i); $tables .= '
'; $tables .= '
'; $tables .= 'Giocatori in piedi

'; $tables .= sprintf('
'); $tables .= '
'; $tables .= '
'; } $brisk_header = '
briscola chiamata in salsa ajax




sponsored by:




supported by:



'; /* Templates. */ if ($ACTION == 'login') { ?> Brisk




Digita il tuo nickname per accedere ai tavoli della briscola.





Brisk
sess"; ?>">
Chat