X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Findex.php;h=2b04597f118be250ac76fa6536a20c88d66711d8;hb=4fc44e9a6f4f15b3d86cfb378d7a8d73cffe0844;hp=247356a32d0654007070792838e2db3dd8603e27;hpb=974f7d954f125d222a5a03f45ca8c427a84d9e9a;p=brisk.git diff --git a/web/index.php b/web/index.php index 247356a..2b04597 100644 --- a/web/index.php +++ b/web/index.php @@ -43,11 +43,40 @@ if (DEBUGGING == "local" && $_SERVER['REMOTE_ADDR'] != '127.0.0.1') { log_load("index.php"); + +function poll_dom() { + GLOBAL $G_with_poll, $G_poll_title, $G_poll_entries; + + if ($G_with_poll) { + $ret = sprintf('
+ + + + '); + return ($ret); + } + else + return ''; +} + function main() { GLOBAL $G_with_topbanner, $G_topbanner, $G_is_local; + GLOBAL $G_with_sidebanner, $G_sidebanner; + GLOBAL $G_with_sidebanner2, $G_sidebanner2; + GLOBAL $G_with_poll; 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 = ""; @@ -103,10 +132,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", ''); @@ -160,8 +187,13 @@ function main() if ($ACTION == "room") { $tables .= '';
$tables .= ' Tavolo '.$i.' ';
@@ -169,7 +201,7 @@ function main()
$tables .= sprintf('', $i);
$tables .= ' | '."\n";
- if ($i % 4 == 3)
+ if ($ii % 4 == 3)
$tables .= '
\n"); printf($brisk_vertical_menu, '', ''); - printf(" | ");
+
+ if ($G_with_sidebanner xor $G_with_sidebanner2) {
+ printf(" "); + } + + if ($G_with_sidebanner) { + printf("%s", $G_sidebanner); + if ($G_with_sidebanner2) { + printf(" "); + } + } + + + if ($G_with_sidebanner2) { + printf("%s", $G_sidebanner2); + } + printf(" | ");
?>
@@ -492,9 +670,13 @@ Digita il tuo nickname per accedere ai tavoli della briscola. var g_imgtot = g_preload_img_arr.length; var myfrom = "index_php"; var g_brow = null; + var spo_slide, sup_slide; window.onload = function() { g_brow = get_browser_agent(); + spo_slide = new sideslide($('spon_caro'), 80, 20); + sup_slide = new sideslide($('supp_caro'), 60, 20); + @@ -509,6 +691,13 @@ else { if ($G_with_topbanner) { printf(" topbanner_init();\n"); } + if ($G_with_sidebanner) { + printf(" sidebanner_init();\n"); + } + if ($G_with_sidebanner2) { + printf(" sidebanner2_init();\n"); + } + ?> xhr_rd = createXMLHttpRequest(); // xhr_rd.setRequestHeader("Content-type", "text/html; charset=utf-8"); @@ -528,7 +717,7 @@ else { setTimeout(preload_images, 0, g_preload_img_arr, g_imgct); $("txt_in").focus(); 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); } @@ -545,8 +734,30 @@ if ($login_exists) { |
\n");
- printf($brisk_vertical_menu, ' ', + /* printf($brisk_vertical_menu, ' ', + $brisk_donate); + printf($brisk_vertical_menu, ' ', + $brisk_donate);*/ + printf($brisk_vertical_menu, ' ', $brisk_donate); + + + if ($G_with_sidebanner xor $G_with_sidebanner2) { + printf(" "); + } + + if ($G_with_sidebanner) { + printf("%s", $G_sidebanner); + if ($G_with_sidebanner2) { + printf(" "); + } + } + + + if ($G_with_sidebanner2) { + printf("%s", $G_sidebanner2); + } + printf(" | ");
?>
@@ -560,7 +771,7 @@ if ($login_exists) {
-Chat
-
-
+Chat
@@ -573,27 +784,12 @@ if ($login_exists) {
Garantisci per un tuo conoscente: - - - +
+
+ Invia un messaggio o una segnalazione all'amministratore: + + |