points calculation bug fixed
[brisk.git] / web / briskin5 / Obj / briskin5.phh
index 8c51f0b..daf02b3 100644 (file)
@@ -277,17 +277,17 @@ class Bin5_table extends Table {
     function asta2mult($asta_pnt)
     {
         if ($asta_pnt > 110)
-            return (5);
+            return (6);
         else if ($asta_pnt > 100)
-            return (4);
+            return (5);
         else if ($asta_pnt > 90)
-            return (3);
+            return (4);
         else if ($asta_pnt > 80)
-            return (2);
+            return (3);
         else if ($asta_pnt > 70)
-            return (1);
+            return (2);
         else
-            return (0);
+            return (1);
     }
 
     function multer($is_new)
@@ -1171,8 +1171,13 @@ class Bin5 {
         printf("NEW_SOCKET (root): %d\n", intval($new_socket));
         
         $enc = get_encoding($header);
-        if (isset($header['User-Agent']) && strstr($header['User-Agent'], "MSIE")) {
-            $transp_type = "htmlfile";
+        if (isset($header['User-Agent'])) {
+            if (strstr($header['User-Agent'], "MSIE")) {
+                $transp_type = "htmlfile";
+            }
+            else {
+                $transp_type = "xhr";
+            }
         }
         else {
             $transp_type = "iframe";