Added: guest login and secret login

This commit is contained in:
xiaomlove
2021-02-03 18:41:53 +08:00
parent ec521729dc
commit b35d95df76
14 changed files with 211 additions and 127 deletions
+2 -2
View File
@@ -388,7 +388,7 @@ function arr_set(&$array, $key, $value)
}
function getSchemaAndHttpHost()
function getSchemeAndHttpHost()
{
$isHttps = !empty($_SERVER['HTTPS']) && (strtolower($_SERVER['HTTPS']) !== 'off');
$protocol = $isHttps ? 'https' : 'http';
@@ -403,7 +403,7 @@ function getSchemaAndHttpHost()
function getBaseUrl()
{
$url = getSchemaAndHttpHost();
$url = getSchemeAndHttpHost();
$requestUri = $_SERVER['REQUEST_URI'];
$pos = strpos($requestUri, '?');
if ($pos !== false) {