X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex.php;h=2b04597f118be250ac76fa6536a20c88d66711d8;hb=4fc44e9a6f4f15b3d86cfb378d7a8d73cffe0844;hp=effe155a8121d9f224dc189f3241eb571fa229d5;hpb=f62bcf4727b440b940afee728b58be12a8d2620e;p=brisk.git diff --git a/web/index.php b/web/index.php index effe155..2b04597 100644 --- a/web/index.php +++ b/web/index.php @@ -43,10 +43,37 @@ 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; @@ -191,29 +218,64 @@ function main() $standup .= ''; } - $altout_propag = array( array ( 'id' => 'btn_altout', + $altout_sponsor_arr = array( array ( 'id' => 'btn_altout', 'url' => 'http://www.alternativeoutput.it', 'content' => 'img/altout80x15.png', - 'content_big' => 'img/altout80x15.png'), + 'content_big' => 'img/logotxt_banner.png'), array ( 'id' => 'btn_virtualsky', 'url' => 'http://virtualsky.alternativeoutput.it', 'content' => 'img/virtualsky80x15a.gif', - 'content_big' => 'img/virtualsky_big.png') + 'content_big' => 'img/virtualsky_big.png'), + array ( 'id' => 'btn_dynamica', + 'url' => 'http://www.dynamica.it', + 'content' => 'img/dynamica.png', + 'content_big' => 'img/dynamica_big.png') ); - + + $altout_support_arr = array( array ( 'id' => 'btn_brichi', + 'url' => 'http://www.briscolachiamata.it', + 'content' => 'img/brichi.png', + 'content_big' => 'img/brichi_big.png'), + array ( 'id' => 'btn_foroli', + 'url' => 'http://www.forumolimpia.it', + 'content' => 'img/forumolimpia.gif', + 'content_big' => 'img/forumolimpia_big.png' ) ); + + + + $altout_support = ""; + $altout_support_big = ""; + for ($i = 0 ; $i < 3 ; $i++) { + $ii = ($i < 2 ? $i : 0); + + $altout_support .= sprintf('\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 +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); + @@ -587,6 +694,9 @@ else { if ($G_with_sidebanner) { printf(" sidebanner_init();\n"); } + if ($G_with_sidebanner2) { + printf(" sidebanner2_init();\n"); + } ?> xhr_rd = createXMLHttpRequest(); @@ -625,13 +735,29 @@ if ($is_login) { printf($brisk_header_form); printf("
|