From 265212105f710f5ed07d0ef29582f67e9d8ae9be Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Tue, 7 Jan 2020 18:55:30 +0800 Subject: [PATCH] Update index.php --- index.php | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index fda7c6d..0e0aa7d 100644 --- a/index.php +++ b/index.php @@ -232,6 +232,15 @@ namespace:' . $namespace . '
$tmp[$k] = $v; } } + if ($tmp['domain_path']!='') { + $tmp1 = explode("|",$tmp['domain_path']); + $tmparr = []; + foreach ($tmp1 as $multidomain_paths){ + $pos = strpos($multidomain_paths,":"); + if ($pos>0) $tmparr[substr($multidomain_paths, 0, $pos)] = path_format(substr($multidomain_paths, $pos+1)); + } + $tmp['domain_path'] = $tmparr; + } $response = setConfig($tmp); if (!$response) { $html = $response . '
@@ -290,6 +299,18 @@ namespace:' . $namespace . '
'; + } elseif ($key=='domain_path') { + $tmp = getConfig($key); + $domain_path = ''; + foreach ($tmp as $k1 => $v1) { + $domain_path .= $k1 . ':' . $v1 . '|'; + } + $domain_path = substr($domain_path, 0, -1); + $html .= ' + + + + '; } else $html .= ' @@ -483,7 +504,6 @@ function MSAPI($method, $path, $data = '', $access_token) return $response; } - function fetch_files($path = '/') { $path1 = path_format($path);