fix https login

This commit is contained in:
2016-03-19 13:09:26 +01:00
parent 76265e78e1
commit ddd2968d23
2 changed files with 5 additions and 3 deletions

3
inc/toolbox.php Normal file → Executable file
View File

@@ -40,8 +40,9 @@ class ToolBox
$_REQUEST = array_merge($_GET, $_REQUEST);
//Add Server Name
//FIXME http/https value
$sServerName = array_key_exists('SERVER_NAME', $_SERVER)?$_SERVER['SERVER_NAME']:$_SERVER['PWD'];
$sAppPath = 'http://'.str_replace('http://', '', $sServerName.dirname($_SERVER['SCRIPT_NAME']));
$sAppPath = 'http://'.str_replace(array('http://', 'https://'), '', $sServerName.dirname($_SERVER['SCRIPT_NAME']));
$_GET['serv_name'] = $sAppPath.(mb_substr($sAppPath, -1)!='/'?'/':'');
}