X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex.php;h=160bee04201126e78b8fb712b5d7a3fc420f1ab4;hb=a3885a63b7558381d0bc464a3f1c68311f1b2fea;hp=5a4157dbfcad86b23b68eeff0d685d3bb1516f78;hpb=6d1d9d3337628af37b5d7f28e949534c7eab5934;p=brisk.git diff --git a/web/index.php b/web/index.php index 5a4157d..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 .= '
Utente e/o password errati.
'; else if ($idx == -2) @@ -159,10 +174,12 @@ function main() $standup .= '
'; $standup .= '
'; - $standup .= '
Giocatori in piedi - Come ottenere user e password -
'; + /* 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 .= '
'; } @@ -195,7 +212,7 @@ function main() $brisk_donate = ""; - + /* MLANG: "briscola chiamata in salsa ajax", */ $brisk_header_form = '
@@ -247,6 +264,7 @@ google_color_url = "000000";
'; +/* MLANG: ALL THE VERTICAL MENU */ $brisk_vertical_menu = '
@@ -320,12 +338,13 @@ $brisk_vertical_menu = '
-


+

sponsored by:

'.$altout_carousel.'


supported by:


-

+
+


%s @@ -394,7 +413,10 @@ supported by:

?> - +



@@ -494,7 +516,8 @@ else { $("txt_in").focus();
Il nickname che stai usando è già registrato,

se il suo proprietario si autentificherà

verrai rinominato d'ufficio come ghostN.


", 0, "torna ai tavoli", 400, 150); + /* MLANG: "
Il nickname che stai usando è già registrato,

se il suo proprietario si autentificherà

verrai rinominato d'ufficio come ghostN.", "torna ai tavoli" */ + echo show_notify("
Il nickname che stai usando è già registrato,

se il suo proprietario si autentificherà

verrai rinominato d'ufficio come ghostN.", 0, "torna ai tavoli", 400, 150); } ?>
+
@@ -534,6 +558,40 @@ if ($login_exists) {
+ + + +
+
+ Garantisci per un tuo conoscente: +

+ + + +
+ + + + + + + + +
+