Merge branch 'master_fixes' into 'master'
Master Fixes
Change for vmail-uid/gid settings in subdomains and aliasdomains
| | |
| | | `login` varchar(255) NOT NULL default '', |
| | | `password` varchar(255) NOT NULL default '', |
| | | `name` varchar(255) NOT NULL default '', |
| | | `uid` int(11) unsigned NOT NULL default '5000', |
| | | `gid` int(11) unsigned NOT NULL default '5000', |
| | | `uid` int(11) NOT NULL default '5000', |
| | | `gid` int(11) NOT NULL default '5000', |
| | | `maildir` varchar(255) NOT NULL default '', |
| | | `quota` bigint(20) NOT NULL default '-1', |
| | | `cc` varchar(255) NOT NULL default '', |
| | |
| | | $email_parts = explode('@',$data['new']['email']); |
| | | $webdomain = $app->db->queryOneRecord("SELECT domain_id, server_id, system_user, parent_domain_id FROM web_domain WHERE domain = '".$app->db->quote($email_parts[1])."'"); |
| | | if ($webdomain) { |
| | | while ($webdomain['parent_domain_id'] != 0) { |
| | | while (($webdomain['system_user'] == null) && ($webdomain['parent_domain_id'] != 0)) { |
| | | $webdomain = $app->db->queryOneRecord("SELECT domain_id, server_id, system_user, parent_domain_id FROM web_domain WHERE domain_id = '".$webdomain['parent_domain_id']."'"); |
| | | } |
| | | $app->log($data['new']['server_id'].' == '.$webdomain['server_id'],LOGLEVEL_DEBUG); |