Update index.php
parent
e5e2fd3f52
commit
265212105f
22
index.php
22
index.php
|
@ -232,6 +232,15 @@ namespace:' . $namespace . '<br>
|
||||||
$tmp[$k] = $v;
|
$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);
|
$response = setConfig($tmp);
|
||||||
if (!$response) {
|
if (!$response) {
|
||||||
$html = $response . '<br>
|
$html = $response . '<br>
|
||||||
|
@ -290,6 +299,18 @@ namespace:' . $namespace . '<br>
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
</tr>';
|
</tr>';
|
||||||
|
} 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 .= '
|
||||||
|
<tr>
|
||||||
|
<td><label>' . $key . '</label></td>
|
||||||
|
<td width=100%><input type="text" name="' . $key .'" value="' . $domain_path . '" placeholder="' . $constStr['EnvironmentsDescription'][$key][$constStr['language']] . '" style="width:100%"></td>
|
||||||
|
</tr>';
|
||||||
} else $html .= '
|
} else $html .= '
|
||||||
<tr>
|
<tr>
|
||||||
<td><label>' . $key . '</label></td>
|
<td><label>' . $key . '</label></td>
|
||||||
|
@ -483,7 +504,6 @@ function MSAPI($method, $path, $data = '', $access_token)
|
||||||
return $response;
|
return $response;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function fetch_files($path = '/')
|
function fetch_files($path = '/')
|
||||||
{
|
{
|
||||||
$path1 = path_format($path);
|
$path1 = path_format($path);
|
||||||
|
|
Loading…
Reference in New Issue