garbage_manager(TRUE); if (($user = &get_user(&$bri, $sess, &$idx)) != FALSE) { if ($user->stat == "table") { header ("Location: table.php"); unlock_data($sem); exit; } $ACTION = "table"; } else { setcookie ("sess", "", time() - 3600); } } else if (isset($name)) { $bri->garbage_manager(TRUE); /* try login */ if (($user = &add_user(&$bri, &$sess, &$idx, $name)) != FALSE) { $ACTION = "table"; setcookie ("sess", "", time() + 180); standup_update(&$bri,&$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 ($ACTION == "table") { $tables .= ''; for ($i = 0 ; $i < TABLES_N ; $i++) { if ($i % 4 == 0) $tables .= ''; $tables .= ''; 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 .= '
'; } /* Templates. */ if ($ACTION == 'login') { ?> Brisk
briscola chiamata in salsa ajax

Digita il tuo nickname per accedere ai tavoli della briscola.




Brisk
briscola chiamata in salsa ajax

sess"; ?>"> Chat