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