X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex.php;h=3b14fa67f4c288f45aeeb944e1f8dc39478e1f74;hb=0b7233416fd5e2ef879170f5a49ff936ff27deef;hp=effe155a8121d9f224dc189f3241eb571fa229d5;hpb=f62bcf4727b440b940afee728b58be12a8d2620e;p=brisk.git diff --git a/web/index.php b/web/index.php index effe155..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() + : ' + +').' + +' : '').' +
+sponsored by:
+
+
+
'.$altout_sponsor.'
+
+
+'.$altout_sponsor_big.' +
+
+supported by:
+
+
+
'.$altout_support.'
+ +
+
+
+'.$altout_support_big.' +
+
-sponsored by:

'.$altout_carousel.'
-

-supported by:

-
-
-


%s %s - - - -'.$altout_carousel_big.''; +
'; /* Templates. */ if ($ACTION == 'login') { @@ -457,10 +539,14 @@ supported by:

var topbanner_sfx, topbanner_dx; var g_brow = null; var sess = "not_connected"; - + var spo_slide, sup_slide; + window.onload = function() { // alert(window.onbeforeunload); g_brow = get_browser_agent(); + spo_slide = new sideslide($('spon_caro'), 80, 20); + sup_slide = new sideslide($('supp_caro'), 60, 20); + login_init();
if ($G_with_sidebanner) { printf(" sidebanner_init();\n"); } + if ($G_with_sidebanner2) { + printf(" sidebanner2_init();\n"); + } ?> g_withflash = DetectFlashVer(6,0,0); @@ -488,10 +577,23 @@ supported by:

printf($brisk_header_form); printf("
\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("
"); ?> @@ -567,9 +669,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); + @@ -587,6 +693,9 @@ else { if ($G_with_sidebanner) { printf(" sidebanner_init();\n"); } + if ($G_with_sidebanner2) { + printf(" sidebanner2_init();\n"); + } ?> xhr_rd = createXMLHttpRequest(); @@ -625,13 +734,29 @@ if ($is_login) { printf($brisk_header_form); printf("
\n"); /* printf($brisk_vertical_menu, '



', - $brisk_donate);*/ + $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); + printf("%s", $G_sidebanner); + if ($G_with_sidebanner2) { + printf("
"); + } + } + + + if ($G_with_sidebanner2) { + printf("%s", $G_sidebanner2); } + printf("
"); ?> @@ -681,8 +806,6 @@ if ($is_login) { Invia un messaggio o una segnalazione all'amministratore:

- -