From: Matteo Nastasi (mop) Date: Mon, 30 Jun 2008 21:09:02 +0000 (+0000) Subject: 2 ways async responses, multi-level menu, topbanner in .conf and align attributes... X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=42501df27730bfedf2a17f72e6a5fec6cc331e49;p=brisk.git 2 ways async responses, multi-level menu, topbanner in .conf and align attributes removed from table tag --- diff --git a/web/index.php b/web/index.php index 9178531..4f4a4f8 100644 --- a/web/index.php +++ b/web/index.php @@ -41,7 +41,8 @@ log_load("index.php"); function main() { - GLOBAL $G_is_local, $sess, $name, $table_idx, $table_token, $BRISK_SHOWHTML, $BRISK_DEBUG, $_SERVER; + GLOBAL $G_with_topbanner, $G_topbanner, $G_is_local; + GLOBAL $sess, $name, $table_idx, $table_token, $BRISK_SHOWHTML, $BRISK_DEBUG, $_SERVER; $body = ""; $tables = ""; @@ -92,6 +93,9 @@ function main() if (($user = &$room->add_user(&$sess, &$idx, $name, $_SERVER['REMOTE_ADDR'])) != FALSE) { $ACTION = "room"; + log_legal($curtime, $user->sess, $user->name, "STAT:LOGIN", ''); + + // setcookie ("sess", "", time() + 180); $room->standup_update(&$user); @@ -123,7 +127,7 @@ function main() if ($ACTION == "room") { $tables .= '
'; - $tables .= ''; + $tables .= '
'; for ($i = 0 ; $i < TABLES_N ; $i++) { if ($i % 4 == 0) $tables .= ''; @@ -139,7 +143,7 @@ function main() $tables .= '
'; - $standup .= '
'; + $standup .= ' -
'; $standup .= '
'; $standup .= '
Giocatori in piedi
'; @@ -176,7 +180,8 @@ function main() if ($brisk_donate == FALSE) $brisk_donate = ""; - $with_topbanner = TRUE; + + $brisk_header_form = '
@@ -201,21 +206,10 @@ google_color_url = "000000"; src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> ' ).'
'.($with_topbanner ? ' + '.($G_with_topbanner ? sprintf('
' : '').'
+
'.($G_with_topbanner ? ' - - - -
' : '').'
briscola chiamata in salsa ajax
-
'.($with_topbanner ? '
- -
' : '').'
%s
', $G_topbanner) : '').'
'.($G_is_local ? '' : ' + @@ -295,7 +344,13 @@ supported by: