From 6df4b000912822ef249d2d272024b3792d2141a6 Mon Sep 17 00:00:00 2001 From: wanyongkang <937888580@qq.com> Date: Fri, 27 Nov 2020 11:23:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E7=A1=80=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fastphp/Fastphp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastphp/Fastphp.php b/fastphp/Fastphp.php index d700dd4..c97f700 100644 --- a/fastphp/Fastphp.php +++ b/fastphp/Fastphp.php @@ -143,7 +143,7 @@ class Fastphp if(isset($_SERVER['LOGNAME'])){ $name = $_SERVER['LOGNAME']; } - if ((!in_array($origin, $formal_origin) && !$is_script) || $_SERVER['LOGNAME'] == $name) { + if ((!in_array($origin, $formal_origin) && !$is_script) || $name == 'wyk') { define('DB_HOST', $this->config['db']['host']); define('DB_PORT', $this->config['db']['port']); define('DB_NAME', $this->config['db']['dbname']);