优化日志和备份目录。卸载时直接删除日志目录

Signed-off-by: hitsword <admin@hitsword.com>
This commit is contained in:
2020-01-09 21:06:23 +08:00
parent 36c875fde8
commit 1d3e40923b
3 changed files with 27 additions and 15 deletions
+7 -7
View File
@@ -44,13 +44,13 @@ class hyproxys extends AmysqlModel
$proxy_pass = 'http://'.$proxy_pass;
}
$data = array(
'server_name' => $server_name,
'index' => 'index.php index.html index.htm',
'header_host' => '$host',
'proxy_pass' => $proxy_pass,
'proxy_cache' => 1,
'status' => 'start',
'time' => time()
'server_name' => $server_name,
'index' => 'index.php index.html index.htm',
'header_host' => '$host',
'proxy_pass' => $proxy_pass,
'proxy_cache' => 1,
'status' => 'start',
'time' => time()
);
$res = $this -> _insert('module_hyproxy', $data);
if ($res) {