| | |
| | | |
| | | $sql = "DELETE FROM remote_session WHERE remote_session = '$session_id'"; |
| | | $app->db->query($sql); |
| | | return ($app->db->affectedRows() == 1); |
| | | return $app->db->affectedRows() == 1; |
| | | } |
| | | |
| | | |
| | |
| | | @param string section of the config field in the server table. Could be 'web', 'dns', 'mail', 'dns', 'cron', etc |
| | | @author Julio Montoya <gugli100@gmail.com> BeezNest 2010 |
| | | */ |
| | | |
| | | |
| | | public function server_get($session_id, $server_id, $section ='') { |
| | | global $app; |
| | | if(!$this->checkPerm($session_id, 'server_get')) { |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Change domains status |
| | | * @param int session id |
| | |
| | | * @return mixed false if error |
| | | * @author Julio Montoya <gugli100@gmail.com> BeezNest 2010 |
| | | */ |
| | | |
| | | public function sites_web_domain_set_status($session_id, $primary_id, $status) { |
| | | global $app; |
| | | if(!$this->checkPerm($session_id, 'sites_web_domain_set_status')) { |
| | |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Get sys_user information by username |
| | |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Get All client_id's from database |
| | | * @param int session_id |
| | |
| | | return get_class_methods($this); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Get all databases by user |
| | | * @author Julio Montoya <gugli100@gmail.com> BeezNest 2010 |
| | |
| | | return $all; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Get all client templates |
| | | * @param int session id |
| | |
| | | $result = $app->db->queryAllRecords($sql); |
| | | return $result; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Get all DNS zone by user |
| | |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Get all dns records for a zone |
| | |
| | | * @param string status active or inactive string |
| | | * @author Julio Montoya <gugli100@gmail.com> BeezNest 2010 |
| | | */ |
| | | |
| | | public function dns_zone_set_status($session_id, $primary_id, $status) { |
| | | global $app; |
| | | if(!$this->checkPerm($session_id, 'dns_zone_set_status')) { |
| | |
| | | |
| | | |
| | | } |
| | | |
| | | ?> |