| | |
| | | $this->dataRecord["type"] = 'url'; |
| | | } else { |
| | | $domain_owner = $app->db->queryOneRecord("SELECT limit_cron_type FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = ".$app->functions->intval($parent_domain["sys_groupid"])); |
| | | if($domain_owner["limit_cron_type"] == 'full') $this->dataRecord["type"] = 'full'; |
| | | else $this->dataRecord["type"] = 'chrooted'; |
| | | //* True when the site is assigned to a client |
| | | if(isset($domain_owner["limit_cron_type"])) { |
| | | if($domain_owner["limit_cron_type"] == 'full') { |
| | | $this->dataRecord["type"] = 'full'; |
| | | } else { |
| | | $this->dataRecord["type"] = 'chrooted'; |
| | | } |
| | | } else { |
| | | //* True when the site is assigned to the admin |
| | | $this->dataRecord["type"] = 'full'; |
| | | } |
| | | } |
| | | |
| | | parent::onSubmit(); |