X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;ds=inline;f=web%2Findex.php;h=3b14fa67f4c288f45aeeb944e1f8dc39478e1f74;hb=0b7233416fd5e2ef879170f5a49ff936ff27deef;hp=ece7b3c877d1962bbbdfcbb6518988113a96e948;hpb=e18c2d271172bc19f1c999cc9498989c3eb87800;p=brisk.git diff --git a/web/index.php b/web/index.php index ece7b3c..3b14fa6 100644 --- a/web/index.php +++ b/web/index.php @@ -43,10 +43,36 @@ 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('
+ + + -' : '').' +'.($G_with_poll ? '' : ' +').' + +'.($user->flags & USER_FLAG_AUTH ? ' +'.poll_dom() + : ' + +').' + +' : '').' -\n");
printf($brisk_vertical_menu, '', '');
- if ($G_with_sidebanner) {
- printf(" %s", $G_sidebanner); - } - 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(" | ");
?>
@@ -614,6 +669,7 @@ 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(); @@ -637,6 +693,9 @@ else { if ($G_with_sidebanner) { printf(" sidebanner_init();\n"); } + if ($G_with_sidebanner2) { + printf(" sidebanner2_init();\n"); + } ?> xhr_rd = createXMLHttpRequest(); @@ -675,13 +734,29 @@ if ($is_login) { printf($brisk_header_form); printf("
|