mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-25 02:28:42 +00:00
This commit is contained in:
parent
e77fe16199
commit
919c1aa21f
@ -90,11 +90,11 @@ class HTML {
|
|||||||
$param = array_merge($param, $config['params']);
|
$param = array_merge($param, $config['params']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$url = UOJConfig::$data['web'][$config['location']]['protocol'].'://'.UOJConfig::$data['web'][$config['location']]['host'];
|
// $url = UOJConfig::$data['web'][$config['location']]['protocol'].'://'.UOJConfig::$data['web'][$config['location']]['host'];
|
||||||
if ((UOJConfig::$data['web'][$config['location']]['protocol'] === "http" && UOJConfig::$data['web'][$config['location']]['port'] == 80) || (UOJConfig::$data['web'][$config['location']]['protocol'] === "https" && UOJConfig::$data['web'][$config['location']]['port'] == 443)) {
|
// if ((UOJConfig::$data['web'][$config['location']]['protocol'] === "http" && UOJConfig::$data['web'][$config['location']]['port'] == 80) || (UOJConfig::$data['web'][$config['location']]['protocol'] === "https" && UOJConfig::$data['web'][$config['location']]['port'] == 443)) {
|
||||||
} else {
|
// } else {
|
||||||
$url .= ':'.UOJConfig::$data['web'][$config['location']]['port'];
|
// $url .= ':'.UOJConfig::$data['web'][$config['location']]['port'];
|
||||||
}
|
// }
|
||||||
if ($param) {
|
if ($param) {
|
||||||
$url .= $path.'?'.HTML::query_string_encode($param);
|
$url .= $path.'?'.HTML::query_string_encode($param);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user