mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Fix a bug where logo was overridden
This commit is contained in:
@@ -58,11 +58,6 @@ class plugin_email {
|
|||||||
$settings['theme']['login_logo_height'] = !empty($_SESSION['theme']['login_logo_height']['text']) ? $_SESSION['theme']['login_logo_height']['text'] : 'auto; max-height: 300px';
|
$settings['theme']['login_logo_height'] = !empty($_SESSION['theme']['login_logo_height']['text']) ? $_SESSION['theme']['login_logo_height']['text'] : 'auto; max-height: 300px';
|
||||||
$settings['theme']['message_delay'] = isset($_SESSION['theme']['message_delay']) ? 1000 * (float) $_SESSION['theme']['message_delay'] : 3000;
|
$settings['theme']['message_delay'] = isset($_SESSION['theme']['message_delay']) ? 1000 * (float) $_SESSION['theme']['message_delay'] : 3000;
|
||||||
|
|
||||||
//set a default template
|
|
||||||
$_SESSION['domain']['template']['name'] = 'default';
|
|
||||||
$_SESSION['theme']['menu_brand_image']['text'] = PROJECT_PATH.'/themes/default/images/logo.png';
|
|
||||||
$_SESSION['theme']['menu_brand_type']['text'] = 'image';
|
|
||||||
|
|
||||||
//get the domain
|
//get the domain
|
||||||
$domain_array = explode(":", $_SERVER["HTTP_HOST"]);
|
$domain_array = explode(":", $_SERVER["HTTP_HOST"]);
|
||||||
$domain_name = $domain_array[0];
|
$domain_name = $domain_array[0];
|
||||||
@@ -309,11 +304,6 @@ class plugin_email {
|
|||||||
//echo $email_response."<br />\n";
|
//echo $email_response."<br />\n";
|
||||||
//echo $email_error."<br />\n";
|
//echo $email_error."<br />\n";
|
||||||
|
|
||||||
//set a default template
|
|
||||||
$_SESSION['domain']['template']['name'] = 'default';
|
|
||||||
$_SESSION['theme']['menu_brand_image']['text'] = PROJECT_PATH.'/themes/default/images/logo.png';
|
|
||||||
$_SESSION['theme']['menu_brand_type']['text'] = 'image';
|
|
||||||
|
|
||||||
//get the domain
|
//get the domain
|
||||||
$domain_array = explode(":", $_SERVER["HTTP_HOST"]);
|
$domain_array = explode(":", $_SERVER["HTTP_HOST"]);
|
||||||
$domain_name = $domain_array[0];
|
$domain_name = $domain_array[0];
|
||||||
|
|||||||
@@ -70,11 +70,6 @@ class plugin_totp {
|
|||||||
//request the username
|
//request the username
|
||||||
if (!$this->username && !isset($_POST['authentication_code'])) {
|
if (!$this->username && !isset($_POST['authentication_code'])) {
|
||||||
|
|
||||||
//set a default template
|
|
||||||
$_SESSION['domain']['template']['name'] = 'default';
|
|
||||||
$_SESSION['theme']['menu_brand_image']['text'] = PROJECT_PATH.'/themes/default/images/logo.png';
|
|
||||||
$_SESSION['theme']['menu_brand_type']['text'] = 'image';
|
|
||||||
|
|
||||||
//get the domain
|
//get the domain
|
||||||
$domain_array = explode(":", $_SERVER["HTTP_HOST"]);
|
$domain_array = explode(":", $_SERVER["HTTP_HOST"]);
|
||||||
$domain_name = $domain_array[0];
|
$domain_name = $domain_array[0];
|
||||||
@@ -177,11 +172,6 @@ class plugin_totp {
|
|||||||
$_SESSION["user_email"] = $row['user_email'];
|
$_SESSION["user_email"] = $row['user_email'];
|
||||||
$_SESSION["contact_uuid"] = $row["contact_uuid"];
|
$_SESSION["contact_uuid"] = $row["contact_uuid"];
|
||||||
|
|
||||||
//set a default template
|
|
||||||
$_SESSION['domain']['template']['name'] = 'default';
|
|
||||||
$_SESSION['theme']['menu_brand_image']['text'] = PROJECT_PATH.'/themes/default/images/logo.png';
|
|
||||||
$_SESSION['theme']['menu_brand_type']['text'] = 'image';
|
|
||||||
|
|
||||||
//get the domain
|
//get the domain
|
||||||
$domain_array = explode(":", $_SERVER["HTTP_HOST"]);
|
$domain_array = explode(":", $_SERVER["HTTP_HOST"]);
|
||||||
$domain_name = $domain_array[0];
|
$domain_name = $domain_array[0];
|
||||||
|
|||||||
Reference in New Issue
Block a user