| | |
| | | if($domain['ip_address'] == '' || $domain['ipv6_address'] == ''){ |
| | | if($domain['parent_domain_id'] > 0){ |
| | | $parent_domain = $app->db->queryOneRecord("SELECT * FROM web_domain WHERE domain_id = ?", $domain['parent_domain_id']); |
| | | if(is_array($parent_domain) && !empty($parent_domain)){ |
| | | $domain['ip_address'] = $parent_domain['ip_address']; |
| | | $domain['ipv6_address'] = $parent_domain['ipv6_address']; |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | return false; |
| | | } |
| | | |
| | | if($data['new']['active'] != 'y') $data['new']['shell'] = '/bin/false'; |
| | | |
| | | if($app->system->is_user($data['new']['puser'])) { |
| | | |
| | | // Get the UID of the parent user |
| | |
| | | return false; |
| | | } |
| | | |
| | | if($data['new']['active'] != 'y') $data['new']['shell'] = '/bin/false'; |
| | | |
| | | if($app->system->is_user($data['new']['puser'])) { |
| | | // Get the UID of the parent user |
| | | $uid = intval($app->system->getuid($data['new']['puser'])); |