mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-22 02:47:27 +08:00
Added: guest login and secret login
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user