add 'rules_change' functionality
[brisk.git] / web / briskin5 / index.php
index ac0fb12..deeeba5 100644 (file)
@@ -27,7 +27,6 @@
 $G_base = "../";
 
 require_once("../Obj/brisk.phh");
-require_once("../Obj/proxyscan.phh");
 require_once("Obj/briskin5.phh");
 
 $mlang_bin5_index = array( 'aucwin' => array( 'it' => 'Hai vinto l\'asta.<br> Scegli il seme:',
@@ -57,11 +56,6 @@ function bin5_index_main($transp_type, &$header_out, $addr, $get, $post, $cookie
     if (($sess = gpcs_var('sess', $get, $post, $cookie)) === FALSE)
         unset ($sess);
 
-    // Use of proxies isn't allowed.
-    // if (is_proxy()) {
-    // return (FALSE);
-    // }
-    
 // header('Content-type: text/html; charset="utf-8"',true);
     ?>
 <html>
@@ -123,6 +117,8 @@ window.onload = function() {
   window.onunload = onunload_cb;  
 
   xstm.start();
+
+  addEvent($('select_rules'), "change", function() { act_select_rules(this.value); } );
   // FIXME: add this setTimeout(preload_images into data stream to avoid
   // race on opened socket
   // setTimeout(preload_images, 0, g_preload_img_arr, g_imgct);
@@ -307,6 +303,9 @@ window.onload = function() {
 <div style="width: 95%; /* background-color: red; */ margin: auto; text-align: left;">
 <br><br>
 <input type="checkbox" name="pref_ring_endauct" id="pref_ring_endauct" onclick="pref_ring_endauct_set(this);"><?php echo $mlang_bin5_index['itm_ringauc'][$G_lang] ?>
+    <div>
+        <label>Regole:</label><?php dom_select_rules();?>
+    </div>
 </div>