ShuanghongS 1 年之前
父節點
當前提交
4c53f252a4
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      utils/common.class.php

+ 4 - 0
utils/common.class.php

@@ -121,6 +121,10 @@ class common {
             $httpAccept = $_SERVER['HTTP_ACCEPT']; // ajax request,is json or html
             $ajax = isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER
                             ['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest'; // is ajax request?
+            //暂时这么写,放开action = main的查询               
+            if((stripos($action, "main") === 0)){
+                return;
+            }
             if (!isset($_SESSION['ONLINE_USER'])) {
                 self::timeoutPrintInfor($httpAccept, $ajax, 'no');
             } else {