X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Findex.php;h=160bee04201126e78b8fb712b5d7a3fc420f1ab4;hb=a3885a63b7558381d0bc464a3f1c68311f1b2fea;hp=4657e048c95298a2d05910204e6f38c46dacbb77;hpb=c5633cf4c38ac8553de7f6b6d7996ffa30a6adf3;p=brisk.git
diff --git a/web/index.php b/web/index.php
index 4657e04..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 .= '';
+ /* MLANG: "Giocatori in piedi", "Come ottenere user e password" */
+ // $standup .= ' ';
$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 = '
-
+
sponsored by:
'.$altout_carousel.'
supported by:
-
+
+
%s
@@ -342,6 +361,7 @@ supported by:
Brisk
+
@@ -367,6 +387,11 @@ supported by:
// alert(window.onbeforeunload);
login_init();
+
g_withflash = DetectFlashVer(6,0,0);
if (g_withflash == false) {
@@ -388,12 +413,15 @@ supported by:
?>
-
+
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)
@@ -461,10 +490,15 @@ if ($BRISK_SHOWHTML == "debugtable") {
}
else {
?>
- // alert("INDEX START");
+ // alert("INDEX START");
menu_init();
- topbanner_init();
+
xhr_rd = createXMLHttpRequest();
+ // xhr_rd.setRequestHeader("Content-type", "text/html; charset=utf-8");
sess = "";
tra = new train($('room_tit'));
window.onunload = onunload_cb;
@@ -482,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);
}
?>
+
|
|
@@ -522,6 +558,40 @@ if ($login_exists) {
|
+
+
+
+
+
+
Garantisci per un tuo conoscente:
+
+
+
+
+
+