X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex.php;h=a9d0b1772796045be6a035dd346a54645138e648;hb=a3a94bbfaa5b0484a6d32bb04bde148f5f95347b;hp=212729f03d852f473b6564a84a06da31b6a2558c;hpb=4e234d1d8cb95fe1c8227dbb59db45de26cca946;p=brisk.git
diff --git a/web/index.php b/web/index.php
index 212729f..a9d0b17 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 ? '' : '').'
briscola chiamata in salsa ajax
- '.($with_topbanner ? ' |
-
-
-
- |
-
- ' : '').' |
+ '.($G_with_topbanner ? sprintf(' | %s | ', $G_topbanner) : '').' |
'.($G_is_local ? '' :
'
+
@@ -292,7 +342,14 @@ supported by:
+
@@ -364,6 +424,7 @@ Digita il tuo nickname per accedere ai tavoli della briscola.
var subst = "";
var gst = new globst();
var g_is_spawn = 0;
+ var topbanner_sfx, topbanner_dx;
var g_withflash = false;
var g_imgct= 0;
@@ -379,6 +440,7 @@ if ($BRISK_SHOWHTML == "debugtable") {
else {
?>
// alert("INDEX START");
+ menu_init();
xhr_rd = createXMLHttpRequest();
sess = "";
tra = new train($('room_tit'));
@@ -418,16 +480,18 @@ else {
|
- |