garbage_manager(TRUE);
log_main("post garbage_manager");
if (($user = &$room->get_user($sess, &$idx)) != FALSE) {
log_main("user stat: ".$user->stat);
if ($user->stat == "table") {
if (Room::save_data(&$room) == FALSE) {
echo "ERRORE SALVATAGGIO\n";
exit;
}
log_main("unlock Room");
Room::unlock_data($sem);
setcookie("table_token", $user->table_token, $curtime + 31536000);
setcookie("table_idx", $user->table, $curtime + 31536000);
header ("Location: briskin5/index.php");
exit;
}
$ACTION = "room";
}
if (Room::save_data(&$room) == FALSE) {
echo "ERRORE SALVATAGGIO\n";
exit;
}
}
if ($ACTION == "login" && isset($name)) {
log_main("pre garbage_manager DUE");
if (isset($pass_private) == FALSE) {
$pass_private = FALSE;
}
$room->garbage_manager(TRUE);
/* try login */
if (($user = &$room->add_user(&$sess, &$idx, $name, $pass_private, $_SERVER['REMOTE_ADDR'])) != FALSE) {
$ACTION = "room";
if ($idx < 0) {
$idx = -$idx - 1;
$login_exists = TRUE;
}
else
$login_exists = FALSE;
log_legal($curtime, $user->sess, $user->name, "STAT:LOGIN", '');
// setcookie ("sess", "", time() + 180);
$room->standup_update(&$user);
if (Room::save_data(&$room) == FALSE) {
echo "ERRORE SALVATAGGIO\n";
exit;
}
}
else {
/* Login Rendering */
if ($idx == -3)
$body .= '
Utente e/o password errati.
';
else if ($idx == -2)
$body .= 'Il nickname deve contenere almeno una lettera o una cifra.
';
else if ($idx == -1)
$body .= 'Spiacenti, non ci sono più posti liberi. Riprova più tardi.
';
else
$body .= 'Il tuo nickname è già in uso.
';
}
}
Room::unlock_data($sem);
}
/* Rendering. */
if ($BRISK_SHOWHTML == "debugtable") {
$ACTION = "room";
}
else if ($BRISK_SHOWHTML == "debuglogin") {
$ACTION = "login";
}
if ($ACTION == "room") {
$tables .= '';
$tables .= '
';
for ($i = 0 ; $i < TABLES_N ; $i++) {
if ($i % 4 == 0)
$tables .= '';
$tables .= '';
$tables .= 'Tavolo '.$i.' ';
$tables .= sprintf(' ', $i);
$tables .= sprintf(' ', $i);
$tables .= ' ';
$tables .= ' | '."\n";
if ($i % 4 == 3)
$tables .= '
';
}
$tables .= '
';
$standup .= '';
$standup .= '';
$standup .= ' ';
$standup .= sprintf(' ');
$standup .= ' ';
$standup .= ' |
';
}
$altout_propag = array( array ( 'id' => 'btn_altout',
'url' => 'http://www.alternativeoutput.it',
'content' => 'img/altout80x15.png',
'content_big' => 'img/altout80x15.png'),
array ( 'id' => 'btn_virtualsky',
'url' => 'http://virtualsky.alternativeoutput.it',
'content' => 'img/virtualsky80x15a.gif',
'content_big' => 'img/virtualsky_big.png')
);
// seed with microseconds since last "whole" second
srand ((double) microtime() * 1000000);
// $randval = rand(0,count($altout_propag)-1);
$randval = 1;
$altout_carousel = sprintf('',
$altout_propag[$randval]['url'],
$altout_propag[$randval]['id'],
$altout_propag[$randval]['content']);
$altout_carousel_big = sprintf('',
$altout_propag[$randval]['id'],
$altout_propag[$randval]['content_big']);
$brisk_donate = file_get_contents(FTOK_PATH."/brisk_donate.txt");
if ($brisk_donate == FALSE)
$brisk_donate = "";
$brisk_header_form = '
';
$brisk_vertical_menu = '
';
/* Templates. */
if ($ACTION == 'login') {
header('Content-type: text/html; charset="utf-8"',true);
?>
Brisk
\n");
printf($brisk_vertical_menu, '', '');
printf(" | ");
?>
Digita il tuo nickname per accedere ai tavoli della briscola.
Se non hai ancora una password, lascia il campo in bianco ed entra.
(se usi firefox e qualcosa non funziona prova a ricaricare la pagina con Ctrl + F5)
Brisk
|
\n");
printf($brisk_vertical_menu, '
',
$brisk_donate);
printf(" | ");
?>
sess"; ?>">
|
Garantisci per un tuo conoscente: