Update common.php
parent
123a24a096
commit
c3785d8d8a
|
@ -72,11 +72,13 @@ function getListpath($domain)
|
||||||
$tmp = explode("|",$domain_path1);
|
$tmp = explode("|",$domain_path1);
|
||||||
foreach ($tmp as $multidomain_paths){
|
foreach ($tmp as $multidomain_paths){
|
||||||
$pos = strpos($multidomain_paths,":");
|
$pos = strpos($multidomain_paths,":");
|
||||||
$domain1 = substr($multidomain_paths,0,$pos);
|
if ($pos>0) {
|
||||||
$tmp_path = path_format(substr($multidomain_paths,$pos+1));
|
$domain1 = substr($multidomain_paths,0,$pos);
|
||||||
$domain_path[$domain1] = $tmp_path;
|
$tmp_path = path_format(substr($multidomain_paths,$pos+1));
|
||||||
if ($public_path=='') $public_path = $tmp_path;
|
$domain_path[$domain1] = $tmp_path;
|
||||||
|
if ($public_path=='') $public_path = $tmp_path;
|
||||||
//if (substr($multidomain_paths,0,$pos)==$host_name) $private_path=$tmp_path;
|
//if (substr($multidomain_paths,0,$pos)==$host_name) $private_path=$tmp_path;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (isset($domain_path[$domain])) return spurlencode($domain_path[$domain],'/');
|
if (isset($domain_path[$domain])) return spurlencode($domain_path[$domain],'/');
|
||||||
|
|
Loading…
Reference in New Issue