X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex.php;h=247356a32d0654007070792838e2db3dd8603e27;hb=9fe7c6c2413b91e1b738603d4fbc039e59d895db;hp=75f486902c21e35a33a500322b5559ade4804cfe;hpb=60affa468ba1468eb8aa5ccd0f37724d6155adc8;p=brisk.git diff --git a/web/index.php b/web/index.php index 75f4869..247356a 100644 --- a/web/index.php +++ b/web/index.php @@ -2,7 +2,7 @@ /* * brisk - index.php * - * Copyright (C) 2006-2008 Matteo Nastasi + * Copyright (C) 2006-2009 Matteo Nastasi * mailto: nastasi@alternativeoutput.it * matteo.nastasi@milug.org * web: http://www.alternativeoutput.it @@ -28,6 +28,9 @@ require_once("Obj/brisk.phh"); require_once("Obj/auth.phh"); require_once("Obj/proxyscan.phh"); +$mlang_room = array( 'userpasserr' => array('it' => 'Utente e/o password errati.', + 'en' => 'Wrong user and/or password.') ); + // Use of proxies isn't allowed. if (!$G_is_local && is_proxy()) exit; @@ -44,7 +47,7 @@ function main() { GLOBAL $G_with_topbanner, $G_topbanner, $G_is_local; GLOBAL $sess, $name, $pass_private, $table_idx, $table_token, $BRISK_SHOWHTML, $BRISK_DEBUG, $_SERVER; - + GLOBAL $G_lang, $G_lng, $mlang_room; $body = ""; $tables = ""; $standup = ""; @@ -105,7 +108,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,8 +135,9 @@ function main() } else { /* Login Rendering */ - if ($idx == -3) - $body .= '
Utente e/o password errati.
'; + /* 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 .= '
'.$mlang_room['userpasserr'][$G_lang].'
'; else if ($idx == -2) $body .= '
Il nickname deve contenere almeno una lettera o una cifra.
'; else if ($idx == -1) @@ -159,10 +177,12 @@ function main() $standup .= '
'; $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 .= '
'; } @@ -195,7 +215,7 @@ function main() $brisk_donate = ""; - + /* MLANG: "briscola chiamata in salsa ajax", */ $brisk_header_form = '
@@ -247,6 +267,7 @@ google_color_url = "000000";
'; +/* MLANG: ALL THE VERTICAL MENU */ $brisk_vertical_menu = '
@@ -320,12 +341,13 @@ $brisk_vertical_menu = '
-


+

sponsored by:

'.$altout_carousel.'


supported by:


-

+
+


%s @@ -353,20 +375,23 @@ supported by:

+ + +
?> - +



@@ -409,6 +438,7 @@ 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)




@@ -443,10 +473,13 @@ Digita il tuo nickname per accedere ai tavoli della briscola.

+ + +
+
@@ -533,6 +572,40 @@ if ($login_exists) {
+ + + +
+
+ Garantisci per un tuo conoscente: +

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