From a3885a63b7558381d0bc464a3f1c68311f1b2fea Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Sun, 1 Feb 2009 15:40:10 +0000 Subject: [PATCH] recovery of lost game added, facebook button added, reload button added --- web/index.php | 38 +++++++++++++++++++++++++++++++------- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/web/index.php b/web/index.php index 4c563ab..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,6 +516,7 @@ else { $("txt_in").focus(); 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); } ?> @@ -527,6 +550,7 @@ if ($login_exists) {
+
-- 2.17.1