X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;ds=inline;f=web%2Findex.php;h=5160fb6cf80e1dd8c13d7ef202473f20da488aac;hb=fadc23d05cb75837058e8ab846b946f8c6eb4143;hp=b5d96ed4160c3b95232ba3aa149ea6a7b99e4c7a;hpb=3bdf570693a9c6be8e3bff5d62b21dae18817f27;p=brisk.git diff --git a/web/index.php b/web/index.php index b5d96ed..5160fb6 100644 --- a/web/index.php +++ b/web/index.php @@ -2,7 +2,10 @@ /* * brisk - index.php * - * Copyright (C) 2006 matteo.nastasi@milug.org + * Copyright (C) 2006-2009 Matteo Nastasi + * mailto: nastasi@alternativeoutput.it + * matteo.nastasi@milug.org + * web: http://www.alternativeoutput.it * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -21,152 +24,604 @@ * */ -require_once("brisk.phh"); +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; + +require_once("briskin5/Obj/briskin5.phh"); if (DEBUGGING == "local" && $_SERVER['REMOTE_ADDR'] != '127.0.0.1') { echo "Debugging time!"; exit; } -log_load($sess, "LOAD: index.php"); +log_load("index.php"); + + +function pool_dom() { + GLOBAL $G_with_pool; + + $G_with_pool = TRUE; + // $G_with_pool = FALSE; + + if ($G_with_pool) { + return sprintf('
+ + + + + +// +//soggetto: | +//
+// | |
+// +// |
Tavolo '.$i.' ';
+ $tables .= ''; + $tables .= ' ';
+ $tables .= ' | '."\n";
- if ($i % 4 == 3)
+ $tables .= 'Tavolo '.$i.' ';
$tables .= sprintf('', $i);
$tables .= sprintf('', $i);
- $tables .= ' | '."\n";
+ if ($ii % 4 == 3)
$tables .= '||
';
- $tables .= ' ';
- $tables .= 'Giocatori in piedi '; + $tables .= ' |
';
+ $standup .= ' ';
+ /* MLANG: "Giocatori in piedi", "Come ottenere user e password" */
+ // $standup .= ' Giocatori in piedi - Come ottenere user e password - ';
+ $standup .= 'Giocatori in piedi ';
- $tables .= sprintf('');
- $tables .= '';
- $tables .= ' |
'.($G_is_local ? '' :
+'
+'
+).' |
+'.($G_with_topbanner ? '
|
+
+'.($G_is_local ? '' :
+'
+'
+).' |
+
- + |
+ + |
+ + | + + |