X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex.php;h=effe155a8121d9f224dc189f3241eb571fa229d5;hb=d6e78ab1c534675fdaf838c17375850f414d4c3e;hp=160bee04201126e78b8fb712b5d7a3fc420f1ab4;hpb=a3885a63b7558381d0bc464a3f1c68311f1b2fea;p=brisk.git diff --git a/web/index.php b/web/index.php index 160bee0..effe155 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; @@ -43,8 +46,10 @@ log_load("index.php"); function main() { GLOBAL $G_with_topbanner, $G_topbanner, $G_is_local; + GLOBAL $G_with_sidebanner, $G_sidebanner; GLOBAL $sess, $name, $pass_private, $table_idx, $table_token, $BRISK_SHOWHTML, $BRISK_DEBUG, $_SERVER; - + GLOBAL $G_lang, $G_lng, $mlang_room; + $is_login = FALSE; $body = ""; $tables = ""; $standup = ""; @@ -100,10 +105,8 @@ function main() $ACTION = "room"; if ($idx < 0) { $idx = -$idx - 1; - $login_exists = TRUE; + $is_login = TRUE; } - else - $login_exists = FALSE; log_legal($curtime, $user, "STAT:LOGIN", ''); @@ -133,8 +136,8 @@ 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 .= '
';
$tables .= ' Tavolo '.$i.' ';
@@ -166,7 +174,7 @@ function main()
$tables .= sprintf('', $i);
$tables .= ' | '."\n";
- if ($i % 4 == 3)
+ if ($ii % 4 == 3)
$tables .= '