mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-24 23:48:41 +00:00
This commit is contained in:
parent
e77fe16199
commit
919c1aa21f
@ -90,11 +90,11 @@ class HTML {
|
||||
$param = array_merge($param, $config['params']);
|
||||
}
|
||||
|
||||
$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)) {
|
||||
} else {
|
||||
$url .= ':'.UOJConfig::$data['web'][$config['location']]['port'];
|
||||
}
|
||||
// $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)) {
|
||||
// } else {
|
||||
// $url .= ':'.UOJConfig::$data['web'][$config['location']]['port'];
|
||||
// }
|
||||
if ($param) {
|
||||
$url .= $path.'?'.HTML::query_string_encode($param);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user