From 07e1dc630a98df5824cb5c31ed798449e164dfd7 Mon Sep 17 00:00:00 2001 From: Michael Fürmann <michael@spicyweb.de> Date: Thu, 19 Feb 2015 10:52:22 -0500 Subject: [PATCH] closes #1 --- interface/web/mail/xmpp_domain_edit.php | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/interface/web/mail/xmpp_domain_edit.php b/interface/web/mail/xmpp_domain_edit.php index 127acd7..c13f786 100644 --- a/interface/web/mail/xmpp_domain_edit.php +++ b/interface/web/mail/xmpp_domain_edit.php @@ -262,7 +262,7 @@ //* make sure that the xmpp domain is lowercase if(isset($this->dataRecord["domain"])) $this->dataRecord["domain"] = strtolower($this->dataRecord["domain"]); - // Read auth method + // Read management method if(isset($this->dataRecord["management_method"])) switch($this->dataRecord["management_method"]){ case 0: @@ -328,6 +328,11 @@ global $app, $conf; if($this->_xmpp_type == 'server') { + // Check if the domain has been changed + $rec = $app->db->queryOneRecord("SELECT domain from xmpp_domain WHERE domain_id = ".$this->id); + if($this->dataRecord['domain']!=$rec['domain']) + $app->error($app->tform->wordbook["cant_change_domainname_txt"]); + //* Check if the server has been changed // We do this only for the admin or reseller users, as normal clients can not change the server ID anyway if($_SESSION["s"]["user"]["typ"] == 'admin' || $app->auth->has_clients($_SESSION['s']['user']['userid'])) { -- Gitblit v1.9.1