stanley-king 4 лет назад
Родитель
Сommit
40b2abe323
2 измененных файлов с 17 добавлено и 2 удалено
  1. 2 2
      data/config/dev/base.ini.php
  2. 15 0
      helper/fcgisrv/LZRAccServer.php

+ 2 - 2
data/config/dev/base.ini.php

@@ -45,8 +45,8 @@ $config['gip'] 		= 0;
 $config['dbdriver'] = 'mysqli';
 $config['tablepre']	= 'lrlz_';
 
-//define('SSH_TUNEL_PROD','local');
-define('SSH_TUNEL_PROD','xyz');
+define('SSH_TUNEL_PROD','local');
+//define('SSH_TUNEL_PROD','xyz');
 //define('SSH_TUNEL_PROD','lingzh');
 
 if(SSH_TUNEL_PROD ==='local') {

+ 15 - 0
helper/fcgisrv/LZRAccServer.php

@@ -36,6 +36,20 @@ class LZRAccServer extends BaseServer
         $this->setExFiles($exfiles);
     }
 
+    protected function is_exclude($file)
+    {
+        $ret = parent::is_exclude($file);
+        if ($ret) {
+            return true;
+        } else {
+            $path = BASE_ROOT_PATH . "/" . $this->mSubPath . "/callback/lingzh";
+            $basename = basename($file);
+            $tmp = "{$path}/{$basename}";
+
+            return file_exists($tmp);
+        }
+    }
+
     static private $stInstance = NULL;
     static public function instance()
     {
@@ -47,6 +61,7 @@ class LZRAccServer extends BaseServer
     }
 
 
+
     function handle_req($file)
     {
         try