| | |
| | | { |
| | | global $app; |
| | | |
| | | if(!$this->checkPerm($session_id, 'sites_web_vhost_aliasdomain_get')) { |
| | | if(!$this->checkPerm($session_id, 'sites_web_aliasdomain_get')) { |
| | | throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | |
| | | public function sites_web_vhost_aliasdomain_add($session_id, $client_id, $params) |
| | | { |
| | | global $app; |
| | | if(!$this->checkPerm($session_id, 'sites_web_vhost_aliasdomain_add')) { |
| | | if(!$this->checkPerm($session_id, 'sites_web_aliasdomain_add')) { |
| | | throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | |
| | | //* Update a record |
| | | public function sites_web_vhost_aliasdomain_update($session_id, $client_id, $primary_id, $params) |
| | | { |
| | | if(!$this->checkPerm($session_id, 'sites_web_vhost_aliasdomain_update')) { |
| | | if(!$this->checkPerm($session_id, 'sites_web_aliasdomain_update')) { |
| | | throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | |
| | | //* Delete a record |
| | | public function sites_web_vhost_aliasdomain_delete($session_id, $primary_id) |
| | | { |
| | | if(!$this->checkPerm($session_id, 'sites_web_vhost_aliasdomain_delete')) { |
| | | if(!$this->checkPerm($session_id, 'sites_web_aliasdomain_delete')) { |
| | | throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | |
| | | { |
| | | global $app; |
| | | |
| | | if(!$this->checkPerm($session_id, 'sites_web_vhost_subdomain_get')) { |
| | | if(!$this->checkPerm($session_id, 'sites_web_subdomain_get')) { |
| | | throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | |
| | | public function sites_web_vhost_subdomain_add($session_id, $client_id, $params) |
| | | { |
| | | global $app; |
| | | if(!$this->checkPerm($session_id, 'sites_web_vhost_subdomain_add')) { |
| | | if(!$this->checkPerm($session_id, 'sites_web_subdomain_add')) { |
| | | throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | |
| | | //* Update a record |
| | | public function sites_web_vhost_subdomain_update($session_id, $client_id, $primary_id, $params) |
| | | { |
| | | if(!$this->checkPerm($session_id, 'sites_web_vhost_subdomain_update')) { |
| | | if(!$this->checkPerm($session_id, 'sites_web_subdomain_update')) { |
| | | throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | |
| | | //* Delete a record |
| | | public function sites_web_vhost_subdomain_delete($session_id, $primary_id) |
| | | { |
| | | if(!$this->checkPerm($session_id, 'sites_web_vhost_subdomain_delete')) { |
| | | if(!$this->checkPerm($session_id, 'sites_web_subdomain_delete')) { |
| | | throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | |
| | | return $all; |
| | | } |
| | | |
| | | //** quota functions ----------------------------------------------------------------------------------- |
| | | public function quota_get_by_user($session_id, $group_id) |
| | | { |
| | | global $app; |
| | | $app->uses('quota_lib'); |
| | | |
| | | if(!$this->checkPerm($session_id, 'quota_get_by_user')) { |
| | | $this->server->fault('permission_denied', 'You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $group_id = $app->functions->intval($group_id); |
| | | |
| | | return $app->quota_lib->get_quota_data($group_id, false); |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | ?> |