} // Display error message if ($error) { new NotifyWidgetFailure($error); } // Display result message if ($result && !isXMLRPCError()) { new NotifyWidgetSuccess($result); header("Location: " . urlStrRedirect("mail/domains/index")); exit; } } else { if (isset($_POST["bedit"]) || isset($_POST["breset"])) { setVDomainDescription($domainname, $description); if (strlen($domainquota)) { setVDomainQuota($domainname, $domainquota); } $result = _T("The mail domain has been modified.", "mail") . "<br />"; if (isset($_POST["breset"])) { resetUsersVDomainQuota($domainname); $result .= _T(" The quota of all users of this mail domain have been reset.") . "<br />"; } // Display result message if ($result && !isXMLRPCError()) { new NotifyWidgetSuccess($result); } } } } $p = new PageGenerator($title); $p->setSideMenu($sidemenu);
setVDomainQuota($domainname, $domainquota); $result = _T("The mail domain has been added.", "mail"); } // Display error message if ($error) new NotifyWidgetFailure($error); // Display result message if ($result && !isXMLRPCError()) { new NotifyWidgetSuccess($result); header("Location: " . urlStrRedirect("mail/domains/index")); exit; } } else if (isset($_POST["bedit"]) || isset($_POST["breset"])) { setVDomainDescription($domainname, $description); if (strlen($domainquota)) setVDomainQuota($domainname, $domainquota); $result = _T("The mail domain has been modified.", "mail") . "<br />"; if (isset($_POST["breset"])) { resetUsersVDomainQuota($domainname); $result .= _T(" The quota of all users of this mail domain have been reset.") . "<br />"; } // Display result message if ($result && !isXMLRPCError()) new NotifyWidgetSuccess($result); } } $p = new PageGenerator($title); $p->setSideMenu($sidemenu); $p->display();