| | |
| | | $app->tpl->setVar("ar_active", ''); |
| | | } |
| | | |
| | | if($this->dataRecord['autoresponder_subject'] == '') { |
| | | $app->tpl->setVar('autoresponder_subject', $app->tform->lng('autoresponder_subject')); |
| | | } else { |
| | | $app->tpl->setVar('autoresponder_subject', $this->dataRecord['autoresponder_subject']); |
| | | } |
| | | |
| | | $app->uses('getconf'); |
| | | $mail_config = $app->getconf->get_global_config('mail'); |
| | | if($mail_config["enable_custom_login"] == "y") { |
| | |
| | | } |
| | | |
| | | // Check the quota and adjust |
| | | if(isset($_POST["quota"]) && $client["limit_mailquota"] >= 0) { |
| | | if(isset($_POST["quota"]) && $client["limit_mailquota"] >= 0 && $app->functions->intval($this->dataRecord["quota"]) * 1024 * 1024 != $this->oldDataRecord['quota']) { |
| | | $tmp = $app->db->queryOneRecord("SELECT sum(quota) as mailquota FROM mail_user WHERE mailuser_id != ".$app->functions->intval($this->id)." AND ".$app->tform->getAuthSQL('u')); |
| | | $mailquota = $tmp["mailquota"] / 1024 / 1024; |
| | | $new_mailbox_quota = $app->functions->intval($this->dataRecord["quota"]); |