Florian Schaal
2016-06-10 1af0f8349dfd8befa2a8daa4b27c107b470eb851
show error-message when a client / reseller change the ip for a domain that was created by the admin
1 files modified
4 ■■■■ changed files
interface/web/sites/web_vhost_domain_edit.php 4 ●●●● patch | view | raw | blame | history
interface/web/sites/web_vhost_domain_edit.php
@@ -1460,9 +1460,13 @@
                    $this->dataRecord["domain"] = $rec['domain'];
                }
                if(isset($this->dataRecord["ip_address"]) && $rec['ip_address'] != $this->dataRecord["ip_address"] && $rec['sys_perm_group'] != 'riud') {
                    //* Add a error message and switch back to old server
                    $app->tform->errorMessage .= $app->lng('The IP can not be changed. Please ask your Administrator if you want to change the IPv4-Address.');
                    $this->dataRecord["ip_address"] = $rec['ip_address'];
                }
                if(isset($this->dataRecord["ipv6_address"]) && $rec['ipv6_address'] != $this->dataRecord["ipv6_address"] && $rec['sys_perm_group'] != 'riud') {
                    //* Add a error message and switch back to old server
                    $app->tform->errorMessage .= $app->lng('The IP can not be changed. Please ask your Administrator if you want to change the IPv6-Address.');
                    $this->dataRecord["ipv6_address"] = $rec['ipv6_address'];
                }
                unset($rec);