X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex.php;h=160bee04201126e78b8fb712b5d7a3fc420f1ab4;hb=c482cae11212f59e8680096e2e42184639184875;hp=75df65cf201a517b1a569ce1a49634120c985399;hpb=db06e6d1738ee3a636cb2ea383a1f1e23453cf30;p=brisk.git diff --git a/web/index.php b/web/index.php index 75df65c..160bee0 100644 --- a/web/index.php +++ b/web/index.php @@ -105,7 +105,21 @@ function main() else $login_exists = FALSE; - log_legal($curtime, $user->sess, $user->name, "STAT:LOGIN", ''); + log_legal($curtime, $user, "STAT:LOGIN", ''); + + // recovery lost game + 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; + } // setcookie ("sess", "", time() + 180); @@ -118,6 +132,7 @@ function main() } else { /* Login Rendering */ + /* MLANG: "Utente e/o password errati.", "Il nickname deve contenere almeno una lettera o una cifra.", "Spiacenti, non ci sono più posti liberi. Riprova più tardi.", "Il tuo nickname è già in uso." */ if ($idx == -3) $body .= '
';
$standup .= ' ';
+ /* MLANG: "Giocatori in piedi", "Come ottenere user e password" */
+ // $standup .= ' Giocatori in piedi - Come ottenere user e password - ';
$standup .= 'Giocatori in piedi ';
$standup .= sprintf('');
- $standup .= '';
+ $standup .= '';
$standup .= ' |
![]() | @@ -531,6 +558,40 @@ if ($login_exists) { |