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 .= '
Tavolo '.$i.' '; $tables .= sprintf('', $i); $tables .= sprintf('', $i); $tables .= ' | '."\n";
if ($i % 4 == 3)
$tables .= '|||
';
$tables .= ' ';
$tables .= 'Giocatori in piedi '; $tables .= sprintf(''); $tables .= ''; $tables .= ' |