Added SOAP support for mail module. Many thanks to Arkadiusz Roch & Artur Edelman from Tri-Plex technology
49 files added
3 files modified
| | |
| | | OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING |
| | | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | |
| | | --UPDATED 08.2009-- |
| | | Full SOAP support for ISPConfig 3.1.4 b |
| | | Updated by Arkadiusz Roch & Artur Edelman |
| | | Copyright (c) Tri-Plex technology |
| | | |
| | | */ |
| | | |
| | | class remoting { |
| | |
| | | $this->server->fault('permission_denied', 'You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->updateQuery('../mail/form/mail_domain.tform.php',$domain_id); |
| | | $affected_rows = $this->deleteQuery('../mail/form/mail_domain.tform.php',$domain_id); |
| | | return $affected_rows; |
| | | } |
| | | //* dodanie uzytkownika email |
| | | public function mail_user_add($session_id,$domain_id, $client_id, $params){ |
| | | if (!$this->checkPerm($session_id, 'mail_user_add')){ |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->insertQuery('../mail/form/mail_user.tform.php',$domain_id, $client_id, $params); |
| | | return $affected_rows; |
| | | } |
| | | |
| | | //* edycja uzytkownika email |
| | | public function mail_user_update($session_id, $client_id, $domain_id, $params) |
| | | { |
| | | if (!$this->checkPerm($session_id, 'mail_user_update')) |
| | | { |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->updateQuery('../mail/form/mail_user.tform.php', $client_id, $domain_id, $params); |
| | | return $affected_rows; |
| | | } |
| | | |
| | | |
| | | //*usuniecie uzytkownika emial |
| | | public function mail_user_delete($session_id,$domain_id) |
| | | { |
| | | if (!$this->checkPerm($session_id, 'mail_user_delete')) |
| | | { |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->deleteQuery('../mail/form/mail_user.tform.php',$domain_id); |
| | | return $affected_rows; |
| | | } |
| | | |
| | | |
| | | //* aliasy email |
| | | public function mail_alias_add($session_id,$domain_id, $client_id, $params) |
| | | { |
| | | if (!$this->checkPerm($session_id, 'mail_alias_add')) |
| | | { |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->insertQuery('../mail/form/mail_alias.tform.php', $domain_id, $client_id, $params); |
| | | return $affected_rows; |
| | | } |
| | | |
| | | |
| | | public function mail_alias_update($session_id, $domain_id, $client_id, $params) |
| | | { |
| | | if (!$this->checkPerm($session_id, 'mail_alias_update')) |
| | | { |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->updateQuery('../mail/form/mail_alias.tform.php', $client_id, $domain_id, $params); |
| | | return $affected_rows; |
| | | } |
| | | |
| | | public function mail_alias_delete($session_id,$domain_id) |
| | | { |
| | | if (!$this->checkPerm($session_id, 'mail_alias_delete')) |
| | | { |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->deleteQuery('../mail/form/mail_alias.tform.php',$domain_id); |
| | | return $affected_rows; |
| | | } |
| | | |
| | | |
| | | //* przekierowania email |
| | | public function mail_forward_add($session_id,$domain_id, $client_id, $params) |
| | | { |
| | | if (!$this->checkPerm($session_id, 'mail_forward_add')) |
| | | { |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->insertQuery('../mail/form/mail_forward.tform.php', $domain_id, $client_id, $params); |
| | | return $affected_rows; |
| | | } |
| | | |
| | | |
| | | public function mail_forward_update($session_id, $domain_id, $client_id, $params) |
| | | { |
| | | if (!$this->checkPerm($session_id, 'mail_forward_update')) |
| | | { |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->updateQuery('../mail/form/mail_forward.tform.php', $client_id, $domain_id, $params); |
| | | return $affected_rows; |
| | | } |
| | | |
| | | |
| | | public function mail_forward_delete($session_id,$domain_id) |
| | | { |
| | | if (!$this->checkPerm($session_id, 'mail_forward_delete')) |
| | | { |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->deleteQuery('../mail/form/mail_forward.tform.php',$domain_id); |
| | | return $affected_rows; |
| | | } |
| | | |
| | | |
| | | //* catchall e-mail |
| | | public function mail_catchall_add($session_id,$domain_id, $client_id, $params) |
| | | { |
| | | if (!$this->checkPerm($session_id, 'mail_catchall_add')) |
| | | { |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->insertQuery('../mail/form/mail_domain_catchall.tform.php', $domain_id, $client_id, $params); |
| | | return $affected_rows; |
| | | } |
| | | |
| | | |
| | | public function mail_catchall_update($session_id, $domain_id, $client_id, $params) |
| | | { |
| | | if (!$this->checkPerm($session_id, 'mail_catchall_update')) |
| | | { |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->updateQuery('../mail/form/mail_domain_catchall.tform.php', $client_id, $domain_id, $params); |
| | | return $affected_rows; |
| | | } |
| | | |
| | | |
| | | public function mail_catchall_delete($session_id,$domain_id) |
| | | { |
| | | if (!$this->checkPerm($session_id, 'mail_catchall_delete')) |
| | | { |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->deleteQuery('../mail/form/mail_domain_catchall.tform.php',$domain_id); |
| | | return $affected_rows; |
| | | } |
| | | |
| | | |
| | | //* przeniesienia e-mail |
| | | public function mail_transport_add($session_id,$domain_id, $client_id, $params) |
| | | { |
| | | if (!$this->checkPerm($session_id, 'mail_transport_add')) |
| | | { |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->insertQuery('../mail/form/mail_transport.tform.php', $domain_id, $client_id, $params); |
| | | return $affected_rows; |
| | | } |
| | | |
| | | |
| | | public function mail_transport_update($session_id, $domain_id, $client_id, $params) |
| | | { |
| | | if (!$this->checkPerm($session_id, 'mail_transport_update')) |
| | | { |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->updateQuery('../mail/form/mail_transport.tform.php', $client_id, $domain_id, $params); |
| | | return $affected_rows; |
| | | } |
| | | |
| | | |
| | | public function mail_transport_delete($session_id,$domain_id) |
| | | { |
| | | if (!$this->checkPerm($session_id, 'mail_transport_delete')) |
| | | { |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->deleteQuery('../mail/form/mail_transport.tform.php',$domain_id); |
| | | return $affected_rows; |
| | | } |
| | | |
| | | |
| | | //* biała lista e-mail |
| | | public function mail_spamfilter_whitelist_add($session_id,$domain_id, $client_id, $params) |
| | | { |
| | | if (!$this->checkPerm($session_id, 'mail_spamfilter_whitelist_add')) |
| | | { |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->insertQuery('../mail/form/spamfilter_whitelist.tform.php', $domain_id, $client_id, $params); |
| | | return $affected_rows; |
| | | } |
| | | |
| | | |
| | | public function mail_spamfilter_whitelist_update($session_id, $domain_id, $client_id, $params) |
| | | { |
| | | if (!$this->checkPerm($session_id, 'mail_spamfilter_whitelist_update')) |
| | | { |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->updateQuery('../mail/form/spamfilter_whitelist.tform.php', $client_id, $domain_id, $params); |
| | | return $affected_rows; |
| | | } |
| | | |
| | | |
| | | public function mail_spamfilter_whitelist_delete($session_id,$domain_id) |
| | | { |
| | | if (!$this->checkPerm($session_id, 'mail_spamfilter_whitelist_delete')) |
| | | { |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->deleteQuery('../mail/form/spamfilter_whitelist.tform.php',$domain_id); |
| | | return $affected_rows; |
| | | } |
| | | |
| | | |
| | | |
| | | //* czarna lista e-mail |
| | | public function mail_spamfilter_blacklist_add($session_id,$domain_id, $client_id, $params) |
| | | { |
| | | if (!$this->checkPerm($session_id, 'mail_spamfilter_blacklist_add')) |
| | | { |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->insertQuery('../mail/form/spamfilter_blacklist.tform.php', $domain_id, $client_id, $params); |
| | | return $affected_rows; |
| | | } |
| | | |
| | | |
| | | public function mail_spamfilter_blacklist_update($session_id, $domain_id, $client_id, $params) |
| | | { |
| | | if (!$this->checkPerm($session_id, 'mail_spamfilter_blacklist_update')) |
| | | { |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->updateQuery('../mail/form/spamfilter_blacklist.tform.php', $client_id, $domain_id, $params); |
| | | return $affected_rows; |
| | | } |
| | | |
| | | |
| | | public function mail_spamfilter_blacklist_delete($session_id,$domain_id) |
| | | { |
| | | if (!$this->checkPerm($session_id, 'mail_spamfilter_blacklist_delete')) |
| | | { |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->deleteQuery('../mail/form/spamfilter_blacklist.tform.php',$domain_id); |
| | | return $affected_rows; |
| | | } |
| | | |
| | | |
| | | //* filtr spamu użytkowników e-mail |
| | | public function mail_spamfilter_user_add($session_id,$domain_id, $client_id, $params) |
| | | { |
| | | if (!$this->checkPerm($session_id, 'mail_spamfilter_user_add')) |
| | | { |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->insertQuery('../mail/form/spamfilter_users.tform.php', $domain_id, $client_id, $params); |
| | | return $affected_rows; |
| | | } |
| | | |
| | | |
| | | public function mail_spamfilter_user_update($session_id, $domain_id, $client_id, $params) |
| | | { |
| | | if (!$this->checkPerm($session_id, 'mail_spamfilter_user_update')) |
| | | { |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->updateQuery('../mail/form/spamfilter_users.tform.php', $client_id, $domain_id, $params); |
| | | return $affected_rows; |
| | | } |
| | | |
| | | |
| | | public function mail_spamfilter_user_delete($session_id,$domain_id) |
| | | { |
| | | if (!$this->checkPerm($session_id, 'mail_spamfilter_user_delete')) |
| | | { |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->deleteQuery('../mail/form/spamfilter_users.tform.php',$domain_id); |
| | | return $affected_rows; |
| | | } |
| | | |
| | | |
| | | |
| | | //* polityki filtrów spamu e-mail |
| | | public function mail_policy_add($session_id,$domain_id, $client_id, $params) |
| | | { |
| | | if (!$this->checkPerm($session_id, 'mail_policy_add')) |
| | | { |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->insertQuery('../mail/form/spamfilter_policy.tform.php', $domain_id, $client_id, $params); |
| | | return $affected_rows; |
| | | } |
| | | |
| | | |
| | | public function mail_policy_update($session_id, $domain_id, $client_id, $params) |
| | | { |
| | | if (!$this->checkPerm($session_id, 'mail_policy_update')) |
| | | { |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->updateQuery('../mail/form/spamfilter_policy.tform.php', $client_id, $domain_id, $params); |
| | | return $affected_rows; |
| | | } |
| | | |
| | | |
| | | public function mail_policy_delete($session_id,$domain_id) |
| | | { |
| | | if (!$this->checkPerm($session_id, 'mail_policy_delete')) |
| | | { |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->deleteQuery('../mail/form/spamfilter_policy.tform.php',$domain_id); |
| | | return $affected_rows; |
| | | } |
| | | |
| | | |
| | | //* fetchmail |
| | | public function mail_fetchmail_add($session_id,$domain_id, $client_id, $params) |
| | | { |
| | | if (!$this->checkPerm($session_id, 'mail_fetchmail_add')) |
| | | { |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->insertQuery('../mail/form/mail_get.tform.php', $domain_id, $client_id, $params); |
| | | return $affected_rows; |
| | | } |
| | | |
| | | |
| | | public function mail_fetchmail_update($session_id, $domain_id, $client_id, $params) |
| | | { |
| | | if (!$this->checkPerm($session_id, 'mail_fetchmail_update')) |
| | | { |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->updateQuery('../mail/form/mail_get.tform.php', $client_id, $domain_id, $params); |
| | | return $affected_rows; |
| | | } |
| | | |
| | | |
| | | public function mail_fetchmail_delete($session_id,$domain_id) |
| | | { |
| | | if (!$this->checkPerm($session_id, 'mail_fetchmail_delete')) |
| | | { |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->deleteQuery('../mail/form/mail_get.tform.php',$domain_id); |
| | | return $affected_rows; |
| | | } |
| | | |
| | | |
| | | //* wpisy białej listy |
| | | public function mail_whitelist_add($session_id,$domain_id, $client_id, $params) |
| | | { |
| | | if (!$this->checkPerm($session_id, 'mail_whitelist_add')) |
| | | { |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->insertQuery('../mail/form/mail_whitelist.tform.php', $domain_id, $client_id, $params); |
| | | return $affected_rows; |
| | | } |
| | | |
| | | |
| | | public function mail_whitelist_update($session_id, $domain_id, $client_id, $params) |
| | | { |
| | | if (!$this->checkPerm($session_id, 'mail_whitelist_update')) |
| | | { |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->updateQuery('../mail/form/mail_whitelist.tform.php', $client_id, $domain_id, $params); |
| | | return $affected_rows; |
| | | } |
| | | |
| | | |
| | | public function mail_whitelist_delete($session_id,$domain_id) |
| | | { |
| | | if (!$this->checkPerm($session_id, 'mail_whitelist_delete')) |
| | | { |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->deleteQuery('../mail/form/mail_whitelist.tform.php',$domain_id); |
| | | return $affected_rows; |
| | | } |
| | | |
| | | |
| | | //* wpisy białej listy |
| | | public function mail_blacklist_add($session_id,$domain_id, $client_id, $params) |
| | | { |
| | | if (!$this->checkPerm($session_id, 'mail_blacklist_add')) |
| | | { |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->insertQuery('../mail/form/mail_blacklist.tform.php', $domain_id, $client_id, $params); |
| | | return $affected_rows; |
| | | } |
| | | |
| | | |
| | | public function mail_blacklist_update($session_id, $domain_id, $client_id, $params) |
| | | { |
| | | if (!$this->checkPerm($session_id, 'mail_blacklist_update')) |
| | | { |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->updateQuery('../mail/form/mail_blacklist.tform.php', $client_id, $domain_id, $params); |
| | | return $affected_rows; |
| | | } |
| | | |
| | | |
| | | public function mail_blacklist_delete($session_id,$domain_id) |
| | | { |
| | | if (!$this->checkPerm($session_id, 'mail_blacklist_delete')) |
| | | { |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->deleteQuery('../mail/form/mail_blacklist.tform.php',$domain_id); |
| | | return $affected_rows; |
| | | } |
| | | |
| | | |
| | | //* wpisy filtrow e-mail |
| | | public function mail_filter_add($session_id,$domain_id, $client_id, $params) |
| | | { |
| | | if (!$this->checkPerm($session_id, 'mail_filter_add')) |
| | | { |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->insertQuery('../mail/form/mail_content_filter.tform.php', $domain_id, $client_id, $params); |
| | | return $affected_rows; |
| | | } |
| | | |
| | | |
| | | public function mail_filter_update($session_id, $domain_id, $client_id, $params) |
| | | { |
| | | if (!$this->checkPerm($session_id, 'mail_filter_update')) |
| | | { |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->updateQuery('../mail/form/mail_content_filter.tform.php', $client_id, $domain_id, $params); |
| | | return $affected_rows; |
| | | } |
| | | |
| | | |
| | | public function mail_filter_delete($session_id,$domain_id) |
| | | { |
| | | if (!$this->checkPerm($session_id, 'mail_filter_delete')) |
| | | { |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->deleteQuery('../mail/form/mail_content_filter.tform.php',$domain_id); |
| | | return $affected_rows; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | /* |
| | | * |
| | | * |
| | | * |
| | | * * klient add :) |
| | | * |
| | | * |
| | | */ |
| | | |
| | | public function client_add($session_id,$domain_id, $client_id, $params) |
| | | { |
| | | if (!$this->checkPerm($session_id, 'client_add')) |
| | | { |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->klientadd('../client/form/client.tform.php',$domain_id, $client_id, $params); |
| | | return $affected_rows; |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | //** private functions ----------------------------------------------------------------------------------- |
| | | |
| | | |
| | | |
| | | |
| | | private function klientadd($formdef_file, $client_id, $params) |
| | | { |
| | | global $app, $tform, $remoting_lib; |
| | | $app->uses('remoting_lib'); |
| | | |
| | | //* Load the form definition |
| | | $app->remoting_lib->loadFormDef($formdef_file); |
| | | |
| | | //* load the user profile of the client |
| | | $app->remoting_lib->loadUserProfile($client_id); |
| | | |
| | | //* Get the SQL query |
| | | $sql = $app->remoting_lib->getSQL($params,'INSERT',0); |
| | | if($app->remoting_lib->errorMessage != '') { |
| | | $this->server->fault('data_processing_error', $app->remoting_lib->errorMessage); |
| | | return false; |
| | | } |
| | | |
| | | $app->db->query($sql); |
| | | |
| | | if($app->db->errorMessage != '') { |
| | | $this->server->fault('database_error', $app->db->errorMessage . ' '.$sql); |
| | | return false; |
| | | } |
| | | |
| | | |
| | | |
| | | $insert_id = $app->db->insertID(); |
| | | //$app->uses('tform'); |
| | | //* Save changes to Datalog |
| | | if($app->remoting_lib->formDef["db_history"] == 'yes') { |
| | | $new_rec = $app->remoting_lib->getDataRecord($insert_id); |
| | | $app->remoting_lib->datalogSave('INSERT',$primary_id,array(),$new_rec); |
| | | |
| | | $app->remoting_lib->dodaj_usera($params,$insert_id); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | return $insert_id; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | private function insertQuery($formdef_file, $client_id, $params) |
| | | { |
| | | global $app; |
| | | global $app, $tform, $remoting_lib; |
| | | |
| | | $app->uses('remoting_lib'); |
| | | |
| | |
| | | |
| | | $insert_id = $app->db->insertID(); |
| | | |
| | | |
| | | |
| | | //$app->uses('tform'); |
| | | //* Save changes to Datalog |
| | | if($app->remoting_lib->formDef["db_history"] == 'yes') { |
| | | $new_rec = $app->remoting_lib->getDataRecord($insert_id); |
| | | $app->tform->datalogSave('INSERT',$primary_id,array(),$new_rec); |
| | | $app->remoting_lib->datalogSave('INSERT',$primary_id,array(),$new_rec); |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | //* Save changes to Datalog |
| | | if($app->remoting_lib->formDef["db_history"] == 'yes') { |
| | | $new_rec = $app->remoting_lib->getDataRecord($primary_id); |
| | | $app->tform->datalogSave('UPDATE',$primary_id,$old_rec,$new_rec); |
| | | $app->remoting_lib->datalogSave('UPDATE',$primary_id,$old_rec,$new_rec); |
| | | } |
| | | |
| | | |
| | |
| | | //* Save changes to Datalog |
| | | if($app->remoting_lib->formDef["db_history"] == 'yes') { |
| | | $rec = $app->remoting_lib->getDataRecord($primary_id); |
| | | $app->tform->datalogSave('DELETE',$primary_id,$rec,array()); |
| | | $app->remoting_lib->datalogSave('DELETE',$primary_id,$rec,array()); |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | private function checkPerm($session_id, $function_name) |
| | | { |
| | | $session = $this->getSession($session_id); |
| | | $dobre=Array(); |
| | | $session = $this->getSession($session_id); |
| | | if(!$session){ |
| | | return false; |
| | | } |
| | | return in_array($function_name, explode(',', $session['remote_functions']) ); |
| | | |
| | | $dobre= str_replace(';',',',$session['remote_functions']); |
| | | return in_array($function_name, explode(',', $dobre) ); |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | ?> |
| | | ?> |
| | |
| | | OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING |
| | | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | |
| | | --UPDATED 08.2009-- |
| | | Full SOAP support for ISPConfig 3.1.4 b |
| | | Updated by Arkadiusz Roch & Artur Edelman |
| | | Copyright (c) Tri-Plex technology |
| | | |
| | | */ |
| | | |
| | | /** |
| | |
| | | */ |
| | | |
| | | class remoting_lib { |
| | | |
| | | |
| | | /** |
| | | * Definition of the database atble (array) |
| | | * @var tableDef |
| | |
| | | $sql = "SELECT * FROM ".$escape.$this->formDef['db_table'].$escape." WHERE ".$this->formDef['db_table_idx']." = ".$primary_id; |
| | | return $app->db->queryOneRecord($sql); |
| | | } |
| | | |
| | | |
| | | function dodaj_usera($params,$insert_id){ |
| | | global $app,$sql1; |
| | | $username = $params["username"]; |
| | | $password = $params["password"]; |
| | | $modules = 'mail,sites,dns,tools'; |
| | | $startmodule = 'mail'; |
| | | $usertheme = $params["usertheme"]; |
| | | $type = 'user'; |
| | | $active = 1; |
| | | $language = $params["language"]; |
| | | $groupid = $app->db->datalogInsert('sys_group', "(name,description,client_id) VALUES ('$username','','$insert_id')", 'groupid'); |
| | | $groups = $groupid; |
| | | $sql1 = "INSERT INTO sys_user (username,passwort,modules,startmodule,app_theme,typ,active,language,groups,default_group,client_id) |
| | | VALUES ('$username',md5('$password'),'$modules','$startmodule','$usertheme','$type','$active','$language',$groups,$groupid,$insert_id)"; |
| | | $app->db->query($sql1); |
| | | } |
| | | |
| | | function datalogSave($action,$primary_id, $record_old, $record_new) { |
| | | global $app,$conf; |
| | |
| | | |
| | | } |
| | | |
| | | ?> |
| | | ?> |
New file |
| | |
| | | <?php |
| | | |
| | | /* |
| | | Form Definition |
| | | |
| | | Tabledefinition |
| | | |
| | | Datatypes: |
| | | - INTEGER (Forces the input to Int) |
| | | - DOUBLE |
| | | - CURRENCY (Formats the values to currency notation) |
| | | - VARCHAR (no format check, maxlength: 255) |
| | | - TEXT (no format check) |
| | | - DATE (Dateformat, automatic conversion to timestamps) |
| | | |
| | | Formtype: |
| | | - TEXT (Textfield) |
| | | - TEXTAREA (Textarea) |
| | | - PASSWORD (Password textfield, input is not shown when edited) |
| | | - SELECT (Select option field) |
| | | - RADIO |
| | | - CHECKBOX |
| | | - CHECKBOXARRAY |
| | | - FILE |
| | | |
| | | VALUE: |
| | | - Wert oder Array |
| | | |
| | | Hint: |
| | | The ID field of the database table is not part of the datafield definition. |
| | | The ID field must be always auto incement (int or bigint). |
| | | |
| | | |
| | | */ |
| | | |
| | | $lista_funkcji = array(); |
| | | $lista_funkcji['mail_domain_get,mail_domain_add,mail_domain_update,mail_domain_delete'] = 'Mail domain functions<br>'; |
| | | |
| | | $lista_funkcji['mail_user_add,mail_user_update,mail_user_delete'] = 'Mail user functions<br>'; |
| | | |
| | | $lista_funkcji['mail_alias_add,mail_alias_update,mail_alias_delete'] = 'Mail alias functions<br>'; |
| | | |
| | | $lista_funkcji['mail_forward_add,mail_forward_update,mail_forward_delete'] = 'Mail forward functions<br>'; |
| | | |
| | | $lista_funkcji['mail_catchall_add,mail_catchall_update,mail_catchall_delete'] = 'Mail catchall functions<br>'; |
| | | |
| | | $lista_funkcji['mail_transport_add,mail_transport_update,mail_transport_delete'] = 'Mail transport functions<br>'; |
| | | |
| | | $lista_funkcji['mail_whitelist_add,mail_whitelist_update,mail_whitelist_delete'] = 'Mail whitelist functions<br>'; |
| | | |
| | | $lista_funkcji['mail_blacklist_add,mail_blacklist_update,mail_blacklist_delete'] = 'Mail blacklist functions<br>'; |
| | | |
| | | $lista_funkcji['mail_spamfilter_user_add,mail_spamfilter_user_update,mail_spamfilter_user_delete'] = 'Mail spamfilter user functions<br>'; |
| | | |
| | | $lista_funkcji['mail_policy_add,mail_policy_update,mail_policy_delete'] = 'Mail spamfilter policy functions<br>'; |
| | | |
| | | $lista_funkcji['mail_fetchmail_add,mail_fetchmail_update,mail_fetchmail_delete'] = 'Mail fetchmail functions<br>'; |
| | | |
| | | $lista_funkcji['mail_whitelist_add,mail_whitelist_update,mail_whitelist_delete'] = 'Mail whitelist functions<br>'; |
| | | |
| | | $lista_funkcji['mail_blacklist_add,mail_blacklist_update,mail_blacklist_delete'] = 'Mail blacklist functions<br>'; |
| | | |
| | | $lista_funkcji['mail_filter_add,mail_filter_update,mail_filter_delete'] = 'Mail filter functions<br>'; |
| | | |
| | | |
| | | |
| | | $form["title"] = "Remote user"; |
| | | $form["description"] = ""; |
| | | $form["name"] = "remote_user"; |
| | | $form["action"] = "remote_user_edit.php"; |
| | | $form["db_table"] = "remote_user"; |
| | | $form["db_table_idx"] = "remote_userid"; |
| | | $form["db_history"] = "yes"; |
| | | $form["tab_default"] = "remote_user"; |
| | | $form["list_default"] = "remote_user_list.php"; |
| | | $form["auth"] = 'yes'; // yes / no |
| | | |
| | | $form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user |
| | | $form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user |
| | | $form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete |
| | | $form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete |
| | | $form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete |
| | | |
| | | $form["tabs"]['remote_user'] = array ( |
| | | 'title' => "Remote User", |
| | | 'width' => 100, |
| | | 'template' => "templates/remote_user_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | 'remote_userid' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | | 'default' => '', |
| | | 'datasource' => array ( 'type' => 'SQL', |
| | | 'querystring' => 'SELECT remote_userid,remote_username FROM remote_user WHERE {AUTHSQL} ORDER BY remote_username', |
| | | 'keyfield'=> 'remote_userid', |
| | | 'valuefield'=> 'remote_username' |
| | | ), |
| | | 'value' => '' |
| | | ), |
| | | |
| | | 'remote_username' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | | 'validators' => array ( 0 => array ( 'type' => 'UNIQUE', |
| | | 'errmsg'=> 'username_error_unique'), |
| | | 1 => array ( 'type' => 'REGEX', |
| | | 'regex' => '/^[\w\.\-]{0,64}$/', |
| | | 'errmsg'=> 'username_error_regex'), |
| | | 2 => array ( 'type' => 'NOTEMPTY', |
| | | 'errmsg'=> 'username_error_empty'), |
| | | ), |
| | | 'default' => '', |
| | | 'value' => '', |
| | | 'width' => '30', |
| | | 'maxlength' => '255' |
| | | ), |
| | | 'remote_password' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'PASSWORD', |
| | | 'encryption' => 'MD5', |
| | | 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', |
| | | 'errmsg'=> 'password_error_empty'), |
| | | ), |
| | | 'default' => '', |
| | | 'value' => '', |
| | | 'width' => '30', |
| | | 'maxlength' => '255' |
| | | ), |
| | | 'remote_functions' => array ( |
| | | 'datatype' => 'TEXT', |
| | | 'formtype' => 'CHECKBOXARRAY', |
| | | 'regex' => '', |
| | | 'errmsg' => '', |
| | | 'default' => '', |
| | | 'value' => $lista_funkcji, |
| | | 'separator' => ';', |
| | | 'width' => '', |
| | | 'maxlength' => '', |
| | | 'rows' => '5', |
| | | 'cols' => '30' |
| | | ) |
| | | |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | ) |
| | | ); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | ?> |
New file |
| | |
| | | <?php |
| | | $wb['username_txt'] = 'Username:'; |
| | | $wb['password_txt'] = 'Password:'; |
| | | $wb['function_txt'] = 'Functions:'; |
| | | $wb['username_error_unique'] = 'Username must be unique'; |
| | | $wb['username_error_empty'] = 'Username cannot be empty'; |
| | | $wb['password_error_empty'] = 'Password cannot be empty'; |
| | | $wb['password_strength_txt'] = 'Password Strength:'; |
| | | ?> |
New file |
| | |
| | | <?php |
| | | $wb['list_head_txt'] = "Remote Users"; |
| | | $wb['list_desc_txt'] = ""; |
| | | $wb['add_new_record_txt'] = "Add new user"; |
| | | $wb['parent_remote_userid_txt'] = 'ID'; |
| | | $wb['username_txt'] = "Username"; |
| | | ?> |
| | | |
| | |
| | | // cleanup |
| | | unset($items); |
| | | |
| | | $items[] = array( 'title' => 'Add user', |
| | | 'target' => 'content', |
| | | 'link' => 'admin/remote_user_edit.php'); |
| | | |
| | | $items[] = array( 'title' => 'Edit user', |
| | | 'target' => 'content', |
| | | 'link' => 'admin/remote_user_list.php'); |
| | | |
| | | |
| | | $module['nav'][] = array( 'title' => 'Remote Users', |
| | | 'open' => 1, |
| | | 'items' => $items); |
| | | |
| | | // cleanup |
| | | unset($items); |
| | | |
| | | // Getting the admin options from other modules |
| | | $modules = explode(',', $_SESSION['s']['user']['modules']); |
| | | if(is_array($modules)) { |
New file |
| | |
| | | <?php |
| | | |
| | | // Name of the list |
| | | $liste['name'] = 'remote_user'; |
| | | |
| | | // Database table |
| | | $liste['table'] = 'remote_user'; |
| | | |
| | | // Index index field of the database table |
| | | $liste['table_idx'] = 'userid'; |
| | | |
| | | // Search Field Prefix |
| | | $liste['search_prefix'] = 'search_'; |
| | | |
| | | // Records per page |
| | | $liste['records_per_page']= 15; |
| | | |
| | | // Script File of the list |
| | | $liste['file'] = 'remote_user_list.php'; |
| | | |
| | | // Script file of the edit form |
| | | $liste['edit_file'] = 'remote_user_edit.php'; |
| | | |
| | | // Script File of the delete script |
| | | $liste['delete_file'] = 'remote_user_del.php'; |
| | | |
| | | // Paging Template |
| | | $liste['paging_tpl'] = 'templates/paging.tpl.htm'; |
| | | |
| | | // Enable auth |
| | | $liste['auth'] = 'yes'; |
| | | |
| | | |
| | | //****** Search fields |
| | | |
| | | $liste['item'][] = array( |
| | | 'field' => 'remote_userid', |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'SELECT', |
| | | 'op' => '=', |
| | | 'prefix' => '', |
| | | 'suffix' => '', |
| | | 'width' => '', |
| | | 'datasource' => array( |
| | | 'type' => 'SQL', |
| | | 'querystring' => 'SELECT remote_userid,remote_username FROM remote_user WHERE {AUTHSQL} ORDER BY remote_username', |
| | | 'keyfield' => 'remote_userid', |
| | | 'valuefield' => 'remote_userid' |
| | | ), |
| | | 'value' => '' |
| | | ); |
| | | |
| | | $liste['item'][] = array( |
| | | 'field' => 'remote_username', |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | | 'op' => 'like', |
| | | 'prefix' => '%', |
| | | 'suffix' => '%', |
| | | 'width' => '', |
| | | 'value' => '' |
| | | ); |
| | | |
| | | ?> |
| | | |
New file |
| | |
| | | <?php |
| | | |
| | | /* |
| | | Copyright (c) 2007, Till Brehm, projektfarm Gmbh |
| | | All rights reserved. |
| | | |
| | | Redistribution and use in source and binary forms, with or without modification, |
| | | are permitted provided that the following conditions are met: |
| | | |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright notice, |
| | | this list of conditions and the following disclaimer in the documentation |
| | | and/or other materials provided with the distribution. |
| | | * Neither the name of ISPConfig nor the names of its contributors |
| | | may be used to endorse or promote products derived from this software without |
| | | specific prior written permission. |
| | | |
| | | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
| | | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| | | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
| | | IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, |
| | | INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, |
| | | BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| | | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
| | | OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING |
| | | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | | ******************************************/ |
| | | |
| | | $list_def_file = "list/remote_user.list.php"; |
| | | $tform_def_file = "form/remote_user.tform.php"; |
| | | |
| | | /****************************************** |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | | |
| | | $app->uses('tpl,tform'); |
| | | $app->load('tform_actions'); |
| | | |
| | | // Create a class page_action that extends the tform_actions base class |
| | | |
| | | class page_action extends tform_actions { |
| | | |
| | | |
| | | // Customisations for the page actions will be defined here |
| | | |
| | | } |
| | | $page = new page_action; |
| | | $page->onDelete(); |
| | | |
| | | ?> |
New file |
| | |
| | | <?php |
| | | |
| | | // Set the path to the form definition file. |
| | | $tform_def_file = 'form/remote_user.tform.php'; |
| | | |
| | | // include the core configuration and application classes |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | |
| | | // Check the module permissions and redirect if not allowed. |
| | | if(!stristr($_SESSION['s']['user']['modules'],'admin')) { |
| | | header('Location: ../index.php'); |
| | | die; |
| | | } |
| | | |
| | | // Load the templating and form classes |
| | | $app->uses('tpl,tform,tform_actions'); |
| | | $app->load('tform_actions'); |
| | | |
| | | // Create a class page_action that extends the tform_actions base class |
| | | class page_action extends tform_actions { |
| | | |
| | | //* Customisations for the page actions will be defined here |
| | | |
| | | } |
| | | |
| | | // Create the new page object |
| | | $page = new page_action(); |
| | | |
| | | // Start the page rendering and action handling |
| | | $page->onLoad(); |
| | | |
| | | ?> |
New file |
| | |
| | | <?php |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | |
| | | // Path to the list definition file |
| | | $list_def_file = 'list/remote_user.list.php'; |
| | | |
| | | // Check the module permissions |
| | | if(!stristr($_SESSION['s']['user']['modules'],'admin')) { |
| | | header('Location: ../index.php'); |
| | | die(); |
| | | } |
| | | |
| | | // Loading the class |
| | | $app->uses('listform_actions'); |
| | | |
| | | // Optional limit |
| | | // $app->listform_actions->SQLExtWhere = 'type = 'alias''; |
| | | |
| | | // Start the form rendering and action ahndling |
| | | $app->listform_actions->onLoad(); |
| | | |
| | | ?> |
New file |
| | |
| | | <h2><tmpl_var name="list_head_txt"></h2> |
| | | <p><tmpl_var name="list_desc_txt"></p> |
| | | |
| | | <div class="panel panel_ftp_user"> |
| | | |
| | | <div class="pnl_formsarea"> |
| | | <fieldset class="inlineLabels"> |
| | | <div class="ctrlHolder"> |
| | | <label for="remote_username">{tmpl_var name='username_txt'}</label> |
| | | <div style="float: left;">{tmpl_var name='username_prefix'} </div> |
| | | <input name="remote_username" id="username" value="{tmpl_var name='remote_username'}" size="30" maxlength="255" type="text" class="textInput" /> |
| | | </div> |
| | | |
| | | <div class="ctrlHolder"> |
| | | <label for="remote_password">{tmpl_var name='password_txt'}</label> |
| | | <input name="remote_password" id="password" value="{tmpl_var name='remote_password'}" size="30" maxlength="255" type="password" class="textInput" onkeyup="pass_check(this.value)" /> |
| | | </div> |
| | | <div class="ctrlHolder"> |
| | | <p class="label">{tmpl_var name='password_strength_txt'}</p> |
| | | <div id="passBar"></div> |
| | | <p class="formHint"><span id="passText"> </span></p> |
| | | </div> |
| | | <div class="ctrlHolder"> |
| | | <p class="label">{tmpl_var name='function_txt'}</p> |
| | | <div class="multiField"> |
| | | {tmpl_var name='remote_functions'} |
| | | </div> |
| | | </div> |
| | | |
| | | </fieldset> |
| | | |
| | | <input type="hidden" name="remote_userid" value="{tmpl_var name='id'}"> |
| | | <input type="hidden" name="id" value="{tmpl_var name='id'}"> |
| | | |
| | | <div class="buttonHolder buttons"> |
| | | <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','admin/remote_user_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> |
| | | <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('admin/remote_user_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
New file |
| | |
| | | <h2><tmpl_var name="list_head_txt"></h2> |
| | | <p><tmpl_var name="list_desc_txt"></p> |
| | | <br> |
| | | <div class="panel panel_list_ftp_user"> |
| | | |
| | | <div class="pnl_toolsarea"> |
| | | |
| | | <div class="buttons"> |
| | | <button class="iconstxt icoAdd" type="button" onClick="loadContent('admin/remote_user_edit.php');"> |
| | | <span>{tmpl_var name="add_new_record_txt"}</span> |
| | | </button> |
| | | </div> |
| | | |
| | | </div> |
| | | <br> |
| | | <div class="pnl_listarea"> |
| | | <fieldset><legend><tmpl_var name="list_head_txt"></legend> |
| | | <table class="list"> |
| | | <thead> |
| | | <tr> |
| | | <th class="tbl_col_remote_userid" scope="col"><tmpl_var name="parent_remote_userid_txt"></th> |
| | | <th class="tbl_col_username" scope="col"><tmpl_var name="username_txt"></th> |
| | | <th class="tbl_col_buttons" scope="col"> </th> |
| | | </tr> |
| | | <tr> |
| | | <td class="tbl_col_remote_userid"></td> |
| | | <td class="tbl_col_username"><input type="text" name="search_username" value="{tmpl_var name='search_username'}" /></td> |
| | | <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','admin/remote_user_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> |
| | | </tr> |
| | | </thead> |
| | | <tbody> |
| | | <tmpl_loop name="records"> |
| | | <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> |
| | | <td class="tbl_col_remote_userid"><a href="#" onClick="loadContent('admin/remote_user_edit.php?id={tmpl_var name='remote_userid'}');">{tmpl_var name="remote_userid"}</a></td> |
| | | <td class="tbl_col_username"><a href="#" onClick="loadContent('admin/remote_user_edit.php?id={tmpl_var name='remote_userid'}');">{tmpl_var name="remote_username"}</a></td> |
| | | <td class="tbl_col_buttons"> |
| | | <div class="buttons icons16"> |
| | | <a class="icons16 icoDelete" href="javascript: del_record('admin/remote_user_del.php?id={tmpl_var name='remote_userid'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> |
| | | </div> |
| | | </td> |
| | | </tr> |
| | | </tmpl_loop> |
| | | </tbody> |
| | | <tfoot> |
| | | <tr> |
| | | <td class="tbl_footer tbl_paging" colspan="5"><tmpl_var name="paging"></td> |
| | | </tr> |
| | | </tfoot> |
| | | </table> |
| | | </fieldset> |
| | | </div> |
| | | |
| | | </div> |
| | | |
New file |
| | |
| | | <?php |
| | | |
| | | $username = 'admin'; |
| | | $password = 'admin'; |
| | | |
| | | $soap_location = 'http://localhost:8080/remote/index.php'; |
| | | $soap_uri = 'http://localhost:8080/remote/'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | | 'uri' => $soap_uri)); |
| | | |
| | | |
| | | try { |
| | | if($session_id = $client->login($username,$password)) { |
| | | echo 'Zalogowany. Sesja:'.$session_id.'<br />'; |
| | | } |
| | | |
| | | $params = array( 'server_id' => 1, |
| | | 'source' => 'stachu@replikant.eu', |
| | | 'destination' => 'arian@replikant.eu', |
| | | 'type' => 'alias', |
| | | 'active' => 'y'); |
| | | |
| | | |
| | | $client_id = 0; |
| | | $domain_id = $client->mail_alias_add($session_id,$client_id,$params,$domain_id); |
| | | |
| | | |
| | | |
| | | if($client->logout($session_id)) { |
| | | echo 'Wylogowany.<br />'; |
| | | } |
| | | |
| | | |
| | | } catch (SoapFault $e) { |
| | | die('SOAP Blad: '.$e->getMessage()); |
| | | } |
| | | |
| | | ?> |
New file |
| | |
| | | <?php |
| | | |
| | | $username = 'admin'; |
| | | $password = 'admin'; |
| | | |
| | | $soap_location = 'http://localhost:8080/remote/index.php'; |
| | | $soap_uri = 'http://localhost:8080/remote/'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | | 'uri' => $soap_uri)); |
| | | |
| | | |
| | | try { |
| | | if($session_id = $client->login($username,$password)) { |
| | | echo 'Zalogowany. Sesja:'.$session_id.'<br />'; |
| | | } |
| | | |
| | | |
| | | $client_id = 0; |
| | | $mailuser_id = 31; |
| | | $domain__id = $client->mail_alias_delete($session_id, $mailuser_id); |
| | | |
| | | |
| | | |
| | | if($client->logout($session_id)) { |
| | | echo 'Wylogowany.<br />'; |
| | | } |
| | | |
| | | |
| | | } catch (SoapFault $e) { |
| | | die('SOAP Blad: '.$e->getMessage()); |
| | | } |
| | | |
| | | ?> |
New file |
| | |
| | | <?php |
| | | |
| | | $username = 'admin'; |
| | | $password = 'admin'; |
| | | |
| | | $soap_location = 'http://localhost:8080/remote/index.php'; |
| | | $soap_uri = 'http://localhost:8080/remote/'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | | 'uri' => $soap_uri)); |
| | | |
| | | |
| | | try { |
| | | if($session_id = $client->login($username,$password)) { |
| | | echo 'Zalogowany. Sesja:'.$session_id.'<br />'; |
| | | } |
| | | |
| | | $params = array( 'server_id' => 1, |
| | | 'source' => 'stachu1234@replikant.eu', |
| | | 'destination' => 'arian@replikant.eu', |
| | | 'type' => 'alias', |
| | | 'active' => 'y'); |
| | | |
| | | |
| | | $client_id = 0; |
| | | $mailuser_id = 31; |
| | | $domain_id = $client->mail_alias_update($session_id, $mailuser_id, $client_id, $params); |
| | | |
| | | |
| | | |
| | | if($client->logout($session_id)) { |
| | | echo 'Wylogowany.<br />'; |
| | | } |
| | | |
| | | |
| | | } catch (SoapFault $e) { |
| | | die('SOAP Blad: '.$e->getMessage()); |
| | | } |
| | | |
| | | ?> |
New file |
| | |
| | | <?php |
| | | |
| | | $username = 'admin'; |
| | | $password = 'admin'; |
| | | |
| | | $soap_location = 'http://localhost:8080/remote/index.php'; |
| | | $soap_uri = 'http://localhost:8080/remote/'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | | 'uri' => $soap_uri)); |
| | | |
| | | |
| | | try { |
| | | if($session_id = $client->login($username,$password)) { |
| | | echo 'Zalogowany. Sesja:'.$session_id.'<br />'; |
| | | } |
| | | |
| | | $params = array( 'server_id' => 1, |
| | | 'wb' => 'b', |
| | | 'rid' => '', |
| | | 'email' => 'ktos@replikant.eu', |
| | | 'priority' => '4', |
| | | 'active' => 'y'); |
| | | |
| | | |
| | | $client_id = 0; |
| | | $domain_id = $client->mail_blacklist_add($session_id,$client_id,$params,$domain_id); |
| | | |
| | | |
| | | |
| | | if($client->logout($session_id)) { |
| | | echo 'Wylogowany.<br />'; |
| | | } |
| | | |
| | | |
| | | } catch (SoapFault $e) { |
| | | die('SOAP Blad: '.$e->getMessage()); |
| | | } |
| | | |
| | | ?> |
New file |
| | |
| | | <?php |
| | | |
| | | $username = 'admin'; |
| | | $password = 'admin'; |
| | | |
| | | $soap_location = 'http://localhost:8080/remote/index.php'; |
| | | $soap_uri = 'http://localhost:8080/remote/'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | | 'uri' => $soap_uri)); |
| | | |
| | | |
| | | try { |
| | | if($session_id = $client->login($username,$password)) { |
| | | echo 'Zalogowany. Sesja:'.$session_id.'<br />'; |
| | | } |
| | | |
| | | |
| | | $client_id = 0; |
| | | $mailuser_id = 3; |
| | | $domain__id = $client->mail_blacklist_delete($session_id, $mailuser_id); |
| | | |
| | | |
| | | |
| | | if($client->logout($session_id)) { |
| | | echo 'Wylogowany.<br />'; |
| | | } |
| | | |
| | | |
| | | } catch (SoapFault $e) { |
| | | die('SOAP Blad: '.$e->getMessage()); |
| | | } |
| | | |
| | | ?> |
New file |
| | |
| | | <?php |
| | | |
| | | $username = 'admin'; |
| | | $password = 'admin'; |
| | | |
| | | $soap_location = 'http://localhost:8080/remote/index.php'; |
| | | $soap_uri = 'http://localhost:8080/remote/'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | | 'uri' => $soap_uri)); |
| | | |
| | | |
| | | try { |
| | | if($session_id = $client->login($username,$password)) { |
| | | echo 'Zalogowany. Sesja:'.$session_id.'<br />'; |
| | | } |
| | | |
| | | $params = array( 'server_id' => 1, |
| | | 'wb' => 'b', |
| | | 'rid' => '', |
| | | 'email' => 'ktos@replikant.eu', |
| | | 'priority' => '10', |
| | | 'active' => 'n'); |
| | | |
| | | |
| | | |
| | | $client_id = 0; |
| | | $mailuser_id = 3; |
| | | $domain_id = $client->mail_blacklist_update($session_id, $mailuser_id, $client_id, $params); |
| | | |
| | | |
| | | |
| | | if($client->logout($session_id)) { |
| | | echo 'Wylogowany.<br />'; |
| | | } |
| | | |
| | | |
| | | } catch (SoapFault $e) { |
| | | die('SOAP Blad: '.$e->getMessage()); |
| | | } |
| | | |
| | | ?> |
New file |
| | |
| | | <?php |
| | | |
| | | $username = 'admin'; |
| | | $password = 'admin'; |
| | | |
| | | $soap_location = 'http://localhost:8080/remote/index.php'; |
| | | $soap_uri = 'http://localhost:8080/remote/'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | | 'uri' => $soap_uri)); |
| | | |
| | | |
| | | try { |
| | | if($session_id = $client->login($username,$password)) { |
| | | echo 'Zalogowany. Sesja:'.$session_id.'<br />'; |
| | | } |
| | | |
| | | $params = array( 'server_id' => 1, |
| | | 'source' => '@replikant.eu', |
| | | 'destination' => 'arian@replikant.eu', |
| | | 'type' => 'catchall', |
| | | 'active' => 'y'); |
| | | |
| | | |
| | | $client_id = 0; |
| | | $domain_id = $client->mail_catchall_add($session_id,$client_id,$params,$domain_id); |
| | | |
| | | |
| | | |
| | | if($client->logout($session_id)) { |
| | | echo 'Wylogowany.<br />'; |
| | | } |
| | | |
| | | |
| | | } catch (SoapFault $e) { |
| | | die('SOAP Blad: '.$e->getMessage()); |
| | | } |
| | | |
| | | ?> |
New file |
| | |
| | | <?php |
| | | |
| | | $username = 'admin'; |
| | | $password = 'admin'; |
| | | |
| | | $soap_location = 'http://localhost:8080/remote/index.php'; |
| | | $soap_uri = 'http://localhost:8080/remote/'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | | 'uri' => $soap_uri)); |
| | | |
| | | |
| | | try { |
| | | if($session_id = $client->login($username,$password)) { |
| | | echo 'Zalogowany. Sesja:'.$session_id.'<br />'; |
| | | } |
| | | |
| | | |
| | | $client_id = 0; |
| | | $mailuser_id = 33; |
| | | $domain__id = $client->mail_catchall_delete($session_id, $mailuser_id); |
| | | |
| | | |
| | | |
| | | if($client->logout($session_id)) { |
| | | echo 'Wylogowany.<br />'; |
| | | } |
| | | |
| | | |
| | | } catch (SoapFault $e) { |
| | | die('SOAP Blad: '.$e->getMessage()); |
| | | } |
| | | |
| | | ?> |
New file |
| | |
| | | <?php |
| | | |
| | | $username = 'admin'; |
| | | $password = 'admin'; |
| | | |
| | | $soap_location = 'http://localhost:8080/remote/index.php'; |
| | | $soap_uri = 'http://localhost:8080/remote/'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | | 'uri' => $soap_uri)); |
| | | |
| | | |
| | | try { |
| | | if($session_id = $client->login($username,$password)) { |
| | | echo 'Zalogowany. Sesja:'.$session_id.'<br />'; |
| | | } |
| | | |
| | | $params = array( 'server_id' => 1, |
| | | 'source' => '@replikant.eu', |
| | | 'destination' => 'arian@replikant.eu', |
| | | 'type' => 'catchall', |
| | | 'active' => 'y'); |
| | | |
| | | |
| | | $client_id = 0; |
| | | $mailuser_id = 33; |
| | | $domain_id = $client->mail_catchall_update($session_id, $mailuser_id, $client_id, $params); |
| | | |
| | | |
| | | |
| | | if($client->logout($session_id)) { |
| | | echo 'Wylogowany.<br />'; |
| | | } |
| | | |
| | | |
| | | } catch (SoapFault $e) { |
| | | die('SOAP Blad: '.$e->getMessage()); |
| | | } |
| | | |
| | | ?> |
New file |
| | |
| | | <?php |
| | | |
| | | $username = 'admin'; |
| | | $password = 'admin'; |
| | | |
| | | $soap_location = 'http://localhost:8080/remote/index.php'; |
| | | $soap_uri = 'http://localhost:8080/remote/'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | | 'uri' => $soap_uri)); |
| | | |
| | | |
| | | try { |
| | | if($session_id = $client->login($username,$password)) { |
| | | echo 'Zalogowany. Sesja:'.$session_id.'<br />'; |
| | | } |
| | | |
| | | $params = array( 'server_id' => 1, |
| | | 'type' => 'pop3', |
| | | 'source_server' => 'replikant.eu', |
| | | 'source_username' => 'alias', |
| | | 'source_password' => 'qazxsw', |
| | | 'source_delete' => 'y', |
| | | 'destination' => 'ktos@replikant.eu', |
| | | 'active' => 'y'); |
| | | |
| | | |
| | | $client_id = 0; |
| | | $domain_id = $client->mail_fetchmail_add($session_id,$client_id,$params,$domain_id); |
| | | |
| | | |
| | | |
| | | if($client->logout($session_id)) { |
| | | echo 'Wylogowany.<br />'; |
| | | } |
| | | |
| | | |
| | | } catch (SoapFault $e) { |
| | | die('SOAP Blad: '.$e->getMessage()); |
| | | } |
| | | |
| | | ?> |
New file |
| | |
| | | <?php |
| | | |
| | | $username = 'admin'; |
| | | $password = 'admin'; |
| | | |
| | | $soap_location = 'http://localhost:8080/remote/index.php'; |
| | | $soap_uri = 'http://localhost:8080/remote/'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | | 'uri' => $soap_uri)); |
| | | |
| | | |
| | | try { |
| | | if($session_id = $client->login($username,$password)) { |
| | | echo 'Zalogowany. Sesja:'.$session_id.'<br />'; |
| | | } |
| | | |
| | | |
| | | $client_id = 0; |
| | | $mailuser_id = 1; |
| | | $domain__id = $client->mail_fetchmail_delete($session_id, $mailuser_id); |
| | | |
| | | |
| | | |
| | | if($client->logout($session_id)) { |
| | | echo 'Wylogowany.<br />'; |
| | | } |
| | | |
| | | |
| | | } catch (SoapFault $e) { |
| | | die('SOAP Blad: '.$e->getMessage()); |
| | | } |
| | | |
| | | ?> |
New file |
| | |
| | | <?php |
| | | |
| | | $username = 'admin'; |
| | | $password = 'admin'; |
| | | |
| | | $soap_location = 'http://localhost:8080/remote/index.php'; |
| | | $soap_uri = 'http://localhost:8080/remote/'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | | 'uri' => $soap_uri)); |
| | | |
| | | |
| | | try { |
| | | if($session_id = $client->login($username,$password)) { |
| | | echo 'Zalogowany. Sesja:'.$session_id.'<br />'; |
| | | } |
| | | |
| | | $params = array( 'server_id' => 1, |
| | | 'type' => 'pop3', |
| | | 'source_server' => 'replikant.eu', |
| | | 'source_username' => 'alias', |
| | | 'source_password' => 'qazxsw', |
| | | 'source_delete' => 'y', |
| | | 'destination' => 'ktos2@replikant.eu', |
| | | 'active' => 'y'); |
| | | |
| | | |
| | | |
| | | $client_id = 0; |
| | | $mailuser_id = 1; |
| | | $domain_id = $client->mail_fetchmail_update($session_id, $mailuser_id, $client_id, $params); |
| | | |
| | | |
| | | |
| | | if($client->logout($session_id)) { |
| | | echo 'Wylogowany.<br />'; |
| | | } |
| | | |
| | | |
| | | } catch (SoapFault $e) { |
| | | die('SOAP Blad: '.$e->getMessage()); |
| | | } |
| | | |
| | | ?> |
New file |
| | |
| | | <?php |
| | | |
| | | $username = 'admin'; |
| | | $password = 'admin'; |
| | | |
| | | $soap_location = 'http://localhost:8080/remote/index.php'; |
| | | $soap_uri = 'http://localhost:8080/remote/'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | | 'uri' => $soap_uri)); |
| | | |
| | | |
| | | try { |
| | | if($session_id = $client->login($username,$password)) { |
| | | echo 'Zalogowany. Sesja:'.$session_id.'<br />'; |
| | | } |
| | | |
| | | $params = array( 'server_id' => 1, |
| | | 'type' => 'header', |
| | | 'pattern' => 'wzor@replikant.eu', |
| | | 'data' => 'jakas data', |
| | | 'action' => 'DISCARD', |
| | | 'active' => 'y'); |
| | | |
| | | |
| | | $client_id = 0; |
| | | $domain_id = $client->mail_filtr_add($session_id,$client_id,$params,$domain_id); |
| | | |
| | | |
| | | |
| | | if($client->logout($session_id)) { |
| | | echo 'Wylogowany.<br />'; |
| | | } |
| | | |
| | | |
| | | } catch (SoapFault $e) { |
| | | die('SOAP Blad: '.$e->getMessage()); |
| | | } |
| | | |
| | | ?> |
New file |
| | |
| | | <?php |
| | | |
| | | $username = 'admin'; |
| | | $password = 'admin'; |
| | | |
| | | $soap_location = 'http://localhost:8080/remote/index.php'; |
| | | $soap_uri = 'http://localhost:8080/remote/'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | | 'uri' => $soap_uri)); |
| | | |
| | | |
| | | try { |
| | | if($session_id = $client->login($username,$password)) { |
| | | echo 'Zalogowany. Sesja:'.$session_id.'<br />'; |
| | | } |
| | | |
| | | |
| | | $client_id = 0; |
| | | $mailuser_id = 1; |
| | | $domain__id = $client->mail_filtr_delete($session_id, $mailuser_id); |
| | | |
| | | |
| | | |
| | | if($client->logout($session_id)) { |
| | | echo 'Wylogowany.<br />'; |
| | | } |
| | | |
| | | |
| | | } catch (SoapFault $e) { |
| | | die('SOAP Blad: '.$e->getMessage()); |
| | | } |
| | | |
| | | ?> |
New file |
| | |
| | | <?php |
| | | |
| | | $username = 'admin'; |
| | | $password = 'admin'; |
| | | |
| | | $soap_location = 'http://localhost:8080/remote/index.php'; |
| | | $soap_uri = 'http://localhost:8080/remote/'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | | 'uri' => $soap_uri)); |
| | | |
| | | |
| | | try { |
| | | if($session_id = $client->login($username,$password)) { |
| | | echo 'Zalogowany. Sesja:'.$session_id.'<br />'; |
| | | } |
| | | |
| | | $params = array( 'server_id' => 1, |
| | | 'type' => 'header', |
| | | 'pattern' => 'wzor1@replikant.eu', |
| | | 'data' => 'data', |
| | | 'action' => 'DUNNO', |
| | | 'active' => 'y'); |
| | | |
| | | |
| | | $client_id = 0; |
| | | $mailuser_id = 1; |
| | | $domain_id = $client->mail_filtr_update($session_id, $mailuser_id, $client_id, $params); |
| | | |
| | | |
| | | |
| | | if($client->logout($session_id)) { |
| | | echo 'Wylogowany.<br />'; |
| | | } |
| | | |
| | | |
| | | } catch (SoapFault $e) { |
| | | die('SOAP Blad: '.$e->getMessage()); |
| | | } |
| | | |
| | | ?> |
New file |
| | |
| | | <?php |
| | | |
| | | $username = 'admin'; |
| | | $password = 'admin'; |
| | | |
| | | $soap_location = 'http://localhost:8080/remote/index.php'; |
| | | $soap_uri = 'http://localhost:8080/remote/'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | | 'uri' => $soap_uri)); |
| | | |
| | | |
| | | try { |
| | | if($session_id = $client->login($username,$password)) { |
| | | echo 'Zalogowany. Sesja:'.$session_id.'<br />'; |
| | | } |
| | | |
| | | $params = array( 'server_id' => 1, |
| | | 'source' => 'stachu@replikant.eu', |
| | | 'destination' => 'arian@replikant.eu', |
| | | 'type' => 'forward', |
| | | 'active' => 'y'); |
| | | |
| | | |
| | | $client_id = 0; |
| | | $domain_id = $client->mail_forward_add($session_id,$client_id,$params,$domain_id); |
| | | |
| | | |
| | | |
| | | if($client->logout($session_id)) { |
| | | echo 'Wylogowany.<br />'; |
| | | } |
| | | |
| | | |
| | | } catch (SoapFault $e) { |
| | | die('SOAP Blad: '.$e->getMessage()); |
| | | } |
| | | |
| | | ?> |
New file |
| | |
| | | <?php |
| | | |
| | | $username = 'admin'; |
| | | $password = 'admin'; |
| | | |
| | | $soap_location = 'http://localhost:8080/remote/index.php'; |
| | | $soap_uri = 'http://localhost:8080/remote/'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | | 'uri' => $soap_uri)); |
| | | |
| | | |
| | | try { |
| | | if($session_id = $client->login($username,$password)) { |
| | | echo 'Zalogowany. Sesja:'.$session_id.'<br />'; |
| | | } |
| | | |
| | | |
| | | $client_id = 0; |
| | | $mailuser_id = 32; |
| | | $domain__id = $client->mail_forward_delete($session_id, $mailuser_id); |
| | | |
| | | |
| | | |
| | | if($client->logout($session_id)) { |
| | | echo 'Wylogowany.<br />'; |
| | | } |
| | | |
| | | |
| | | } catch (SoapFault $e) { |
| | | die('SOAP Blad: '.$e->getMessage()); |
| | | } |
| | | |
| | | ?> |
New file |
| | |
| | | <?php |
| | | |
| | | $username = 'admin'; |
| | | $password = 'admin'; |
| | | |
| | | $soap_location = 'http://localhost:8080/remote/index.php'; |
| | | $soap_uri = 'http://localhost:8080/remote/'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | | 'uri' => $soap_uri)); |
| | | |
| | | |
| | | try { |
| | | if($session_id = $client->login($username,$password)) { |
| | | echo 'Zalogowany. Sesja:'.$session_id.'<br />'; |
| | | } |
| | | |
| | | $params = array( 'server_id' => 1, |
| | | 'source' => 'stachu124@replikant.eu', |
| | | 'destination' => 'arian@replikant.eu', |
| | | 'type' => 'forward', |
| | | 'active' => 'y'); |
| | | |
| | | |
| | | $client_id = 0; |
| | | $mailuser_id = 32; |
| | | $domain_id = $client->mail_forward_update($session_id, $mailuser_id, $client_id, $params); |
| | | |
| | | |
| | | |
| | | if($client->logout($session_id)) { |
| | | echo 'Wylogowany.<br />'; |
| | | } |
| | | |
| | | |
| | | } catch (SoapFault $e) { |
| | | die('SOAP Blad: '.$e->getMessage()); |
| | | } |
| | | |
| | | ?> |
New file |
| | |
| | | <?php |
| | | |
| | | $username = 'axelf'; |
| | | $password = 'axelf'; |
| | | |
| | | $soap_location = 'http://localhost:8080/remote/index.php'; |
| | | $soap_uri = 'http://localhost:8080/remote/'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | | 'uri' => $soap_uri)); |
| | | |
| | | |
| | | try { |
| | | if($session_id = $client->login($username,$password)) { |
| | | echo 'Zalogowany. Sesja:'.$session_id.'<br />'; |
| | | } |
| | | |
| | | $params = array( 'server_id' => 1, |
| | | |
| | | 'company_name' => 'abm', |
| | | 'contact_name' => 'artur', |
| | | 'username' =>'artek123', |
| | | 'password' =>'artek123', |
| | | 'language' =>'pl', |
| | | 'usertheme' =>'default', |
| | | 'street' =>'dobrzanskiego', |
| | | 'zip' =>'05-071', |
| | | 'city' =>'sulejowek', |
| | | 'state' =>'non-US', |
| | | 'country' =>'PL', |
| | | 'telephone' =>'', |
| | | 'mobile' =>'', |
| | | 'fax' =>'', |
| | | 'email' =>'', |
| | | 'internet' =>'', |
| | | 'icq' =>'', |
| | | 'notes' =>'', |
| | | 'template_master' => '1', |
| | | 'template_additional' =>'', |
| | | 'default_mailserver' =>'1', |
| | | 'limit_maildomain' =>'1', |
| | | 'limit_mailbox' =>'-1', |
| | | 'limit_mailalias' =>'-1', |
| | | 'limit_mailforward' =>'-1', |
| | | 'limit_mailcatchall' =>'-1', |
| | | 'limit_mailrouting' => '-1', |
| | | 'limit_mailfilter' =>'-1', |
| | | 'limit_fetchmail' =>'-1', |
| | | 'limit_mailquota' =>'-1', |
| | | 'limit_spamfilter_wblist' =>'-1', |
| | | 'limit_spamfilter_user' =>'-1', |
| | | 'limit_spamfilter_policy' =>'-1', |
| | | 'default_webserver' =>'1', |
| | | 'limit_web_domain' =>'-1', |
| | | 'web_php_options' =>"SuPHP", |
| | | 'limit_web_aliasdomain' =>'-1', |
| | | 'limit_web_subdomain' =>'-1', |
| | | 'limit_ftp_user' =>'-1', |
| | | 'limit_shell_user' =>'-1', |
| | | 'ssh_chroot' =>'None', |
| | | 'default_dnsserver' =>'1', |
| | | 'limit_dns_zone' =>'-1', |
| | | 'limit_dns_record' =>'-1', |
| | | 'limit_client' =>'0', |
| | | 'default_dbserver' =>'1', |
| | | 'limit_database' =>'-1', |
| | | 'limit_cron' =>'0', |
| | | 'limit_cron_type' =>'', |
| | | 'limit_cron_frequency' =>'-1'); |
| | | |
| | | |
| | | $client_id = 0; |
| | | $domain_id = $client->klient_add($session_id,$domain_id, $params); |
| | | |
| | | |
| | | |
| | | if($client->logout($session_id)) { |
| | | echo 'Wylogowany.<br />'; |
| | | } |
| | | |
| | | } |
| | | catch (SoapFault $e) { |
| | | die('SOAP Blad: '.$e->getMessage()); |
| | | } |
| | | |
| | | ?> |
| | | |
New file |
| | |
| | | <?php |
| | | |
| | | $username = 'admin'; |
| | | $password = 'admin'; |
| | | |
| | | $soap_location = 'http://82.177.45.46:8080/remote/index.php'; |
| | | $soap_uri = 'http://82.177.45.46:8080/remote/'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | | 'uri' => $soap_uri)); |
| | | |
| | | |
| | | try { |
| | | if($session_id = $client->login($username,$password)) { |
| | | echo 'Zalogowany. Sesja:'.$session_id.'<br />'; |
| | | } |
| | | |
| | | $params = array( 'server_id' => 1, |
| | | 'email' => 'franek@dsad.dsa', |
| | | 'password' => 'franek', |
| | | 'quota' => '10', |
| | | 'maildir' => '/var/vmail/dsad.dsa/franek', |
| | | 'homedir' => '/var/vmail', 'uid' => '5000', |
| | | 'gid' => '5000', |
| | | 'postfix' => 'y', |
| | | 'disableimap' => '0', |
| | | 'disablepop3' => '0'); |
| | | |
| | | |
| | | $client_id = 0; |
| | | $domain_id = $client->mail_user_add($session_id,$client_id, $params); |
| | | |
| | | |
| | | |
| | | if($client->logout($session_id)) { |
| | | echo 'Wylogowany.<br />'; |
| | | } |
| | | |
| | | |
| | | } catch (SoapFault $e) { |
| | | die('SOAP Blad: '.$e->getMessage()); |
| | | } |
| | | |
| | | ?> |
New file |
| | |
| | | <?php |
| | | |
| | | $username = 'admin'; |
| | | $password = 'admin'; |
| | | |
| | | $soap_location = 'http://localhost:8080/remote/index.php'; |
| | | $soap_uri = 'http://localhost:8080/remote/'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | | 'uri' => $soap_uri)); |
| | | |
| | | |
| | | try { |
| | | if($session_id = $client->login($username,$password)) { |
| | | echo 'Zalogowany. Sesja:'.$session_id.'<br />'; |
| | | } |
| | | |
| | | |
| | | $client_id = 0; |
| | | $mailuser_id = 4; |
| | | $domain__id = $client->mail_user_delete($session_id, $mailuser_id); |
| | | |
| | | |
| | | |
| | | if($client->logout($session_id)) { |
| | | echo 'Wylogowany.<br />'; |
| | | } |
| | | |
| | | |
| | | } catch (SoapFault $e) { |
| | | die('SOAP Blad: '.$e->getMessage()); |
| | | } |
| | | |
| | | ?> |
New file |
| | |
| | | <?php |
| | | |
| | | $username = 'admin'; |
| | | $password = 'admin'; |
| | | |
| | | $soap_location = 'http://localhost:8080/remote/index.php'; |
| | | $soap_uri = 'http://localhost:8080/remote/'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | | 'uri' => $soap_uri)); |
| | | |
| | | |
| | | try { |
| | | if($session_id = $client->login($username,$password)) { |
| | | echo 'Zalogowany. Sesja:'.$session_id.'<br />'; |
| | | } |
| | | |
| | | $params = array( 'server_id' => 1, |
| | | 'email' => 'franek'.date("Hmi").'@dsad.dsa', |
| | | 'password' => 'franek', |
| | | 'quota' => '10', |
| | | 'maildir' => '/var/vmail/dsad.dsa/franek', |
| | | 'homedir' => '/var/vmail', 'uid' => '5000', |
| | | 'gid' => '5000', |
| | | 'postfix' => 'y', |
| | | 'disableimap' => '0', |
| | | 'disablepop3' => '0'); |
| | | |
| | | |
| | | $client_id = 0; |
| | | $mailuser_id = 3; |
| | | $domain__id = $client->mail_user_update($session_id, $client_id, $mailuser_id , $params); |
| | | |
| | | |
| | | |
| | | if($client->logout($session_id)) { |
| | | echo 'Wylogowany.<br />'; |
| | | } |
| | | |
| | | |
| | | } catch (SoapFault $e) { |
| | | die('SOAP Blad: '.$e->getMessage()); |
| | | } |
| | | |
| | | ?> |
New file |
| | |
| | | <?php |
| | | |
| | | $username = 'admin'; |
| | | $password = 'admin'; |
| | | |
| | | $soap_location = 'http://localhost:8080/remote/index.php'; |
| | | $soap_uri = 'http://localhost:8080/remote/'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | | 'uri' => $soap_uri)); |
| | | |
| | | |
| | | try { |
| | | if($session_id = $client->login($username,$password)) { |
| | | echo 'Zalogowany. Sesja:'.$session_id.'<br />'; |
| | | } |
| | | |
| | | $params = array( 'policy_name' => 'nazwa_polityki', |
| | | 'virus_lover' => 'n', |
| | | 'spam_lover' => 'y', |
| | | 'banned_files_lover' => 'n', |
| | | 'bad_header_lover' => 'y', |
| | | 'bypass_virus_checks' => 'n', |
| | | 'bypass_banned_checks' => 'y', |
| | | 'bypass_header_checks' => 'n'); |
| | | |
| | | |
| | | $client_id = 0; |
| | | $domain_id = $client->mail_policy_add($session_id,$client_id,$params,$domain_id); |
| | | |
| | | |
| | | |
| | | if($client->logout($session_id)) { |
| | | echo 'Wylogowany.<br />'; |
| | | } |
| | | |
| | | |
| | | } catch (SoapFault $e) { |
| | | die('SOAP Blad: '.$e->getMessage()); |
| | | } |
| | | |
| | | ?> |
New file |
| | |
| | | <?php |
| | | |
| | | $username = 'admin'; |
| | | $password = 'admin'; |
| | | |
| | | $soap_location = 'http://localhost:8080/remote/index.php'; |
| | | $soap_uri = 'http://localhost:8080/remote/'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | | 'uri' => $soap_uri)); |
| | | |
| | | |
| | | try { |
| | | if($session_id = $client->login($username,$password)) { |
| | | echo 'Zalogowany. Sesja:'.$session_id.'<br />'; |
| | | } |
| | | |
| | | |
| | | $client_id = 0; |
| | | $mailuser_id = 10; |
| | | $domain__id = $client->mail_policy_delete($session_id, $mailuser_id); |
| | | |
| | | |
| | | |
| | | if($client->logout($session_id)) { |
| | | echo 'Wylogowany.<br />'; |
| | | } |
| | | |
| | | |
| | | } catch (SoapFault $e) { |
| | | die('SOAP Blad: '.$e->getMessage()); |
| | | } |
| | | |
| | | ?> |
New file |
| | |
| | | <?php |
| | | |
| | | $username = 'admin'; |
| | | $password = 'admin'; |
| | | |
| | | $soap_location = 'http://localhost:8080/remote/index.php'; |
| | | $soap_uri = 'http://localhost:8080/remote/'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | | 'uri' => $soap_uri)); |
| | | |
| | | |
| | | try { |
| | | if($session_id = $client->login($username,$password)) { |
| | | echo 'Zalogowany. Sesja:'.$session_id.'<br />'; |
| | | } |
| | | |
| | | $params = array( 'policy_name' => 'nazwa', |
| | | 'virus_lover' => 'n', |
| | | 'spam_lover' => 'y', |
| | | 'banned_files_lover' => 'n', |
| | | 'bad_header_lover' => 'y', |
| | | 'bypass_virus_checks' => 'n', |
| | | 'bypass_banned_checks' => 'y', |
| | | 'bypass_header_checks' => 'n'); |
| | | |
| | | |
| | | |
| | | $client_id = 0; |
| | | $mailuser_id = 10; |
| | | $domain_id = $client->mail_policy_update($session_id, $mailuser_id, $client_id, $params); |
| | | |
| | | |
| | | |
| | | if($client->logout($session_id)) { |
| | | echo 'Wylogowany.<br />'; |
| | | } |
| | | |
| | | |
| | | } catch (SoapFault $e) { |
| | | die('SOAP Blad: '.$e->getMessage()); |
| | | } |
| | | |
| | | ?> |
New file |
| | |
| | | <?php |
| | | |
| | | $username = 'admin'; |
| | | $password = 'admin'; |
| | | |
| | | $soap_location = 'http://localhost:8080/remote/index.php'; |
| | | $soap_uri = 'http://localhost:8080/remote/'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | | 'uri' => $soap_uri)); |
| | | |
| | | |
| | | try { |
| | | if($session_id = $client->login($username,$password)) { |
| | | echo 'Zalogowany. Sesja:'.$session_id.'<br />'; |
| | | } |
| | | |
| | | $params = array( 'server_id' => 1, |
| | | 'domain' => 'replikant', |
| | | 'transport' => 'arian@replikant.eu', |
| | | 'sort_order' => '1', |
| | | 'active' => 'y'); |
| | | |
| | | |
| | | $client_id = 0; |
| | | $domain_id = $client->mail_transport_add($session_id,$client_id,$params,$domain_id); |
| | | |
| | | |
| | | |
| | | if($client->logout($session_id)) { |
| | | echo 'Wylogowany.<br />'; |
| | | } |
| | | |
| | | |
| | | } catch (SoapFault $e) { |
| | | die('SOAP Blad: '.$e->getMessage()); |
| | | } |
| | | |
| | | ?> |
New file |
| | |
| | | <?php |
| | | |
| | | $username = 'admin'; |
| | | $password = 'admin'; |
| | | |
| | | $soap_location = 'http://localhost:8080/remote/index.php'; |
| | | $soap_uri = 'http://localhost:8080/remote/'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | | 'uri' => $soap_uri)); |
| | | |
| | | |
| | | try { |
| | | if($session_id = $client->login($username,$password)) { |
| | | echo 'Zalogowany. Sesja:'.$session_id.'<br />'; |
| | | } |
| | | |
| | | |
| | | $client_id = 0; |
| | | $mailuser_id = 1; |
| | | $domain__id = $client->mail_transport_delete($session_id, $mailuser_id); |
| | | |
| | | |
| | | |
| | | if($client->logout($session_id)) { |
| | | echo 'Wylogowany.<br />'; |
| | | } |
| | | |
| | | |
| | | } catch (SoapFault $e) { |
| | | die('SOAP Blad: '.$e->getMessage()); |
| | | } |
| | | |
| | | ?> |
New file |
| | |
| | | <?php |
| | | |
| | | $username = 'admin'; |
| | | $password = 'admin'; |
| | | |
| | | $soap_location = 'http://localhost:8080/remote/index.php'; |
| | | $soap_uri = 'http://localhost:8080/remote/'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | | 'uri' => $soap_uri)); |
| | | |
| | | |
| | | try { |
| | | if($session_id = $client->login($username,$password)) { |
| | | echo 'Zalogowany. Sesja:'.$session_id.'<br />'; |
| | | } |
| | | |
| | | |
| | | //transport -> typ:[adres@email] - jeśli z klamrą to włączona opcja brak mx |
| | | |
| | | $params = array( 'server_id' => 1, |
| | | 'domain' => 'replikant.eu', |
| | | 'transport' => 'uucp:[arian@replikant.eu]', |
| | | 'sort_order' => '5', |
| | | 'active' => 'y'); |
| | | |
| | | |
| | | $client_id = 0; |
| | | $mailuser_id = 1; |
| | | $domain_id = $client->mail_transport_update($session_id, $mailuser_id, $client_id, $params); |
| | | |
| | | |
| | | |
| | | if($client->logout($session_id)) { |
| | | echo 'Wylogowany.<br />'; |
| | | } |
| | | |
| | | |
| | | } catch (SoapFault $e) { |
| | | die('SOAP Blad: '.$e->getMessage()); |
| | | } |
| | | |
| | | ?> |
New file |
| | |
| | | <?php |
| | | |
| | | $username = 'admin'; |
| | | $password = 'admin'; |
| | | |
| | | $soap_location = 'http://localhost:8080/remote/index.php'; |
| | | $soap_uri = 'http://localhost:8080/remote/'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | | 'uri' => $soap_uri)); |
| | | |
| | | |
| | | try { |
| | | if($session_id = $client->login($username,$password)) { |
| | | echo 'Zalogowany. Sesja:'.$session_id.'<br />'; |
| | | } |
| | | |
| | | $params = array( 'server_id' => 1, |
| | | 'priority' => '2', |
| | | 'policy_id' => '4', |
| | | 'email' => 'ktos@replikant.eu', |
| | | 'fullname' => 'stachu pardala', |
| | | 'local' => ''); |
| | | |
| | | |
| | | $client_id = 0; |
| | | $domain_id = $client->mail_users_spamfilter_add($session_id,$client_id,$params,$domain_id); |
| | | |
| | | |
| | | |
| | | if($client->logout($session_id)) { |
| | | echo 'Wylogowany.<br />'; |
| | | } |
| | | |
| | | |
| | | } catch (SoapFault $e) { |
| | | die('SOAP Blad: '.$e->getMessage()); |
| | | } |
| | | |
| | | ?> |
New file |
| | |
| | | <?php |
| | | |
| | | $username = 'admin'; |
| | | $password = 'admin'; |
| | | |
| | | $soap_location = 'http://localhost:8080/remote/index.php'; |
| | | $soap_uri = 'http://localhost:8080/remote/'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | | 'uri' => $soap_uri)); |
| | | |
| | | |
| | | try { |
| | | if($session_id = $client->login($username,$password)) { |
| | | echo 'Zalogowany. Sesja:'.$session_id.'<br />'; |
| | | } |
| | | |
| | | |
| | | $client_id = 0; |
| | | $mailuser_id = 1; |
| | | $domain__id = $client->mail_users_spamfilter_delete($session_id, $mailuser_id); |
| | | |
| | | |
| | | |
| | | if($client->logout($session_id)) { |
| | | echo 'Wylogowany.<br />'; |
| | | } |
| | | |
| | | |
| | | } catch (SoapFault $e) { |
| | | die('SOAP Blad: '.$e->getMessage()); |
| | | } |
| | | |
| | | ?> |
New file |
| | |
| | | <?php |
| | | |
| | | $username = 'admin'; |
| | | $password = 'admin'; |
| | | |
| | | $soap_location = 'http://localhost:8080/remote/index.php'; |
| | | $soap_uri = 'http://localhost:8080/remote/'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | | 'uri' => $soap_uri)); |
| | | |
| | | |
| | | try { |
| | | if($session_id = $client->login($username,$password)) { |
| | | echo 'Zalogowany. Sesja:'.$session_id.'<br />'; |
| | | } |
| | | |
| | | $params = array( 'server_id' => 1, |
| | | 'priority' => '2', |
| | | 'policy_id' => '4', |
| | | 'email' => 'ktos@replikant.eu', |
| | | 'fullname' => 'stachu jarzyna', |
| | | 'local' => ''); |
| | | |
| | | |
| | | |
| | | $client_id = 0; |
| | | $mailuser_id = 1; |
| | | $domain_id = $client->mail_users_spamfilter_update($session_id, $mailuser_id, $client_id, $params); |
| | | |
| | | |
| | | |
| | | if($client->logout($session_id)) { |
| | | echo 'Wylogowany.<br />'; |
| | | } |
| | | |
| | | |
| | | } catch (SoapFault $e) { |
| | | die('SOAP Blad: '.$e->getMessage()); |
| | | } |
| | | |
| | | ?> |
New file |
| | |
| | | <?php |
| | | |
| | | $username = 'admin'; |
| | | $password = 'admin'; |
| | | |
| | | $soap_location = 'http://localhost:8080/remote/index.php'; |
| | | $soap_uri = 'http://localhost:8080/remote/'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | | 'uri' => $soap_uri)); |
| | | |
| | | |
| | | try { |
| | | if($session_id = $client->login($username,$password)) { |
| | | echo 'Zalogowany. Sesja:'.$session_id.'<br />'; |
| | | } |
| | | |
| | | $params = array( 'server_id' => 1, |
| | | 'wb' => 'w', |
| | | 'rid' => '', |
| | | 'email' => 'ktos@replikant.eu', |
| | | 'priority' => '4', |
| | | 'active' => 'y'); |
| | | |
| | | |
| | | $client_id = 0; |
| | | $domain_id = $client->mail_whitelist_add($session_id,$client_id,$params,$domain_id); |
| | | |
| | | |
| | | |
| | | if($client->logout($session_id)) { |
| | | echo 'Wylogowany.<br />'; |
| | | } |
| | | |
| | | |
| | | } catch (SoapFault $e) { |
| | | die('SOAP Blad: '.$e->getMessage()); |
| | | } |
| | | |
| | | ?> |
New file |
| | |
| | | <?php |
| | | |
| | | $username = 'admin'; |
| | | $password = 'admin'; |
| | | |
| | | $soap_location = 'http://localhost:8080/remote/index.php'; |
| | | $soap_uri = 'http://localhost:8080/remote/'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | | 'uri' => $soap_uri)); |
| | | |
| | | |
| | | try { |
| | | if($session_id = $client->login($username,$password)) { |
| | | echo 'Zalogowany. Sesja:'.$session_id.'<br />'; |
| | | } |
| | | |
| | | |
| | | $client_id = 0; |
| | | $mailuser_id = 2; |
| | | $domain__id = $client->mail_whitelist_delete($session_id, $mailuser_id); |
| | | |
| | | |
| | | |
| | | if($client->logout($session_id)) { |
| | | echo 'Wylogowany.<br />'; |
| | | } |
| | | |
| | | |
| | | } catch (SoapFault $e) { |
| | | die('SOAP Blad: '.$e->getMessage()); |
| | | } |
| | | |
| | | ?> |
New file |
| | |
| | | <?php |
| | | |
| | | $username = 'admin'; |
| | | $password = 'admin'; |
| | | |
| | | $soap_location = 'http://localhost:8080/remote/index.php'; |
| | | $soap_uri = 'http://localhost:8080/remote/'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | | 'uri' => $soap_uri)); |
| | | |
| | | |
| | | try { |
| | | if($session_id = $client->login($username,$password)) { |
| | | echo 'Zalogowany. Sesja:'.$session_id.'<br />'; |
| | | } |
| | | |
| | | $params = array( 'server_id' => 1, |
| | | 'wb' => 'w', |
| | | 'rid' => '', |
| | | 'email' => 'ktos@replikant.eu', |
| | | 'priority' => '10', |
| | | 'active' => 'y'); |
| | | |
| | | |
| | | |
| | | $client_id = 0; |
| | | $mailuser_id = 2; |
| | | $domain_id = $client->mail_whitelist_update($session_id, $mailuser_id, $client_id, $params); |
| | | |
| | | |
| | | |
| | | if($client->logout($session_id)) { |
| | | echo 'Wylogowany.<br />'; |
| | | } |
| | | |
| | | |
| | | } catch (SoapFault $e) { |
| | | die('SOAP Blad: '.$e->getMessage()); |
| | | } |
| | | |
| | | ?> |
New file |
| | |
| | | <?php |
| | | |
| | | $username = 'admin'; |
| | | $password = 'admin'; |
| | | |
| | | $soap_location = 'http://localhost:8080/remote/index.php'; |
| | | $soap_uri = 'http://localhost:8080/remote/'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | | 'uri' => $soap_uri)); |
| | | |
| | | |
| | | try { |
| | | if($session_id = $client->login($username,$password)) { |
| | | echo 'Zalogowany. Sesja:'.$session_id.'<br />'; |
| | | } |
| | | |
| | | $params = array( 'server_id' => 1, |
| | | 'source' => 'źródło', |
| | | 'access' => 'REJECT', |
| | | 'type' => 'recipient', |
| | | 'active' => 'y'); |
| | | |
| | | |
| | | $client_id = 0; |
| | | $domain_id = $client->mail_wpisy_blacklist_add($session_id,$client_id,$params,$domain_id); |
| | | |
| | | |
| | | |
| | | if($client->logout($session_id)) { |
| | | echo 'Wylogowany.<br />'; |
| | | } |
| | | |
| | | |
| | | } catch (SoapFault $e) { |
| | | die('SOAP Blad: '.$e->getMessage()); |
| | | } |
| | | |
| | | ?> |
New file |
| | |
| | | <?php |
| | | |
| | | $username = 'admin'; |
| | | $password = 'admin'; |
| | | |
| | | $soap_location = 'http://localhost:8080/remote/index.php'; |
| | | $soap_uri = 'http://localhost:8080/remote/'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | | 'uri' => $soap_uri)); |
| | | |
| | | |
| | | try { |
| | | if($session_id = $client->login($username,$password)) { |
| | | echo 'Zalogowany. Sesja:'.$session_id.'<br />'; |
| | | } |
| | | |
| | | |
| | | $client_id = 0; |
| | | $mailuser_id = 2; |
| | | $domain__id = $client->mail_wpisy_blacklist_delete($session_id, $mailuser_id); |
| | | |
| | | |
| | | |
| | | if($client->logout($session_id)) { |
| | | echo 'Wylogowany.<br />'; |
| | | } |
| | | |
| | | |
| | | } catch (SoapFault $e) { |
| | | die('SOAP Blad: '.$e->getMessage()); |
| | | } |
| | | |
| | | ?> |
New file |
| | |
| | | <?php |
| | | |
| | | $username = 'admin'; |
| | | $password = 'admin'; |
| | | |
| | | $soap_location = 'http://localhost:8080/remote/index.php'; |
| | | $soap_uri = 'http://localhost:8080/remote/'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | | 'uri' => $soap_uri)); |
| | | |
| | | |
| | | try { |
| | | if($session_id = $client->login($username,$password)) { |
| | | echo 'Zalogowany. Sesja:'.$session_id.'<br />'; |
| | | } |
| | | |
| | | $params = array( 'server_id' => 1, |
| | | 'source' => 'źródło', |
| | | 'access' => 'REJECT', |
| | | 'type' => 'recipient', |
| | | 'active' => 'n'); |
| | | |
| | | |
| | | |
| | | $client_id = 0; |
| | | $mailuser_id = 2; |
| | | $domain_id = $client->mail_wpisy_blacklist_update($session_id, $mailuser_id, $client_id, $params); |
| | | |
| | | |
| | | |
| | | if($client->logout($session_id)) { |
| | | echo 'Wylogowany.<br />'; |
| | | } |
| | | |
| | | |
| | | } catch (SoapFault $e) { |
| | | die('SOAP Blad: '.$e->getMessage()); |
| | | } |
| | | |
| | | ?> |
New file |
| | |
| | | <?php |
| | | |
| | | $username = 'admin'; |
| | | $password = 'admin'; |
| | | |
| | | $soap_location = 'http://localhost:8080/remote/index.php'; |
| | | $soap_uri = 'http://localhost:8080/remote/'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | | 'uri' => $soap_uri)); |
| | | |
| | | |
| | | try { |
| | | if($session_id = $client->login($username,$password)) { |
| | | echo 'Zalogowany. Sesja:'.$session_id.'<br />'; |
| | | } |
| | | |
| | | $params = array( 'server_id' => 1, |
| | | 'source' => 'źródło', |
| | | 'access' => 'OK', |
| | | 'type' => 'recipient', |
| | | 'active' => 'y'); |
| | | |
| | | |
| | | $client_id = 0; |
| | | $domain_id = $client->mail_wpisy_whitelist_add($session_id,$client_id,$params,$domain_id); |
| | | |
| | | |
| | | |
| | | if($client->logout($session_id)) { |
| | | echo 'Wylogowany.<br />'; |
| | | } |
| | | |
| | | |
| | | } catch (SoapFault $e) { |
| | | die('SOAP Blad: '.$e->getMessage()); |
| | | } |
| | | |
| | | ?> |
New file |
| | |
| | | <?php |
| | | |
| | | $username = 'admin'; |
| | | $password = 'admin'; |
| | | |
| | | $soap_location = 'http://localhost:8080/remote/index.php'; |
| | | $soap_uri = 'http://localhost:8080/remote/'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | | 'uri' => $soap_uri)); |
| | | |
| | | |
| | | try { |
| | | if($session_id = $client->login($username,$password)) { |
| | | echo 'Zalogowany. Sesja:'.$session_id.'<br />'; |
| | | } |
| | | |
| | | |
| | | $client_id = 0; |
| | | $mailuser_id = 1; |
| | | $domain__id = $client->mail_wpisy_whitelist_delete($session_id, $mailuser_id); |
| | | |
| | | |
| | | |
| | | if($client->logout($session_id)) { |
| | | echo 'Wylogowany.<br />'; |
| | | } |
| | | |
| | | |
| | | } catch (SoapFault $e) { |
| | | die('SOAP Blad: '.$e->getMessage()); |
| | | } |
| | | |
| | | ?> |
New file |
| | |
| | | <?php |
| | | |
| | | $username = 'admin'; |
| | | $password = 'admin'; |
| | | |
| | | $soap_location = 'http://localhost:8080/remote/index.php'; |
| | | $soap_uri = 'http://localhost:8080/remote/'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | | 'uri' => $soap_uri)); |
| | | |
| | | |
| | | try { |
| | | if($session_id = $client->login($username,$password)) { |
| | | echo 'Zalogowany. Sesja:'.$session_id.'<br />'; |
| | | } |
| | | |
| | | $params = array( 'server_id' => 1, |
| | | 'source' => 'źródło', |
| | | 'access' => 'OK', |
| | | 'type' => 'recipient', |
| | | 'active' => 'n'); |
| | | |
| | | |
| | | |
| | | $client_id = 0; |
| | | $mailuser_id = 1; |
| | | $domain_id = $client->mail_wpisy_whitelist_update($session_id, $mailuser_id, $client_id, $params); |
| | | |
| | | |
| | | |
| | | if($client->logout($session_id)) { |
| | | echo 'Wylogowany.<br />'; |
| | | } |
| | | |
| | | |
| | | } catch (SoapFault $e) { |
| | | die('SOAP Blad: '.$e->getMessage()); |
| | | } |
| | | |
| | | ?> |