Update authentication.php
This commit is contained in:
parent
d8c79639ba
commit
012a601527
|
|
@ -106,10 +106,9 @@ class authentication {
|
|||
*/
|
||||
function get_domain() {
|
||||
|
||||
//get the domain name
|
||||
if (!($this->domain_name)) {
|
||||
//get the domain from the url
|
||||
$this->domain_name = $_SERVER["HTTP_HOST"];
|
||||
|
||||
//get the domain name from the username
|
||||
if ($_SESSION["user"]["unique"]["text"] != "global") {
|
||||
$username_array = explode("@", check_str($_REQUEST["username"]));
|
||||
|
|
@ -135,12 +134,16 @@ class authentication {
|
|||
unset($domain_name);
|
||||
}
|
||||
}
|
||||
|
||||
//get the domain name from the http value
|
||||
if (strlen(check_str($_REQUEST["domain_name"])) > 0) {
|
||||
$this->domain_name = check_str($_REQUEST["domain_name"]);
|
||||
}
|
||||
//set the domain name
|
||||
$_SESSION['domain_name'] = $this->domain_name;
|
||||
|
||||
//remote port number from the domain name
|
||||
$domain_array = explode(":", $this->domain_name);
|
||||
if (count($domain_array) > 1) {
|
||||
$this->domain_name = $domain_array[0];
|
||||
}
|
||||
|
||||
//get the domain uuid and domain settings
|
||||
|
|
@ -159,8 +162,12 @@ class authentication {
|
|||
$obj->db = $db;
|
||||
$obj->set();
|
||||
|
||||
//set the domain parent uuid
|
||||
//set the domain settings
|
||||
$_SESSION['domain_name'] = $this->domain_name;
|
||||
$_SESSION['domain_parent_uuid'] = $_SESSION["domain_uuid"];
|
||||
|
||||
//set the domain name
|
||||
return $this->domain_name;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue