log_auth parameters fix
[brisk.git] / web / index.php
index 4657e04..75f4869 100644 (file)
@@ -342,6 +342,7 @@ supported by:<br><br>
 <html>
 <head>
 <title>Brisk</title>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 <link rel="shortcut icon" href="img/brisk_ico.png">
 <script type="text/javascript" src="dnd.js"></script>
 <script type="text/javascript" src="menu.js"></script>
@@ -367,6 +368,11 @@ supported by:<br><br>
      // alert(window.onbeforeunload);
 
      login_init();
+<?php
+     if ($G_with_topbanner) {
+       printf("     topbanner_init();\n");
+    }
+?>
 
      g_withflash = DetectFlashVer(6,0,0);
      if (g_withflash == false) {
@@ -393,7 +399,7 @@ supported by:<br><br>
 <div style="text-align: center;">
    <br><br><br>
 Digita il tuo nickname per accedere ai tavoli della briscola.<br><br>
-<form method="post" action="" onsubmit="return j_login_manager(this);">
+<form accept-charset="utf-8" method="post" action="" onsubmit="return j_login_manager(this);">
 <input id="passid_private" name="pass_private" type="hidden" value="">
 <table class="login">
 <tr><td>user:</td>
@@ -461,10 +467,15 @@ if ($BRISK_SHOWHTML == "debugtable") {
 }
 else {
 ?>
-     // alert("INDEX START");
+    // alert("INDEX START");
      menu_init();
-     topbanner_init();
+<?php
+     if ($G_with_topbanner) {
+       printf("     topbanner_init();\n");
+    }
+?>
      xhr_rd = createXMLHttpRequest();
+     // xhr_rd.setRequestHeader("Content-type", "text/html; charset=utf-8");
      sess = "<?php echo "$sess"; ?>";
      tra = new train($('room_tit'));
      window.onunload = onunload_cb;