From 413d3b240a8508a55b690ddf19824fdffd140cad Mon Sep 17 00:00:00 2001 From: tbrehm Date: Mon, 26 Sep 2011 12:31:23 +0000 Subject: [PATCH] Added remote API documentation and remote api example functions. --- docs/Remote_API_docs.txt | 3 + remoting_client/API-docs/client_add.html | 88 +++++++ .../API-docs/client_change_password.html | 31 +++ remoting_client/API-docs/client_delete.html | 29 +++ .../API-docs/client_delete_everything.html | 31 +++ remoting_client/API-docs/client_get.html | 29 +++ .../API-docs/client_get_by_username.html | 31 +++ remoting_client/API-docs/client_get_id.html | 29 +++ .../API-docs/client_get_sites_by_user.html | 31 +++ .../API-docs/client_templates_get_all.html | 31 +++ remoting_client/API-docs/client_update.html | 88 +++++++ remoting_client/API-docs/content.html | 44 ++++ remoting_client/API-docs/definitionen.css | 61 +++++ remoting_client/API-docs/dns_a_add.html | 38 +++ remoting_client/API-docs/dns_a_delete.html | 29 +++ remoting_client/API-docs/dns_a_get.html | 29 +++ remoting_client/API-docs/dns_a_update.html | 38 +++ remoting_client/API-docs/dns_aaaa_add.html | 38 +++ remoting_client/API-docs/dns_aaaa_delete.html | 29 +++ remoting_client/API-docs/dns_aaaa_get.html | 29 +++ remoting_client/API-docs/dns_aaaa_update.html | 38 +++ remoting_client/API-docs/dns_alias_add.html | 38 +++ .../API-docs/dns_alias_delete.html | 29 +++ remoting_client/API-docs/dns_alias_get.html | 29 +++ .../API-docs/dns_alias_update.html | 38 +++ remoting_client/API-docs/dns_cname_add.html | 38 +++ .../API-docs/dns_cname_delete.html | 29 +++ remoting_client/API-docs/dns_cname_get.html | 29 +++ .../API-docs/dns_cname_update.html | 38 +++ remoting_client/API-docs/dns_hinfo_add.html | 38 +++ .../API-docs/dns_hinfo_delete.html | 29 +++ remoting_client/API-docs/dns_hinfo_get.html | 29 +++ .../API-docs/dns_hinfo_update.html | 38 +++ remoting_client/API-docs/dns_mx_add.html | 38 +++ remoting_client/API-docs/dns_mx_delete.html | 29 +++ remoting_client/API-docs/dns_mx_get.html | 29 +++ remoting_client/API-docs/dns_mx_update.html | 38 +++ remoting_client/API-docs/dns_ns_add.html | 38 +++ remoting_client/API-docs/dns_ns_delete.html | 29 +++ remoting_client/API-docs/dns_ns_get.html | 29 +++ remoting_client/API-docs/dns_ns_update.html | 38 +++ remoting_client/API-docs/dns_ptr_add.html | 38 +++ remoting_client/API-docs/dns_ptr_delete.html | 29 +++ remoting_client/API-docs/dns_ptr_get.html | 29 +++ remoting_client/API-docs/dns_ptr_update.html | 38 +++ remoting_client/API-docs/dns_rp_add.html | 38 +++ remoting_client/API-docs/dns_rp_delete.html | 29 +++ remoting_client/API-docs/dns_rp_get.html | 29 +++ remoting_client/API-docs/dns_rp_update.html | 38 +++ .../API-docs/dns_rr_get_all_by_zone.html | 31 +++ remoting_client/API-docs/dns_srv_add.html | 38 +++ remoting_client/API-docs/dns_srv_delete.html | 29 +++ remoting_client/API-docs/dns_srv_get.html | 29 +++ remoting_client/API-docs/dns_srv_update.html | 38 +++ remoting_client/API-docs/dns_txt_add.html | 38 +++ remoting_client/API-docs/dns_txt_delete.html | 29 +++ remoting_client/API-docs/dns_txt_get.html | 29 +++ remoting_client/API-docs/dns_txt_update.html | 38 +++ remoting_client/API-docs/dns_zone_add.html | 42 ++++ remoting_client/API-docs/dns_zone_delete.html | 29 +++ remoting_client/API-docs/dns_zone_get.html | 29 +++ .../API-docs/dns_zone_get_by_user.html | 31 +++ .../API-docs/dns_zone_set_status.html | 31 +++ remoting_client/API-docs/dns_zone_update.html | 42 ++++ .../API-docs/domains_domain_add.html | 29 +++ .../API-docs/domains_domain_delete.html | 29 +++ .../API-docs/domains_domain_get.html | 29 +++ .../API-docs/domains_get_all_by_user.html | 31 +++ .../API-docs/get_function_list.html | 29 +++ remoting_client/API-docs/login.html | 31 +++ remoting_client/API-docs/logout.html | 31 +++ remoting_client/API-docs/mail_alias_add.html | 33 +++ .../API-docs/mail_alias_delete.html | 29 +++ remoting_client/API-docs/mail_alias_get.html | 29 +++ .../API-docs/mail_alias_update.html | 33 +++ .../API-docs/mail_blacklist_add.html | 33 +++ .../API-docs/mail_blacklist_delete.html | 29 +++ .../API-docs/mail_blacklist_get.html | 29 +++ .../API-docs/mail_blacklist_update.html | 33 +++ .../API-docs/mail_catchall_add.html | 33 +++ .../API-docs/mail_catchall_delete.html | 29 +++ .../API-docs/mail_catchall_get.html | 29 +++ .../API-docs/mail_catchall_update.html | 33 +++ remoting_client/API-docs/mail_domain_add.html | 31 +++ .../API-docs/mail_domain_delete.html | 29 +++ remoting_client/API-docs/mail_domain_get.html | 29 +++ .../API-docs/mail_domain_get_by_domain.html | 31 +++ .../API-docs/mail_domain_set_status.html | 31 +++ .../API-docs/mail_domain_update.html | 31 +++ .../API-docs/mail_fetchmail_add.html | 37 +++ .../API-docs/mail_fetchmail_delete.html | 29 +++ .../API-docs/mail_fetchmail_get.html | 29 +++ .../API-docs/mail_fetchmail_update.html | 37 +++ .../API-docs/mail_forward_add.html | 33 +++ .../API-docs/mail_forward_delete.html | 29 +++ .../API-docs/mail_forward_get.html | 29 +++ .../API-docs/mail_forward_update.html | 33 +++ .../API-docs/mail_mailinglist_add.html | 33 +++ .../API-docs/mail_mailinglist_delete.html | 29 +++ .../API-docs/mail_mailinglist_get.html | 29 +++ .../API-docs/mail_mailinglist_update.html | 33 +++ remoting_client/API-docs/mail_policy_add.html | 65 +++++ .../API-docs/mail_policy_delete.html | 29 +++ remoting_client/API-docs/mail_policy_get.html | 29 +++ .../API-docs/mail_policy_update.html | 65 +++++ .../mail_spamfilter_blacklist_add.html | 34 +++ .../mail_spamfilter_blacklist_delete.html | 29 +++ .../mail_spamfilter_blacklist_get.html | 29 +++ .../mail_spamfilter_blacklist_update.html | 34 +++ .../API-docs/mail_spamfilter_user_add.html | 34 +++ .../API-docs/mail_spamfilter_user_delete.html | 29 +++ .../API-docs/mail_spamfilter_user_get.html | 29 +++ .../API-docs/mail_spamfilter_user_update.html | 34 +++ .../mail_spamfilter_whitelist_add.html | 34 +++ .../mail_spamfilter_whitelist_delete.html | 29 +++ .../mail_spamfilter_whitelist_get.html | 29 +++ .../mail_spamfilter_whitelist_update.html | 34 +++ .../API-docs/mail_transport_add.html | 33 +++ .../API-docs/mail_transport_delete.html | 29 +++ .../API-docs/mail_transport_get.html | 29 +++ .../API-docs/mail_transport_update.html | 33 +++ remoting_client/API-docs/mail_user_add.html | 52 ++++ .../API-docs/mail_user_delete.html | 34 +++ .../API-docs/mail_user_filter_add.html | 36 +++ .../API-docs/mail_user_filter_delete.html | 29 +++ .../API-docs/mail_user_filter_get.html | 29 +++ .../API-docs/mail_user_filter_update.html | 36 +++ remoting_client/API-docs/mail_user_get.html | 30 +++ .../API-docs/mail_user_update.html | 52 ++++ .../API-docs/mail_whitelist_add.html | 33 +++ .../API-docs/mail_whitelist_delete.html | 29 +++ .../API-docs/mail_whitelist_get.html | 29 +++ .../API-docs/mail_whitelist_update.html | 33 +++ remoting_client/API-docs/main.html | 47 ++++ remoting_client/API-docs/navigation.html | 237 ++++++++++++++++++ .../API-docs/openvz_get_free_ip.html | 31 +++ remoting_client/API-docs/openvz_ip_add.html | 32 +++ .../API-docs/openvz_ip_delete.html | 29 +++ remoting_client/API-docs/openvz_ip_get.html | 29 +++ .../API-docs/openvz_ip_update.html | 32 +++ .../API-docs/openvz_ostemplate_add.html | 34 +++ .../API-docs/openvz_ostemplate_delete.html | 29 +++ .../API-docs/openvz_ostemplate_get.html | 29 +++ .../API-docs/openvz_ostemplate_update.html | 34 +++ .../API-docs/openvz_template_add.html | 66 +++++ .../API-docs/openvz_template_delete.html | 29 +++ .../API-docs/openvz_template_get.html | 29 +++ .../API-docs/openvz_template_update.html | 66 +++++ remoting_client/API-docs/openvz_vm_add.html | 52 ++++ .../API-docs/openvz_vm_add_from_template.html | 31 +++ .../API-docs/openvz_vm_delete.html | 29 +++ remoting_client/API-docs/openvz_vm_get.html | 29 +++ .../API-docs/openvz_vm_get_by_client.html | 31 +++ .../API-docs/openvz_vm_update.html | 52 ++++ remoting_client/API-docs/server_get.html | 29 +++ .../API-docs/server_get_serverid_by_ip.html | 31 +++ remoting_client/API-docs/sites_cron_add.html | 38 +++ .../API-docs/sites_cron_delete.html | 29 +++ remoting_client/API-docs/sites_cron_get.html | 29 +++ .../API-docs/sites_cron_update.html | 38 +++ .../API-docs/sites_database_add.html | 37 +++ .../API-docs/sites_database_delete.html | 29 +++ .../API-docs/sites_database_get.html | 29 +++ .../sites_database_get_all_by_user.html | 31 +++ .../API-docs/sites_database_update.html | 37 +++ .../API-docs/sites_ftp_user_add.html | 42 ++++ .../API-docs/sites_ftp_user_delete.html | 29 +++ .../API-docs/sites_ftp_user_get.html | 29 +++ .../API-docs/sites_ftp_user_update.html | 42 ++++ .../API-docs/sites_shell_user_add.html | 39 +++ .../API-docs/sites_shell_user_delete.html | 29 +++ .../API-docs/sites_shell_user_get.html | 29 +++ .../API-docs/sites_shell_user_update.html | 39 +++ .../API-docs/sites_web_aliasdomain_add.html | 70 ++++++ .../sites_web_aliasdomain_delete.html | 29 +++ .../API-docs/sites_web_aliasdomain_get.html | 29 +++ .../sites_web_aliasdomain_update.html | 70 ++++++ .../API-docs/sites_web_domain_add.html | 70 ++++++ .../API-docs/sites_web_domain_delete.html | 29 +++ .../API-docs/sites_web_domain_get.html | 29 +++ .../API-docs/sites_web_domain_set_status.html | 31 +++ .../API-docs/sites_web_domain_update.html | 70 ++++++ .../API-docs/sites_web_subdomain_add.html | 70 ++++++ .../API-docs/sites_web_subdomain_delete.html | 29 +++ .../API-docs/sites_web_subdomain_get.html | 29 +++ .../API-docs/sites_web_subdomain_update.html | 70 ++++++ remoting_client/example.php | 104 -------- remoting_client/examples/client_add.php | 97 +++++++ .../examples/client_change_password.php | 35 +++ remoting_client/examples/client_delete.php | 36 +++ .../examples/client_delete_everything.php | 37 +++ remoting_client/examples/client_get.php | 34 +++ .../examples/client_get_by_username.php | 34 +++ remoting_client/examples/client_get_id.php | 34 +++ .../examples/client_get_sites_by_user.php | 35 +++ .../examples/client_templates_get_all.php | 33 +++ remoting_client/examples/client_update.php | 44 ++++ remoting_client/examples/dns_a_add.php | 46 ++++ remoting_client/examples/dns_a_delete.php | 35 +++ remoting_client/examples/dns_a_get.php | 34 +++ remoting_client/examples/dns_a_update.php | 42 ++++ remoting_client/examples/dns_aaaa_add.php | 46 ++++ remoting_client/examples/dns_aaaa_delete.php | 35 +++ remoting_client/examples/dns_aaaa_get.php | 34 +++ remoting_client/examples/dns_aaaa_update.php | 42 ++++ remoting_client/examples/dns_alias_add.php | 46 ++++ remoting_client/examples/dns_alias_delete.php | 35 +++ remoting_client/examples/dns_alias_get.php | 34 +++ remoting_client/examples/dns_alias_update.php | 42 ++++ remoting_client/examples/dns_cname_add.php | 46 ++++ remoting_client/examples/dns_cname_delete.php | 35 +++ remoting_client/examples/dns_cname_get.php | 34 +++ remoting_client/examples/dns_cname_update.php | 42 ++++ remoting_client/examples/dns_hinfo_add.php | 46 ++++ remoting_client/examples/dns_hinfo_delete.php | 35 +++ remoting_client/examples/dns_hinfo_get.php | 34 +++ remoting_client/examples/dns_hinfo_update.php | 42 ++++ remoting_client/examples/dns_mx_add.php | 46 ++++ remoting_client/examples/dns_mx_delete.php | 35 +++ remoting_client/examples/dns_mx_get.php | 34 +++ remoting_client/examples/dns_mx_update.php | 42 ++++ remoting_client/examples/dns_ns_add.php | 46 ++++ remoting_client/examples/dns_ns_delete.php | 35 +++ remoting_client/examples/dns_ns_get.php | 34 +++ remoting_client/examples/dns_ns_update.php | 42 ++++ remoting_client/examples/dns_ptr_add.php | 46 ++++ remoting_client/examples/dns_ptr_delete.php | 35 +++ remoting_client/examples/dns_ptr_get.php | 34 +++ remoting_client/examples/dns_ptr_update.php | 42 ++++ remoting_client/examples/dns_rp_add.php | 46 ++++ remoting_client/examples/dns_rp_delete.php | 35 +++ remoting_client/examples/dns_rp_get.php | 34 +++ remoting_client/examples/dns_rp_update.php | 42 ++++ .../examples/dns_rr_get_all_by_zone.php | 35 +++ remoting_client/examples/dns_srv_add.php | 46 ++++ remoting_client/examples/dns_srv_delete.php | 35 +++ remoting_client/examples/dns_srv_get.php | 34 +++ remoting_client/examples/dns_srv_update.php | 42 ++++ remoting_client/examples/dns_txt_add.php | 46 ++++ remoting_client/examples/dns_txt_delete.php | 34 +++ remoting_client/examples/dns_txt_get.php | 34 +++ remoting_client/examples/dns_txt_update.php | 42 ++++ remoting_client/examples/dns_zone_add.php | 50 ++++ remoting_client/examples/dns_zone_delete.php | 34 +++ remoting_client/examples/dns_zone_get.php | 34 +++ .../examples/dns_zone_get_by_user.php | 36 +++ .../examples/dns_zone_set_status.php | 36 +++ remoting_client/examples/dns_zone_update.php | 42 ++++ .../examples/domains_domain_add.php | 37 +++ .../examples/domains_domain_delete.php | 34 +++ .../examples/domains_domain_get.php | 34 +++ .../examples/domains_get_all_by_user.php | 34 +++ .../examples/get_function_list.php | 34 +++ remoting_client/examples/login.php | 25 ++ remoting_client/examples/logout.php | 31 +++ remoting_client/examples/mail_alias_add.php | 41 +++ .../examples/mail_alias_delete.php | 34 +++ remoting_client/examples/mail_alias_get.php | 34 +++ .../examples/mail_alias_update.php | 42 ++++ .../examples/mail_blacklist_add.php | 41 +++ .../examples/mail_blacklist_delete.php | 34 +++ .../examples/mail_blacklist_get.php | 34 +++ .../examples/mail_blacklist_update.php | 42 ++++ .../examples/mail_catchall_add.php | 41 +++ .../examples/mail_catchall_delete.php | 34 +++ .../examples/mail_catchall_get.php | 34 +++ .../examples/mail_catchall_update.php | 42 ++++ remoting_client/examples/mail_domain_add.php | 39 +++ .../examples/mail_domain_delete.php | 34 +++ remoting_client/examples/mail_domain_get.php | 34 +++ .../examples/mail_domain_get_by_domain.php | 35 +++ .../examples/mail_domain_set_status.php | 36 +++ .../examples/mail_domain_update.php | 42 ++++ .../examples/mail_fetchmail_add.php | 45 ++++ .../examples/mail_fetchmail_delete.php | 34 +++ .../examples/mail_fetchmail_get.php | 34 +++ .../examples/mail_fetchmail_update.php | 42 ++++ remoting_client/examples/mail_filter_add.php | 42 ++++ .../examples/mail_filter_delete.php | 34 +++ remoting_client/examples/mail_filter_get.php | 34 +++ .../examples/mail_filter_update.php | 42 ++++ remoting_client/examples/mail_forward_add.php | 41 +++ .../examples/mail_forward_delete.php | 36 +++ remoting_client/examples/mail_forward_get.php | 34 +++ .../examples/mail_forward_update.php | 42 ++++ .../examples/mail_mailinglist_add.php | 41 +++ .../examples/mail_mailinglist_delete.php | 36 +++ .../examples/mail_mailinglist_get.php | 34 +++ .../examples/mail_mailinglist_update.php | 42 ++++ remoting_client/examples/mail_policy_add.php | 74 ++++++ .../examples/mail_policy_delete.php | 36 +++ remoting_client/examples/mail_policy_get.php | 34 +++ .../examples/mail_policy_update.php | 42 ++++ .../mail_spamfilter_blacklist_add.php | 42 ++++ .../mail_spamfilter_blacklist_delete.php | 36 +++ .../mail_spamfilter_blacklist_get.php | 34 +++ .../mail_spamfilter_blacklist_update.php | 42 ++++ .../examples/mail_spamfilter_user_add.php | 42 ++++ .../examples/mail_spamfilter_user_delete.php | 36 +++ .../examples/mail_spamfilter_user_get.php | 34 +++ .../examples/mail_spamfilter_user_update.php | 42 ++++ .../mail_spamfilter_whitelist_add.php | 42 ++++ .../mail_spamfilter_whitelist_delete.php | 36 +++ .../mail_spamfilter_whitelist_get.php | 34 +++ .../mail_spamfilter_whitelist_update.php | 42 ++++ .../examples/mail_transport_add.php | 41 +++ .../examples/mail_transport_delete.php | 36 +++ .../examples/mail_transport_get.php | 34 +++ .../examples/mail_transport_update.php | 42 ++++ remoting_client/examples/mail_user_add.php | 58 +++++ remoting_client/examples/mail_user_delete.php | 34 +++ .../examples/mail_user_filter_add.php | 44 ++++ .../examples/mail_user_filter_delete.php | 36 +++ .../examples/mail_user_filter_get.php | 34 +++ .../examples/mail_user_filter_update.php | 42 ++++ remoting_client/examples/mail_user_get.php | 34 +++ remoting_client/examples/mail_user_update.php | 42 ++++ .../examples/mail_whitelist_add.php | 41 +++ .../examples/mail_whitelist_delete.php | 34 +++ .../examples/mail_whitelist_get.php | 34 +++ .../examples/mail_whitelist_update.php | 42 ++++ .../examples/openvz_get_free_ip.php | 34 +++ remoting_client/examples/openvz_ip_add.php | 40 +++ remoting_client/examples/openvz_ip_delete.php | 36 +++ remoting_client/examples/openvz_ip_get.php | 34 +++ remoting_client/examples/openvz_ip_update.php | 42 ++++ .../examples/openvz_ostemplate_add.php | 42 ++++ .../examples/openvz_ostemplate_delete.php | 36 +++ .../examples/openvz_ostemplate_get.php | 34 +++ .../examples/openvz_ostemplate_update.php | 42 ++++ .../examples/openvz_template_add.php | 74 ++++++ .../examples/openvz_template_delete.php | 36 +++ .../examples/openvz_template_get.php | 34 +++ .../examples/openvz_template_update.php | 42 ++++ remoting_client/examples/openvz_vm_add.php | 44 +++- .../examples/openvz_vm_add_from_template.php | 45 ++++ remoting_client/examples/openvz_vm_delete.php | 36 +++ remoting_client/examples/openvz_vm_get.php | 34 +++ .../examples/openvz_vm_get_by_client.php | 34 +++ remoting_client/examples/openvz_vm_update.php | 42 ++++ remoting_client/examples/server_get.php | 35 +++ .../examples/server_get_serverid_by_ip.php | 35 +++ remoting_client/examples/sites_cron_add.php | 47 ++++ .../examples/sites_cron_delete.php | 36 +++ remoting_client/examples/sites_cron_get.php | 34 +++ .../examples/sites_cron_update.php | 42 ++++ .../examples/sites_database_add.php | 45 ++++ .../examples/sites_database_delete.php | 36 +++ .../examples/sites_database_get.php | 34 +++ .../sites_database_get_all_by_user.php | 36 +++ .../examples/sites_database_update.php | 42 ++++ .../examples/sites_ftp_user_add.php | 52 ++++ .../examples/sites_ftp_user_delete.php | 35 +++ .../examples/sites_ftp_user_get.php | 34 +++ .../examples/sites_ftp_user_update.php | 42 ++++ .../examples/sites_shell_user_add.php | 49 ++++ .../examples/sites_shell_user_delete.php | 36 +++ .../examples/sites_shell_user_get.php | 34 +++ .../examples/sites_shell_user_update.php | 42 ++++ .../examples/sites_web_aliasdomain_add.php | 78 ++++++ .../examples/sites_web_aliasdomain_delete.php | 36 +++ .../examples/sites_web_aliasdomain_get.php | 34 +++ .../examples/sites_web_aliasdomain_update.php | 42 ++++ .../examples/sites_web_domain_add.php | 80 ++++++ .../examples/sites_web_domain_delete.php | 36 +++ .../examples/sites_web_domain_get.php | 34 +++ .../examples/sites_web_domain_set_status.php | 36 +++ .../examples/sites_web_domain_update.php | 45 ++++ .../examples/sites_web_subdomain_add.php | 78 ++++++ .../examples/sites_web_subdomain_delete.php | 36 +++ .../examples/sites_web_subdomain_get.php | 34 +++ .../examples/sites_web_subdomain_update.php | 42 ++++ remoting_client/examples/soap-alias-add.php | 40 --- .../examples/soap-alias-delete.php | 35 --- .../examples/soap-alias-update.php | 41 --- .../examples/soap-blacklist-add.php | 41 --- .../examples/soap-blacklist-delete.php | 35 --- .../examples/soap-blacklist-update.php | 43 ---- .../examples/soap-catchall-add.php | 40 --- .../examples/soap-catchall-delete.php | 35 --- .../examples/soap-catchall-update.php | 41 --- remoting_client/examples/soap-client-add.php | 80 ------ .../examples/soap-client-delete.php | 29 --- .../examples/soap-client-update.php | 83 ------ .../examples/soap-fetchmail-add.php | 43 ---- .../examples/soap-fetchmail-delete.php | 35 --- .../examples/soap-fetchmail-update.php | 45 ---- remoting_client/examples/soap-filtr-add.php | 41 --- .../examples/soap-filtr-delete.php | 35 --- .../examples/soap-filtr-update.php | 42 ---- remoting_client/examples/soap-forward-add.php | 40 --- .../examples/soap-forward-delete.php | 35 --- .../examples/soap-forward-update.php | 41 --- .../examples/soap-mailuser-add.php | 45 ---- .../examples/soap-mailuser-delete.php | 35 --- .../examples/soap-mailuser-update.php | 46 ---- remoting_client/examples/soap-policy-add.php | 43 ---- .../examples/soap-policy-delete.php | 35 --- .../examples/soap-policy-update.php | 45 ---- .../examples/soap-transport-add.php | 40 --- .../examples/soap-transport-delete.php | 35 --- .../examples/soap-transport-update.php | 44 ---- .../examples/soap-users_spamfilter-add.php | 41 --- .../examples/soap-users_spamfilter-delete.php | 35 --- .../examples/soap-users_spamfilter-update.php | 43 ---- .../examples/soap-whitelist-add.php | 41 --- .../examples/soap-whitelist-delete.php | 35 --- .../examples/soap-whitelist-update.php | 43 ---- .../examples/soap-wpisy_blacklist-add.php | 40 --- .../examples/soap-wpisy_blacklist-delete.php | 35 --- .../examples/soap-wpisy_blacklist-update.php | 42 ---- .../examples/soap-wpisy_whitelist-add.php | 40 --- .../examples/soap-wpisy_whitelist-delete.php | 35 --- .../examples/soap-wpisy_whitelist-update.php | 42 ---- remoting_client/examples/soap_config.php | 4 +- remoting_client/readme | 14 ++ 416 files changed, 14051 insertions(+), 1859 deletions(-) create mode 100644 docs/Remote_API_docs.txt create mode 100644 remoting_client/API-docs/client_add.html create mode 100644 remoting_client/API-docs/client_change_password.html create mode 100644 remoting_client/API-docs/client_delete.html create mode 100644 remoting_client/API-docs/client_delete_everything.html create mode 100644 remoting_client/API-docs/client_get.html create mode 100644 remoting_client/API-docs/client_get_by_username.html create mode 100644 remoting_client/API-docs/client_get_id.html create mode 100644 remoting_client/API-docs/client_get_sites_by_user.html create mode 100644 remoting_client/API-docs/client_templates_get_all.html create mode 100644 remoting_client/API-docs/client_update.html create mode 100644 remoting_client/API-docs/content.html create mode 100644 remoting_client/API-docs/definitionen.css create mode 100644 remoting_client/API-docs/dns_a_add.html create mode 100644 remoting_client/API-docs/dns_a_delete.html create mode 100644 remoting_client/API-docs/dns_a_get.html create mode 100644 remoting_client/API-docs/dns_a_update.html create mode 100644 remoting_client/API-docs/dns_aaaa_add.html create mode 100644 remoting_client/API-docs/dns_aaaa_delete.html create mode 100644 remoting_client/API-docs/dns_aaaa_get.html create mode 100644 remoting_client/API-docs/dns_aaaa_update.html create mode 100644 remoting_client/API-docs/dns_alias_add.html create mode 100644 remoting_client/API-docs/dns_alias_delete.html create mode 100644 remoting_client/API-docs/dns_alias_get.html create mode 100644 remoting_client/API-docs/dns_alias_update.html create mode 100644 remoting_client/API-docs/dns_cname_add.html create mode 100644 remoting_client/API-docs/dns_cname_delete.html create mode 100644 remoting_client/API-docs/dns_cname_get.html create mode 100644 remoting_client/API-docs/dns_cname_update.html create mode 100644 remoting_client/API-docs/dns_hinfo_add.html create mode 100644 remoting_client/API-docs/dns_hinfo_delete.html create mode 100644 remoting_client/API-docs/dns_hinfo_get.html create mode 100644 remoting_client/API-docs/dns_hinfo_update.html create mode 100644 remoting_client/API-docs/dns_mx_add.html create mode 100644 remoting_client/API-docs/dns_mx_delete.html create mode 100644 remoting_client/API-docs/dns_mx_get.html create mode 100644 remoting_client/API-docs/dns_mx_update.html create mode 100644 remoting_client/API-docs/dns_ns_add.html create mode 100644 remoting_client/API-docs/dns_ns_delete.html create mode 100644 remoting_client/API-docs/dns_ns_get.html create mode 100644 remoting_client/API-docs/dns_ns_update.html create mode 100644 remoting_client/API-docs/dns_ptr_add.html create mode 100644 remoting_client/API-docs/dns_ptr_delete.html create mode 100644 remoting_client/API-docs/dns_ptr_get.html create mode 100644 remoting_client/API-docs/dns_ptr_update.html create mode 100644 remoting_client/API-docs/dns_rp_add.html create mode 100644 remoting_client/API-docs/dns_rp_delete.html create mode 100644 remoting_client/API-docs/dns_rp_get.html create mode 100644 remoting_client/API-docs/dns_rp_update.html create mode 100644 remoting_client/API-docs/dns_rr_get_all_by_zone.html create mode 100644 remoting_client/API-docs/dns_srv_add.html create mode 100644 remoting_client/API-docs/dns_srv_delete.html create mode 100644 remoting_client/API-docs/dns_srv_get.html create mode 100644 remoting_client/API-docs/dns_srv_update.html create mode 100644 remoting_client/API-docs/dns_txt_add.html create mode 100644 remoting_client/API-docs/dns_txt_delete.html create mode 100644 remoting_client/API-docs/dns_txt_get.html create mode 100644 remoting_client/API-docs/dns_txt_update.html create mode 100644 remoting_client/API-docs/dns_zone_add.html create mode 100644 remoting_client/API-docs/dns_zone_delete.html create mode 100644 remoting_client/API-docs/dns_zone_get.html create mode 100644 remoting_client/API-docs/dns_zone_get_by_user.html create mode 100644 remoting_client/API-docs/dns_zone_set_status.html create mode 100644 remoting_client/API-docs/dns_zone_update.html create mode 100644 remoting_client/API-docs/domains_domain_add.html create mode 100644 remoting_client/API-docs/domains_domain_delete.html create mode 100644 remoting_client/API-docs/domains_domain_get.html create mode 100644 remoting_client/API-docs/domains_get_all_by_user.html create mode 100644 remoting_client/API-docs/get_function_list.html create mode 100644 remoting_client/API-docs/login.html create mode 100644 remoting_client/API-docs/logout.html create mode 100644 remoting_client/API-docs/mail_alias_add.html create mode 100644 remoting_client/API-docs/mail_alias_delete.html create mode 100644 remoting_client/API-docs/mail_alias_get.html create mode 100644 remoting_client/API-docs/mail_alias_update.html create mode 100644 remoting_client/API-docs/mail_blacklist_add.html create mode 100644 remoting_client/API-docs/mail_blacklist_delete.html create mode 100644 remoting_client/API-docs/mail_blacklist_get.html create mode 100644 remoting_client/API-docs/mail_blacklist_update.html create mode 100644 remoting_client/API-docs/mail_catchall_add.html create mode 100644 remoting_client/API-docs/mail_catchall_delete.html create mode 100644 remoting_client/API-docs/mail_catchall_get.html create mode 100644 remoting_client/API-docs/mail_catchall_update.html create mode 100644 remoting_client/API-docs/mail_domain_add.html create mode 100644 remoting_client/API-docs/mail_domain_delete.html create mode 100644 remoting_client/API-docs/mail_domain_get.html create mode 100644 remoting_client/API-docs/mail_domain_get_by_domain.html create mode 100644 remoting_client/API-docs/mail_domain_set_status.html create mode 100644 remoting_client/API-docs/mail_domain_update.html create mode 100644 remoting_client/API-docs/mail_fetchmail_add.html create mode 100644 remoting_client/API-docs/mail_fetchmail_delete.html create mode 100644 remoting_client/API-docs/mail_fetchmail_get.html create mode 100644 remoting_client/API-docs/mail_fetchmail_update.html create mode 100644 remoting_client/API-docs/mail_forward_add.html create mode 100644 remoting_client/API-docs/mail_forward_delete.html create mode 100644 remoting_client/API-docs/mail_forward_get.html create mode 100644 remoting_client/API-docs/mail_forward_update.html create mode 100644 remoting_client/API-docs/mail_mailinglist_add.html create mode 100644 remoting_client/API-docs/mail_mailinglist_delete.html create mode 100644 remoting_client/API-docs/mail_mailinglist_get.html create mode 100644 remoting_client/API-docs/mail_mailinglist_update.html create mode 100644 remoting_client/API-docs/mail_policy_add.html create mode 100644 remoting_client/API-docs/mail_policy_delete.html create mode 100644 remoting_client/API-docs/mail_policy_get.html create mode 100644 remoting_client/API-docs/mail_policy_update.html create mode 100644 remoting_client/API-docs/mail_spamfilter_blacklist_add.html create mode 100644 remoting_client/API-docs/mail_spamfilter_blacklist_delete.html create mode 100644 remoting_client/API-docs/mail_spamfilter_blacklist_get.html create mode 100644 remoting_client/API-docs/mail_spamfilter_blacklist_update.html create mode 100644 remoting_client/API-docs/mail_spamfilter_user_add.html create mode 100644 remoting_client/API-docs/mail_spamfilter_user_delete.html create mode 100644 remoting_client/API-docs/mail_spamfilter_user_get.html create mode 100644 remoting_client/API-docs/mail_spamfilter_user_update.html create mode 100644 remoting_client/API-docs/mail_spamfilter_whitelist_add.html create mode 100644 remoting_client/API-docs/mail_spamfilter_whitelist_delete.html create mode 100644 remoting_client/API-docs/mail_spamfilter_whitelist_get.html create mode 100644 remoting_client/API-docs/mail_spamfilter_whitelist_update.html create mode 100644 remoting_client/API-docs/mail_transport_add.html create mode 100644 remoting_client/API-docs/mail_transport_delete.html create mode 100644 remoting_client/API-docs/mail_transport_get.html create mode 100644 remoting_client/API-docs/mail_transport_update.html create mode 100644 remoting_client/API-docs/mail_user_add.html create mode 100644 remoting_client/API-docs/mail_user_delete.html create mode 100644 remoting_client/API-docs/mail_user_filter_add.html create mode 100644 remoting_client/API-docs/mail_user_filter_delete.html create mode 100644 remoting_client/API-docs/mail_user_filter_get.html create mode 100644 remoting_client/API-docs/mail_user_filter_update.html create mode 100644 remoting_client/API-docs/mail_user_get.html create mode 100644 remoting_client/API-docs/mail_user_update.html create mode 100644 remoting_client/API-docs/mail_whitelist_add.html create mode 100644 remoting_client/API-docs/mail_whitelist_delete.html create mode 100644 remoting_client/API-docs/mail_whitelist_get.html create mode 100644 remoting_client/API-docs/mail_whitelist_update.html create mode 100644 remoting_client/API-docs/main.html create mode 100644 remoting_client/API-docs/navigation.html create mode 100644 remoting_client/API-docs/openvz_get_free_ip.html create mode 100644 remoting_client/API-docs/openvz_ip_add.html create mode 100644 remoting_client/API-docs/openvz_ip_delete.html create mode 100644 remoting_client/API-docs/openvz_ip_get.html create mode 100644 remoting_client/API-docs/openvz_ip_update.html create mode 100644 remoting_client/API-docs/openvz_ostemplate_add.html create mode 100644 remoting_client/API-docs/openvz_ostemplate_delete.html create mode 100644 remoting_client/API-docs/openvz_ostemplate_get.html create mode 100644 remoting_client/API-docs/openvz_ostemplate_update.html create mode 100644 remoting_client/API-docs/openvz_template_add.html create mode 100644 remoting_client/API-docs/openvz_template_delete.html create mode 100644 remoting_client/API-docs/openvz_template_get.html create mode 100644 remoting_client/API-docs/openvz_template_update.html create mode 100644 remoting_client/API-docs/openvz_vm_add.html create mode 100644 remoting_client/API-docs/openvz_vm_add_from_template.html create mode 100644 remoting_client/API-docs/openvz_vm_delete.html create mode 100644 remoting_client/API-docs/openvz_vm_get.html create mode 100644 remoting_client/API-docs/openvz_vm_get_by_client.html create mode 100644 remoting_client/API-docs/openvz_vm_update.html create mode 100644 remoting_client/API-docs/server_get.html create mode 100644 remoting_client/API-docs/server_get_serverid_by_ip.html create mode 100644 remoting_client/API-docs/sites_cron_add.html create mode 100644 remoting_client/API-docs/sites_cron_delete.html create mode 100644 remoting_client/API-docs/sites_cron_get.html create mode 100644 remoting_client/API-docs/sites_cron_update.html create mode 100644 remoting_client/API-docs/sites_database_add.html create mode 100644 remoting_client/API-docs/sites_database_delete.html create mode 100644 remoting_client/API-docs/sites_database_get.html create mode 100644 remoting_client/API-docs/sites_database_get_all_by_user.html create mode 100644 remoting_client/API-docs/sites_database_update.html create mode 100644 remoting_client/API-docs/sites_ftp_user_add.html create mode 100644 remoting_client/API-docs/sites_ftp_user_delete.html create mode 100644 remoting_client/API-docs/sites_ftp_user_get.html create mode 100644 remoting_client/API-docs/sites_ftp_user_update.html create mode 100644 remoting_client/API-docs/sites_shell_user_add.html create mode 100644 remoting_client/API-docs/sites_shell_user_delete.html create mode 100644 remoting_client/API-docs/sites_shell_user_get.html create mode 100644 remoting_client/API-docs/sites_shell_user_update.html create mode 100644 remoting_client/API-docs/sites_web_aliasdomain_add.html create mode 100644 remoting_client/API-docs/sites_web_aliasdomain_delete.html create mode 100644 remoting_client/API-docs/sites_web_aliasdomain_get.html create mode 100644 remoting_client/API-docs/sites_web_aliasdomain_update.html create mode 100644 remoting_client/API-docs/sites_web_domain_add.html create mode 100644 remoting_client/API-docs/sites_web_domain_delete.html create mode 100644 remoting_client/API-docs/sites_web_domain_get.html create mode 100644 remoting_client/API-docs/sites_web_domain_set_status.html create mode 100644 remoting_client/API-docs/sites_web_domain_update.html create mode 100644 remoting_client/API-docs/sites_web_subdomain_add.html create mode 100644 remoting_client/API-docs/sites_web_subdomain_delete.html create mode 100644 remoting_client/API-docs/sites_web_subdomain_get.html create mode 100644 remoting_client/API-docs/sites_web_subdomain_update.html delete mode 100644 remoting_client/example.php create mode 100644 remoting_client/examples/client_add.php create mode 100644 remoting_client/examples/client_change_password.php create mode 100644 remoting_client/examples/client_delete.php create mode 100644 remoting_client/examples/client_delete_everything.php create mode 100644 remoting_client/examples/client_get.php create mode 100644 remoting_client/examples/client_get_by_username.php create mode 100644 remoting_client/examples/client_get_id.php create mode 100644 remoting_client/examples/client_get_sites_by_user.php create mode 100644 remoting_client/examples/client_templates_get_all.php create mode 100644 remoting_client/examples/client_update.php create mode 100644 remoting_client/examples/dns_a_add.php create mode 100644 remoting_client/examples/dns_a_delete.php create mode 100644 remoting_client/examples/dns_a_get.php create mode 100644 remoting_client/examples/dns_a_update.php create mode 100644 remoting_client/examples/dns_aaaa_add.php create mode 100644 remoting_client/examples/dns_aaaa_delete.php create mode 100644 remoting_client/examples/dns_aaaa_get.php create mode 100644 remoting_client/examples/dns_aaaa_update.php create mode 100644 remoting_client/examples/dns_alias_add.php create mode 100644 remoting_client/examples/dns_alias_delete.php create mode 100644 remoting_client/examples/dns_alias_get.php create mode 100644 remoting_client/examples/dns_alias_update.php create mode 100644 remoting_client/examples/dns_cname_add.php create mode 100644 remoting_client/examples/dns_cname_delete.php create mode 100644 remoting_client/examples/dns_cname_get.php create mode 100644 remoting_client/examples/dns_cname_update.php create mode 100644 remoting_client/examples/dns_hinfo_add.php create mode 100644 remoting_client/examples/dns_hinfo_delete.php create mode 100644 remoting_client/examples/dns_hinfo_get.php create mode 100644 remoting_client/examples/dns_hinfo_update.php create mode 100644 remoting_client/examples/dns_mx_add.php create mode 100644 remoting_client/examples/dns_mx_delete.php create mode 100644 remoting_client/examples/dns_mx_get.php create mode 100644 remoting_client/examples/dns_mx_update.php create mode 100644 remoting_client/examples/dns_ns_add.php create mode 100644 remoting_client/examples/dns_ns_delete.php create mode 100644 remoting_client/examples/dns_ns_get.php create mode 100644 remoting_client/examples/dns_ns_update.php create mode 100644 remoting_client/examples/dns_ptr_add.php create mode 100644 remoting_client/examples/dns_ptr_delete.php create mode 100644 remoting_client/examples/dns_ptr_get.php create mode 100644 remoting_client/examples/dns_ptr_update.php create mode 100644 remoting_client/examples/dns_rp_add.php create mode 100644 remoting_client/examples/dns_rp_delete.php create mode 100644 remoting_client/examples/dns_rp_get.php create mode 100644 remoting_client/examples/dns_rp_update.php create mode 100644 remoting_client/examples/dns_rr_get_all_by_zone.php create mode 100644 remoting_client/examples/dns_srv_add.php create mode 100644 remoting_client/examples/dns_srv_delete.php create mode 100644 remoting_client/examples/dns_srv_get.php create mode 100644 remoting_client/examples/dns_srv_update.php create mode 100644 remoting_client/examples/dns_txt_add.php create mode 100644 remoting_client/examples/dns_txt_delete.php create mode 100644 remoting_client/examples/dns_txt_get.php create mode 100644 remoting_client/examples/dns_txt_update.php create mode 100644 remoting_client/examples/dns_zone_add.php create mode 100644 remoting_client/examples/dns_zone_delete.php create mode 100644 remoting_client/examples/dns_zone_get.php create mode 100644 remoting_client/examples/dns_zone_get_by_user.php create mode 100644 remoting_client/examples/dns_zone_set_status.php create mode 100644 remoting_client/examples/dns_zone_update.php create mode 100644 remoting_client/examples/domains_domain_add.php create mode 100644 remoting_client/examples/domains_domain_delete.php create mode 100644 remoting_client/examples/domains_domain_get.php create mode 100644 remoting_client/examples/domains_get_all_by_user.php create mode 100644 remoting_client/examples/get_function_list.php create mode 100644 remoting_client/examples/login.php create mode 100644 remoting_client/examples/logout.php create mode 100644 remoting_client/examples/mail_alias_add.php create mode 100644 remoting_client/examples/mail_alias_delete.php create mode 100644 remoting_client/examples/mail_alias_get.php create mode 100644 remoting_client/examples/mail_alias_update.php create mode 100644 remoting_client/examples/mail_blacklist_add.php create mode 100644 remoting_client/examples/mail_blacklist_delete.php create mode 100644 remoting_client/examples/mail_blacklist_get.php create mode 100644 remoting_client/examples/mail_blacklist_update.php create mode 100644 remoting_client/examples/mail_catchall_add.php create mode 100644 remoting_client/examples/mail_catchall_delete.php create mode 100644 remoting_client/examples/mail_catchall_get.php create mode 100644 remoting_client/examples/mail_catchall_update.php create mode 100644 remoting_client/examples/mail_domain_add.php create mode 100644 remoting_client/examples/mail_domain_delete.php create mode 100644 remoting_client/examples/mail_domain_get.php create mode 100644 remoting_client/examples/mail_domain_get_by_domain.php create mode 100644 remoting_client/examples/mail_domain_set_status.php create mode 100644 remoting_client/examples/mail_domain_update.php create mode 100644 remoting_client/examples/mail_fetchmail_add.php create mode 100644 remoting_client/examples/mail_fetchmail_delete.php create mode 100644 remoting_client/examples/mail_fetchmail_get.php create mode 100644 remoting_client/examples/mail_fetchmail_update.php create mode 100644 remoting_client/examples/mail_filter_add.php create mode 100644 remoting_client/examples/mail_filter_delete.php create mode 100644 remoting_client/examples/mail_filter_get.php create mode 100644 remoting_client/examples/mail_filter_update.php create mode 100644 remoting_client/examples/mail_forward_add.php create mode 100644 remoting_client/examples/mail_forward_delete.php create mode 100644 remoting_client/examples/mail_forward_get.php create mode 100644 remoting_client/examples/mail_forward_update.php create mode 100644 remoting_client/examples/mail_mailinglist_add.php create mode 100644 remoting_client/examples/mail_mailinglist_delete.php create mode 100644 remoting_client/examples/mail_mailinglist_get.php create mode 100644 remoting_client/examples/mail_mailinglist_update.php create mode 100644 remoting_client/examples/mail_policy_add.php create mode 100644 remoting_client/examples/mail_policy_delete.php create mode 100644 remoting_client/examples/mail_policy_get.php create mode 100644 remoting_client/examples/mail_policy_update.php create mode 100644 remoting_client/examples/mail_spamfilter_blacklist_add.php create mode 100644 remoting_client/examples/mail_spamfilter_blacklist_delete.php create mode 100644 remoting_client/examples/mail_spamfilter_blacklist_get.php create mode 100644 remoting_client/examples/mail_spamfilter_blacklist_update.php create mode 100644 remoting_client/examples/mail_spamfilter_user_add.php create mode 100644 remoting_client/examples/mail_spamfilter_user_delete.php create mode 100644 remoting_client/examples/mail_spamfilter_user_get.php create mode 100644 remoting_client/examples/mail_spamfilter_user_update.php create mode 100644 remoting_client/examples/mail_spamfilter_whitelist_add.php create mode 100644 remoting_client/examples/mail_spamfilter_whitelist_delete.php create mode 100644 remoting_client/examples/mail_spamfilter_whitelist_get.php create mode 100644 remoting_client/examples/mail_spamfilter_whitelist_update.php create mode 100644 remoting_client/examples/mail_transport_add.php create mode 100644 remoting_client/examples/mail_transport_delete.php create mode 100644 remoting_client/examples/mail_transport_get.php create mode 100644 remoting_client/examples/mail_transport_update.php create mode 100644 remoting_client/examples/mail_user_add.php create mode 100644 remoting_client/examples/mail_user_delete.php create mode 100644 remoting_client/examples/mail_user_filter_add.php create mode 100644 remoting_client/examples/mail_user_filter_delete.php create mode 100644 remoting_client/examples/mail_user_filter_get.php create mode 100644 remoting_client/examples/mail_user_filter_update.php create mode 100644 remoting_client/examples/mail_user_get.php create mode 100644 remoting_client/examples/mail_user_update.php create mode 100644 remoting_client/examples/mail_whitelist_add.php create mode 100644 remoting_client/examples/mail_whitelist_delete.php create mode 100644 remoting_client/examples/mail_whitelist_get.php create mode 100644 remoting_client/examples/mail_whitelist_update.php create mode 100644 remoting_client/examples/openvz_get_free_ip.php create mode 100644 remoting_client/examples/openvz_ip_add.php create mode 100644 remoting_client/examples/openvz_ip_delete.php create mode 100644 remoting_client/examples/openvz_ip_get.php create mode 100644 remoting_client/examples/openvz_ip_update.php create mode 100644 remoting_client/examples/openvz_ostemplate_add.php create mode 100644 remoting_client/examples/openvz_ostemplate_delete.php create mode 100644 remoting_client/examples/openvz_ostemplate_get.php create mode 100644 remoting_client/examples/openvz_ostemplate_update.php create mode 100644 remoting_client/examples/openvz_template_add.php create mode 100644 remoting_client/examples/openvz_template_delete.php create mode 100644 remoting_client/examples/openvz_template_get.php create mode 100644 remoting_client/examples/openvz_template_update.php create mode 100644 remoting_client/examples/openvz_vm_add_from_template.php create mode 100644 remoting_client/examples/openvz_vm_delete.php create mode 100644 remoting_client/examples/openvz_vm_get.php create mode 100644 remoting_client/examples/openvz_vm_get_by_client.php create mode 100644 remoting_client/examples/openvz_vm_update.php create mode 100644 remoting_client/examples/server_get.php create mode 100644 remoting_client/examples/server_get_serverid_by_ip.php create mode 100644 remoting_client/examples/sites_cron_add.php create mode 100644 remoting_client/examples/sites_cron_delete.php create mode 100644 remoting_client/examples/sites_cron_get.php create mode 100644 remoting_client/examples/sites_cron_update.php create mode 100644 remoting_client/examples/sites_database_add.php create mode 100644 remoting_client/examples/sites_database_delete.php create mode 100644 remoting_client/examples/sites_database_get.php create mode 100644 remoting_client/examples/sites_database_get_all_by_user.php create mode 100644 remoting_client/examples/sites_database_update.php create mode 100644 remoting_client/examples/sites_ftp_user_add.php create mode 100644 remoting_client/examples/sites_ftp_user_delete.php create mode 100644 remoting_client/examples/sites_ftp_user_get.php create mode 100644 remoting_client/examples/sites_ftp_user_update.php create mode 100644 remoting_client/examples/sites_shell_user_add.php create mode 100644 remoting_client/examples/sites_shell_user_delete.php create mode 100644 remoting_client/examples/sites_shell_user_get.php create mode 100644 remoting_client/examples/sites_shell_user_update.php create mode 100644 remoting_client/examples/sites_web_aliasdomain_add.php create mode 100644 remoting_client/examples/sites_web_aliasdomain_delete.php create mode 100644 remoting_client/examples/sites_web_aliasdomain_get.php create mode 100644 remoting_client/examples/sites_web_aliasdomain_update.php create mode 100644 remoting_client/examples/sites_web_domain_add.php create mode 100644 remoting_client/examples/sites_web_domain_delete.php create mode 100644 remoting_client/examples/sites_web_domain_get.php create mode 100644 remoting_client/examples/sites_web_domain_set_status.php create mode 100644 remoting_client/examples/sites_web_domain_update.php create mode 100644 remoting_client/examples/sites_web_subdomain_add.php create mode 100644 remoting_client/examples/sites_web_subdomain_delete.php create mode 100644 remoting_client/examples/sites_web_subdomain_get.php create mode 100644 remoting_client/examples/sites_web_subdomain_update.php delete mode 100644 remoting_client/examples/soap-alias-add.php delete mode 100644 remoting_client/examples/soap-alias-delete.php delete mode 100644 remoting_client/examples/soap-alias-update.php delete mode 100644 remoting_client/examples/soap-blacklist-add.php delete mode 100644 remoting_client/examples/soap-blacklist-delete.php delete mode 100644 remoting_client/examples/soap-blacklist-update.php delete mode 100644 remoting_client/examples/soap-catchall-add.php delete mode 100644 remoting_client/examples/soap-catchall-delete.php delete mode 100644 remoting_client/examples/soap-catchall-update.php delete mode 100644 remoting_client/examples/soap-client-add.php delete mode 100644 remoting_client/examples/soap-client-delete.php delete mode 100644 remoting_client/examples/soap-client-update.php delete mode 100644 remoting_client/examples/soap-fetchmail-add.php delete mode 100644 remoting_client/examples/soap-fetchmail-delete.php delete mode 100644 remoting_client/examples/soap-fetchmail-update.php delete mode 100644 remoting_client/examples/soap-filtr-add.php delete mode 100644 remoting_client/examples/soap-filtr-delete.php delete mode 100644 remoting_client/examples/soap-filtr-update.php delete mode 100644 remoting_client/examples/soap-forward-add.php delete mode 100644 remoting_client/examples/soap-forward-delete.php delete mode 100644 remoting_client/examples/soap-forward-update.php delete mode 100644 remoting_client/examples/soap-mailuser-add.php delete mode 100644 remoting_client/examples/soap-mailuser-delete.php delete mode 100644 remoting_client/examples/soap-mailuser-update.php delete mode 100644 remoting_client/examples/soap-policy-add.php delete mode 100644 remoting_client/examples/soap-policy-delete.php delete mode 100644 remoting_client/examples/soap-policy-update.php delete mode 100644 remoting_client/examples/soap-transport-add.php delete mode 100644 remoting_client/examples/soap-transport-delete.php delete mode 100644 remoting_client/examples/soap-transport-update.php delete mode 100644 remoting_client/examples/soap-users_spamfilter-add.php delete mode 100644 remoting_client/examples/soap-users_spamfilter-delete.php delete mode 100644 remoting_client/examples/soap-users_spamfilter-update.php delete mode 100644 remoting_client/examples/soap-whitelist-add.php delete mode 100644 remoting_client/examples/soap-whitelist-delete.php delete mode 100644 remoting_client/examples/soap-whitelist-update.php delete mode 100644 remoting_client/examples/soap-wpisy_blacklist-add.php delete mode 100644 remoting_client/examples/soap-wpisy_blacklist-delete.php delete mode 100644 remoting_client/examples/soap-wpisy_blacklist-update.php delete mode 100644 remoting_client/examples/soap-wpisy_whitelist-add.php delete mode 100644 remoting_client/examples/soap-wpisy_whitelist-delete.php delete mode 100644 remoting_client/examples/soap-wpisy_whitelist-update.php create mode 100644 remoting_client/readme diff --git a/docs/Remote_API_docs.txt b/docs/Remote_API_docs.txt new file mode 100644 index 0000000000..a11c78dd49 --- /dev/null +++ b/docs/Remote_API_docs.txt @@ -0,0 +1,3 @@ + + +The remote API documentation is in the remote_client/API-docs subfolder. \ No newline at end of file diff --git a/remoting_client/API-docs/client_add.html b/remoting_client/API-docs/client_add.html new file mode 100644 index 0000000000..c4881f3a5b --- /dev/null +++ b/remoting_client/API-docs/client_add.html @@ -0,0 +1,88 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

client_add($session_id, $reseller_id, $params);

+
+

Description:

+

Adds a new client.


+

Input Variables:

+

$session_id, $reseller_id, $params

+

Parameters (in $params):

+

company_name  (varchar(64))

+

contact_name  (varchar(64))

+

customer_no  (varchar(64))

+

vat_id  (varchar(64))

+

street  (varchar(255))

+

zip  (varchar(32))

+

city  (varchar(64))

+

state  (varchar(32))

+

country  (char(2))

+

telephone  (varchar(32))

+

mobile  (varchar(32))

+

fax  (varchar(32))

+

email  (varchar(255))

+

internet  (varchar(255))

+

icq  (varchar(16))

+

notes  (text)

+

default_mailserver  (int(11))

+

limit_maildomain  (int(11))

+

limit_mailbox  (int(11))

+

limit_mailalias  (int(11))

+

limit_mailaliasdomain  (int(11))

+

limit_mailforward  (int(11))

+

limit_mailcatchall  (int(11))

+

limit_mailrouting  (int(11))

+

limit_mailfilter  (int(11))

+

limit_fetchmail  (int(11))

+

limit_mailquota  (int(11))

+

limit_spamfilter_wblist  (int(11))

+

limit_spamfilter_user  (int(11))

+

limit_spamfilter_policy  (int(11))

+

default_webserver  (int(11))

+

limit_web_ip  (text)

+

limit_web_domain  (int(11))

+

limit_web_quota  (int(11))

+

web_php_options  (varchar(255))

+

limit_web_subdomain  (int(11))

+

limit_web_aliasdomain  (int(11))

+

limit_ftp_user  (int(11))

+

limit_shell_user  (int(11))

+

ssh_chroot  (varchar(255))

+

limit_webdav_user  (int(11))

+

default_dnsserver  (int(11))

+

limit_dns_zone  (int(11))

+

limit_dns_slave_zone  (int(11))

+

limit_dns_record  (int(11))

+

default_dbserver  (int(11))

+

limit_database  (int(11))

+

limit_cron  (int(11))

+

limit_cron_type  (enum('url','chrooted','full'))

+

limit_cron_frequency  (int(11))

+

limit_traffic_quota  (int(11))

+

limit_client  (varchar(64))

+

parent_client_id  (int(11))

+

username  (varchar(64))

+

password  (varchar(64))

+

language  (char(2))

+

usertheme  (varchar(32))

+

template_master  (int(11))

+

template_additional  (varchar(255))

+

created_at  (bigint(20))

+

Output:

+

Returns the ID of the newly added Client.

+ +
+ + diff --git a/remoting_client/API-docs/client_change_password.html b/remoting_client/API-docs/client_change_password.html new file mode 100644 index 0000000000..caf1a44083 --- /dev/null +++ b/remoting_client/API-docs/client_change_password.html @@ -0,0 +1,31 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

client_change_password($session_id, $client_id, $new_password);

+
+

Description:

+

Changes a client's password.


+

Input Variables:

+

$session_id, $client_id, $new_password

+

Parameters (in $params):

+

None

+

Output:

+

Returns '1' if password has been changed.

+

SQL Interaction:

+

"SELECT client_id FROM client WHERE client_id = ".$client_id

+ +
+ + diff --git a/remoting_client/API-docs/client_delete.html b/remoting_client/API-docs/client_delete.html new file mode 100644 index 0000000000..b5781bef46 --- /dev/null +++ b/remoting_client/API-docs/client_delete.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

client_delete($session_id, $client_id);

+
+

Description:

+

Deletes a client.


+

Input Variables:

+

$session_id, $client_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns the number of deleted records.

+ +
+ + diff --git a/remoting_client/API-docs/client_delete_everything.html b/remoting_client/API-docs/client_delete_everything.html new file mode 100644 index 0000000000..f78b9aaaf4 --- /dev/null +++ b/remoting_client/API-docs/client_delete_everything.html @@ -0,0 +1,31 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

client_delete_everything($session_id, $client_id);

+
+

Description:

+

Deletes client.


+

Input Variables:

+

$session_id, $client_id

+

Parameters (in $params):

+

None

+

Output:

+

+

SQL Interaction:

+

"SELECT groupid FROM sys_group WHERE client_id = $client_id"

+ +
+ + diff --git a/remoting_client/API-docs/client_get.html b/remoting_client/API-docs/client_get.html new file mode 100644 index 0000000000..3017c5d001 --- /dev/null +++ b/remoting_client/API-docs/client_get.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

client_get($session_id, $client_id);

+
+

Description:

+

Retrieves information about a client.


+

Input Variables:

+

$session_id, $client_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns all fields and values of the chosen client.

+ +
+ + diff --git a/remoting_client/API-docs/client_get_by_username.html b/remoting_client/API-docs/client_get_by_username.html new file mode 100644 index 0000000000..42f47094b0 --- /dev/null +++ b/remoting_client/API-docs/client_get_by_username.html @@ -0,0 +1,31 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

client_get_by_username($session_id, $username);

+
+

Description:

+

Shows client information of user.


+

Input Variables:

+

$session_id, $username

+

Parameters (in $params):

+

None

+

Output:

+

Returns client information of the user specified by his or her name.

+

SQL Interaction:

+

"SELECT * FROM sys_user WHERE username = '".$username."'"

+ +
+ + diff --git a/remoting_client/API-docs/client_get_id.html b/remoting_client/API-docs/client_get_id.html new file mode 100644 index 0000000000..5510c3c300 --- /dev/null +++ b/remoting_client/API-docs/client_get_id.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

client_get_id($session_id, $sys_userid);

+
+

Description:

+

Retrieves the client ID of the system user.


+

Input Variables:

+

$session_id, $sys_userid

+

Parameters (in $params):

+

None

+

Output:

+

Returns the client ID of the user with the entered system user ID.

+ +
+ + diff --git a/remoting_client/API-docs/client_get_sites_by_user.html b/remoting_client/API-docs/client_get_sites_by_user.html new file mode 100644 index 0000000000..b556fc1ad3 --- /dev/null +++ b/remoting_client/API-docs/client_get_sites_by_user.html @@ -0,0 +1,31 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

client_get_sites_by_user($session_id, $sys_userid, $sys_groupid);

+
+

Description:

+

Shows sites of a single user.


+

Input Variables:

+

$session_id, $sys_userid, $sys_groupid

+

Parameters (in $params):

+

None

+

Output:

+

Shows sites and its values belonging to the specified user.

+

SQL Interaction:

+

"SELECT domain, domain_id, document_root, active FROM web_domain WHERE ( (sys_userid = $sys_userid AND sys_perm_user LIKE '%r%') OR (sys_groupid IN ($group_list) AND sys_perm_group LIKE '%r%') OR sys_perm_other LIKE '%r%') AND type = 'vhost'"

+ +
+ + diff --git a/remoting_client/API-docs/client_templates_get_all.html b/remoting_client/API-docs/client_templates_get_all.html new file mode 100644 index 0000000000..34c8631fed --- /dev/null +++ b/remoting_client/API-docs/client_templates_get_all.html @@ -0,0 +1,31 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

client_templates_get_all($session_id);

+
+

Description:

+

Returns all client templates.


+

Input Variables:

+

$session_id

+

Parameters (in $params):

+

None.

+

Output:

+

Returns an array with the parameter values of all client templates.

+

SQL Interaction:

+

"SELECT * FROM client_template"

+ +
+ + diff --git a/remoting_client/API-docs/client_update.html b/remoting_client/API-docs/client_update.html new file mode 100644 index 0000000000..67cc5cad34 --- /dev/null +++ b/remoting_client/API-docs/client_update.html @@ -0,0 +1,88 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

client_update($session_id, $client_id, $reseller_id, $params);

+
+Description: +

Updates a client.


+Input Variables: +

$session_id, $client_id, $reseller_id, $params

+Parameters (in $params): +

company_name  (varchar(64))

+

contact_name  (varchar(64))

+

customer_no  (varchar(64))

+

vat_id  (varchar(64))

+

street  (varchar(255))

+

zip  (varchar(32))

+

city  (varchar(64))

+

state  (varchar(32))

+

country  (char(2))

+

telephone  (varchar(32))

+

mobile  (varchar(32))

+

fax  (varchar(32))

+

email  (varchar(255))

+

internet  (varchar(255))

+

icq  (varchar(16))

+

notes  (text)

+

default_mailserver  (int(11))

+

limit_maildomain  (int(11))

+

limit_mailbox  (int(11))

+

limit_mailalias  (int(11))

+

limit_mailaliasdomain  (int(11))

+

limit_mailforward  (int(11))

+

limit_mailcatchall  (int(11))

+

limit_mailrouting  (int(11))

+

limit_mailfilter  (int(11))

+

limit_fetchmail  (int(11))

+

limit_mailquota  (int(11))

+

limit_spamfilter_wblist  (int(11))

+

limit_spamfilter_user  (int(11))

+

limit_spamfilter_policy  (int(11))

+

default_webserver  (int(11))

+

limit_web_ip  (text)

+

limit_web_domain  (int(11))

+

limit_web_quota  (int(11))

+

web_php_options  (varchar(255))

+

limit_web_subdomain  (int(11))

+

limit_web_aliasdomain  (int(11))

+

limit_ftp_user  (int(11))

+

limit_shell_user  (int(11))

+

ssh_chroot  (varchar(255))

+

limit_webdav_user  (int(11))

+

default_dnsserver  (int(11))

+

limit_dns_zone  (int(11))

+

limit_dns_slave_zone  (int(11))

+

limit_dns_record  (int(11))

+

default_dbserver  (int(11))

+

limit_database  (int(11))

+

limit_cron  (int(11))

+

limit_cron_type  (enum('url','chrooted','full'))

+

limit_cron_frequency  (int(11))

+

limit_traffic_quota  (int(11))

+

limit_client  (varchar(64))

+

parent_client_id  (int(11))

+

username  (varchar(64))

+

password  (varchar(64))

+

language  (char(2))

+

usertheme  (varchar(32))

+

template_master  (int(11))

+

template_additional  (varchar(255))

+

created_at  (bigint(20))

+Output: +

Returns the number of affected rows.

+ +
+ + diff --git a/remoting_client/API-docs/content.html b/remoting_client/API-docs/content.html new file mode 100644 index 0000000000..658cf34f95 --- /dev/null +++ b/remoting_client/API-docs/content.html @@ -0,0 +1,44 @@ + + + Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + +
+

Home

+
+ISPConfig 3 remote API documentation. +
+ + diff --git a/remoting_client/API-docs/definitionen.css b/remoting_client/API-docs/definitionen.css new file mode 100644 index 0000000000..6c4bde1b07 --- /dev/null +++ b/remoting_client/API-docs/definitionen.css @@ -0,0 +1,61 @@ +.command { + padding: 1em; + border: 1px dashed #2f6fab; + color: black; + background-color: #f9f9f9; + line-height: 1.1em; + font-family: Courier New, Courier, mono; + font-size: 12px; + font-style: italic; +} + +.system { + color: black; + font-family: Courier New, Courier, mono; + font-size: 12px; + font-style: italic; +} + +.highlight { + color: #FF0000; + font-family: Georgia, "Times New Roman", Times, serif; + font-size: 12px; + text-decoration: underline; +} + +.headdescr { + color: black; + font-weight: bold; +} + +.headinput { + color: black; + font-weight: bold; +} + +.headparams { + color: black; + font-weight: bold; +} + +.headoutput { + color: black; + font-weight: bold; +} + +.headgrp { + color: black; + font-weight: bold; +} + +.var { + color: #A17FFF; +} + +.margin { + margin-left: 100px; +} + +.paratype { + color: #2B8A60; +} diff --git a/remoting_client/API-docs/dns_a_add.html b/remoting_client/API-docs/dns_a_add.html new file mode 100644 index 0000000000..946ae00b2f --- /dev/null +++ b/remoting_client/API-docs/dns_a_add.html @@ -0,0 +1,38 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_a_add($session_id, $client_id, $params);

+
+

Description:

+

Adds a dns IPv4 record if type is a.


+

Input Variables:

+

$session_id, $client_id, $params

+

Parameters (in $params):

+

server_id  (int(11))

+

zone  (int(11))

+

name  (varchar(64))

+

type  (enum('a','aaaa','alias','cname','hinfo','mx''naptr','ns','ptr','rp','srv','txt'))

+

data  (varchar(255))

+

aux  (int(11))

+

ttl  (int(11))

+

active  (enum('n','y'))

+

stamp  (timestamp)

+

serial  (int(10))

+

Output:

+

Returns the ID of the newly added IPv4 resource record.

+ +
+ + diff --git a/remoting_client/API-docs/dns_a_delete.html b/remoting_client/API-docs/dns_a_delete.html new file mode 100644 index 0000000000..8c76e7ed30 --- /dev/null +++ b/remoting_client/API-docs/dns_a_delete.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_a_delete($session_id, $primary_id);

+
+

Description:

+

Deletes target dns IPv4 resource record.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns the number of deleted records.

+ +
+ + diff --git a/remoting_client/API-docs/dns_a_get.html b/remoting_client/API-docs/dns_a_get.html new file mode 100644 index 0000000000..a240e85272 --- /dev/null +++ b/remoting_client/API-docs/dns_a_get.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_a_get($session_id, $primary_id);

+
+

Description:

+

Retrieves information about target dns IPv4 resource record.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns all fields and values of the chosen dns IPv4 resource record.

+ +
+ + diff --git a/remoting_client/API-docs/dns_a_update.html b/remoting_client/API-docs/dns_a_update.html new file mode 100644 index 0000000000..e6f2e9e96e --- /dev/null +++ b/remoting_client/API-docs/dns_a_update.html @@ -0,0 +1,38 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_a_update($session_id, $client_id, $primary_id, $params);

+
+Description: +

Updates an IPv4 record if type is a.


+Input Variables: +

$session_id, $client_id, $primary_id, $params

+Parameters (in $params): +

server_id  (int(11))

+

zone  (int(11))

+

name  (varchar(64))

+

type  (enum('a','aaaa','alias','cname','hinfo','mx''naptr','ns','ptr','rp','srv','txt'))

+

data  (varchar(255))

+

aux  (int(11))

+

ttl  (int(11))

+

active  (enum('n','y'))

+

stamp  (timestamp)

+

serial  (int(10))

+Output: +

Returns the number of affected rows.

+ +
+ + diff --git a/remoting_client/API-docs/dns_aaaa_add.html b/remoting_client/API-docs/dns_aaaa_add.html new file mode 100644 index 0000000000..b638994fca --- /dev/null +++ b/remoting_client/API-docs/dns_aaaa_add.html @@ -0,0 +1,38 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_aaaa_add($session_id, $client_id, $params);

+
+

Description:

+

Adds a dns IPv6 resource record if type is aaaa.


+

Input Variables:

+

$session_id, $client_id, $params

+

Parameters (in $params):

+

server_id  (int(11))

+

zone  (int(11))

+

name  (varchar(64))

+

type  (enum('a','aaaa','alias','cname','hinfo','mx''naptr','ns','ptr','rp','srv','txt'))

+

data  (varchar(255))

+

aux  (int(11))

+

ttl  (int(11))

+

active  (enum('n','y'))

+

stamp  (timestamp)

+

serial  (int(10))

+

Output:

+

Returns the ID of the newly added IPv6 resource record.

+ +
+ + diff --git a/remoting_client/API-docs/dns_aaaa_delete.html b/remoting_client/API-docs/dns_aaaa_delete.html new file mode 100644 index 0000000000..727fbd91d9 --- /dev/null +++ b/remoting_client/API-docs/dns_aaaa_delete.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_aaaa_delete($session_id, $primary_id);

+
+

Description:

+

Deletes target dns IPv6 resource record.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns the number of deleted records.

+ +
+ + diff --git a/remoting_client/API-docs/dns_aaaa_get.html b/remoting_client/API-docs/dns_aaaa_get.html new file mode 100644 index 0000000000..9ba6ba1261 --- /dev/null +++ b/remoting_client/API-docs/dns_aaaa_get.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_aaaa_get($session_id, $primary_id);

+
+

Description:

+

Retrieves information about target dns IPv6 resource record.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns all fields and values of the chosen dns IPv6 resource record.

+ +
+ + diff --git a/remoting_client/API-docs/dns_aaaa_update.html b/remoting_client/API-docs/dns_aaaa_update.html new file mode 100644 index 0000000000..37f5da959a --- /dev/null +++ b/remoting_client/API-docs/dns_aaaa_update.html @@ -0,0 +1,38 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_aaaa_update($session_id, $client_id, $primary_id, $params);

+
+Description: +

Updates a dns IPv6 resource record if type is aaaa.


+Input Variables: +

$session_id, $client_id, $primary_id, $params

+Parameters (in $params): +

server_id  (int(11))

+

zone  (int(11))

+

name  (varchar(64))

+

type  (enum('a','aaaa','alias','cname','hinfo','mx''naptr','ns','ptr','rp','srv','txt'))

+

data  (varchar(255))

+

aux  (int(11))

+

ttl  (int(11))

+

active  (enum('n','y'))

+

stamp  (timestamp)

+

serial  (int(10))

+Output: +

Returns the number of affected rows.

+ +
+ + diff --git a/remoting_client/API-docs/dns_alias_add.html b/remoting_client/API-docs/dns_alias_add.html new file mode 100644 index 0000000000..7e3389c1df --- /dev/null +++ b/remoting_client/API-docs/dns_alias_add.html @@ -0,0 +1,38 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_alias_add($session_id, $client_id, $params);

+
+

Description:

+

Adds a dns server side alias record if type is alias.


+

Input Variables:

+

$session_id, $client_id, $params

+

Parameters (in $params):

+

server_id  (int(11))

+

zone  (int(11))

+

name  (varchar(64))

+

type  (enum('a','aaaa','alias','cname','hinfo','mx','naptr','ns','ptr','rp','srv','txt'))

+

data  (varchar(255))

+

aux  (int(11))

+

ttl  (int(11))

+

active  (enum('n','y'))

+

stamp  (timestamp)

+

serial  (int(10))

+

Output:

+

Returns the ID of the newly added alias resource record.

+ +
+ + diff --git a/remoting_client/API-docs/dns_alias_delete.html b/remoting_client/API-docs/dns_alias_delete.html new file mode 100644 index 0000000000..173147da48 --- /dev/null +++ b/remoting_client/API-docs/dns_alias_delete.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_alias_delete($session_id, $primary_id);

+
+

Description:

+

Deletes target dns alias resource record.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns the number of deleted records.

+ +
+ + diff --git a/remoting_client/API-docs/dns_alias_get.html b/remoting_client/API-docs/dns_alias_get.html new file mode 100644 index 0000000000..228b2dcd49 --- /dev/null +++ b/remoting_client/API-docs/dns_alias_get.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_alias_get($session_id, $primary_id);

+
+

Description:

+

Retrieves information about a dns server side alias resource record.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns all fields and values of the chosen dns alias resource record.

+ +
+ + diff --git a/remoting_client/API-docs/dns_alias_update.html b/remoting_client/API-docs/dns_alias_update.html new file mode 100644 index 0000000000..3008b4398f --- /dev/null +++ b/remoting_client/API-docs/dns_alias_update.html @@ -0,0 +1,38 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_alias_update($session_id, $client_id, $primary_id, $params);

+
+Description: +

Updates a dns server side alias record if type is alias.


+Input Variables: +

$session_id, $client_id, $primary_id, $params

+Parameters (in $params): +

server_id  (int(11))

+

zone  (int(11))

+

name  (varchar(64))

+

type  (enum('a','aaaa','alias','cname','hinfo','mx','naptr','ns','ptr','rp','srv','txt'))

+

data  (varchar(255))

+

aux  (int(11))

+

ttl  (int(11))

+

active  (enum('n','y'))

+

stamp  (timestamp)

+

serial  (int(10))

+Output: +

Returns the number of affected rows.

+ +
+ + diff --git a/remoting_client/API-docs/dns_cname_add.html b/remoting_client/API-docs/dns_cname_add.html new file mode 100644 index 0000000000..1930ba2aac --- /dev/null +++ b/remoting_client/API-docs/dns_cname_add.html @@ -0,0 +1,38 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_cname_add($session_id, $client_id, $params);

+
+

Description:

+

Adds a dns canonical alias name record if type is cname.


+

Input Variables:

+

$session_id, $client_id, $params

+

Parameters (in $params):

+

server_id  (int(11))

+

zone  (int(11))

+

name  (varchar(64))

+

type  (enum('a','aaaa','alias','cname','hinfo','mx','naptr','ns','ptr','rp','srv','txt'))

+

data  (varchar(255))

+

aux  (int(11))

+

ttl  (int(11))

+

active  (enum('n','y'))

+

stamp  (timestamp)

+

serial  (int(10))

+

Output:

+

Returns the ID of the newly added cname resource record.

+ +
+ + diff --git a/remoting_client/API-docs/dns_cname_delete.html b/remoting_client/API-docs/dns_cname_delete.html new file mode 100644 index 0000000000..393cb35db7 --- /dev/null +++ b/remoting_client/API-docs/dns_cname_delete.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_cname_delete($session_id, $primary_id);

+
+

Description:

+

Deletes target dns cname resource record.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns the number of deleted records.

+ +
+ + diff --git a/remoting_client/API-docs/dns_cname_get.html b/remoting_client/API-docs/dns_cname_get.html new file mode 100644 index 0000000000..237a94628f --- /dev/null +++ b/remoting_client/API-docs/dns_cname_get.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_cname_get($session_id, $primary_id);

+
+

Description:

+

Retrieves information about target dns cname resource record.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns all fields and values of the chosen dns cname resource record.

+ +
+ + diff --git a/remoting_client/API-docs/dns_cname_update.html b/remoting_client/API-docs/dns_cname_update.html new file mode 100644 index 0000000000..f97b4d26c2 --- /dev/null +++ b/remoting_client/API-docs/dns_cname_update.html @@ -0,0 +1,38 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_cname_update($session_id, $client_id, $primary_id, $params);

+
+Description: +

Updates a dns canonical alias name record if type is cname.


+Input Variables: +

$session_id, $client_id, $primary_id, $params

+Parameters (in $params): +

server_id  (int(11))

+

zone  (int(11))

+

name  (varchar(64))

+

type  (enum('a','aaaa','alias','cname','hinfo','mx','naptr','ns','ptr','rp','srv','txt'))

+

data  (varchar(255))

+

aux  (int(11))

+

ttl  (int(11))

+

active  (enum('n','y'))

+

stamp  (timestamp)

+

serial  (int(10))

+Output: +

Returns the number of affected rows.

+ +
+ + diff --git a/remoting_client/API-docs/dns_hinfo_add.html b/remoting_client/API-docs/dns_hinfo_add.html new file mode 100644 index 0000000000..2cc042bbaf --- /dev/null +++ b/remoting_client/API-docs/dns_hinfo_add.html @@ -0,0 +1,38 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_hinfo_add($session_id, $client_id, $params);

+
+

Description:

+

Adds a dns host information record if type is hinfo.


+

Input Variables:

+

$session_id, $client_id, $params

+

Parameters (in $params):

+

server_id  (int(11))

+

zone  (int(11))

+

name  (varchar(64))

+

type  (enum('a','aaaa','alias','cname','hinfo','mx','naptr','ns','ptr','rp','srv','txt'))

+

data  (varchar(255))

+

aux  (int(11))

+

ttl  (int(11))

+

active  (enum('n','y'))

+

stamp  (timestamp)

+

serial  (int(10))

+

Output:

+

Returns the ID of the newly added hinfo resource record.

+ +
+ + diff --git a/remoting_client/API-docs/dns_hinfo_delete.html b/remoting_client/API-docs/dns_hinfo_delete.html new file mode 100644 index 0000000000..d19cbc04c1 --- /dev/null +++ b/remoting_client/API-docs/dns_hinfo_delete.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_hinfo_delete($session_id, $primary_id);

+
+

Description:

+

Deletes target dns hinfo resource record.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns the number of deleted records.

+ +
+ + diff --git a/remoting_client/API-docs/dns_hinfo_get.html b/remoting_client/API-docs/dns_hinfo_get.html new file mode 100644 index 0000000000..504c85887a --- /dev/null +++ b/remoting_client/API-docs/dns_hinfo_get.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_hinfo_get($session_id, $primary_id);

+
+

Description:

+

Retrieves information about target dns hinfo resource record.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns all fields and values of the chosen dns hinfo resource record.

+ +
+ + diff --git a/remoting_client/API-docs/dns_hinfo_update.html b/remoting_client/API-docs/dns_hinfo_update.html new file mode 100644 index 0000000000..c4b2e95ad2 --- /dev/null +++ b/remoting_client/API-docs/dns_hinfo_update.html @@ -0,0 +1,38 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_hinfo_update($session_id, $client_id, $primary_id, $params);

+
+Description: +

Updates a dns host information record if type is hinfo.


+Input Variables: +

$session_id, $client_id, $primary_id, $params

+Parameters (in $params): +

server_id  (int(11))

+

zone  (int(11))

+

name  (varchar(64))

+

type  (enum('a','aaaa','alias','cname','hinfo','mx','naptr','ns','ptr','rp','srv','txt'))

+

data  (varchar(255))

+

aux  (int(11))

+

ttl  (int(11))

+

active  (enum('n','y'))

+

stamp  (timestamp)

+

serial  (int(10))

+Output: +

Returns the number of affected rows.

+ +
+ + diff --git a/remoting_client/API-docs/dns_mx_add.html b/remoting_client/API-docs/dns_mx_add.html new file mode 100644 index 0000000000..01d4ccba44 --- /dev/null +++ b/remoting_client/API-docs/dns_mx_add.html @@ -0,0 +1,38 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_mx_add($session_id, $client_id, $params);

+
+

Description:

+

Adds a dns mail exchanger record if type is mx.


+

Input Variables:

+

$session_id, $client_id, $params

+

Parameters (in $params):

+

server_id  (int(11))

+

zone  (int(11))

+

name  (varchar(64))

+

type  (enum('a','aaaa','alias','cname','hinfo','mx','naptr','ns','ptr','rp','srv','txt'))

+

data  (varchar(255))

+

aux  (int(11))

+

ttl  (int(11))

+

active  (enum('n','y'))

+

stamp  (timestamp)

+

serial  (int(10))

+

Output:

+

Returns the ID of the newly added mx resource record.

+ +
+ + diff --git a/remoting_client/API-docs/dns_mx_delete.html b/remoting_client/API-docs/dns_mx_delete.html new file mode 100644 index 0000000000..38fd40b439 --- /dev/null +++ b/remoting_client/API-docs/dns_mx_delete.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_mx_delete($session_id, $primary_id);

+
+

Description:

+

Deletes target dns mx resource record.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns the number of deleted records.

+ +
+ + diff --git a/remoting_client/API-docs/dns_mx_get.html b/remoting_client/API-docs/dns_mx_get.html new file mode 100644 index 0000000000..53a86370f2 --- /dev/null +++ b/remoting_client/API-docs/dns_mx_get.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_mx_get($session_id, $primary_id);

+
+

Description:

+

Retrieves information about target dns mx resource record.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns all fields and values of the chosen dns mx resource record.

+ +
+ + diff --git a/remoting_client/API-docs/dns_mx_update.html b/remoting_client/API-docs/dns_mx_update.html new file mode 100644 index 0000000000..648e6066f3 --- /dev/null +++ b/remoting_client/API-docs/dns_mx_update.html @@ -0,0 +1,38 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_mx_update($session_id, $client_id, $primary_id, $params);

+
+Description: +

Updates a dns mail exchanger record if type is mx.


+Input Variables: +

$session_id, $client_id, $primary_id, $params

+Parameters (in $params): +

server_id  (int(11))

+

zone  (int(11))

+

name  (varchar(64))

+

type  (enum('a','aaaa','alias','cname','hinfo','mx','naptr','ns','ptr','rp','srv','txt'))

+

data  (varchar(255))

+

aux  (int(11))

+

ttl  (int(11))

+

active  (enum('n','y'))

+

stamp  (timestamp)

+

serial  (int(10))

+Output: +

Returns the number of affected rows.

+ +
+ + diff --git a/remoting_client/API-docs/dns_ns_add.html b/remoting_client/API-docs/dns_ns_add.html new file mode 100644 index 0000000000..425f4b3d9f --- /dev/null +++ b/remoting_client/API-docs/dns_ns_add.html @@ -0,0 +1,38 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_ns_add($session_id, $client_id, $params);

+
+

Description:

+

Adds a dns authoritative nameserver record if type is ns.


+

Input Variables:

+

$session_id, $client_id, $params

+

Parameters (in $params):

+

server_id  (int(11))

+

zone  (int(11))

+

name  (varchar(64))

+

type  (enum('a','aaaa','alias','cname','hinfo','mx','naptr','ns','ptr','rp','srv','txt'))

+

data  (varchar(255))

+

aux  (int(11))

+

ttl  (int(11))

+

active  (enum('n','y'))

+

stamp  (timestamp)

+

serial  (int(10))

+

Output:

+

Returns the ID of the newly added ns resource record.

+ +
+ + diff --git a/remoting_client/API-docs/dns_ns_delete.html b/remoting_client/API-docs/dns_ns_delete.html new file mode 100644 index 0000000000..d8b2b3bb63 --- /dev/null +++ b/remoting_client/API-docs/dns_ns_delete.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_ns_delete($session_id, $primary_id);

+
+

Description:

+

Deletes target dns ns resource record.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns the number of deleted records.

+ +
+ + diff --git a/remoting_client/API-docs/dns_ns_get.html b/remoting_client/API-docs/dns_ns_get.html new file mode 100644 index 0000000000..93a90371db --- /dev/null +++ b/remoting_client/API-docs/dns_ns_get.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_ns_get($session_id, $primary_id);

+
+

Description:

+

Retrieves information about target dns ns resource record.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns all fields and values of the chosen dns ns resource record.

+ +
+ + diff --git a/remoting_client/API-docs/dns_ns_update.html b/remoting_client/API-docs/dns_ns_update.html new file mode 100644 index 0000000000..808af150d5 --- /dev/null +++ b/remoting_client/API-docs/dns_ns_update.html @@ -0,0 +1,38 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_ns_update($session_id, $client_id, $primary_id, $params);

+
+Description: +

Updates an authoritative nameserver record if type is ns.


+Input Variables: +

$session_id, $client_id, $primary_id, $params

+Parameters (in $params): +

server_id  (int(11))

+

zone  (int(11))

+

name  (varchar(64))

+

type  (enum('a','aaaa','alias','cname','hinfo','mx','naptr','ns','ptr','rp','srv','txt'))

+

data  (varchar(255))

+

aux  (int(11))

+

ttl  (int(11))

+

active  (enum('n','y'))

+

stamp  (timestamp)

+

serial  (int(10))

+Output: +

Returns the number of affected rows.

+ +
+ + diff --git a/remoting_client/API-docs/dns_ptr_add.html b/remoting_client/API-docs/dns_ptr_add.html new file mode 100644 index 0000000000..c3be2ecdcf --- /dev/null +++ b/remoting_client/API-docs/dns_ptr_add.html @@ -0,0 +1,38 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_ptr_add($session_id, $client_id, $params);

+
+

Description:

+

Adds a dns domain name pointer record if type is ptr.


+

Input Variables:

+

$session_id, $client_id, $params

+

Parameters (in $params):

+

server_id  (int(11))

+

zone  (int(11))

+

name  (varchar(64))

+

type  (enum('a','aaaa','alias','cname','hinfo','mx','naptr','ns','ptr','rp','srv','txt'))

+

data  (varchar(255))

+

aux  (int(11))

+

ttl  (int(11))

+

active  (enum('n','y'))

+

stamp  (timestamp)

+

serial  (int(10))

+

Output:

+

Returns the ID of the newly added ptr resource record.

+ +
+ + diff --git a/remoting_client/API-docs/dns_ptr_delete.html b/remoting_client/API-docs/dns_ptr_delete.html new file mode 100644 index 0000000000..5606ab91e8 --- /dev/null +++ b/remoting_client/API-docs/dns_ptr_delete.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_ptr_delete($session_id, $primary_id);

+
+

Description:

+

Deletes target dns ptr resource record.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns the number of deleted records.

+ +
+ + diff --git a/remoting_client/API-docs/dns_ptr_get.html b/remoting_client/API-docs/dns_ptr_get.html new file mode 100644 index 0000000000..ea811c93ca --- /dev/null +++ b/remoting_client/API-docs/dns_ptr_get.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_ptr_get($session_id, $primary_id);

+
+

Description:

+

Retrieves information about target dns ptr resource record.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns all fields and values of the chosen dns ptr resource record.

+ +
+ + diff --git a/remoting_client/API-docs/dns_ptr_update.html b/remoting_client/API-docs/dns_ptr_update.html new file mode 100644 index 0000000000..38064f3f0a --- /dev/null +++ b/remoting_client/API-docs/dns_ptr_update.html @@ -0,0 +1,38 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_ptr_update($session_id, $client_id, $primary_id, $params);

+
+Description: +

Updates a dns domain name pointer record if type is ptr.


+Input Variables: +

$session_id, $client_id, $primary_id, $params

+Parameters (in $params): +

server_id  (int(11))

+

zone  (int(11))

+

name  (varchar(64))

+

type  (enum('a','aaaa','alias','cname','hinfo','mx','naptr','ns','ptr','rp','srv','txt'))

+

data  (varchar(255))

+

aux  (int(11))

+

ttl  (int(11))

+

active  (enum('n','y'))

+

stamp  (timestamp)

+

serial  (int(10))

+Output: +

Returns the number of affected rows.

+ +
+ + diff --git a/remoting_client/API-docs/dns_rp_add.html b/remoting_client/API-docs/dns_rp_add.html new file mode 100644 index 0000000000..eaa70c698e --- /dev/null +++ b/remoting_client/API-docs/dns_rp_add.html @@ -0,0 +1,38 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_rp_add($session_id, $client_id, $params);

+
+

Description:

+

Adds a dns responsible person record if type is rp.


+

Input Variables:

+

$session_id, $client_id, $params

+

Parameters (in $params):

+

server_id  (int(11))

+

zone  (int(11))

+

name  (varchar(64))

+

type  (enum('a','aaaa','alias','cname','hinfo','mx','naptr','ns','ptr','rp','srv','txt'))

+

data  (varchar(255))

+

aux  (int(11))

+

ttl  (int(11))

+

active  (enum('n','y'))

+

stamp  (timestamp)

+

serial  (int(10))

+

Output:

+

Returns the ID of the newly added rp resource record.

+ +
+ + diff --git a/remoting_client/API-docs/dns_rp_delete.html b/remoting_client/API-docs/dns_rp_delete.html new file mode 100644 index 0000000000..d78bfe276d --- /dev/null +++ b/remoting_client/API-docs/dns_rp_delete.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_rp_delete($session_id, $primary_id);

+
+

Description:

+

Deletes target dns rp resource record.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns the number of deleted records.

+ +
+ + diff --git a/remoting_client/API-docs/dns_rp_get.html b/remoting_client/API-docs/dns_rp_get.html new file mode 100644 index 0000000000..fd98045b75 --- /dev/null +++ b/remoting_client/API-docs/dns_rp_get.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_rp_get($session_id, $primary_id);

+
+

Description:

+

Retrieves information about target dns rp resource record.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns all fields and values of the chosen dns rp resource record.

+ +
+ + diff --git a/remoting_client/API-docs/dns_rp_update.html b/remoting_client/API-docs/dns_rp_update.html new file mode 100644 index 0000000000..ce120f8978 --- /dev/null +++ b/remoting_client/API-docs/dns_rp_update.html @@ -0,0 +1,38 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_rp_update($session_id, $client_id, $primary_id, $params);

+
+Description: +

Updates a dns responsible person record if type is rp.


+Input Variables: +

$session_id, $client_id, $primary_id, $params

+Parameters (in $params): +

server_id  (int(11))

+

zone  (int(11))

+

name  (varchar(64))

+

type  (enum('a','aaaa','alias','cname','hinfo','mx','naptr','ns','ptr','rp','srv','txt'))

+

data  (varchar(255))

+

aux  (int(11))

+

ttl  (int(11))

+

active  (enum('n','y'))

+

stamp  (timestamp)

+

serial  (int(10))

+Output: +

Returns the number of affected rows.

+ +
+ + diff --git a/remoting_client/API-docs/dns_rr_get_all_by_zone.html b/remoting_client/API-docs/dns_rr_get_all_by_zone.html new file mode 100644 index 0000000000..186c1ac864 --- /dev/null +++ b/remoting_client/API-docs/dns_rr_get_all_by_zone.html @@ -0,0 +1,31 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_rr_get_all_by_zone($session_id, $zone_id);

+
+

Description:

+

Shows information about a zone's resource records.


+

Input Variables:

+

$session_id, $zone_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns a record of the zone's parameter values.

+

SQL Interaction:

+

"SELECT * FROM dns_rr WHERE zone = ".intval($zone_id)

+ +
+ + diff --git a/remoting_client/API-docs/dns_srv_add.html b/remoting_client/API-docs/dns_srv_add.html new file mode 100644 index 0000000000..70754ad58f --- /dev/null +++ b/remoting_client/API-docs/dns_srv_add.html @@ -0,0 +1,38 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_srv_add($session_id, $client_id, $params);

+
+

Description:

+

Adds a dns server location record if type is srv.


+

Input Variables:

+

$session_id, $client_id, $params

+

Parameters (in $params):

+

server_id  (int(11))

+

zone  (int(11))

+

name  (varchar(64))

+

type  (enum('a','aaaa','alias','cname','hinfo','mx','naptr','ns','ptr','rp','srv','txt'))

+

data  (varchar(255))

+

aux  (int(11))

+

ttl  (int(11))

+

active  (enum('n','y'))

+

stamp  (timestamp)

+

serial  (int(10))

+

Output:

+

Returns the ID of the newly added srv resource record.

+ +
+ + diff --git a/remoting_client/API-docs/dns_srv_delete.html b/remoting_client/API-docs/dns_srv_delete.html new file mode 100644 index 0000000000..d3eacef9cc --- /dev/null +++ b/remoting_client/API-docs/dns_srv_delete.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_srv_delete($session_id, $primary_id);

+
+

Description:

+

Deletes target dns srv resource record.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns the number of deleted records.

+ +
+ + diff --git a/remoting_client/API-docs/dns_srv_get.html b/remoting_client/API-docs/dns_srv_get.html new file mode 100644 index 0000000000..6883ec35b6 --- /dev/null +++ b/remoting_client/API-docs/dns_srv_get.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_srv_get($session_id, $primary_id);

+
+

Description:

+

Retrieves information about target dns srv resource record.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns all fields and values of the chosen dns srv resource record.

+ +
+ + diff --git a/remoting_client/API-docs/dns_srv_update.html b/remoting_client/API-docs/dns_srv_update.html new file mode 100644 index 0000000000..0fed81f844 --- /dev/null +++ b/remoting_client/API-docs/dns_srv_update.html @@ -0,0 +1,38 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_srv_update($session_id, $client_id, $primary_id, $params);

+
+Description: +

Updates a dns server location record if type is srv.


+Input Variables: +

$session_id, $client_id, $primary_id, $params

+Parameters (in $params): +

server_id  (int(11))

+

zone  (int(11))

+

name  (varchar(64))

+

type  (enum('a','aaaa','alias','cname','hinfo','mx','naptr','ns','ptr','rp','srv','txt'))

+

data  (varchar(255))

+

aux  (int(11))

+

ttl  (int(11))

+

active  (enum('n','y'))

+

stamp  (timestamp)

+

serial  (int(10))

+Output: +

Returns the number of affected rows.

+ +
+ + diff --git a/remoting_client/API-docs/dns_txt_add.html b/remoting_client/API-docs/dns_txt_add.html new file mode 100644 index 0000000000..fd3d3f713a --- /dev/null +++ b/remoting_client/API-docs/dns_txt_add.html @@ -0,0 +1,38 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_txt_add($session_id, $client_id, $params);

+
+

Description:

+

Adds a dns text string record if type is txt.


+

Input Variables:

+

$session_id, $client_id, $params

+

Parameters (in $params):

+

server_id  (int(11))

+

zone  (int(11))

+

name  (varchar(64))

+

type  (enum('a','aaaa','alias','cname','hinfo','mx','naptr','ns','ptr','rp','srv','txt'))

+

data  (varchar(255))

+

aux  (int(11))

+

ttl  (int(11))

+

active  (enum('n','y'))

+

stamp  (timestamp)

+

serial  (int(10))

+

Output:

+

Returns the ID of the newly added txt resource record.

+ +
+ + diff --git a/remoting_client/API-docs/dns_txt_delete.html b/remoting_client/API-docs/dns_txt_delete.html new file mode 100644 index 0000000000..6a410cbaf5 --- /dev/null +++ b/remoting_client/API-docs/dns_txt_delete.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_txt_delete($session_id, $primary_id);

+
+

Description:

+

Deletes target dns txt resource record.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns the number of deleted records.

+ +
+ + diff --git a/remoting_client/API-docs/dns_txt_get.html b/remoting_client/API-docs/dns_txt_get.html new file mode 100644 index 0000000000..868ad6e756 --- /dev/null +++ b/remoting_client/API-docs/dns_txt_get.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_txt_get($session_id, $primary_id);

+
+

Description:

+

Retrieves information about target dns txt resource record.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns all fields and values of the chosen dns txt resource record.

+ +
+ + diff --git a/remoting_client/API-docs/dns_txt_update.html b/remoting_client/API-docs/dns_txt_update.html new file mode 100644 index 0000000000..606a579b91 --- /dev/null +++ b/remoting_client/API-docs/dns_txt_update.html @@ -0,0 +1,38 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_txt_update($session_id, $client_id, $primary_id, $params);

+
+Description: +

Updates a dns text string record if type is txt.


+Input Variables: +

$session_id, $client_id, $primary_id, $params

+Parameters (in $params): +

server_id  (int(11))

+

zone  (int(11))

+

name  (varchar(64))

+

type  (enum('a','aaaa','alias','cname','hinfo','mx','naptr','ns','ptr','rp','srv','txt'))

+

data  (varchar(255))

+

aux  (int(11))

+

ttl  (int(11))

+

active  (enum('n','y'))

+

stamp  (timestamp)

+

serial  (int(10))

+Output: +

Returns the number of affected rows.

+ +
+ + diff --git a/remoting_client/API-docs/dns_zone_add.html b/remoting_client/API-docs/dns_zone_add.html new file mode 100644 index 0000000000..53c8928e02 --- /dev/null +++ b/remoting_client/API-docs/dns_zone_add.html @@ -0,0 +1,42 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_zone_add($session_id, $client_id, $params);

+
+

Description:

+

Adds a new dns zone.


+

Input Variables:

+

$session_id, $client_id, $params

+

Parameters (in $params):

+

server_id  (int(11))

+

origin  (varchar(255))

+

ns  (varchar(255))

+

mbox  (varchar(255))

+

serial  (int(11))

+

refresh  (int(11))

+

retry  (retry(11))

+

expire  (int(11))

+

minimum  (int(11))

+

ttl  (int(11))

+

active  (enum('n','y'))

+

xfer  (varchar(255))

+

also_notify  (varchar(255))

+

update_acl  (varchar(255))

+

Output:

+

Returns the ID of the newly added dns zone.

+ +
+ + diff --git a/remoting_client/API-docs/dns_zone_delete.html b/remoting_client/API-docs/dns_zone_delete.html new file mode 100644 index 0000000000..3190e4032e --- /dev/null +++ b/remoting_client/API-docs/dns_zone_delete.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_zone_delete($session_id, $primary_id);

+
+

Description:

+

Deletes a dns zone.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns the number of deleted records.

+ +
+ + diff --git a/remoting_client/API-docs/dns_zone_get.html b/remoting_client/API-docs/dns_zone_get.html new file mode 100644 index 0000000000..58f13f578f --- /dev/null +++ b/remoting_client/API-docs/dns_zone_get.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_zone_get($session_id, $primary_id);

+
+

Description:

+

Retrieves information about a dns zone.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns all fields and values of the chosen dns zone.

+ +
+ + diff --git a/remoting_client/API-docs/dns_zone_get_by_user.html b/remoting_client/API-docs/dns_zone_get_by_user.html new file mode 100644 index 0000000000..00d9f828b0 --- /dev/null +++ b/remoting_client/API-docs/dns_zone_get_by_user.html @@ -0,0 +1,31 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_zone_get_by_user($session_id, $client_id, $server_id);

+
+

Description:

+

Shows information about a client's zones.


+

Input Variables:

+

$session_id, $client_id, $server_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns a record of parameters of the client's zones.

+

SQL Interaction:

+

"SELECT id, origin FROM dns_soa d INNER JOIN sys_user s on(d.sys_groupid = s.default_group) WHERE client_id = $client_id AND server_id = $server_id"

+ +
+ + diff --git a/remoting_client/API-docs/dns_zone_set_status.html b/remoting_client/API-docs/dns_zone_set_status.html new file mode 100644 index 0000000000..8ccfcec17e --- /dev/null +++ b/remoting_client/API-docs/dns_zone_set_status.html @@ -0,0 +1,31 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_zone_set_status($session_id, $primary_id, $status);

+
+

Description:

+

Switches a zone's status to either 'active' or 'inactive'.


+

Input Variables:

+

$session_id, $primary_id, $status

+

Parameters (in $params):

+

None

+

Output:

+

Returns '1' if status has been changed or '0' if no changes were taken.

+

SQL Interaction (if status is changed to 'active'):

+

"UPDATE dns_soa SET active = '$status' WHERE id = ".intval($primary_id)

+ +
+ + diff --git a/remoting_client/API-docs/dns_zone_update.html b/remoting_client/API-docs/dns_zone_update.html new file mode 100644 index 0000000000..b7ac435a0a --- /dev/null +++ b/remoting_client/API-docs/dns_zone_update.html @@ -0,0 +1,42 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

dns_zone_update($session_id, $client_id, $primary_id, $params);

+
+Description: +

Updates a dns zone.


+Input Variables: +

$session_id, $client_id, $primary_id, $params

+Parameters (in $params): +

server_id  (int(11))

+

origin  (varchar(255))

+

ns  (varchar(255))

+

mbox  (varchar(255))

+

serial  (int(11))

+

refresh  (int(11))

+

retry  (retry(11))

+

expire  (int(11))

+

minimum  (int(11))

+

ttl  (int(11))

+

active  (enum('n','y'))

+

xfer  (varchar(255))

+

also_notify  (varchar(255))

+

update_acl  (varchar(255))

+Output: +

Returns the number of affected rows.

+ +
+ + diff --git a/remoting_client/API-docs/domains_domain_add.html b/remoting_client/API-docs/domains_domain_add.html new file mode 100644 index 0000000000..3abff06a95 --- /dev/null +++ b/remoting_client/API-docs/domains_domain_add.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

domains_domain_add($session_id, $client_id, $params);

+
+

Description:

+

Adds a new domain.


+

Input Variables:

+

$session_id, $client_id, $params

+

Parameters (in $params):

+

domain  (varchar(255))

+

Output:

+

Returns the ID of the newly added domain.

+ +
+ + diff --git a/remoting_client/API-docs/domains_domain_delete.html b/remoting_client/API-docs/domains_domain_delete.html new file mode 100644 index 0000000000..ab0cd23205 --- /dev/null +++ b/remoting_client/API-docs/domains_domain_delete.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

domains_domain_delete($session_id, $primary_id);

+
+

Description:

+

Deletes a domain.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns the number of deleted records.

+ +
+ + diff --git a/remoting_client/API-docs/domains_domain_get.html b/remoting_client/API-docs/domains_domain_get.html new file mode 100644 index 0000000000..7496d262a9 --- /dev/null +++ b/remoting_client/API-docs/domains_domain_get.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

domains_domain_get($session_id, $primary_id);

+
+

Description:

+

Retrieves information about a domain.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns all fields and values of the chosen domain.

+ +
+ + diff --git a/remoting_client/API-docs/domains_get_all_by_user.html b/remoting_client/API-docs/domains_get_all_by_user.html new file mode 100644 index 0000000000..f395a0fb9e --- /dev/null +++ b/remoting_client/API-docs/domains_get_all_by_user.html @@ -0,0 +1,31 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

domains_get_all_by_user($session_id, $group_id);

+
+

Description:

+

Returns information about the domains of the system group.


+

Input Variables:

+

$session_id, $group_id

+

Parameters (in $params):

+

None.

+

Output:

+

Returns an array with the domain parameters' values.

+

SQL Interaction:

+

"SELECT domain_id, domain FROM domain WHERE sys_groupid = $group_id "

+ +
+ + diff --git a/remoting_client/API-docs/get_function_list.html b/remoting_client/API-docs/get_function_list.html new file mode 100644 index 0000000000..cb185592b0 --- /dev/null +++ b/remoting_client/API-docs/get_function_list.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

get_function_list($session_id);

+
+

Description:

+

Shows all available remote API functions.


+

Input Variables:

+

$session_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns a record of all available remote API functions.

+ +
+ + diff --git a/remoting_client/API-docs/login.html b/remoting_client/API-docs/login.html new file mode 100644 index 0000000000..8491800297 --- /dev/null +++ b/remoting_client/API-docs/login.html @@ -0,0 +1,31 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

login($username, $password);

+
+

Description:

+

Starts a new remote session.


+

Input Variables:

+

$username, $password

+

Parameters (in $params):

+

None.

+

Output:

+

Returns session ID.

+

SQL Interaction:

+

"SELECT * FROM remote_user WHERE remote_username = '$username' and remote_password = md5('$password')"

+ +
+ + diff --git a/remoting_client/API-docs/logout.html b/remoting_client/API-docs/logout.html new file mode 100644 index 0000000000..6b78b27c98 --- /dev/null +++ b/remoting_client/API-docs/logout.html @@ -0,0 +1,31 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

logout($session_id);

+
+

Description:

+

Cancels a remote session.


+

Input Variables:

+

$session_id

+

Parameters (in $params):

+

None.

+

Output:

+

+

SQL Interaction:

+

"DELETE FROM remote_session WHERE remote_session = '$session_id'"

+ +
+ + diff --git a/remoting_client/API-docs/mail_alias_add.html b/remoting_client/API-docs/mail_alias_add.html new file mode 100644 index 0000000000..59f75d4dac --- /dev/null +++ b/remoting_client/API-docs/mail_alias_add.html @@ -0,0 +1,33 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_alias_add($session_id, $client_id, $params);

+
+

Description:

+

Adds a new mail alias if type is alias.


+

Input Variables:

+

$session_id, $client_id, $params

+

Parameters (in $params):

+

server_id  (int(11))

+

source  (varchar(255))

+

destination  (text)

+

type  (enum('alias','aliasdomain','forward','catchall'))

+

active  (enum('n','y'))

+

Output:

+

Returns the ID of the newly added mail alias.

+ +
+ + diff --git a/remoting_client/API-docs/mail_alias_delete.html b/remoting_client/API-docs/mail_alias_delete.html new file mode 100644 index 0000000000..d3283369e3 --- /dev/null +++ b/remoting_client/API-docs/mail_alias_delete.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_alias_delete($session_id, $primary_id);

+
+

Description:

+

Deletes a mail alias.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns the number of deleted records.

+ +
+ + diff --git a/remoting_client/API-docs/mail_alias_get.html b/remoting_client/API-docs/mail_alias_get.html new file mode 100644 index 0000000000..858df57276 --- /dev/null +++ b/remoting_client/API-docs/mail_alias_get.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_alias_get($session_id, $primary_id);

+
+

Description:

+

Retrieves information about a mail alias.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns all fields and values of the chosen mail alias.

+ +
+ + diff --git a/remoting_client/API-docs/mail_alias_update.html b/remoting_client/API-docs/mail_alias_update.html new file mode 100644 index 0000000000..f92a74a5ea --- /dev/null +++ b/remoting_client/API-docs/mail_alias_update.html @@ -0,0 +1,33 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_alias_update($session_id, $client_id, $primary_id, $params);

+
+Description: +

Updates a mail alias if type is alias.


+Input Variables: +

$session_id, $client_id, $primary_id, $params

+Parameters (in $params): +

server_id  (int(11))

+

source  (varchar(255))

+

destination  (text)

+

type  (enum('alias','aliasdomain','forward','catchall'))

+

active  (enum('n','y'))

+Output: +

Returns the number of affected rows.

+ +
+ + diff --git a/remoting_client/API-docs/mail_blacklist_add.html b/remoting_client/API-docs/mail_blacklist_add.html new file mode 100644 index 0000000000..c984f0ec2f --- /dev/null +++ b/remoting_client/API-docs/mail_blacklist_add.html @@ -0,0 +1,33 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_blacklist_add($session_id, $client_id, $params);

+
+

Description:

+

Adds a new mail blacklist entry if access is REJECT.


+

Input Variables:

+

$session_id, $client_id, $params

+

Parameters (in $params):

+

server_id  (int(11))

+

source  (varchar(255))

+

access  (varchar(255))

+

type  (set('recipient','sender','client'))

+

active  (enum('n','y'))

+

Output:

+

Returns the ID of the newly added mail blacklist entry.

+ +
+ + diff --git a/remoting_client/API-docs/mail_blacklist_delete.html b/remoting_client/API-docs/mail_blacklist_delete.html new file mode 100644 index 0000000000..2c7ae2b38f --- /dev/null +++ b/remoting_client/API-docs/mail_blacklist_delete.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_blacklist_delete($session_id, $primary_id);

+
+

Description:

+

Deletes a mail blacklist entry.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns the number of deleted records.

+ +
+ + diff --git a/remoting_client/API-docs/mail_blacklist_get.html b/remoting_client/API-docs/mail_blacklist_get.html new file mode 100644 index 0000000000..f0c30c11d8 --- /dev/null +++ b/remoting_client/API-docs/mail_blacklist_get.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_blacklist_get($session_id, $primary_id);

+
+

Description:

+

Retrieves information about a mail blacklist entry.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns all fields and values of the chosen mail blacklist entry.

+ +
+ + diff --git a/remoting_client/API-docs/mail_blacklist_update.html b/remoting_client/API-docs/mail_blacklist_update.html new file mode 100644 index 0000000000..20e3464bb9 --- /dev/null +++ b/remoting_client/API-docs/mail_blacklist_update.html @@ -0,0 +1,33 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_blacklist_update($session_id, $client_id, $primary_id, $params);

+
+Description: +

Updates a mail blacklist entry if access is REJECT.


+Input Variables: +

$session_id, $client_id, $params

+

Parameters (in $params):

+

server_id  (int(11))

+

source  (varchar(255))

+

access  (varchar(255))

+

type  (set('recipient','sender','client'))

+

active  (enum('n','y'))

+Output: +

Returns the number of affected rows.

+ +
+ + diff --git a/remoting_client/API-docs/mail_catchall_add.html b/remoting_client/API-docs/mail_catchall_add.html new file mode 100644 index 0000000000..82120b0315 --- /dev/null +++ b/remoting_client/API-docs/mail_catchall_add.html @@ -0,0 +1,33 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_catchall_add($session_id, $client_id, $params);

+
+

Description:

+

Adds a new mail catchall if type is catchall.


+

Input Variables:

+

$session_id, $client_id, $params

+

Parameters (in $params):

+

server_id  (int(11))

+

source  (varchar(255))

+

destination  (text)

+

type  (enum('alias','aliasdomain','forward','catchall'))

+

active  (enum('n','y'))

+

Output:

+

Returns the ID of the newly added mail catchall.

+ +
+ + diff --git a/remoting_client/API-docs/mail_catchall_delete.html b/remoting_client/API-docs/mail_catchall_delete.html new file mode 100644 index 0000000000..e901236544 --- /dev/null +++ b/remoting_client/API-docs/mail_catchall_delete.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_catchall_delete($session_id, $primary_id);

+
+

Description:

+

Deletes a mail catchall.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns the number of deleted records.

+ +
+ + diff --git a/remoting_client/API-docs/mail_catchall_get.html b/remoting_client/API-docs/mail_catchall_get.html new file mode 100644 index 0000000000..e6eeec07ba --- /dev/null +++ b/remoting_client/API-docs/mail_catchall_get.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_catchall_get($session_id, $primary_id);

+
+

Description:

+

Retrieves information about a mail catchall.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns all fields and values of the chosen mail catchall.

+ +
+ + diff --git a/remoting_client/API-docs/mail_catchall_update.html b/remoting_client/API-docs/mail_catchall_update.html new file mode 100644 index 0000000000..b53acfe433 --- /dev/null +++ b/remoting_client/API-docs/mail_catchall_update.html @@ -0,0 +1,33 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_catchall_update($session_id, $client_id, $primary_id, $params);

+
+Description: +

Updates a mail catchall if type is catchall.


+Input Variables: +

$session_id, $client_id, $primary_id, $params

+Parameters (in $params): +

server_id  (int(11))

+

source  (varchar(255))

+

destination  (text)

+

type  (enum('alias','aliasdomain','forward','catchall'))

+

active  (enum('n','y'))

+Output: +

Returns the number of affected rows.

+ +
+ + diff --git a/remoting_client/API-docs/mail_domain_add.html b/remoting_client/API-docs/mail_domain_add.html new file mode 100644 index 0000000000..ed5f6b8d01 --- /dev/null +++ b/remoting_client/API-docs/mail_domain_add.html @@ -0,0 +1,31 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_domain_add($session_id, $client_id, $params);

+
+

Description:

+

Adds a new mail domain.


+

Input Variables:

+

$session_id, $client_id, $params

+

Parameters (in $params):

+

server_id  (int(11))

+

domain  (varchar(255))

+

active  (enum('n','y'))

+

Output:

+

Returns the ID of the newly added mail domain.

+ +
+ + diff --git a/remoting_client/API-docs/mail_domain_delete.html b/remoting_client/API-docs/mail_domain_delete.html new file mode 100644 index 0000000000..941e88a235 --- /dev/null +++ b/remoting_client/API-docs/mail_domain_delete.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_domain_delete($session_id, $primary_id);

+
+

Description:

+

Deletes a mail domain.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns the number of deleted records.

+ +
+ + diff --git a/remoting_client/API-docs/mail_domain_get.html b/remoting_client/API-docs/mail_domain_get.html new file mode 100644 index 0000000000..814430cf88 --- /dev/null +++ b/remoting_client/API-docs/mail_domain_get.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_domain_get($session_id, $primary_id);

+
+

Description:

+

Retrieves information about a mail domain.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns all fields and values of the chosen mail domains.

+ +
+ + diff --git a/remoting_client/API-docs/mail_domain_get_by_domain.html b/remoting_client/API-docs/mail_domain_get_by_domain.html new file mode 100644 index 0000000000..a37805f786 --- /dev/null +++ b/remoting_client/API-docs/mail_domain_get_by_domain.html @@ -0,0 +1,31 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_domain_get_by_domain($session_id, $domain);

+
+

Description:

+

Shows information about target mail domain.


+

Input Variables:

+

$session_id, $domain

+

Parameters (in $params):

+

None

+

Output:

+

Returns a record of parameters of target mail domain.

+

SQL Interaction:

+

"SELECT * FROM mail_domain WHERE domain = '$domain'"

+ +
+ + diff --git a/remoting_client/API-docs/mail_domain_set_status.html b/remoting_client/API-docs/mail_domain_set_status.html new file mode 100644 index 0000000000..6c0329e982 --- /dev/null +++ b/remoting_client/API-docs/mail_domain_set_status.html @@ -0,0 +1,31 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_domain_set_status($session_id, $primary_id, $status);

+
+

Description:

+

Switches a mail domain's status to either 'active' or 'inactive'.


+

Input Variables:

+

$session_id, $primary_id, $status

+

Parameters (in $params):

+

None

+

Output:

+

Returns '1' if status has been changed or '0' if no changes were taken.

+

SQL Interaction (if status is changed to 'active'):

+

"UPDATE mail_domain SET active = '$status' WHERE domain_id = ".intval($primary_id)

+ +
+ + diff --git a/remoting_client/API-docs/mail_domain_update.html b/remoting_client/API-docs/mail_domain_update.html new file mode 100644 index 0000000000..ebfaecddef --- /dev/null +++ b/remoting_client/API-docs/mail_domain_update.html @@ -0,0 +1,31 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_domain_update($session_id, $client_id, $primary_id, $params);

+
+Description: +

Updates a mail domain.


+Input Variables: +

$session_id, $client_id, $primary_id, $params

+Parameters (in $params): +

server_id  (int(11))

+

domain  (varchar(255))

+

active  (enum('n','y'))

+Output: +

Returns the number of affected rows.

+ +
+ + diff --git a/remoting_client/API-docs/mail_fetchmail_add.html b/remoting_client/API-docs/mail_fetchmail_add.html new file mode 100644 index 0000000000..1b7d63d1a3 --- /dev/null +++ b/remoting_client/API-docs/mail_fetchmail_add.html @@ -0,0 +1,37 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_fetchmail_add($session_id, $client_id, $params);

+
+

Description:

+

Adds a new fetchmail.


+

Input Variables:

+

$session_id, $client_id, $params

+

Parameters (in $params):

+

server_id  (int(11))

+

type  (varchar(255))

+

source_server  (varchar(255))

+

source_username  (varchar(255))

+

source_password  (varchar(64))

+

source_delete  (varchar(255))

+

destination  (varchar(255))

+

active  (varchar(255))

+

source_read_all  (varchar(255))

+

Output:

+

Returns the ID of the newly added fetchmail.

+ +
+ + diff --git a/remoting_client/API-docs/mail_fetchmail_delete.html b/remoting_client/API-docs/mail_fetchmail_delete.html new file mode 100644 index 0000000000..5c1d972087 --- /dev/null +++ b/remoting_client/API-docs/mail_fetchmail_delete.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_fetchmail_delete($session_id, $primary_id);

+
+

Description:

+

Deletes a fetchmail.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns the number of deleted records.

+ +
+ + diff --git a/remoting_client/API-docs/mail_fetchmail_get.html b/remoting_client/API-docs/mail_fetchmail_get.html new file mode 100644 index 0000000000..4f6d2f72b8 --- /dev/null +++ b/remoting_client/API-docs/mail_fetchmail_get.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_fetchmail_get($session_id, $primary_id);

+
+

Description:

+

Retrieves information about a fetchmail.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns all fields and values of the chosen fetchmail.

+ +
+ + diff --git a/remoting_client/API-docs/mail_fetchmail_update.html b/remoting_client/API-docs/mail_fetchmail_update.html new file mode 100644 index 0000000000..5ed2f51022 --- /dev/null +++ b/remoting_client/API-docs/mail_fetchmail_update.html @@ -0,0 +1,37 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_fetchmail_update($session_id, $client_id, $primary_id, $params);

+
+Description: +

Updates a fetchmail.


+Input Variables: +

$session_id, $client_id, $params

+

Parameters (in $params):

+

server_id  (int(11))

+

type  (varchar(255))

+

source_server  (varchar(255))

+

source_username  (varchar(255))

+

source_password  (varchar(64))

+

source_delete  (varchar(255))

+

destination  (varchar(255))

+

active  (varchar(255))

+

source_read_all  (varchar(255))

+Output: +

Returns the number of affected rows.

+ +
+ + diff --git a/remoting_client/API-docs/mail_forward_add.html b/remoting_client/API-docs/mail_forward_add.html new file mode 100644 index 0000000000..85d57cc941 --- /dev/null +++ b/remoting_client/API-docs/mail_forward_add.html @@ -0,0 +1,33 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_forward_add($session_id, $client_id, $params);

+
+

Description:

+

Adds a new mail forwarding if type is forward.


+

Input Variables:

+

$session_id, $client_id, $params

+

Parameters (in $params):

+

server_id  (int(11))

+

source  (varchar(255))

+

destination  (text)

+

type  (enum('alias','aliasdomain','forward','catchall'))

+

active  (enum('n','y'))

+

Output:

+

Returns the ID of the newly added mail forwarding.

+ +
+ + diff --git a/remoting_client/API-docs/mail_forward_delete.html b/remoting_client/API-docs/mail_forward_delete.html new file mode 100644 index 0000000000..70e7d4ee4b --- /dev/null +++ b/remoting_client/API-docs/mail_forward_delete.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_forward_delete($session_id, $primary_id);

+
+

Description:

+

Deletes a mail forwarding.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns the number of deleted records.

+ +
+ + diff --git a/remoting_client/API-docs/mail_forward_get.html b/remoting_client/API-docs/mail_forward_get.html new file mode 100644 index 0000000000..99246380f6 --- /dev/null +++ b/remoting_client/API-docs/mail_forward_get.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_forward_get($session_id, $primary_id);

+
+

Description:

+

Retrieves information about a mail forwarding.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns all fields and values of the chosen mail forwarding.

+ +
+ + diff --git a/remoting_client/API-docs/mail_forward_update.html b/remoting_client/API-docs/mail_forward_update.html new file mode 100644 index 0000000000..3fa32a564d --- /dev/null +++ b/remoting_client/API-docs/mail_forward_update.html @@ -0,0 +1,33 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_forward_update($session_id, $client_id, $primary_id, $params);

+
+Description: +

Updates a mail forwarding if type is forward.


+Input Variables: +

$session_id, $client_id, $primary_id, $params

+Parameters (in $params): +

server_id  (int(11))

+

source  (varchar(255))

+

destination  (text)

+

type  (enum('alias','aliasdomain','forward','catchall'))

+

active  (enum('n','y'))

+Output: +

Returns the number of affected rows.

+ +
+ + diff --git a/remoting_client/API-docs/mail_mailinglist_add.html b/remoting_client/API-docs/mail_mailinglist_add.html new file mode 100644 index 0000000000..9b8a9a4a1e --- /dev/null +++ b/remoting_client/API-docs/mail_mailinglist_add.html @@ -0,0 +1,33 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_mailinglist_add($session_id, $client_id, $params);

+
+

Description:

+

Adds a new mailinglist.


+

Input Variables:

+

$session_id, $client_id, $params

+

Parameters (in $params):

+

server_id  (int(11))

+

domain  (varchar(255))

+

listname  (varchar(255))

+

email  (varchar(255))

+

password  (varchar(255))

+

Output:

+

Returns the ID of the newly added mailinglist.

+ +
+ + diff --git a/remoting_client/API-docs/mail_mailinglist_delete.html b/remoting_client/API-docs/mail_mailinglist_delete.html new file mode 100644 index 0000000000..771521a197 --- /dev/null +++ b/remoting_client/API-docs/mail_mailinglist_delete.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_mailinglist_delete($session_id, $primary_id);

+
+

Description:

+

Deletes a mailinglist.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns the number of deleted records.

+ +
+ + diff --git a/remoting_client/API-docs/mail_mailinglist_get.html b/remoting_client/API-docs/mail_mailinglist_get.html new file mode 100644 index 0000000000..aec649ab81 --- /dev/null +++ b/remoting_client/API-docs/mail_mailinglist_get.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_mailinglist_get($session_id, $primary_id);

+
+

Description:

+

Retrieves information about a mailinglist.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns all fields and values of the chosen mailinglist.

+ +
+ + diff --git a/remoting_client/API-docs/mail_mailinglist_update.html b/remoting_client/API-docs/mail_mailinglist_update.html new file mode 100644 index 0000000000..f7d63df435 --- /dev/null +++ b/remoting_client/API-docs/mail_mailinglist_update.html @@ -0,0 +1,33 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_mailinglist_update($session_id, $client_id, $primary_id, $params);

+
+Description: +

Updates a mailinglist.


+Input Variables: +

$session_id, $client_id, $primary_id, $params

+Parameters (in $params): +

server_id  (int(11))

+

domain  (varchar(255))

+

listname  (varchar(255))

+

email  (varchar(255))

+

password  (varchar(255))

+Output: +

Returns the number of affected rows.

+ +
+ + diff --git a/remoting_client/API-docs/mail_policy_add.html b/remoting_client/API-docs/mail_policy_add.html new file mode 100644 index 0000000000..0421c8040f --- /dev/null +++ b/remoting_client/API-docs/mail_policy_add.html @@ -0,0 +1,65 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_policy_add($session_id, $client_id, $params);

+
+

Description:

+

Adds a new mail policy.


+

Input Variables:

+

$session_id, $client_id, $params

+

Parameters (in $params):

+

policy_name  (varchar(64))

+

virus_lover  (enum('N','Y'))

+

spam_lover  (enum('N','Y'))

+

banned_files_lover  (enum('N','Y'))

+

bad_header_lover  (enum('N','Y'))

+

bypass_virus_checks  (enum('N','Y'))

+

bypass_spam_checks  (enum('N','Y'))

+

bypass_banned_checks  (enum('N','Y'))

+

bypass_header_checks  (enum('N','Y'))

+

spam_modifies_subj  (enum('N','Y'))

+

virus_quarantine_to  (varchar(255))

+

spam_quarantine_to  (varchar(255))

+

banned_quarantine_to  (varchar(255))

+

bad_header_quarantine_to  (varchar(255))

+

clean_quarantine_to  (varchar(255))

+

other_quarantine_to  (varchar(255))

+

spam_tag_level  (float)

+

spam_tag2_level  (float)

+

spam_kill_level  (float)

+

spam_dsn_cutoff_level  (float)

+

spam_quarantine_cutoff_level  (float)

+

addr_extension_virus  (varchar(64))

+

addr_extension_spam  (varchar(64))

+

addr_extension_banned  (varchar(64))

+

addr_extension_bad_header  (varchar(64))

+

warnvirusrecip  (enum('N','Y'))

+

warnbannedrecip  (enum('N','Y'))

+

warnbadhrecip  (enum('N','Y'))

+

newvirus_admin  (varchar(64))

+

virus_admin  (varchar(64))

+

banned_admin  (varchar(64))

+

bad_header_admin  (varchar(64))

+

spam_admin  (varchar(64))

+

spam_subject_tag  (varchar(64))

+

spam_subject_tag2  (varchar(64))

+

message_size_limit  (int(11))

+

banned_rulenames  (varchar(64))

+

Output:

+

Returns the ID of the newly added mail policy.

+ +
+ + diff --git a/remoting_client/API-docs/mail_policy_delete.html b/remoting_client/API-docs/mail_policy_delete.html new file mode 100644 index 0000000000..0aeed7f377 --- /dev/null +++ b/remoting_client/API-docs/mail_policy_delete.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_policy_delete($session_id, $primary_id);

+
+

Description:

+

Deletes a mail policy.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns the number of deleted records.

+ +
+ + diff --git a/remoting_client/API-docs/mail_policy_get.html b/remoting_client/API-docs/mail_policy_get.html new file mode 100644 index 0000000000..ba1ea3a3aa --- /dev/null +++ b/remoting_client/API-docs/mail_policy_get.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_policy_get($session_id, $primary_id);

+
+

Description:

+

Retrieves information about a mail policy.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns all fields and values of the chosen mail policy.

+ +
+ + diff --git a/remoting_client/API-docs/mail_policy_update.html b/remoting_client/API-docs/mail_policy_update.html new file mode 100644 index 0000000000..ad62641b1b --- /dev/null +++ b/remoting_client/API-docs/mail_policy_update.html @@ -0,0 +1,65 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_policy_update($session_id, $client_id, $primary_id, $params);

+
+Description: +

Updates a mail policy.


+Input Variables: +

$session_id, $client_id, $primary_id, $params

+Parameters (in $params): +

policy_name  (varchar(64))

+

virus_lover  (enum('N','Y'))

+

spam_lover  (enum('N','Y'))

+

banned_files_lover  (enum('N','Y'))

+

bad_header_lover  (enum('N','Y'))

+

bypass_virus_checks  (enum('N','Y'))

+

bypass_spam_checks  (enum('N','Y'))

+

bypass_banned_checks  (enum('N','Y'))

+

bypass_header_checks  (enum('N','Y'))

+

spam_modifies_subj  (enum('N','Y'))

+

virus_quarantine_to  (varchar(255))

+

spam_quarantine_to  (varchar(255))

+

banned_quarantine_to  (varchar(255))

+

bad_header_quarantine_to  (varchar(255))

+

clean_quarantine_to  (varchar(255))

+

other_quarantine_to  (varchar(255))

+

spam_tag_level  (float)

+

spam_tag2_level  (float)

+

spam_kill_level  (float)

+

spam_dsn_cutoff_level  (float)

+

spam_quarantine_cutoff_level  (float)

+

addr_extension_virus  (varchar(64))

+

addr_extension_spam  (varchar(64))

+

addr_extension_banned  (varchar(64))

+

addr_extension_bad_header  (varchar(64))

+

warnvirusrecip  (enum('N','Y'))

+

warnbannedrecip  (enum('N','Y'))

+

warnbadhrecip  (enum('N','Y'))

+

newvirus_admin  (varchar(64))

+

virus_admin  (varchar(64))

+

banned_admin  (varchar(64))

+

bad_header_admin  (varchar(64))

+

spam_admin  (varchar(64))

+

spam_subject_tag  (varchar(64))

+

spam_subject_tag2  (varchar(64))

+

message_size_limit  (int(11))

+

banned_rulenames  (varchar(64))

+Output: +

Returns the number of affected rows.

+ +
+ + diff --git a/remoting_client/API-docs/mail_spamfilter_blacklist_add.html b/remoting_client/API-docs/mail_spamfilter_blacklist_add.html new file mode 100644 index 0000000000..c3be7c37b2 --- /dev/null +++ b/remoting_client/API-docs/mail_spamfilter_blacklist_add.html @@ -0,0 +1,34 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_spamfilter_blacklist_add($session_id, $client_id, $params);

+
+

Description:

+

Adds a new mailing spamfilter blacklist entry if wb is B.


+

Input Variables:

+

$session_id, $client_id, $params

+

Parameters (in $params):

+

server_id  (int(11))

+

wb  (enum('W','B'))

+

rid  (int(11))

+

email  (varchar(255))

+

priority  (tinyint(3))

+

active  (enum('n','y'))

+

Output:

+

Returns the ID of the newly added spamfilter blacklist entry.

+ +
+ + diff --git a/remoting_client/API-docs/mail_spamfilter_blacklist_delete.html b/remoting_client/API-docs/mail_spamfilter_blacklist_delete.html new file mode 100644 index 0000000000..c370135192 --- /dev/null +++ b/remoting_client/API-docs/mail_spamfilter_blacklist_delete.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_spamfilter_blacklist_delete($session_id, $primary_id);

+
+

Description:

+

Deletes a mailing spamfilter blacklist entry.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns the number of deleted records.

+ +
+ + diff --git a/remoting_client/API-docs/mail_spamfilter_blacklist_get.html b/remoting_client/API-docs/mail_spamfilter_blacklist_get.html new file mode 100644 index 0000000000..766c1931ea --- /dev/null +++ b/remoting_client/API-docs/mail_spamfilter_blacklist_get.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_spamfilter_blacklist_get($session_id, $primary_id);

+
+

Description:

+

Retrieves information about a mailing spamfilter blacklist entry.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns all fields and values of the chosen spamfilter blacklist entry.

+ +
+ + diff --git a/remoting_client/API-docs/mail_spamfilter_blacklist_update.html b/remoting_client/API-docs/mail_spamfilter_blacklist_update.html new file mode 100644 index 0000000000..f2596ea81b --- /dev/null +++ b/remoting_client/API-docs/mail_spamfilter_blacklist_update.html @@ -0,0 +1,34 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_spamfilter_blacklist_update($session_id, $client_id, $primary_id, $params);

+
+Description: +

Updates a mailing spamfilter blacklist entry if wb is B.


+Input Variables: +

$session_id, $client_id, $primary_id, $params

+Parameters (in $params): +

server_id  (int(11))

+

wb  (enum('W','B'))

+

rid  (int(11))

+

email  (varchar(255))

+

priority  (tinyint(3))

+

active  (enum('n','y'))

+Output: +

Returns the number of affected rows.

+ +
+ + diff --git a/remoting_client/API-docs/mail_spamfilter_user_add.html b/remoting_client/API-docs/mail_spamfilter_user_add.html new file mode 100644 index 0000000000..aa9816c26c --- /dev/null +++ b/remoting_client/API-docs/mail_spamfilter_user_add.html @@ -0,0 +1,34 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_spamfilter_user_add($session_id, $client_id, $params);

+
+

Description:

+

Adds a new mailing spamfilter user.


+

Input Variables:

+

$session_id, $client_id, $params

+

Parameters (in $params):

+

server_id  (int(11))

+

priority  (tinyint(3))

+

policy_id  (int(11))

+

email  (varchar(255))

+

fullname  (varchar(64))

+

local  (varchar(1))

+

Output:

+

Returns the ID of the newly added spamfilter user.

+ +
+ + diff --git a/remoting_client/API-docs/mail_spamfilter_user_delete.html b/remoting_client/API-docs/mail_spamfilter_user_delete.html new file mode 100644 index 0000000000..c24bb34811 --- /dev/null +++ b/remoting_client/API-docs/mail_spamfilter_user_delete.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_spamfilter_user_delete($session_id, $primary_id);

+
+

Description:

+

Deletes a mailing spamfilter user.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns the number of deleted records.

+ +
+ + diff --git a/remoting_client/API-docs/mail_spamfilter_user_get.html b/remoting_client/API-docs/mail_spamfilter_user_get.html new file mode 100644 index 0000000000..45d06412cc --- /dev/null +++ b/remoting_client/API-docs/mail_spamfilter_user_get.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_spamfilter_user_get($session_id, $primary_id);

+
+

Description:

+

Retrieves information about a mailing spamfilter user.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns all fields and values of the chosen spamfilter user.

+ +
+ + diff --git a/remoting_client/API-docs/mail_spamfilter_user_update.html b/remoting_client/API-docs/mail_spamfilter_user_update.html new file mode 100644 index 0000000000..8cb6e48cc7 --- /dev/null +++ b/remoting_client/API-docs/mail_spamfilter_user_update.html @@ -0,0 +1,34 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_spamfilter_user_update($session_id, $client_id, $primary_id, $params);

+
+Description: +

Updates a mailing spamfilter user.


+Input Variables: +

$session_id, $client_id, $primary_id, $params

+Parameters (in $params): +

server_id  (int(11))

+

priority  (tinyint(3))

+

policy_id  (int(11))

+

email  (varchar(255))

+

fullname  (varchar(64))

+

local  (varchar(1))

+Output: +

Returns the number of affected rows.

+ +
+ + diff --git a/remoting_client/API-docs/mail_spamfilter_whitelist_add.html b/remoting_client/API-docs/mail_spamfilter_whitelist_add.html new file mode 100644 index 0000000000..80e28e9b8a --- /dev/null +++ b/remoting_client/API-docs/mail_spamfilter_whitelist_add.html @@ -0,0 +1,34 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_spamfilter_whitelist_add($session_id, $client_id, $params);

+
+

Description:

+

Adds a new mailing spamfilter whitelist entry if wb is W.


+

Input Variables:

+

$session_id, $client_id, $params

+

Parameters (in $params):

+

server_id  (int(11))

+

wb  (enum('W','B'))

+

rid  (int(11))

+

email  (varchar(255))

+

priority  (tinyint(3))

+

active  (enum('n','y'))

+

Output:

+

Returns the ID of the newly added spamfilter whitelist entry.

+ +
+ + diff --git a/remoting_client/API-docs/mail_spamfilter_whitelist_delete.html b/remoting_client/API-docs/mail_spamfilter_whitelist_delete.html new file mode 100644 index 0000000000..0acbb2ecd6 --- /dev/null +++ b/remoting_client/API-docs/mail_spamfilter_whitelist_delete.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_spamfilter_whitelist_delete($session_id, $primary_id);

+
+

Description:

+

Deletes a mailing spamfilter whitelist entry.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns the number of deleted records.

+ +
+ + diff --git a/remoting_client/API-docs/mail_spamfilter_whitelist_get.html b/remoting_client/API-docs/mail_spamfilter_whitelist_get.html new file mode 100644 index 0000000000..fe362781aa --- /dev/null +++ b/remoting_client/API-docs/mail_spamfilter_whitelist_get.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_spamfilter_whitelist_get($session_id, $primary_id);

+
+

Description:

+

Retrieves information about a mailing spamfilter whitelist entry.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns all fields and values of the chosen spamfilter whitelist entry.

+ +
+ + diff --git a/remoting_client/API-docs/mail_spamfilter_whitelist_update.html b/remoting_client/API-docs/mail_spamfilter_whitelist_update.html new file mode 100644 index 0000000000..e3cd2f8d8b --- /dev/null +++ b/remoting_client/API-docs/mail_spamfilter_whitelist_update.html @@ -0,0 +1,34 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_spamfilter_whitelist_update($session_id, $client_id, $primary_id, $params);

+
+Description: +

Updates a mailing spamfilter whitelist if wb is W.


+Input Variables: +

$session_id, $client_id, $primary_id, $params

+Parameters (in $params): +

server_id  (int(11))

+

wb  (enum('W','B'))

+

rid  (int(11))

+

email  (varchar(255))

+

priority  (tinyint(3))

+

active  (enum('n','y'))

+Output: +

Returns the number of affected rows.

+ +
+ + diff --git a/remoting_client/API-docs/mail_transport_add.html b/remoting_client/API-docs/mail_transport_add.html new file mode 100644 index 0000000000..5faddf52d1 --- /dev/null +++ b/remoting_client/API-docs/mail_transport_add.html @@ -0,0 +1,33 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_transport_add($session_id, $client_id, $params);

+
+

Description:

+

Adds a new mail transport.


+

Input Variables:

+

$session_id, $client_id, $params

+

Parameters (in $params):

+

server_id  (int(11))

+

domain  (varchar(255))

+

transport  (varchar(255))

+

sort_order  (int(11))

+

active  (enum('n','y'))

+

Output:

+

Returns the ID of the newly added mail transport.

+ +
+ + diff --git a/remoting_client/API-docs/mail_transport_delete.html b/remoting_client/API-docs/mail_transport_delete.html new file mode 100644 index 0000000000..7ba5dec41b --- /dev/null +++ b/remoting_client/API-docs/mail_transport_delete.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_transport_delete($session_id, $primary_id);

+
+

Description:

+

Deletes a mail transport.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns the number of deleted records.

+ +
+ + diff --git a/remoting_client/API-docs/mail_transport_get.html b/remoting_client/API-docs/mail_transport_get.html new file mode 100644 index 0000000000..c1fc005963 --- /dev/null +++ b/remoting_client/API-docs/mail_transport_get.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_transport_get($session_id, $primary_id);

+
+

Description:

+

Retrieves information about a mail transport.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns all fields and values of the chosen mail transport.

+ +
+ + diff --git a/remoting_client/API-docs/mail_transport_update.html b/remoting_client/API-docs/mail_transport_update.html new file mode 100644 index 0000000000..ff63d01c2a --- /dev/null +++ b/remoting_client/API-docs/mail_transport_update.html @@ -0,0 +1,33 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_transport_update($session_id, $client_id, $primary_id, $params);

+
+Description: +

Updates a mail transport.


+Input Variables: +

$session_id, $client_id, $primary_id, $params

+Parameters (in $params): +

server_id  (int(11))

+

domain  (varchar(255))

+

transport  (varchar(255))

+

sort_order  (int(11))

+

active  (enum('n','y'))

+Output: +

Returns the number of affected rows.

+ +
+ + diff --git a/remoting_client/API-docs/mail_user_add.html b/remoting_client/API-docs/mail_user_add.html new file mode 100644 index 0000000000..ba943d94f9 --- /dev/null +++ b/remoting_client/API-docs/mail_user_add.html @@ -0,0 +1,52 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + + +
+

mail_user_add($session_id, $client_id, $params);

+
+

Description:

+

Adds a mail user.


+

Input Variables:

+

$session_id, $client_id, $params

+

Parameters (in $params):

+

server_id  (int(11))

+

email  (varchar(255))

+

password  (varchar(255))

+

name  (varchar(255))

+

uid  (int(11))

+

gid  (int(11))

+

maildir  (varchar(255))

+

quota  (bigint(20))

+

cc  (varchar(255))

+

homedir  (varchar(255))

+

autoresponder  (enum('n','y'))

+

autoresponder_start_date  (datetime)

+

autoresponder_end_date  (datetime)

+

autoresponder_text  (mediumtext)

+

move_junk  (enum('n','y'))

+

custom_mailfilter  (mediumtext)

+

postfix  (enum('n','y'))

+

access  (enum('n','y'))

+

disableimap  (enum('n','y'))

+

disablepop3  (enum('n','y'))

+

disabledeliver  (enum('n','y'))

+

disablesmtp  (enum('n','y'))

+

Output:

+

Returns the ID of the newly added mail user.

+ +
+ + diff --git a/remoting_client/API-docs/mail_user_delete.html b/remoting_client/API-docs/mail_user_delete.html new file mode 100644 index 0000000000..00a306dbf2 --- /dev/null +++ b/remoting_client/API-docs/mail_user_delete.html @@ -0,0 +1,34 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + + +
+

mail_user_delete($session_id, $primary_id);

+
+

Description:

+

Deletes a mail user.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns the number of deleted records.

+ +
+ + diff --git a/remoting_client/API-docs/mail_user_filter_add.html b/remoting_client/API-docs/mail_user_filter_add.html new file mode 100644 index 0000000000..e6b5e18603 --- /dev/null +++ b/remoting_client/API-docs/mail_user_filter_add.html @@ -0,0 +1,36 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_user_filter_add($session_id, $client_id, $params);

+
+

Description:

+

Adds a new mail user filter.


+

Input Variables:

+

$session_id, $client_id, $params

+

Parameters (in $params):

+

mailuser_id  (int(11))

+

rulename  (varchar(64))

+

source  (varchar(255))

+

searchterm  (varchar(255))

+

op  (varchar(255))

+

action  (varchar(255))

+

target  (varchar(255))

+

active  (enum('n','y'))

+

Output:

+

Returns the ID of the newly added mail user filter.

+ +
+ + diff --git a/remoting_client/API-docs/mail_user_filter_delete.html b/remoting_client/API-docs/mail_user_filter_delete.html new file mode 100644 index 0000000000..b64ba6700b --- /dev/null +++ b/remoting_client/API-docs/mail_user_filter_delete.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_user_filter_delete($session_id, $primary_id);

+
+

Description:

+

Deletes a mail user filter.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns the number of deleted records.

+ +
+ + diff --git a/remoting_client/API-docs/mail_user_filter_get.html b/remoting_client/API-docs/mail_user_filter_get.html new file mode 100644 index 0000000000..982f829c3c --- /dev/null +++ b/remoting_client/API-docs/mail_user_filter_get.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_user_filter_get($session_id, $primary_id);

+
+

Description:

+

Retrieves information about a mail user filter.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns all fields and values of the chosen mail user filter.

+ +
+ + diff --git a/remoting_client/API-docs/mail_user_filter_update.html b/remoting_client/API-docs/mail_user_filter_update.html new file mode 100644 index 0000000000..312e76739e --- /dev/null +++ b/remoting_client/API-docs/mail_user_filter_update.html @@ -0,0 +1,36 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_user_filter_update($session_id, $client_id, $primary_id, $params);

+
+Description: +

Updates a mail user filter.


+Input Variables: +

$session_id, $client_id, $primary_id, $params

+Parameters (in $params): +

mailuser_id  (int(11))

+

rulename  (varchar(64))

+

source  (varchar(255))

+

searchterm  (varchar(255))

+

op  (varchar(255))

+

action  (varchar(255))

+

target  (varchar(255))

+

active  (enum('n','y'))

+Output: +

Returns the number of affected rows.

+ +
+ + diff --git a/remoting_client/API-docs/mail_user_get.html b/remoting_client/API-docs/mail_user_get.html new file mode 100644 index 0000000000..3099cf4fe5 --- /dev/null +++ b/remoting_client/API-docs/mail_user_get.html @@ -0,0 +1,30 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_user_get($session_id, $primary_id);

+
+

Description:

+

Retrieves information about a mail user.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns all fields and values of the chosen mail user.

+ +
+ + diff --git a/remoting_client/API-docs/mail_user_update.html b/remoting_client/API-docs/mail_user_update.html new file mode 100644 index 0000000000..cc2b76cbe4 --- /dev/null +++ b/remoting_client/API-docs/mail_user_update.html @@ -0,0 +1,52 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + + +
+

mail_user_update($session_id, $client_id, $primary_id, $params);

+
+

Description:

+

Updates a mail user.


+

Input Variables:

+

$session_id, $client_id, $primary_id, $params

+

Parameters (in $params):

+

server_id  (int(11))

+

email  (varchar(255))

+

password  (varchar(255))

+

name  (varchar(255))

+

uid  (int(11))

+

gid  (int(11))

+

maildir  (varchar(255))

+

quota  (bigint(20))

+

cc  (varchar(255))

+

homedir  (varchar(255))

+

autoresponder  (enum('n','y'))

+

autoresponder_start_date  (datetime)

+

autoresponder_end_date  (datetime)

+

autoresponder_text  (mediumtext)

+

move_junk  (enum('n','y'))

+

custom_mailfilter  (mediumtext)

+

postfix  (enum('n','y'))

+

access  (enum('n','y'))

+

disableimap  (enum('n','y'))

+

disablepop3  (enum('n','y'))

+

disabledeliver  (enum('n','y'))

+

disablesmtp  (enum('n','y'))

+Output: +

Returns the number of affected rows.

+ +
+ + diff --git a/remoting_client/API-docs/mail_whitelist_add.html b/remoting_client/API-docs/mail_whitelist_add.html new file mode 100644 index 0000000000..90f7a89e9a --- /dev/null +++ b/remoting_client/API-docs/mail_whitelist_add.html @@ -0,0 +1,33 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_whitelist_add($session_id, $client_id, $params);

+
+

Description:

+

Adds a new mail whitelist entry if access is OK.


+

Input Variables:

+

$session_id, $client_id, $params

+

Parameters (in $params):

+

server_id  (int(11))

+

source  (varchar(255))

+

access  (varchar(255))

+

type  (set('recipient','sender','client'))

+

active  (enum('n','y'))

+

Output:

+

Returns the ID of the newly added mail whitelist entry.

+ +
+ + diff --git a/remoting_client/API-docs/mail_whitelist_delete.html b/remoting_client/API-docs/mail_whitelist_delete.html new file mode 100644 index 0000000000..b23b59eea7 --- /dev/null +++ b/remoting_client/API-docs/mail_whitelist_delete.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_whitelist_delete($session_id, $primary_id);

+
+

Description:

+

Deletes a mail whitelist entry.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns the number of deleted records.

+ +
+ + diff --git a/remoting_client/API-docs/mail_whitelist_get.html b/remoting_client/API-docs/mail_whitelist_get.html new file mode 100644 index 0000000000..50fefff2a1 --- /dev/null +++ b/remoting_client/API-docs/mail_whitelist_get.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_whitelist_get($session_id, $primary_id);

+
+

Description:

+

Retrieves information about a mail whitelist entry.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns all fields and values of the chosen mail whitelist entry.

+ +
+ + diff --git a/remoting_client/API-docs/mail_whitelist_update.html b/remoting_client/API-docs/mail_whitelist_update.html new file mode 100644 index 0000000000..d671817898 --- /dev/null +++ b/remoting_client/API-docs/mail_whitelist_update.html @@ -0,0 +1,33 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

mail_whitelist_update($session_id, $client_id, $primary_id, $params);

+
+Description: +

Updates a mail whitelist entry if access is OK.


+Input Variables: +

$session_id, $client_id, $params

+

Parameters (in $params):

+

server_id  (int(11))

+

source  (varchar(255))

+

access  (varchar(255))

+

type  (set('recipient','sender','client'))

+

active  (enum('n','y'))

+Output: +

Returns the number of affected rows.

+ +
+ + diff --git a/remoting_client/API-docs/main.html b/remoting_client/API-docs/main.html new file mode 100644 index 0000000000..62439b58e8 --- /dev/null +++ b/remoting_client/API-docs/main.html @@ -0,0 +1,47 @@ + + + ISCPConfig 3 API Functions + + + + + + + + + + + + <body> + + </body> + + + diff --git a/remoting_client/API-docs/navigation.html b/remoting_client/API-docs/navigation.html new file mode 100644 index 0000000000..0c6254f228 --- /dev/null +++ b/remoting_client/API-docs/navigation.html @@ -0,0 +1,237 @@ + + + ISCPConfig 3 API Functions + + + + + + + + +

Home


+

Functions


+ +

C

+

client_add

+

client_change_password

+

client_delete

+

client_delete_everything

+

client_get

+

client_get_by_username

+

client_get_id

+

client_get_sites_by_user

+

client_templates_get_all

+

client_update

+

D

+

dns_a_add

+

dns_a_delete

+

dns_a_get

+

dns_a_update

+

dns_aaaa_add

+

dns_aaaa_delete

+

dns_aaaa_get

+

dns_aaaa_update

+

dns_alias_add

+

dns_alias_delete

+

dns_alias_get

+

dns_alias_update

+

dns_cname_add

+

dns_cname_delete

+

dns_cname_get

+

dns_cname_update

+

dns_hinfo_add

+

dns_hinfo_delete

+

dns_hinfo_get

+

dns_hinfo_update

+

dns_mx_add

+

dns_mx_delete

+

dns_mx_get

+

dns_mx_update

+

dns_ns_add

+

dns_ns_delete

+

dns_ns_get

+

dns_ns_update

+

dns_ptr_add

+

dns_ptr_delete

+

dns_ptr_get

+

dns_ptr_update

+

dns_rp_add

+

dns_rp_delete

+

dns_rp_get

+

dns_rp_update

+

dns_rr_get_all_by_zone

+

dns_srv_add

+

dns_srv_delete

+

dns_srv_get

+

dns_srv_update

+

dns_txt_add

+

dns_txt_delete

+

dns_txt_get

+

dns_txt_update

+

dns_zone_add

+

dns_zone_delete

+

dns_zone_get

+

dns_zone_get_by_user

+

dns_zone_set_status

+

dns_zone_update

+

domains_domain_add

+

domains_domain_delete

+

domains_domain_get

+

domains_get_all_by_user

+

G

+

get_function_list

+

L

+

login

+

logout

+

M

+

mail_alias_add

+

mail_alias_delete

+

mail_alias_get

+

mail_alias_update

+

mail_blacklist_add

+

mail_blacklist_delete

+

mail_blacklist_get

+

mail_blacklist_update

+

mail_catchall_add

+

mail_catchall_delete

+

mail_catchall_get

+

mail_catchall_update

+

mail_domain_add

+

mail_domain_delete

+

mail_domain_get

+

mail_domain_get_by_domain

+

mail_domain_update

+

mail_fetchmail_add

+

mail_fetchmail_delete

+

mail_fetchmail_get

+

mail_fetchmail_update

+

mail_forward_add

+

mail_forward_delete

+

mail_forward_get

+

mail_forward_update

+

mail_mailinglist_add

+

mail_mailinglist_delete

+

mail_mailinglist_get

+

mail_mailinglist_update

+

mail_policy_add

+

mail_policy_delete

+

mail_policy_get

+

mail_policy_update

+

mail_spamfilter_blacklist_add

+

mail_spamfilter_blacklist_delete

+

mail_spamfilter_blacklist_get

+

mail_spamfilter_blacklist_update

+

mail_spamfilter_user_add

+

mail_spamfilter_user_delete

+

mail_spamfilter_user_get

+

mail_spamfilter_user_update

+

mail_spamfilter_whitelist_add

+

mail_spamfilter_whitelist_delete

+

mail_spamfilter_whitelist_get

+

mail_spamfilter_whitelist_update

+

mail_transport_add

+

mail_transport_delete

+

mail_transport_get

+

mail_transport_update

+

mail_user_add

+

mail_user_delete

+

mail_user_get

+

mail_user_update

+

mail_user_filter_add

+

mail_user_filter_delete

+

mail_user_filter_get

+

mail_user_filter_update

+

mail_whitelist_add

+

mail_whitelist_delete

+

mail_whitelist_get

+

mail_whitelist_update

+

O

+

openvz_get_free_ip

+

openvz_ip_add

+

openvz_ip_delete

+

openvz_ip_get

+

openvz_ip_update

+

openvz_ostemplate_add

+

openvz_ostemplate_delete

+

openvz_ostemplate_get

+

openvz_ostemplate_update

+

openvz_template_add

+

openvz_template_delete

+

openvz_template_get

+

openvz_template_update

+

openvz_vm_add

+

openvz_vm_add_from_template

+

openvz_vm_delete

+

openvz_vm_get

+

openvz_vm_get_by_client

+

openvz_vm_update

+

S

+

server_get

+

server_get_serverid_by_ip

+

sites_cron_add

+

sites_cron_delete

+

sites_cron_get

+

sites_cron_update

+

sites_database_add

+

sites_database_delete

+

sites_database_get

+

sites_database_get_all_by_user

+

sites_database_update

+

sites_ftp_user_add

+

sites_ftp_user_delete

+

sites_ftp_user_get

+

sites_ftp_user_update

+

sites_shell_user_add

+

sites_shell_user_delete

+

sites_shell_user_get

+

sites_shell_user_update

+

sites_web_aliasdomain_add

+

sites_web_aliasdomain_delete

+

sites_web_aliasdomain_get

+

sites_web_aliasdomain_update

+

sites_web_domain_add

+

sites_web_domain_delete

+

sites_web_domain_get

+

sites_web_domain_set_status

+

sites_web_domain_update

+

sites_web_subdomain_add

+

sites_web_subdomain_delete

+

sites_web_subdomain_get

+

sites_web_subdomain_update

+ +

+

+

+

+

+

+

+ diff --git a/remoting_client/API-docs/openvz_get_free_ip.html b/remoting_client/API-docs/openvz_get_free_ip.html new file mode 100644 index 0000000000..c9186e8d89 --- /dev/null +++ b/remoting_client/API-docs/openvz_get_free_ip.html @@ -0,0 +1,31 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

openvz_get_free_ip($session_id, $server_id = 0);

+
+

Description:

+

Shows the unreserved IPs for openvz virtual machines.


+

Input Variables:

+

$session_id, $server_id = 0

+

Parameters (in $params):

+

None

+

Output:

+

Returns the IPs available for an openvz virtual machine.

+

SQL Interaction (the matching server ID condition is left out if $server_id=0):

+

"SELECT ip_address_id, server_id, ip_address FROM openvz_ip WHERE reserved = 'n' AND vm_id = 0 AND server_id = $server_id LIMIT 0,1"

+ +
+ + diff --git a/remoting_client/API-docs/openvz_ip_add.html b/remoting_client/API-docs/openvz_ip_add.html new file mode 100644 index 0000000000..3288e06a22 --- /dev/null +++ b/remoting_client/API-docs/openvz_ip_add.html @@ -0,0 +1,32 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

openvz_ip_add($session_id, $client_id, $params);

+
+

Description:

+

Adds a new openvz ip.


+

Input Variables:

+

$session_id, $client_id, $params

+

Parameters (in $params):

+

server_id  (int(11))

+

ip_address  (int(15))

+

vm_id  (int(11))

+

reserved  (varchar(255))

+

Output:

+

Returns the ID of the newly added openvz ip.

+ +
+ + diff --git a/remoting_client/API-docs/openvz_ip_delete.html b/remoting_client/API-docs/openvz_ip_delete.html new file mode 100644 index 0000000000..af96bfb936 --- /dev/null +++ b/remoting_client/API-docs/openvz_ip_delete.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

openvz_ip_delete($session_id, $ip_id);

+
+

Description:

+

Deletes an openvz ip.


+

Input Variables:

+

$session_id, $ip_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns the number of deleted records.

+ +
+ + diff --git a/remoting_client/API-docs/openvz_ip_get.html b/remoting_client/API-docs/openvz_ip_get.html new file mode 100644 index 0000000000..a5ae260731 --- /dev/null +++ b/remoting_client/API-docs/openvz_ip_get.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

openvz_ip_get($session_id, $ip_id);

+
+

Description:

+

Retrieves information about an openvz ip.


+

Input Variables:

+

$session_id, $ip_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns all fields and values of the chosen ip.

+ +
+ + diff --git a/remoting_client/API-docs/openvz_ip_update.html b/remoting_client/API-docs/openvz_ip_update.html new file mode 100644 index 0000000000..19abc0d60c --- /dev/null +++ b/remoting_client/API-docs/openvz_ip_update.html @@ -0,0 +1,32 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

openvz_ip_update($session_id, $client_id, $ip_id, $params);

+
+Description: +

Updates an openvz ip.


+Input Variables: +

$session_id, $client_id, $ip_id, $params

+Parameters (in $params): +

server_id  (int(11))

+

ip_address  (int(15))

+

vm_id  (int(11))

+

reserved  (varchar(255))

+Output: +

Returns the number of affected rows.

+ +
+ + diff --git a/remoting_client/API-docs/openvz_ostemplate_add.html b/remoting_client/API-docs/openvz_ostemplate_add.html new file mode 100644 index 0000000000..226bbb9c0d --- /dev/null +++ b/remoting_client/API-docs/openvz_ostemplate_add.html @@ -0,0 +1,34 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

openvz_ostemplate_add($session_id, $client_id, $params);

+
+

Description:

+

Adds a new openvz OS template.


+

Input Variables:

+

$session_id, $client_id, $params

+

Parameters (in $params):

+

template_name  (varchar(255))

+

template_file  (varchar(255))

+

server_id  (int(11))

+

allservers  (varchar(255))

+

active  (varchar(255))

+

description  (text)

+

Output:

+

Returns the ID of the newly added openvz OS template.

+ +
+ + diff --git a/remoting_client/API-docs/openvz_ostemplate_delete.html b/remoting_client/API-docs/openvz_ostemplate_delete.html new file mode 100644 index 0000000000..101c3a1ff1 --- /dev/null +++ b/remoting_client/API-docs/openvz_ostemplate_delete.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

openvz_ostemplate_delete($session_id, $ostemplate_id);

+
+

Description:

+

Deletes an openvz OS template.


+

Input Variables:

+

$session_id, $ostemplate_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns the number of deleted records.

+ +
+ + diff --git a/remoting_client/API-docs/openvz_ostemplate_get.html b/remoting_client/API-docs/openvz_ostemplate_get.html new file mode 100644 index 0000000000..d0a618c694 --- /dev/null +++ b/remoting_client/API-docs/openvz_ostemplate_get.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

openvz_ostemplate_get($session_id, $ostemplate_id);

+
+

Description:

+

Retrieves information about an openvz OS template.


+

Input Variables:

+

$session_id, $ostemplate_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns all fields and values of the chosen OS template.

+ +
+ + diff --git a/remoting_client/API-docs/openvz_ostemplate_update.html b/remoting_client/API-docs/openvz_ostemplate_update.html new file mode 100644 index 0000000000..2ac7cc7188 --- /dev/null +++ b/remoting_client/API-docs/openvz_ostemplate_update.html @@ -0,0 +1,34 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

openvz_ostemplate_update($session_id, $client_id, $ostemplate_id, $params);

+
+Description: +

Updates an openvz OS template.


+Input Variables: +

$session_id, $client_id, $ostemplate_id, $params

+Parameters (in $params): +

template_name  (varchar(255))

+

template_file  (varchar(255))

+

server_id  (int(11))

+

allservers  (varchar(255))

+

active  (varchar(255))

+

description  (text)

+Output: +

Returns the number of affected rows.

+ +
+ + diff --git a/remoting_client/API-docs/openvz_template_add.html b/remoting_client/API-docs/openvz_template_add.html new file mode 100644 index 0000000000..823a5fbe34 --- /dev/null +++ b/remoting_client/API-docs/openvz_template_add.html @@ -0,0 +1,66 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

openvz_template_add($session_id, $client_id, $params);

+
+

Description:

+

Adds a new openvz template.


+

Input Variables:

+

$session_id, $client_id, $params

+

Parameters (in $params):

+

template_name  (varchar(255))

+

diskspace  (int(11))

+

traffic  (int(11))

+

bandwidth  (int(11))

+

ram  (int(11))

+

ram_burst  (int(11))

+

cpu_units  (int(11))

+

cpu_num  (int(11))

+

cpu_limit  (int(11))

+

io_priority  (int(11))

+

active  (varchar(255))

+

description  (text)

+

numproc  (varchar(255))

+

numtcpsock  (varchar(255))

+

numothersock  (varchar(255))

+

vmguarpages  (varchar(255))

+

kmemsize  (varchar(255))

+

tcpsndbuf  (varchar(255))

+

tcprcvbuf  (varchar(255))

+

othersockbuf  (varchar(255))

+

dgramrcvbuf  (varchar(255))

+

oomguarpages  (varchar(255))

+

privvmpages  (varchar(255))

+

lockedpages  (varchar(255))

+

shmpages  (varchar(255))

+

physpages  (varchar(255))

+

numfile  (varchar(255))

+

avnumproc  (varchar(255))

+

numflock  (varchar(255))

+

numpty  (varchar(255))

+

numsiginfo  (varchar(255))

+

dcachesize  (varchar(255))

+

numiptent  (varchar(255))

+

swappages  (varchar(255))

+

hostname  (varchar(255))

+

nameserver  (varchar(255))

+

create_dns  (varchar(1))

+

capability  (varchar(255))

+

Output:

+

Returns the ID of the newly added openvz template.

+ +
+ + diff --git a/remoting_client/API-docs/openvz_template_delete.html b/remoting_client/API-docs/openvz_template_delete.html new file mode 100644 index 0000000000..a47566c422 --- /dev/null +++ b/remoting_client/API-docs/openvz_template_delete.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

openvz_template_delete($session_id, $template_id);

+
+

Description:

+

Deletes an openvz template.


+

Input Variables:

+

$session_id, $template_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns the number of deleted records.

+ +
+ + diff --git a/remoting_client/API-docs/openvz_template_get.html b/remoting_client/API-docs/openvz_template_get.html new file mode 100644 index 0000000000..bd7fe7107c --- /dev/null +++ b/remoting_client/API-docs/openvz_template_get.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

openvz_template_get($session_id, $template_id);

+
+

Description:

+

Retrieves information about an openvz template.


+

Input Variables:

+

$session_id, $template_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns all fields and values of the chosen template.

+ +
+ + diff --git a/remoting_client/API-docs/openvz_template_update.html b/remoting_client/API-docs/openvz_template_update.html new file mode 100644 index 0000000000..057ff867ae --- /dev/null +++ b/remoting_client/API-docs/openvz_template_update.html @@ -0,0 +1,66 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

openvz_template_update($session_id, $client_id, $template_id, $params);

+
+Description: +

Updates an openvz template.


+Input Variables: +

$session_id, $client_id, $template_id, $params

+Parameters (in $params): +

template_name  (varchar(255))

+

diskspace  (int(11))

+

traffic  (int(11))

+

bandwidth  (int(11))

+

ram  (int(11))

+

ram_burst  (int(11))

+

cpu_units  (int(11))

+

cpu_num  (int(11))

+

cpu_limit  (int(11))

+

io_priority  (int(11))

+

active  (varchar(255))

+

description  (text)

+

numproc  (varchar(255))

+

numtcpsock  (varchar(255))

+

numothersock  (varchar(255))

+

vmguarpages  (varchar(255))

+

kmemsize  (varchar(255))

+

tcpsndbuf  (varchar(255))

+

tcprcvbuf  (varchar(255))

+

othersockbuf  (varchar(255))

+

dgramrcvbuf  (varchar(255))

+

oomguarpages  (varchar(255))

+

privvmpages  (varchar(255))

+

lockedpages  (varchar(255))

+

shmpages  (varchar(255))

+

physpages  (varchar(255))

+

numfile  (varchar(255))

+

avnumproc  (varchar(255))

+

numflock  (varchar(255))

+

numpty  (varchar(255))

+

numsiginfo  (varchar(255))

+

dcachesize  (varchar(255))

+

numiptent  (varchar(255))

+

swappages  (varchar(255))

+

hostname  (varchar(255))

+

nameserver  (varchar(255))

+

create_dns  (varchar(1))

+

capability  (varchar(255))

+Output: +

Returns the number of affected rows.

+ +
+ + diff --git a/remoting_client/API-docs/openvz_vm_add.html b/remoting_client/API-docs/openvz_vm_add.html new file mode 100644 index 0000000000..1107c267e5 --- /dev/null +++ b/remoting_client/API-docs/openvz_vm_add.html @@ -0,0 +1,52 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

openvz_vm_add($session_id, $client_id, $params);

+
+

Description:

+

Adds a new openvz vm.


+

Input Variables:

+

$session_id, $client_id, $params

+

Parameters (in $params):

+

server_id  (int(11))

+

veid  (int(10))

+

ostemplate_id  (int(11))

+

template_id  (int(11))

+

ip_address  (varchar(255))

+

hostname  (varchar(255))

+

vm_password  (varchar(255))

+

start_boot  (varchar(255))

+

active  (varchar(255))

+

active_until_date  (date)

+

description  (text)

+

diskspace  (int(11))

+

traffic  (int(11))

+

bandwidth  (int(11))

+

ram  (int(11))

+

ram_burst  (int(11))

+

cpu_units  (int(11))

+

cpu_num  (int(11))

+

cpu_limit  (int(11))

+

io_priority  (int(11))

+

nameserver  (varchar(255))

+

create_dns  (varchar(1))

+

capability  (text)

+

config  (mediumtext)

+

Output:

+

Returns the ID of the newly added openvz vm.

+ +
+ + diff --git a/remoting_client/API-docs/openvz_vm_add_from_template.html b/remoting_client/API-docs/openvz_vm_add_from_template.html new file mode 100644 index 0000000000..3a13b732cb --- /dev/null +++ b/remoting_client/API-docs/openvz_vm_add_from_template.html @@ -0,0 +1,31 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

openvz_vm_add_from_template($session_id, $client_id, $ostemplate_id, $template_id, $override_params = array());

+
+

Description:

+

Sets up a virtual machine on the first available ip by using templates.


+

Input Variables:

+

$session_id, $client_id, $ostemplate_id, $template_id, $override_params = array()

+

Parameters (in $params):

+

None

+

Output:

+

Returns added vm's ID.

+

SQL Interaction:

+

"SELECT * FROM openvz_template WHERE template_id = $template_id"

+ +
+ + diff --git a/remoting_client/API-docs/openvz_vm_delete.html b/remoting_client/API-docs/openvz_vm_delete.html new file mode 100644 index 0000000000..73afcb7c94 --- /dev/null +++ b/remoting_client/API-docs/openvz_vm_delete.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

openvz_vm_delete($session_id, $vm_id);

+
+

Description:

+

Deletes an openvz vm.


+

Input Variables:

+

$session_id, $vm_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns the number of deleted records.

+ +
+ + diff --git a/remoting_client/API-docs/openvz_vm_get.html b/remoting_client/API-docs/openvz_vm_get.html new file mode 100644 index 0000000000..13770ccb5b --- /dev/null +++ b/remoting_client/API-docs/openvz_vm_get.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

openvz_vm_get($session_id, $vm_id);

+
+

Description:

+

Retrieves information about an openvz vm.


+

Input Variables:

+

$session_id, $vm_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns all fields and values of the chosen vm.

+ +
+ + diff --git a/remoting_client/API-docs/openvz_vm_get_by_client.html b/remoting_client/API-docs/openvz_vm_get_by_client.html new file mode 100644 index 0000000000..f8338c6d37 --- /dev/null +++ b/remoting_client/API-docs/openvz_vm_get_by_client.html @@ -0,0 +1,31 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

openvz_vm_get_by_client($session_id, $client_id);

+
+

Description:

+

Shows all of a client's vms.


+

Input Variables:

+

$session_id, $client_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns arrays of parameters of target client's vms.

+

SQL Interaction:

+

"SELECT * FROM openvz_vm WHERE sys_groupid = ".intval($tmp['groupid'])

+ +
+ + diff --git a/remoting_client/API-docs/openvz_vm_update.html b/remoting_client/API-docs/openvz_vm_update.html new file mode 100644 index 0000000000..801d6e7a87 --- /dev/null +++ b/remoting_client/API-docs/openvz_vm_update.html @@ -0,0 +1,52 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

openvz_vm_update($session_id, $client_id, $vm_id, $params);

+
+Description: +

Updates an openvz vm.


+Input Variables: +

$session_id, $client_id, $vm_id, $params

+Parameters (in $params): +

server_id  (int(11))

+

veid  (int(10))

+

ostemplate_id  (int(11))

+

template_id  (int(11))

+

ip_address  (varchar(255))

+

hostname  (varchar(255))

+

vm_password  (varchar(255))

+

start_boot  (varchar(255))

+

active  (varchar(255))

+

active_until_date  (date)

+

description  (text)

+

diskspace  (int(11))

+

traffic  (int(11))

+

bandwidth  (int(11))

+

ram  (int(11))

+

ram_burst  (int(11))

+

cpu_units  (int(11))

+

cpu_num  (int(11))

+

cpu_limit  (int(11))

+

io_priority  (int(11))

+

nameserver  (varchar(255))

+

create_dns  (varchar(1))

+

capability  (text)

+

config  (mediumtext)

+Output: +

Returns the number of affected rows.

+ +
+ + diff --git a/remoting_client/API-docs/server_get.html b/remoting_client/API-docs/server_get.html new file mode 100644 index 0000000000..71d21b4327 --- /dev/null +++ b/remoting_client/API-docs/server_get.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

server_get($session_id, $server_id, $section ='');

+
+Description: +

Returns server information by its ID.


+Input Variables: +

$session_id, $server_id, $section =''

+Parameters (in $params): +

None.

+Output: +

Returns an array with the server parameter's values.

+ +
+ + diff --git a/remoting_client/API-docs/server_get_serverid_by_ip.html b/remoting_client/API-docs/server_get_serverid_by_ip.html new file mode 100644 index 0000000000..420caad2fd --- /dev/null +++ b/remoting_client/API-docs/server_get_serverid_by_ip.html @@ -0,0 +1,31 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

server_get_serverid_by_ip($session_id, $ipaddress);

+
+

Description:

+

Returns server information by its IP.


+

Input Variables:

+

$session_id, $ipaddress

+

Parameters (in $params):

+

None.

+

Output:

+

Returns an array with the server parameter's values.

+

SQL Interaction:

+

SELECT server_id FROM server_ip WHERE ip_address = '$ipaddress' LIMIT 1 "

+ +
+ + diff --git a/remoting_client/API-docs/sites_cron_add.html b/remoting_client/API-docs/sites_cron_add.html new file mode 100644 index 0000000000..6815b0b51c --- /dev/null +++ b/remoting_client/API-docs/sites_cron_add.html @@ -0,0 +1,38 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

sites_cron_add($session_id, $client_id, $params);

+
+

Description:

+

Adds a new cronjob.


+

Input Variables:

+

$session_id, $client_id, $params

+

Parameters (in $params):

+

server_id  (int(11))

+

parent_domain_id  (int(11))

+

type  (enum('url','chrooted','full'))

+

command  (varchar(255))

+

run_min  (varchar(100))

+

run_hour  (varchar(100))

+

run_mday  (varchar(100))

+

run_month  (varchar(100))

+

run_wday  (varchar(100))

+

active  (enum('n','y'))

+

Output:

+

Returns the ID of the newly added cronjob.

+ +
+ + diff --git a/remoting_client/API-docs/sites_cron_delete.html b/remoting_client/API-docs/sites_cron_delete.html new file mode 100644 index 0000000000..a01666a107 --- /dev/null +++ b/remoting_client/API-docs/sites_cron_delete.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

sites_cron_delete($session_id, $cron_id);

+
+

Description:

+

Deletes a cronjob.


+

Input Variables:

+

$session_id, $cron_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns the number of deleted records.

+ +
+ + diff --git a/remoting_client/API-docs/sites_cron_get.html b/remoting_client/API-docs/sites_cron_get.html new file mode 100644 index 0000000000..fe37359748 --- /dev/null +++ b/remoting_client/API-docs/sites_cron_get.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

sites_cron_get($session_id, $cron_id);

+
+

Description:

+

Retrieves information about a cronjob.


+

Input Variables:

+

$session_id, $cron_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns all fields and values of the chosen cronjob.

+ +
+ + diff --git a/remoting_client/API-docs/sites_cron_update.html b/remoting_client/API-docs/sites_cron_update.html new file mode 100644 index 0000000000..b55151f8cd --- /dev/null +++ b/remoting_client/API-docs/sites_cron_update.html @@ -0,0 +1,38 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

sites_cron_update($session_id, $client_id, $cron_id, $params);

+
+Description: +

Updates a cronjob.


+Input Variables: +

$session_id, $client_id, $cron_id, $params

+Parameters (in $params): +

server_id  (int(11))

+

parent_domain_id  (int(11))

+

type  (enum('url','chrooted','full'))

+

command  (varchar(255))

+

run_min  (varchar(100))

+

run_hour  (varchar(100))

+

run_mday  (varchar(100))

+

run_month  (varchar(100))

+

run_wday  (varchar(100))

+

active  (enum('n','y'))

+Output: +

Returns the number of affected rows.

+ +
+ + diff --git a/remoting_client/API-docs/sites_database_add.html b/remoting_client/API-docs/sites_database_add.html new file mode 100644 index 0000000000..573ad66199 --- /dev/null +++ b/remoting_client/API-docs/sites_database_add.html @@ -0,0 +1,37 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

sites_database_add($session_id, $client_id, $params);

+
+

Description:

+

Adds a new database.


+

Input Variables:

+

$session_id, $client_id, $params

+

Parameters (in $params):

+

server_id  (int(11))

+

type  (varchar(16))

+

database_name  (varchar(64))

+

database_user  (varchar(64))

+

database_password  (varchar(64))

+

database_charset  (varchar(64))

+

remote_access  (enum('n','y'))

+

remote_ips  (text)

+

active  (enum('n','y'))

+

Output:

+

Returns the ID of the newly added database.

+ +
+ + diff --git a/remoting_client/API-docs/sites_database_delete.html b/remoting_client/API-docs/sites_database_delete.html new file mode 100644 index 0000000000..d64a7e3e07 --- /dev/null +++ b/remoting_client/API-docs/sites_database_delete.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

sites_database_delete($session_id, $primary_id);

+
+

Description:

+

Deletes a database.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns the number of deleted records.

+ +
+ + diff --git a/remoting_client/API-docs/sites_database_get.html b/remoting_client/API-docs/sites_database_get.html new file mode 100644 index 0000000000..267b706c8a --- /dev/null +++ b/remoting_client/API-docs/sites_database_get.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

sites_database_get($session_id, $primary_id);

+
+

Description:

+

Retrieves information about a database.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns all fields and values of the chosen database.

+ +
+ + diff --git a/remoting_client/API-docs/sites_database_get_all_by_user.html b/remoting_client/API-docs/sites_database_get_all_by_user.html new file mode 100644 index 0000000000..c1c7a73789 --- /dev/null +++ b/remoting_client/API-docs/sites_database_get_all_by_user.html @@ -0,0 +1,31 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

sites_database_get_all_by_user($session_id, $client_id);

+
+

Description:

+

Returns information about the databases of the system user.


+

Input Variables:

+

$session_id, $client_id

+

Parameters (in $params):

+

None.

+

Output:

+

Returns an array with the parameter values of the client's databases.

+

SQL Interaction:

+

"SELECT database_id, database_name, database_user, database_password FROM web_database WHERE sys_userid = $client_id "

+ +
+ + diff --git a/remoting_client/API-docs/sites_database_update.html b/remoting_client/API-docs/sites_database_update.html new file mode 100644 index 0000000000..a96eb47bc5 --- /dev/null +++ b/remoting_client/API-docs/sites_database_update.html @@ -0,0 +1,37 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

sites_database_update($session_id, $client_id, $primary_id, $params);

+
+Description: +

Updates a database.


+Input Variables: +

$session_id, $client_id, $primary_id, $params

+Parameters (in $params): +

server_id  (int(11))

+

type  (varchar(16))

+

database_name  (varchar(64))

+

database_user  (varchar(64))

+

database_password  (varchar(64))

+

database_charset  (varchar(64))

+

remote_access  (enum('n','y'))

+

remote_ips  (text)

+

active  (enum('n','y'))

+Output: +

Returns the number of affected rows.

+ +
+ + diff --git a/remoting_client/API-docs/sites_ftp_user_add.html b/remoting_client/API-docs/sites_ftp_user_add.html new file mode 100644 index 0000000000..74e324fcdb --- /dev/null +++ b/remoting_client/API-docs/sites_ftp_user_add.html @@ -0,0 +1,42 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

sites_ftp_user_add($session_id, $client_id, $params);

+
+

Description:

+

Adds a new ftp user.


+

Input Variables:

+

$session_id, $client_id, $params

+

Parameters (in $params):

+

server_id  (int(11))

+

parent_domain_id  (int(11))

+

username  (varchar(64))

+

password  (varchar(64))

+

quota_size  (bigint(20))

+

active  (enum('n','y'))

+

uid  (varchar(64))

+

gid  (varchar(64))

+

dir  (varchar(255))

+

quota_files  (bigint(20))

+

ul_ratio  (int(11))

+

dl_ratio  (int(11))

+

ul_bandwidth  (int(11))

+

dl_bandwidth  (int(11))

+

Output:

+

Returns the ID of the newly added client.

+ +
+ + diff --git a/remoting_client/API-docs/sites_ftp_user_delete.html b/remoting_client/API-docs/sites_ftp_user_delete.html new file mode 100644 index 0000000000..c797af0f17 --- /dev/null +++ b/remoting_client/API-docs/sites_ftp_user_delete.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

sites_ftp_user_delete($session_id, $primary_id);

+
+

Description:

+

Deletes an ftp user.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns the number of deleted records.

+ +
+ + diff --git a/remoting_client/API-docs/sites_ftp_user_get.html b/remoting_client/API-docs/sites_ftp_user_get.html new file mode 100644 index 0000000000..a850c53b01 --- /dev/null +++ b/remoting_client/API-docs/sites_ftp_user_get.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

sites_ftp_user_get($session_id, $primary_id);

+
+

Description:

+

Retrieves information about an ftp user.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns all fields and values of the chosen ftp user.

+ +
+ + diff --git a/remoting_client/API-docs/sites_ftp_user_update.html b/remoting_client/API-docs/sites_ftp_user_update.html new file mode 100644 index 0000000000..a69c97dbc7 --- /dev/null +++ b/remoting_client/API-docs/sites_ftp_user_update.html @@ -0,0 +1,42 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

sites_ftp_user_update($session_id, $client_id, $primary_id, $params);

+
+Description: +

Updates an ftp user.


+Input Variables: +

$session_id, $client_id, $primary_id, $params

+Parameters (in $params): +

server_id  (int(11))

+

parent_domain_id  (int(11))

+

username  (varchar(64))

+

password  (varchar(64))

+

quota_size  (bigint(20))

+

active  (enum('n','y'))

+

uid  (varchar(64))

+

gid  (varchar(64))

+

dir  (varchar(255))

+

quota_files  (bigint(20))

+

ul_ratio  (int(11))

+

dl_ratio  (int(11))

+

ul_bandwidth  (int(11))

+

dl_bandwidth  (int(11))

+Output: +

Returns the number of affected rows.

+ +
+ + diff --git a/remoting_client/API-docs/sites_shell_user_add.html b/remoting_client/API-docs/sites_shell_user_add.html new file mode 100644 index 0000000000..95a965bf57 --- /dev/null +++ b/remoting_client/API-docs/sites_shell_user_add.html @@ -0,0 +1,39 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

sites_shell_user_add($session_id, $client_id, $params);

+
+

Description:

+

Adds a new shell user.


+

Input Variables:

+

$session_id, $client_id, $params

+

Parameters (in $params):

+

server_id  (int(11))

+

parent_domain_id  (int(11))

+

username  (varchar(64))

+

password  (varchar(64))

+

quota_size  (bigint(20))

+

active  (enum('n','y'))

+

puser  (varchar(64))

+

pgroup  (varchar(64))

+

shell  (varchar(255))

+

dir  (bigint(20))

+

chroot  (int(11))

+

Output:

+

Returns the ID of the newly added shell user.

+ +
+ + diff --git a/remoting_client/API-docs/sites_shell_user_delete.html b/remoting_client/API-docs/sites_shell_user_delete.html new file mode 100644 index 0000000000..d72cbd66c7 --- /dev/null +++ b/remoting_client/API-docs/sites_shell_user_delete.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

sites_shell_user_delete($session_id, $primary_id);

+
+

Description:

+

Deletes a shell user.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns the number of deleted records.

+ +
+ + diff --git a/remoting_client/API-docs/sites_shell_user_get.html b/remoting_client/API-docs/sites_shell_user_get.html new file mode 100644 index 0000000000..ffc027dab9 --- /dev/null +++ b/remoting_client/API-docs/sites_shell_user_get.html @@ -0,0 +1,29 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

sites_shell_user_get($session_id, $primary_id);

+
+

Description:

+

Retrieves information about a shell user.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns all fields and values of the chosen shell user.

+ +
+ + diff --git a/remoting_client/API-docs/sites_shell_user_update.html b/remoting_client/API-docs/sites_shell_user_update.html new file mode 100644 index 0000000000..0d57f6483c --- /dev/null +++ b/remoting_client/API-docs/sites_shell_user_update.html @@ -0,0 +1,39 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

sites_shell_user_update($session_id, $client_id, $primary_id, $params);

+
+Description: +

Updates a shell user.


+Input Variables: +

$session_id, $client_id, $primary_id, $params

+Parameters (in $params): +

server_id  (int(11))

+

parent_domain_id  (int(11))

+

username  (varchar(64))

+

password  (varchar(64))

+

quota_size  (bigint(20))

+

active  (enum('n','y'))

+

puser  (varchar(64))

+

pgroup  (varchar(64))

+

shell  (varchar(255))

+

dir  (bigint(20))

+

chroot  (int(11))

+Output: +

Returns the number of affected rows.

+ +
+ + diff --git a/remoting_client/API-docs/sites_web_aliasdomain_add.html b/remoting_client/API-docs/sites_web_aliasdomain_add.html new file mode 100644 index 0000000000..12e313efcc --- /dev/null +++ b/remoting_client/API-docs/sites_web_aliasdomain_add.html @@ -0,0 +1,70 @@ + +ISCPConfig 3 API Functions + + + + + + + + + + +
+

sites_web_aliasdomain_add($session_id, $client_id, $params, $readonly = false);

+
+

Description:

+

Adds a new web aliasdomain if type is alias.


+

Input Variables:

+

$session_id, $client_id, $params

+

Parameters (in $params):

+

server_id  (int(11))

+

ip_address  (varchar(39))

+

domain  (varchar(255))

+

type  (varchar(32))

+

parent_domain_id  (int(11))

+

vhost_type  (varchar(32))

+

document_root  (varchar(255))

+

system_user  (varchar(255))

+

system_group  (varchar(255))

+

hd_quota  (bigint(20))

+

traffic_quota  (bigint(20))

+

cgi  (enum('n','y'))

+

ssi  (enum('n','y'))

+

suexec  (enum('n','y'))

+

errordocs  (tinyint(1))

+

is_subdomainwww  (tinyint(1))

+

subdomain  (enum('none','www','*'))

+

php  (enum('n','y'))

+

ruby  (enum('n','y'))

+

redirect_type  (varchar(255))

+

redirect_path  (varchar(255))

+

ssl  (enum('n','y'))

+

ssl_state  (varchar(255))

+

ssl_locality  (varchar(255))

+

ssl_organisation  (varchar(255))

+

ssl_organisation_unit  (varchar(255))

+

ssl_country  (varchar(255))

+

ssl_domain  (varchar(255))

+

ssl_request  (mediumtext)

+

ssl_cert  (mediumtext)

+

ssl_bundle  (mediumtext)

+

ssl_action  (varchar(16))

+

stats_password  (varchar(255))

+

stats_type  (varchar(255))

+

allow_override  (varchar(255))

+

apache_directives  (mediumtext)

+

php_open_basedir  (mediumtext)

+

custom_php_ini  (mediumtext)

+

backup_interval  (varchar(255))

+

backup_copies  (int(11))

+

active  (enum('n','y'))

+

traffic_quota_lock  (enum('n','y'))

+

Output:

+

Returns the ID of the newly added web aliasdomain.

+ +
+ + diff --git a/remoting_client/API-docs/sites_web_aliasdomain_delete.html b/remoting_client/API-docs/sites_web_aliasdomain_delete.html new file mode 100644 index 0000000000..0f551110f2 --- /dev/null +++ b/remoting_client/API-docs/sites_web_aliasdomain_delete.html @@ -0,0 +1,29 @@ + +ISCPConfig 3 API Functions + + + + + + + + + + +
+

sites_web_aliasdomain_delete($session_id, $primary_id);

+
+

Description:

+

Deletes a web aliasdomain.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns the number of deleted records.

+ +
+ + diff --git a/remoting_client/API-docs/sites_web_aliasdomain_get.html b/remoting_client/API-docs/sites_web_aliasdomain_get.html new file mode 100644 index 0000000000..5a76dea394 --- /dev/null +++ b/remoting_client/API-docs/sites_web_aliasdomain_get.html @@ -0,0 +1,29 @@ + +ISCPConfig 3 API Functions + + + + + + + + + + +
+

sites_web_aliasdomain_get($session_id, $primary_id);

+
+

Description:

+

Retrieves information about a web aliasdomain.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns all fields and values of the chosen web aliasdomain.

+ +
+ + diff --git a/remoting_client/API-docs/sites_web_aliasdomain_update.html b/remoting_client/API-docs/sites_web_aliasdomain_update.html new file mode 100644 index 0000000000..a402594963 --- /dev/null +++ b/remoting_client/API-docs/sites_web_aliasdomain_update.html @@ -0,0 +1,70 @@ + +ISCPConfig 3 API Functions + + + + + + + + + + +
+

sites_web_aliasdomain_update($session_id, $client_id, $primary_id, $params);

+
+Description: +

Updates a web aliasdomain if type is alias.


+Input Variables: +

$session_id, $client_id, $primary_id, $params

+Parameters (in $params): +

server_id  (int(11))

+

ip_address  (varchar(39))

+

domain  (varchar(255))

+

type  (varchar(32))

+

parent_domain_id  (int(11))

+

vhost_type  (varchar(32))

+

document_root  (varchar(255))

+

system_user  (varchar(255))

+

system_group  (varchar(255))

+

hd_quota  (bigint(20))

+

traffic_quota  (bigint(20))

+

cgi  (enum('n','y'))

+

ssi  (enum('n','y'))

+

suexec  (enum('n','y'))

+

errordocs  (tinyint(1))

+

is_subdomainwww  (tinyint(1))

+

subdomain  (enum('none','www','*'))

+

php  (enum('n','y'))

+

ruby  (enum('n','y'))

+

redirect_type  (varchar(255))

+

redirect_path  (varchar(255))

+

ssl  (enum('n','y'))

+

ssl_state  (varchar(255))

+

ssl_locality  (varchar(255))

+

ssl_organisation  (varchar(255))

+

ssl_organisation_unit  (varchar(255))

+

ssl_country  (varchar(255))

+

ssl_domain  (varchar(255))

+

ssl_request  (mediumtext)

+

ssl_cert  (mediumtext)

+

ssl_bundle  (mediumtext)

+

ssl_action  (varchar(16))

+

stats_password  (varchar(255))

+

stats_type  (varchar(255))

+

allow_override  (varchar(255))

+

apache_directives  (mediumtext)

+

php_open_basedir  (mediumtext)

+

custom_php_ini  (mediumtext)

+

backup_interval  (varchar(255))

+

backup_copies  (int(11))

+

active  (enum('n','y'))

+

traffic_quota_lock  (enum('n','y'))

+Output: +

Returns the number of affected rows.

+ +
+ + diff --git a/remoting_client/API-docs/sites_web_domain_add.html b/remoting_client/API-docs/sites_web_domain_add.html new file mode 100644 index 0000000000..de4780670a --- /dev/null +++ b/remoting_client/API-docs/sites_web_domain_add.html @@ -0,0 +1,70 @@ + +ISCPConfig 3 API Functions + + + + + + + + + + +
+

sites_web_domain_add($session_id, $client_id, $params, $readonly = false);

+
+

Description:

+

Adds a new web domain.


+

Input Variables:

+

$session_id, $client_id, $params

+

Parameters (in $params):

+

server_id  (int(11))

+

ip_address  (varchar(39))

+

domain  (varchar(255))

+

type  (varchar(32))

+

parent_domain_id  (int(11))

+

vhost_type  (varchar(32))

+

document_root  (varchar(255))

+

system_user  (varchar(255))

+

system_group  (varchar(255))

+

hd_quota  (bigint(20))

+

traffic_quota  (bigint(20))

+

cgi  (enum('n','y'))

+

ssi  (enum('n','y'))

+

suexec  (enum('n','y'))

+

errordocs  (tinyint(1))

+

is_subdomainwww  (tinyint(1))

+

subdomain  (enum('none','www','*'))

+

php  (enum('n','y'))

+

ruby  (enum('n','y'))

+

redirect_type  (varchar(255))

+

redirect_path  (varchar(255))

+

ssl  (enum('n','y'))

+

ssl_state  (varchar(255))

+

ssl_locality  (varchar(255))

+

ssl_organisation  (varchar(255))

+

ssl_organisation_unit  (varchar(255))

+

ssl_country  (varchar(255))

+

ssl_domain  (varchar(255))

+

ssl_request  (mediumtext)

+

ssl_cert  (mediumtext)

+

ssl_bundle  (mediumtext)

+

ssl_action  (varchar(16))

+

stats_password  (varchar(255))

+

stats_type  (varchar(255))

+

allow_override  (varchar(255))

+

apache_directives  (mediumtext)

+

php_open_basedir  (mediumtext)

+

custom_php_ini  (mediumtext)

+

backup_interval  (varchar(255))

+

backup_copies  (int(11))

+

active  (enum('n','y'))

+

traffic_quota_lock  (enum('n','y'))

+

Output:

+

Returns the ID of the newly added web domain.

+ +
+ + diff --git a/remoting_client/API-docs/sites_web_domain_delete.html b/remoting_client/API-docs/sites_web_domain_delete.html new file mode 100644 index 0000000000..5f5424daed --- /dev/null +++ b/remoting_client/API-docs/sites_web_domain_delete.html @@ -0,0 +1,29 @@ + +ISCPConfig 3 API Functions + + + + + + + + + + +
+

sites_web_domain_delete($session_id, $primary_id);

+
+

Description:

+

Deletes a web domain.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns the number of deleted records.

+ +
+ + diff --git a/remoting_client/API-docs/sites_web_domain_get.html b/remoting_client/API-docs/sites_web_domain_get.html new file mode 100644 index 0000000000..06f0442897 --- /dev/null +++ b/remoting_client/API-docs/sites_web_domain_get.html @@ -0,0 +1,29 @@ + +ISCPConfig 3 API Functions + + + + + + + + + + +
+

sites_web_domain_get($session_id, $primary_id);

+
+

Description:

+

Retrieves information about a web domain.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns all fields and values of the chosen web domain.

+ +
+ + diff --git a/remoting_client/API-docs/sites_web_domain_set_status.html b/remoting_client/API-docs/sites_web_domain_set_status.html new file mode 100644 index 0000000000..522996e7d1 --- /dev/null +++ b/remoting_client/API-docs/sites_web_domain_set_status.html @@ -0,0 +1,31 @@ + +Postfix Monitoring With Mailgraph And pflogsumm + + + + + + + + + + +
+

sites_web_domain_set_status($session_id, $primary_id, $status);

+
+

Description:

+

Changes status of a web domain to 'active' or 'inactive'.


+

Input Variables:

+

$session_id, $primary_id, $status

+

Parameters (in $params):

+

None

+

Output:

+

Returns '1' if status has been changed, '0' if no changes were taken.

+

SQL Interaction (if status is changed to 'active'):

+

"UPDATE web_domain SET active = '$status' WHERE domain_id = ".intval($primary_id)

+ +
+ + diff --git a/remoting_client/API-docs/sites_web_domain_update.html b/remoting_client/API-docs/sites_web_domain_update.html new file mode 100644 index 0000000000..c25bb41ab2 --- /dev/null +++ b/remoting_client/API-docs/sites_web_domain_update.html @@ -0,0 +1,70 @@ + +ISCPConfig 3 API Functions + + + + + + + + + + +
+

sites_web_domain_update($session_id, $client_id, $primary_id, $params);

+
+Description: +

Updates a web domain.


+Input Variables: +

$session_id, $client_id, $primary_id, $params

+Parameters (in $params): +

server_id  (int(11))

+

ip_address  (varchar(39))

+

domain  (varchar(255))

+

type  (varchar(32))

+

parent_domain_id  (int(11))

+

vhost_type  (varchar(32))

+

document_root  (varchar(255))

+

system_user  (varchar(255))

+

system_group  (varchar(255))

+

hd_quota  (bigint(20))

+

traffic_quota  (bigint(20))

+

cgi  (enum('n','y'))

+

ssi  (enum('n','y'))

+

suexec  (enum('n','y'))

+

errordocs  (tinyint(1))

+

is_subdomainwww  (tinyint(1))

+

subdomain  (enum('none','www','*'))

+

php  (enum('n','y'))

+

ruby  (enum('n','y'))

+

redirect_type  (varchar(255))

+

redirect_path  (varchar(255))

+

ssl  (enum('n','y'))

+

ssl_state  (varchar(255))

+

ssl_locality  (varchar(255))

+

ssl_organisation  (varchar(255))

+

ssl_organisation_unit  (varchar(255))

+

ssl_country  (varchar(255))

+

ssl_domain  (varchar(255))

+

ssl_request  (mediumtext)

+

ssl_cert  (mediumtext)

+

ssl_bundle  (mediumtext)

+

ssl_action  (varchar(16))

+

stats_password  (varchar(255))

+

stats_type  (varchar(255))

+

allow_override  (varchar(255))

+

apache_directives  (mediumtext)

+

php_open_basedir  (mediumtext)

+

custom_php_ini  (mediumtext)

+

backup_interval  (varchar(255))

+

backup_copies  (int(11))

+

active  (enum('n','y'))

+

traffic_quota_lock  (enum('n','y'))

+Output: +

Returns the number of affected rows.

+ +
+ + diff --git a/remoting_client/API-docs/sites_web_subdomain_add.html b/remoting_client/API-docs/sites_web_subdomain_add.html new file mode 100644 index 0000000000..3e884f4ec7 --- /dev/null +++ b/remoting_client/API-docs/sites_web_subdomain_add.html @@ -0,0 +1,70 @@ + +ISCPConfig 3 API Functions + + + + + + + + + + +
+

sites_web_subdomain_add($session_id, $client_id, $params, $readonly = false);

+
+

Description:

+

Adds a new web subdomain if type is subdomain.


+

Input Variables:

+

$session_id, $client_id, $params

+

Parameters (in $params):

+

server_id  (int(11))

+

ip_address  (varchar(39))

+

domain  (varchar(255))

+

type  (varchar(32))

+

parent_domain_id  (int(11))

+

vhost_type  (varchar(32))

+

document_root  (varchar(255))

+

system_user  (varchar(255))

+

system_group  (varchar(255))

+

hd_quota  (bigint(20))

+

traffic_quota  (bigint(20))

+

cgi  (enum('n','y'))

+

ssi  (enum('n','y'))

+

suexec  (enum('n','y'))

+

errordocs  (tinyint(1))

+

is_subdomainwww  (tinyint(1))

+

subdomain  (enum('none','www','*'))

+

php  (enum('n','y'))

+

ruby  (enum('n','y'))

+

redirect_type  (varchar(255))

+

redirect_path  (varchar(255))

+

ssl  (enum('n','y'))

+

ssl_state  (varchar(255))

+

ssl_locality  (varchar(255))

+

ssl_organisation  (varchar(255))

+

ssl_organisation_unit  (varchar(255))

+

ssl_country  (varchar(255))

+

ssl_domain  (varchar(255))

+

ssl_request  (mediumtext)

+

ssl_cert  (mediumtext)

+

ssl_bundle  (mediumtext)

+

ssl_action  (varchar(16))

+

stats_password  (varchar(255))

+

stats_type  (varchar(255))

+

allow_override  (varchar(255))

+

apache_directives  (mediumtext)

+

php_open_basedir  (mediumtext)

+

custom_php_ini  (mediumtext)

+

backup_interval  (varchar(255))

+

backup_copies  (int(11))

+

active  (enum('n','y'))

+

traffic_quota_lock  (enum('n','y'))

+

Output:

+

Returns the ID of the newly added web subdomain.

+ +
+ + diff --git a/remoting_client/API-docs/sites_web_subdomain_delete.html b/remoting_client/API-docs/sites_web_subdomain_delete.html new file mode 100644 index 0000000000..22db8f33b0 --- /dev/null +++ b/remoting_client/API-docs/sites_web_subdomain_delete.html @@ -0,0 +1,29 @@ + +ISCPConfig 3 API Functions + + + + + + + + + + +
+

sites_web_subdomain_delete($session_id, $primary_id);

+
+

Description:

+

Deletes a web subdomain.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns the number of deleted records.

+ +
+ + diff --git a/remoting_client/API-docs/sites_web_subdomain_get.html b/remoting_client/API-docs/sites_web_subdomain_get.html new file mode 100644 index 0000000000..d42c293d2b --- /dev/null +++ b/remoting_client/API-docs/sites_web_subdomain_get.html @@ -0,0 +1,29 @@ + +ISCPConfig 3 API Functions + + + + + + + + + + +
+

sites_web_subdomain_get($session_id, $primary_id);

+
+

Description:

+

Retrieves information about a web subdomain.


+

Input Variables:

+

$session_id, $primary_id

+

Parameters (in $params):

+

None

+

Output:

+

Returns all fields and values of the chosen web subdomain.

+ +
+ + diff --git a/remoting_client/API-docs/sites_web_subdomain_update.html b/remoting_client/API-docs/sites_web_subdomain_update.html new file mode 100644 index 0000000000..4563912b59 --- /dev/null +++ b/remoting_client/API-docs/sites_web_subdomain_update.html @@ -0,0 +1,70 @@ + +ISCPConfig 3 API Functions + + + + + + + + + + +
+

sites_web_subdomain_update($session_id, $client_id, $primary_id, $params);

+
+Description: +

Updates a web subdomain if type is subdomain.


+Input Variables: +

$session_id, $client_id, $primary_id, $params

+Parameters (in $params): +

server_id  (int(11))

+

ip_address  (varchar(39))

+

domain  (varchar(255))

+

type  (varchar(32))

+

parent_domain_id  (int(11))

+

vhost_type  (varchar(32))

+

document_root  (varchar(255))

+

system_user  (varchar(255))

+

system_group  (varchar(255))

+

hd_quota  (bigint(20))

+

traffic_quota  (bigint(20))

+

cgi  (enum('n','y'))

+

ssi  (enum('n','y'))

+

suexec  (enum('n','y'))

+

errordocs  (tinyint(1))

+

is_subdomainwww  (tinyint(1))

+

subdomain  (enum('none','www','*'))

+

php  (enum('n','y'))

+

ruby  (enum('n','y'))

+

redirect_type  (varchar(255))

+

redirect_path  (varchar(255))

+

ssl  (enum('n','y'))

+

ssl_state  (varchar(255))

+

ssl_locality  (varchar(255))

+

ssl_organisation  (varchar(255))

+

ssl_organisation_unit  (varchar(255))

+

ssl_country  (varchar(255))

+

ssl_domain  (varchar(255))

+

ssl_request  (mediumtext)

+

ssl_cert  (mediumtext)

+

ssl_bundle  (mediumtext)

+

ssl_action  (varchar(16))

+

stats_password  (varchar(255))

+

stats_type  (varchar(255))

+

allow_override  (varchar(255))

+

apache_directives  (mediumtext)

+

php_open_basedir  (mediumtext)

+

custom_php_ini  (mediumtext)

+

backup_interval  (varchar(255))

+

backup_copies  (int(11))

+

active  (enum('n','y'))

+

traffic_quota_lock  (enum('n','y'))

+Output: +

Returns the number of affected rows.

+ +
+ + diff --git a/remoting_client/example.php b/remoting_client/example.php deleted file mode 100644 index ddef0ee142..0000000000 --- a/remoting_client/example.php +++ /dev/null @@ -1,104 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - //* Login to the remote server - if($session_id = $client->login($username,$password)) { - echo 'Logged into remote server sucessfully. The SessionID is '.$session_id.'
'; - } - - //* ---------------------------------------------------------- - //* Example functions - //* ---------------------------------------------------------- - - /* - //* Add a email domain - $params = array( 'server_id' => 1, - 'domain' => 'domain.tld', - 'active' => 'y'); - $client_id = 0; - $domain_id = $client->mail_domain_add($session_id, $client_id, $params); - */ - - /* - //* Update email domain - $params = array( 'server_id' => 1, - 'domain' => 'domain.tld', - 'active' => 'y'); - //* ID of the client. 0 = the admin owns this record. - $client_id = 0; - - // ID of the domain whch shall be updated. - $domain_id = 1; - - // Call the domain update function - $domain_id = $client->mail_domain_update($session_id, $client_id, $domain_id, $params); - */ - - - //* Logout - if($client->logout($session_id)) { - echo 'Logged out sucessfully.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Error: '.$e->getMessage()); -} - - - - - - - - - - - - - -?> \ No newline at end of file diff --git a/remoting_client/examples/client_add.php b/remoting_client/examples/client_add.php new file mode 100644 index 0000000000..e95e89677e --- /dev/null +++ b/remoting_client/examples/client_add.php @@ -0,0 +1,97 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $random_rs_id = 1; + $params = array( + 'company_name' => 'awesomecompany', + 'contact_name' => 'name', + 'customer_no' => '1', + 'vat_id' => '1', + 'street' => 'fleetstreet', + 'zip' => '21337', + 'city' => 'london', + 'state' => 'bavaria', + 'country' => 'UK', + 'telephone' => '123456789', + 'mobile' => '987654321', + 'fax' => '546718293', + 'email' => 'e@mail.int', + 'internet' => '', + 'icq' => '111111111', + 'notes' => 'awesome', + 'dafault_mailserver' => 1, + 'limit_maildomain' => -1, + 'limit_mailbox' => -1, + 'limit_mailalias' => -1, + 'limit_mailaliasdomain' => -1, + 'limit_mailforward' => -1, + 'limit_mailcatchall' => -1, + 'limit_mailrouting' => 0, + 'limit_mailfilter' => -1, + 'limit_fetchmail' => -1, + 'limit_mailquota' => -1, + 'limit_spamfilter_wblist' => 0, + 'limit_spamfilter_user' => 0, + 'limit_spamfilter_policy' => 1, + 'default_webserver' => 1, + 'limit_web_ip' => '', + 'limit_web_domain' => -1, + 'limit_web_quota' => -1, + 'web_php_options' => 'no,fast-cgi,cgi,mod,suphp', + 'limit_web_subdomain' => -1, + 'limit_web_aliasdomain' => -1, + 'limit_ftp_user' => -1, + 'limit_shell_user' => 0, + 'ssh_chroot' => 'no,jailkit,ssh-chroot', + 'limit_webdav_user' => 0, + 'default_dnsserver' => 1, + 'limit_dns_zone' => -1, + 'limit_dns_slave_zone' => -1, + 'limit_dns_record' => -1, + 'default_dbserver' => 1, + 'limit_database' => -1, + 'limit_cron' => 0, + 'limit_cron_type' => 'url', + 'limit_cron_frequency' => 5, + 'limit_traffic_quota' => -1, + 'limit_client' => 0, + 'parent_client_id' => 0, + 'username' => 'guy', + 'password' => 'brush', + 'language' => 'en', + 'usertheme' => 'default', + 'template_master' => 0, + 'template_additional' => '', + 'created_at' => 0 + ); + + $affected_rows = $client->client_add($session_id, $random_rs_id, $params); + + echo "Client: ".$affected_rows."
"; + + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/client_change_password.php b/remoting_client/examples/client_change_password.php new file mode 100644 index 0000000000..157423b27c --- /dev/null +++ b/remoting_client/examples/client_change_password.php @@ -0,0 +1,35 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $domain = 'test.int'; + + $record_record = $client->mail_domain_get_by_domain($session_id, $domain); + + print_r($record_record); + echo "
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/client_delete.php b/remoting_client/examples/client_delete.php new file mode 100644 index 0000000000..367c7512f8 --- /dev/null +++ b/remoting_client/examples/client_delete.php @@ -0,0 +1,36 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $id = 1; + + + //* Delete client + $affected_rows = $client->client_delete($session_id, $id); + + echo "Number of records that have been deleted: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/client_delete_everything.php b/remoting_client/examples/client_delete_everything.php new file mode 100644 index 0000000000..e11e77217c --- /dev/null +++ b/remoting_client/examples/client_delete_everything.php @@ -0,0 +1,37 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $client_id = 9; + + + //* Delete client + $affected_rows = $client->client_delete_everything($session_id, $client_id); + + echo "Client ".$client_id." has been deleted.
"; + //print_r($affected_rows); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/client_get.php b/remoting_client/examples/client_get.php new file mode 100644 index 0000000000..095fd95b77 --- /dev/null +++ b/remoting_client/examples/client_get.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $var_client_id = 1; + + $client_record = $client->client_get($session_id, $var_client_id); + + print_r($client_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/client_get_by_username.php b/remoting_client/examples/client_get_by_username.php new file mode 100644 index 0000000000..93c516dce3 --- /dev/null +++ b/remoting_client/examples/client_get_by_username.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $username = 'guy3'; + + $record_record = $client->client_get_by_username($session_id, $username); + + print_r($record_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/client_get_id.php b/remoting_client/examples/client_get_id.php new file mode 100644 index 0000000000..e19edded71 --- /dev/null +++ b/remoting_client/examples/client_get_id.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $sys_userid = 5; + + $client_record = $client->client_get_id($session_id, $sys_userid); + + print_r($client_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/client_get_sites_by_user.php b/remoting_client/examples/client_get_sites_by_user.php new file mode 100644 index 0000000000..ebebc551c8 --- /dev/null +++ b/remoting_client/examples/client_get_sites_by_user.php @@ -0,0 +1,35 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $sys_userid = 1; + $sys_groupid = 1; + + $record_record = $client->client_get_sites_by_user($session_id, $sys_userid, $sys_groupid); + + print_r($record_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/client_templates_get_all.php b/remoting_client/examples/client_templates_get_all.php new file mode 100644 index 0000000000..003e1c7d27 --- /dev/null +++ b/remoting_client/examples/client_templates_get_all.php @@ -0,0 +1,33 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + + $record_record = $client->client_templates_get_all($session_id); + + print_r($record_record); + echo "
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/client_update.php b/remoting_client/examples/client_update.php new file mode 100644 index 0000000000..82f879703d --- /dev/null +++ b/remoting_client/examples/client_update.php @@ -0,0 +1,44 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $reseller_id = 1; + $c_id = 1; + + + //* Get the client record + $client_record = $client->client_get($session_id, $reseller_id); + + //* Change parameters + $client_record['country'] = 'de'; + $client_record['username'] = 'mguy'; + $client_record['contact_name'] = 'brush'; + + $affected_rows = $client->client_update($session_id, $c_id, $reseller_id, $client_record); + + echo "Number of records that have been changed in the database: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_a_add.php b/remoting_client/examples/dns_a_add.php new file mode 100644 index 0000000000..9ab1288836 --- /dev/null +++ b/remoting_client/examples/dns_a_add.php @@ -0,0 +1,46 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $client_id = 1; + $params = array( + 'server_id' => 1, + 'zone' => 5, + 'name' => 'a', + 'type' => 'a', + 'data' => '192.168.1.88', + 'aux' => '0', + 'ttl' => '86400', + 'active' => 'y', + 'stamp' => 'CURRENT_TIMESTAMP', + 'serial' => '1', + ); + + $id = $client->dns_a_add($session_id, $client_id, $params); + + echo "ID: ".$id."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_a_delete.php b/remoting_client/examples/dns_a_delete.php new file mode 100644 index 0000000000..c092097f9d --- /dev/null +++ b/remoting_client/examples/dns_a_delete.php @@ -0,0 +1,35 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $id = 3; + + + $affected_rows = $client->dns_a_delete($session_id, $id); + + echo "Number of records that have been deleted: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_a_get.php b/remoting_client/examples/dns_a_get.php new file mode 100644 index 0000000000..d3e296ae42 --- /dev/null +++ b/remoting_client/examples/dns_a_get.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $id = 3; + + $dns_record = $client->dns_a_get($session_id, $id); + + print_r($dns_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_a_update.php b/remoting_client/examples/dns_a_update.php new file mode 100644 index 0000000000..f543b40192 --- /dev/null +++ b/remoting_client/examples/dns_a_update.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $id = 3; + $client_id = 1; + + + //* Get the dns record + $dns_record = $client->dns_a_get($session_id, $id); + + //* Change active to inactive + $dns_record['active'] = 'n'; + + $affected_rows = $client->dns_a_update($session_id, $client_id, $id, $dns_record); + + echo "Number of records that have been changed in the database: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_aaaa_add.php b/remoting_client/examples/dns_aaaa_add.php new file mode 100644 index 0000000000..bcd640b196 --- /dev/null +++ b/remoting_client/examples/dns_aaaa_add.php @@ -0,0 +1,46 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $client_id = 1; + $params = array( + 'server_id' => 1, + 'zone' => 1, + 'name' => 'aaaa', + 'type' => 'aaaa', + 'data' => '3ffe:b00:c18:3::a', + 'aux' => '0', + 'ttl' => '86400', + 'active' => 'y', + 'stamp' => 'CURRENT_TIMESTAMP', + 'serial' => '1', + ); + + $id = $client->dns_aaaa_add($session_id, $client_id, $params); + + echo "ID: ".$id."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_aaaa_delete.php b/remoting_client/examples/dns_aaaa_delete.php new file mode 100644 index 0000000000..0021b2025d --- /dev/null +++ b/remoting_client/examples/dns_aaaa_delete.php @@ -0,0 +1,35 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $id = 1; + + + $affected_rows = $client->dns_aaaa_delete($session_id, $id); + + echo "Number of records that have been deleted: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_aaaa_get.php b/remoting_client/examples/dns_aaaa_get.php new file mode 100644 index 0000000000..d1510542ec --- /dev/null +++ b/remoting_client/examples/dns_aaaa_get.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $id = 1; + + $dns_record = $client->dns_aaaa_get($session_id, $id); + + print_r($dns_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_aaaa_update.php b/remoting_client/examples/dns_aaaa_update.php new file mode 100644 index 0000000000..e0d719400a --- /dev/null +++ b/remoting_client/examples/dns_aaaa_update.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $id = 1; + $client_id = 1; + + + //* Get the dns record + $dns_record = $client->dns_aaaa_get($session_id, $id); + + //* Change active to inactive + $dns_record['active'] = 'n'; + + $affected_rows = $client->dns_aaaa_update($session_id, $client_id, $id, $dns_record); + + echo "Number of records that have been changed in the database: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_alias_add.php b/remoting_client/examples/dns_alias_add.php new file mode 100644 index 0000000000..5b81662dcc --- /dev/null +++ b/remoting_client/examples/dns_alias_add.php @@ -0,0 +1,46 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $client_id = 1; + $params = array( + 'server_id' => 1, + 'zone' => 4, + 'name' => 'alias', + 'type' => 'alias', + 'data' => 'hostmachine', + 'aux' => '0', + 'ttl' => '86400', + 'active' => 'y', + 'stamp' => 'CURRENT_TIMESTAMP', + 'serial' => '1', + ); + + $id = $client->dns_alias_add($session_id, $client_id, $params); + + echo "ID: ".$id."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_alias_delete.php b/remoting_client/examples/dns_alias_delete.php new file mode 100644 index 0000000000..68c7667b8b --- /dev/null +++ b/remoting_client/examples/dns_alias_delete.php @@ -0,0 +1,35 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $id = 4; + + + $affected_rows = $client->dns_alias_delete($session_id, $id); + + echo "Number of records that have been deleted: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_alias_get.php b/remoting_client/examples/dns_alias_get.php new file mode 100644 index 0000000000..d80a1240c4 --- /dev/null +++ b/remoting_client/examples/dns_alias_get.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $id = 4; + + $dns_record = $client->dns_alias_get($session_id, $id); + + print_r($dns_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_alias_update.php b/remoting_client/examples/dns_alias_update.php new file mode 100644 index 0000000000..8c9873b42a --- /dev/null +++ b/remoting_client/examples/dns_alias_update.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $id = 4; + $client_id = 1; + + + //* Get the dns record + $dns_record = $client->dns_alias_get($session_id, $id); + + //* Change active to inactive + $dns_record['active'] = 'n'; + + $affected_rows = $client->dns_alias_update($session_id, $client_id, $id, $dns_record); + + echo "Number of records that have been changed in the database: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_cname_add.php b/remoting_client/examples/dns_cname_add.php new file mode 100644 index 0000000000..4c6a61fe5f --- /dev/null +++ b/remoting_client/examples/dns_cname_add.php @@ -0,0 +1,46 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $client_id = 1; + $params = array( + 'server_id' => 1, + 'zone' => 3, + 'name' => 'cname', + 'type' => 'cname', + 'data' => 'hostmachine', + 'aux' => '0', + 'ttl' => '86400', + 'active' => 'y', + 'stamp' => 'CURRENT_TIMESTAMP', + 'serial' => '1', + ); + + $id = $client->dns_cname_add($session_id, $client_id, $params); + + echo "ID: ".$id."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_cname_delete.php b/remoting_client/examples/dns_cname_delete.php new file mode 100644 index 0000000000..493e71ce59 --- /dev/null +++ b/remoting_client/examples/dns_cname_delete.php @@ -0,0 +1,35 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $id = 5; + + + $affected_rows = $client->dns_cname_delete($session_id, $id); + + echo "Number of records that have been deleted: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_cname_get.php b/remoting_client/examples/dns_cname_get.php new file mode 100644 index 0000000000..8ea6af1c63 --- /dev/null +++ b/remoting_client/examples/dns_cname_get.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $id = 5; + + $dns_record = $client->dns_cname_get($session_id, $id); + + print_r($dns_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_cname_update.php b/remoting_client/examples/dns_cname_update.php new file mode 100644 index 0000000000..b689168fba --- /dev/null +++ b/remoting_client/examples/dns_cname_update.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $id = 5; + $client_id = 1; + + + //* Get the dns record + $dns_record = $client->dns_cname_get($session_id, $id); + + //* Change active to inactive + $dns_record['active'] = 'n'; + + $affected_rows = $client->dns_cname_update($session_id, $client_id, $id, $dns_record); + + echo "Number of records that have been changed in the database: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_hinfo_add.php b/remoting_client/examples/dns_hinfo_add.php new file mode 100644 index 0000000000..2c49d1e22e --- /dev/null +++ b/remoting_client/examples/dns_hinfo_add.php @@ -0,0 +1,46 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $client_id = 1; + $params = array( + 'server_id' => 1, + 'zone' => 2, + 'name' => 'info', + 'type' => 'hinfo', + 'data' => '"Pentium Pro" Linux', + 'aux' => '0', + 'ttl' => '86400', + 'active' => 'y', + 'stamp' => 'CURRENT_TIMESTAMP', + 'serial' => '1', + ); + + $id = $client->dns_hinfo_add($session_id, $client_id, $params); + + echo "ID: ".$id."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_hinfo_delete.php b/remoting_client/examples/dns_hinfo_delete.php new file mode 100644 index 0000000000..c2fc7eb1bf --- /dev/null +++ b/remoting_client/examples/dns_hinfo_delete.php @@ -0,0 +1,35 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $id = 6; + + + $affected_rows = $client->dns_hinfo_delete($session_id, $id); + + echo "Number of records that have been deleted: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_hinfo_get.php b/remoting_client/examples/dns_hinfo_get.php new file mode 100644 index 0000000000..23c8a4ade7 --- /dev/null +++ b/remoting_client/examples/dns_hinfo_get.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $id = 6; + + $dns_record = $client->dns_hinfo_get($session_id, $id); + + print_r($dns_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_hinfo_update.php b/remoting_client/examples/dns_hinfo_update.php new file mode 100644 index 0000000000..b35c73216f --- /dev/null +++ b/remoting_client/examples/dns_hinfo_update.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $id = 6; + $client_id = 1; + + + //* Get the dns record + $dns_record = $client->dns_hinfo_get($session_id, $id); + + //* Change active to inactive + $dns_record['active'] = 'n'; + + $affected_rows = $client->dns_hinfo_update($session_id, $client_id, $id, $dns_record); + + echo "Number of records that have been changed in the database: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_mx_add.php b/remoting_client/examples/dns_mx_add.php new file mode 100644 index 0000000000..878be4794e --- /dev/null +++ b/remoting_client/examples/dns_mx_add.php @@ -0,0 +1,46 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $client_id = 1; + $params = array( + 'server_id' => 1, + 'zone' => 6, + 'name' => 'mailexchanger', + 'type' => 'mx', + 'data' => 'mail', + 'aux' => '0', + 'ttl' => '86400', + 'active' => 'y', + 'stamp' => 'CURRENT_TIMESTAMP', + 'serial' => '1', + ); + + $id = $client->dns_mx_add($session_id, $client_id, $params); + + echo "ID: ".$id."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_mx_delete.php b/remoting_client/examples/dns_mx_delete.php new file mode 100644 index 0000000000..857b90c56c --- /dev/null +++ b/remoting_client/examples/dns_mx_delete.php @@ -0,0 +1,35 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $id = 7; + + + $affected_rows = $client->dns_mx_delete($session_id, $id); + + echo "Number of records that have been deleted: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_mx_get.php b/remoting_client/examples/dns_mx_get.php new file mode 100644 index 0000000000..112141e2fe --- /dev/null +++ b/remoting_client/examples/dns_mx_get.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $id = 7; + + $dns_record = $client->dns_mx_get($session_id, $id); + + print_r($dns_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_mx_update.php b/remoting_client/examples/dns_mx_update.php new file mode 100644 index 0000000000..c51221ab35 --- /dev/null +++ b/remoting_client/examples/dns_mx_update.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $id = 7; + $client_id = 1; + + + //* Get the dns record + $dns_record = $client->dns_mx_get($session_id, $id); + + //* Change active to inactive + $dns_record['active'] = 'n'; + + $affected_rows = $client->dns_mx_update($session_id, $client_id, $id, $dns_record); + + echo "Number of records that have been changed in the database: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_ns_add.php b/remoting_client/examples/dns_ns_add.php new file mode 100644 index 0000000000..2dd7efd65b --- /dev/null +++ b/remoting_client/examples/dns_ns_add.php @@ -0,0 +1,46 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $client_id = 1; + $params = array( + 'server_id' => 1, + 'zone' => 7, + 'name' => 'nameserver', + 'type' => 'ns', + 'data' => 'ns1', + 'aux' => '0', + 'ttl' => '86400', + 'active' => 'y', + 'stamp' => 'CURRENT_TIMESTAMP', + 'serial' => '1', + ); + + $id = $client->dns_ns_add($session_id, $client_id, $params); + + echo "ID: ".$id."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_ns_delete.php b/remoting_client/examples/dns_ns_delete.php new file mode 100644 index 0000000000..e50ff7c1b8 --- /dev/null +++ b/remoting_client/examples/dns_ns_delete.php @@ -0,0 +1,35 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $id = 8; + + + $affected_rows = $client->dns_ns_delete($session_id, $id); + + echo "Number of records that have been deleted: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_ns_get.php b/remoting_client/examples/dns_ns_get.php new file mode 100644 index 0000000000..28fcf383cc --- /dev/null +++ b/remoting_client/examples/dns_ns_get.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $id = 8; + + $dns_record = $client->dns_ns_get($session_id, $id); + + print_r($dns_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_ns_update.php b/remoting_client/examples/dns_ns_update.php new file mode 100644 index 0000000000..92fdb93dd6 --- /dev/null +++ b/remoting_client/examples/dns_ns_update.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $id = 8; + $client_id = 1; + + + //* Get the dns record + $dns_record = $client->dns_ns_get($session_id, $id); + + //* Change active to inactive + $dns_record['active'] = 'n'; + + $affected_rows = $client->dns_ns_update($session_id, $client_id, $id, $dns_record); + + echo "Number of records that have been changed in the database: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_ptr_add.php b/remoting_client/examples/dns_ptr_add.php new file mode 100644 index 0000000000..55ed112353 --- /dev/null +++ b/remoting_client/examples/dns_ptr_add.php @@ -0,0 +1,46 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $client_id = 1; + $params = array( + 'server_id' => 1, + 'zone' => 8, + 'name' => 'pointer', + 'type' => 'ptr', + 'data' => 'webmaster.test.int.', + 'aux' => '0', + 'ttl' => '86400', + 'active' => 'y', + 'stamp' => 'CURRENT_TIMESTAMP', + 'serial' => '1', + ); + + $id = $client->dns_ptr_add($session_id, $client_id, $params); + + echo "ID: ".$id."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_ptr_delete.php b/remoting_client/examples/dns_ptr_delete.php new file mode 100644 index 0000000000..ced26845e0 --- /dev/null +++ b/remoting_client/examples/dns_ptr_delete.php @@ -0,0 +1,35 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $id = 9; + + + $affected_rows = $client->dns_ptr_delete($session_id, $id); + + echo "Number of records that have been deleted: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_ptr_get.php b/remoting_client/examples/dns_ptr_get.php new file mode 100644 index 0000000000..1332a30c32 --- /dev/null +++ b/remoting_client/examples/dns_ptr_get.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $id = 9; + + $dns_record = $client->dns_ptr_get($session_id, $id); + + print_r($dns_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_ptr_update.php b/remoting_client/examples/dns_ptr_update.php new file mode 100644 index 0000000000..a2b360ae0f --- /dev/null +++ b/remoting_client/examples/dns_ptr_update.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $id = 9; + $client_id = 1; + + + //* Get the dns record + $dns_record = $client->dns_ptr_get($session_id, $id); + + //* Change active to inactive + $dns_record['active'] = 'n'; + + $affected_rows = $client->dns_ptr_update($session_id, $client_id, $id, $dns_record); + + echo "Number of records that have been changed in the database: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_rp_add.php b/remoting_client/examples/dns_rp_add.php new file mode 100644 index 0000000000..ac04cf7861 --- /dev/null +++ b/remoting_client/examples/dns_rp_add.php @@ -0,0 +1,46 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $client_id = 1; + $params = array( + 'server_id' => 1, + 'zone' => 9, + 'name' => 'responsibleperson', + 'type' => 'rp', + 'data' => 'webmaster.test.int. contactinfo.test.int', + 'aux' => '0', + 'ttl' => '86400', + 'active' => 'y', + 'stamp' => 'CURRENT_TIMESTAMP', + 'serial' => '1', + ); + + $id = $client->dns_rp_add($session_id, $client_id, $params); + + echo "ID: ".$id."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_rp_delete.php b/remoting_client/examples/dns_rp_delete.php new file mode 100644 index 0000000000..3edcb7b17a --- /dev/null +++ b/remoting_client/examples/dns_rp_delete.php @@ -0,0 +1,35 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $id = 10; + + + $affected_rows = $client->dns_rp_delete($session_id, $id); + + echo "Number of records that have been deleted: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_rp_get.php b/remoting_client/examples/dns_rp_get.php new file mode 100644 index 0000000000..3f57593757 --- /dev/null +++ b/remoting_client/examples/dns_rp_get.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $id = 10; + + $dns_record = $client->dns_rp_get($session_id, $id); + + print_r($dns_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_rp_update.php b/remoting_client/examples/dns_rp_update.php new file mode 100644 index 0000000000..7cc587de2b --- /dev/null +++ b/remoting_client/examples/dns_rp_update.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $id = 10; + $client_id = 1; + + + //* Get the dns record + $dns_record = $client->dns_rp_get($session_id, $id); + + //* Change active to inactive + $dns_record['active'] = 'n'; + + $affected_rows = $client->dns_rp_update($session_id, $client_id, $id, $dns_record); + + echo "Number of records that have been changed in the database: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_rr_get_all_by_zone.php b/remoting_client/examples/dns_rr_get_all_by_zone.php new file mode 100644 index 0000000000..284bad4f24 --- /dev/null +++ b/remoting_client/examples/dns_rr_get_all_by_zone.php @@ -0,0 +1,35 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $zone_id = 3; + + $record_record = $client->dns_rr_get_all_by_zone($session_id, $zone_id); + + print_r($record_record); + echo "
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_srv_add.php b/remoting_client/examples/dns_srv_add.php new file mode 100644 index 0000000000..9f021ac88f --- /dev/null +++ b/remoting_client/examples/dns_srv_add.php @@ -0,0 +1,46 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $client_id = 1; + $params = array( + 'server_id' => 1, + 'zone' => 10, + 'name' => 'server', + 'type' => 'srv', + 'data' => '0 9 server.test.int.', + 'aux' => '0', + 'ttl' => '86400', + 'active' => 'y', + 'stamp' => 'CURRENT_TIMESTAMP', + 'serial' => '1', + ); + + $id = $client->dns_srv_add($session_id, $client_id, $params); + + echo "ID: ".$id."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_srv_delete.php b/remoting_client/examples/dns_srv_delete.php new file mode 100644 index 0000000000..6bd7661408 --- /dev/null +++ b/remoting_client/examples/dns_srv_delete.php @@ -0,0 +1,35 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $id = 11; + + + $affected_rows = $client->dns_srv_delete($session_id, $id); + + echo "Number of records that have been deleted: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_srv_get.php b/remoting_client/examples/dns_srv_get.php new file mode 100644 index 0000000000..eb771a3f44 --- /dev/null +++ b/remoting_client/examples/dns_srv_get.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $id = 11; + + $dns_record = $client->dns_srv_get($session_id, $id); + + print_r($dns_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_srv_update.php b/remoting_client/examples/dns_srv_update.php new file mode 100644 index 0000000000..569651c24e --- /dev/null +++ b/remoting_client/examples/dns_srv_update.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $id = 11; + $client_id = 1; + + + //* Get the dns record + $dns_record = $client->dns_srv_get($session_id, $id); + + //* Change active to inactive + $dns_record['active'] = 'n'; + + $affected_rows = $client->dns_srv_update($session_id, $client_id, $id, $dns_record); + + echo "Number of records that have been changed in the database: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_txt_add.php b/remoting_client/examples/dns_txt_add.php new file mode 100644 index 0000000000..d760d57bc8 --- /dev/null +++ b/remoting_client/examples/dns_txt_add.php @@ -0,0 +1,46 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $client_id = 1; + $params = array( + 'server_id' => 1, + 'zone' => 11, + 'name' => 'stringtext', + 'type' => 'txt', + 'data' => 'any text can go here', + 'aux' => '0', + 'ttl' => '86400', + 'active' => 'y', + 'stamp' => 'CURRENT_TIMESTAMP', + 'serial' => '1', + ); + + $id = $client->dns_txt_add($session_id, $client_id, $params); + + echo "ID: ".$id."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_txt_delete.php b/remoting_client/examples/dns_txt_delete.php new file mode 100644 index 0000000000..862c801ea8 --- /dev/null +++ b/remoting_client/examples/dns_txt_delete.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $id = 12; + + $affected_rows = $client->dns_txt_delete($session_id, $id); + + echo "Number of records that have been deleted: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_txt_get.php b/remoting_client/examples/dns_txt_get.php new file mode 100644 index 0000000000..9c515f70a3 --- /dev/null +++ b/remoting_client/examples/dns_txt_get.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $id = 12; + + $dns_record = $client->dns_txt_get($session_id, $id); + + print_r($dns_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_txt_update.php b/remoting_client/examples/dns_txt_update.php new file mode 100644 index 0000000000..d6466e98de --- /dev/null +++ b/remoting_client/examples/dns_txt_update.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $id = 12; + $client_id = 1; + + + //* Get the dns record + $dns_record = $client->dns_txt_get($session_id, $id); + + //* Change active to inactive + $dns_record['active'] = 'n'; + + $affected_rows = $client->dns_txt_update($session_id, $client_id, $id, $dns_record); + + echo "Number of records that have been changed in the database: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_zone_add.php b/remoting_client/examples/dns_zone_add.php new file mode 100644 index 0000000000..163480816a --- /dev/null +++ b/remoting_client/examples/dns_zone_add.php @@ -0,0 +1,50 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $client_id = 2; + $params = array( + 'server_id' => 1, + 'origin' => 'test.intt.', + 'ns' => 'one', + 'mbox' => 'zonemaster.test.tld.', + 'serial' => '1', + 'refresh' => '28800', + 'retry' => '7200', + 'expire' => '604800', + 'minimum' => '86400', + 'ttl' => '86400', + 'active' => 'y', + 'xfer' => '', + 'also_notify' => '', + 'update_acl' => '', + ); + + $id = $client->dns_zone_add($session_id, $client_id, $params); + + echo "DNS ID: ".$id."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_zone_delete.php b/remoting_client/examples/dns_zone_delete.php new file mode 100644 index 0000000000..2bfc9c4c58 --- /dev/null +++ b/remoting_client/examples/dns_zone_delete.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $id = 1; + + $affected_rows = $client->dns_zone_delete($session_id, $id); + + echo "Number of records that have been deleted: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_zone_get.php b/remoting_client/examples/dns_zone_get.php new file mode 100644 index 0000000000..4ac8f174a3 --- /dev/null +++ b/remoting_client/examples/dns_zone_get.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $id = 1; + + $dns_record = $client->dns_zone_get($session_id, $id); + + print_r($dns_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_zone_get_by_user.php b/remoting_client/examples/dns_zone_get_by_user.php new file mode 100644 index 0000000000..38d70a2732 --- /dev/null +++ b/remoting_client/examples/dns_zone_get_by_user.php @@ -0,0 +1,36 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $client_id = 2; + $server_id = 1; + + $record_record = $client->dns_zone_get_by_user($session_id, $client_id, $server_id); + + print_r($record_record); + echo "
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_zone_set_status.php b/remoting_client/examples/dns_zone_set_status.php new file mode 100644 index 0000000000..e1b46c7842 --- /dev/null +++ b/remoting_client/examples/dns_zone_set_status.php @@ -0,0 +1,36 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $primary_id = 3; + $status = 'inactive'; + + $record_record = $client->dns_zone_set_status($session_id, $primary_id, $status); + + print_r($record_record); + echo "
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/dns_zone_update.php b/remoting_client/examples/dns_zone_update.php new file mode 100644 index 0000000000..4b8e7c2a74 --- /dev/null +++ b/remoting_client/examples/dns_zone_update.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $id = 1; + $client_id = 1; + + + //* Get the dns record + $dns_record = $client->dns_zone_get($session_id, $id); + + //* Change active to inactive + $dns_record['active'] = 'n'; + + $affected_rows = $client->dns_zone_update($session_id, $client_id, $id, $dns_record); + + echo "Number of records that have been changed in the database: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/domains_domain_add.php b/remoting_client/examples/domains_domain_add.php new file mode 100644 index 0000000000..30f2341f17 --- /dev/null +++ b/remoting_client/examples/domains_domain_add.php @@ -0,0 +1,37 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $client_id = 1; + $params = array( + 'domain' => 'cellar.door' + ); + + $domain_id = $client->domains_domain_add($session_id, $client_id, $params); + + echo "Domain ID: ".$domain_id."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/domains_domain_delete.php b/remoting_client/examples/domains_domain_delete.php new file mode 100644 index 0000000000..8582783807 --- /dev/null +++ b/remoting_client/examples/domains_domain_delete.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $domain_id = 1; + + $affected_rows = $client->domains_domain_delete($session_id, $domain_id); + + echo "Number of records that have been deleted: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/domains_domain_get.php b/remoting_client/examples/domains_domain_get.php new file mode 100644 index 0000000000..e8fcd65cd8 --- /dev/null +++ b/remoting_client/examples/domains_domain_get.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $domain_id = 1; + + $domain_record = $client->domains_domain_get($session_id, $domain_id); + + print_r($domain_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/domains_get_all_by_user.php b/remoting_client/examples/domains_get_all_by_user.php new file mode 100644 index 0000000000..647741b522 --- /dev/null +++ b/remoting_client/examples/domains_get_all_by_user.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $group_id = 0; + + $record_record = $client->domains_get_all_by_user($session_id, $group_id); + + print_r($record_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/get_function_list.php b/remoting_client/examples/get_function_list.php new file mode 100644 index 0000000000..b4b3cbe24b --- /dev/null +++ b/remoting_client/examples/get_function_list.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + + $record_record = $client->get_function_list($session_id); + + print_r($record_record); + echo "
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/login.php b/remoting_client/examples/login.php new file mode 100644 index 0000000000..21b735d1cf --- /dev/null +++ b/remoting_client/examples/login.php @@ -0,0 +1,25 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + $session_id = $client->login($username,$password); + echo 'Logged successfull. Session ID:'.$session_id.'
'; + echo "Logging out: "; + $client->logout($session_id); + echo "Logged out."; + + +}catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/logout.php b/remoting_client/examples/logout.php new file mode 100644 index 0000000000..8c7c5c1b6c --- /dev/null +++ b/remoting_client/examples/logout.php @@ -0,0 +1,31 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $session = $session_id; + echo "Logging out: "; + $client->logout($session); + + //Logged out + echo "Logged out."; + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_alias_add.php b/remoting_client/examples/mail_alias_add.php new file mode 100644 index 0000000000..38dbc65411 --- /dev/null +++ b/remoting_client/examples/mail_alias_add.php @@ -0,0 +1,41 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $client_id = 1; + $params = array( + 'server_id' => 1, + 'source' => 'hallo@test.int', + 'destination' => 'ciao@test.int', + 'type' => 'alias', + 'active' => 'y' + ); + + $affected_rows = $client->mail_alias_add($session_id, $client_id, $params); + + echo "Alias ID: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_alias_delete.php b/remoting_client/examples/mail_alias_delete.php new file mode 100644 index 0000000000..61c7ba2061 --- /dev/null +++ b/remoting_client/examples/mail_alias_delete.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $alias_id = 1; + + $affected_rows = $client->mail_alias_delete($session_id, $alias_id); + + echo "Number of records that have been deleted: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_alias_get.php b/remoting_client/examples/mail_alias_get.php new file mode 100644 index 0000000000..778dc90068 --- /dev/null +++ b/remoting_client/examples/mail_alias_get.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $alias_id = 1; + + $mail_alias_record = $client->mail_alias_get($session_id, $alias_id); + + print_r($mail_alias_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_alias_update.php b/remoting_client/examples/mail_alias_update.php new file mode 100644 index 0000000000..3d00d949fb --- /dev/null +++ b/remoting_client/examples/mail_alias_update.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $alias_id = 1; + $client_id = 1; + + + //* Get the email domain record + $mail_alias_record = $client->mail_alias_get($session_id, $alias_id); + + //* Change the status to inactive + $mail_alias_record['active'] = 'n'; + + $affected_rows = $client->mail_alias_update($session_id, $client_id, $alias_id, $mail_alias_record); + + echo "Number of records that have been changed in the database: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_blacklist_add.php b/remoting_client/examples/mail_blacklist_add.php new file mode 100644 index 0000000000..70dcf78a85 --- /dev/null +++ b/remoting_client/examples/mail_blacklist_add.php @@ -0,0 +1,41 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $client_id = 1; + $params = array( + 'server_id' => 1, + 'source' => 'hmmnoeoe@test.int', + 'access' => 'REJECT', + 'type' => 'sender', + 'active' => 'y' + ); + + $blacklist_id = $client->mail_blacklist_add($session_id, $client_id, $params); + + echo "Blacklist ID: ".$blacklist_id."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_blacklist_delete.php b/remoting_client/examples/mail_blacklist_delete.php new file mode 100644 index 0000000000..90e7d4737b --- /dev/null +++ b/remoting_client/examples/mail_blacklist_delete.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $blacklist_id = 7; + + $affected_rows = $client->mail_blacklist_delete($session_id, $blacklist_id); + + echo "Number of records that have been deleted: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_blacklist_get.php b/remoting_client/examples/mail_blacklist_get.php new file mode 100644 index 0000000000..7e28a20ca1 --- /dev/null +++ b/remoting_client/examples/mail_blacklist_get.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $blacklist_id = 7; + + $mail_blacklist_record = $client->mail_blacklist_get($session_id, $blacklist_id); + + print_r($mail_blacklist_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_blacklist_update.php b/remoting_client/examples/mail_blacklist_update.php new file mode 100644 index 0000000000..27778ed8d9 --- /dev/null +++ b/remoting_client/examples/mail_blacklist_update.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $blacklist_id = 7; + $client_id = 1; + + + //* Get the mail blacklist record + $mail_blacklist_record = $client->mail_blacklist_get($session_id, $blacklist_id); + + //* Change the status to inactive + $mail_blacklist_record['active'] = 'n'; + + $affected_rows = $client->mail_blacklist_update($session_id, $client_id, $blacklist_id, $mail_blacklist_record); + + echo "Number of records that have been changed in the database: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_catchall_add.php b/remoting_client/examples/mail_catchall_add.php new file mode 100644 index 0000000000..8bf320675d --- /dev/null +++ b/remoting_client/examples/mail_catchall_add.php @@ -0,0 +1,41 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $client_id = 1; + $params = array( + 'server_id' => 1, + 'source' => 'hallo@test.int', + 'destination' => 'ciao@test.int', + 'type' => 'catchall', + 'active' => 'y' + ); + + $affected_rows = $client->mail_catchall_add($session_id, $client_id, $params); + + echo "Catchall ID: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_catchall_delete.php b/remoting_client/examples/mail_catchall_delete.php new file mode 100644 index 0000000000..b0a5146718 --- /dev/null +++ b/remoting_client/examples/mail_catchall_delete.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $catchall_id = 1; + + $affected_rows = $client->mail_catchall_delete($session_id, $catchall_id); + + echo "Number of records that have been deleted: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_catchall_get.php b/remoting_client/examples/mail_catchall_get.php new file mode 100644 index 0000000000..2bce08880d --- /dev/null +++ b/remoting_client/examples/mail_catchall_get.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $catchall_id = 1; + + $mail_catchall_record = $client->mail_catchall_get($session_id, $catchall_id); + + print_r($mail_catchall_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_catchall_update.php b/remoting_client/examples/mail_catchall_update.php new file mode 100644 index 0000000000..d2542ddee2 --- /dev/null +++ b/remoting_client/examples/mail_catchall_update.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $catchall_id = 1; + $client_id = 1; + + + //* Get the email domain record + $mail_catchall_record = $client->mail_catchall_get($session_id, $catchall_id); + + //* Change the status to inactive + $mail_catchall_record['active'] = 'n'; + + $affected_rows = $client->mail_catchall_update($session_id, $client_id, $catchall_id, $mail_catchall_record); + + echo "Number of records that have been changed in the database: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_domain_add.php b/remoting_client/examples/mail_domain_add.php new file mode 100644 index 0000000000..304ccb24a6 --- /dev/null +++ b/remoting_client/examples/mail_domain_add.php @@ -0,0 +1,39 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $client_id = 1; + $params = array( + 'server_id' => 1, + 'domain' => 'test.tld', + 'active' => 'y' + ); + + $domain_id = $client->mail_domain_add($session_id, $client_id, $params); + + echo "Domain ID: ".$domain_id."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_domain_delete.php b/remoting_client/examples/mail_domain_delete.php new file mode 100644 index 0000000000..e98c527fe1 --- /dev/null +++ b/remoting_client/examples/mail_domain_delete.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $domain_id = 1; + + $affected_rows = $client->mail_domain_delete($session_id, $domain_id); + + echo "Number of records that have been deleted: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_domain_get.php b/remoting_client/examples/mail_domain_get.php new file mode 100644 index 0000000000..5c2e9f1740 --- /dev/null +++ b/remoting_client/examples/mail_domain_get.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $domain_id = 1; + + $mail_domain_record = $client->mail_domain_get($session_id, $domain_id); + + print_r($mail_domain_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_domain_get_by_domain.php b/remoting_client/examples/mail_domain_get_by_domain.php new file mode 100644 index 0000000000..157423b27c --- /dev/null +++ b/remoting_client/examples/mail_domain_get_by_domain.php @@ -0,0 +1,35 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $domain = 'test.int'; + + $record_record = $client->mail_domain_get_by_domain($session_id, $domain); + + print_r($record_record); + echo "
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_domain_set_status.php b/remoting_client/examples/mail_domain_set_status.php new file mode 100644 index 0000000000..9508ad7f67 --- /dev/null +++ b/remoting_client/examples/mail_domain_set_status.php @@ -0,0 +1,36 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $primary_id = 2; + $status = 'inactive'; + + $record_record = $client->mail_domain_set_status($session_id, $primary_id, $status); + + print_r($record_record); + echo "
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_domain_update.php b/remoting_client/examples/mail_domain_update.php new file mode 100644 index 0000000000..b65894b22c --- /dev/null +++ b/remoting_client/examples/mail_domain_update.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $domain_id = 1; + $client_id = 1; + + + //* Get the email domain record + $mail_domain_record = $client->mail_domain_get($session_id, $domain_id); + + //* Change the status to inactive + $mail_domain_record['active'] = 'n'; + + $affected_rows = $client->mail_domain_update($session_id, $client_id, $domain_id, $mail_domain_record); + + echo "Number of records that have been changed in the database: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_fetchmail_add.php b/remoting_client/examples/mail_fetchmail_add.php new file mode 100644 index 0000000000..55e59c11b3 --- /dev/null +++ b/remoting_client/examples/mail_fetchmail_add.php @@ -0,0 +1,45 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $client_id = 1; + $params = array( + 'server_id' => 1, + 'type' => 'pop3', + 'source_server' => 'webzor.ext', + 'source_username' => 'someguy', + 'source_password' => 'somepassword', + 'source_delete' => 'n', + 'destination' => 'hmmnoe@test.int', + 'active' => 'y', + 'source_read_all' => 'y', + ); + + $fetchmail_id = $client->mail_fetchmail_add($session_id, $client_id, $params); + + echo "Fetchmail ID: ".$fetchmail_id."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_fetchmail_delete.php b/remoting_client/examples/mail_fetchmail_delete.php new file mode 100644 index 0000000000..a522bc1547 --- /dev/null +++ b/remoting_client/examples/mail_fetchmail_delete.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $fetchmail_id = 1; + + $affected_rows = $client->mail_fetchmail_delete($session_id, $fetchmail_id); + + echo "Number of records that have been deleted: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_fetchmail_get.php b/remoting_client/examples/mail_fetchmail_get.php new file mode 100644 index 0000000000..d804867e2a --- /dev/null +++ b/remoting_client/examples/mail_fetchmail_get.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $fetchmail_id = 1; + + $mail_fetchmail_record = $client->mail_fetchmail_get($session_id, $fetchmail_id); + + print_r($mail_fetchmail_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_fetchmail_update.php b/remoting_client/examples/mail_fetchmail_update.php new file mode 100644 index 0000000000..b9dc0c8a49 --- /dev/null +++ b/remoting_client/examples/mail_fetchmail_update.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $fetchmail_id = 1; + $client_id = 1; + + + //* Get the fetchmail record + $mail_fetchmail_record = $client->mail_fetchmail_get($session_id, $fetchmail_id); + + //* Change the status to inactive + $mail_fetchmail_record['active'] = 'n'; + + $affected_rows = $client->mail_fetchmail_update($session_id, $client_id, $fetchmail_id, $mail_fetchmail_record); + + echo "Number of records that have been changed in the database: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_filter_add.php b/remoting_client/examples/mail_filter_add.php new file mode 100644 index 0000000000..3b7e469596 --- /dev/null +++ b/remoting_client/examples/mail_filter_add.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $client_id = 1; + $params = array( + 'server_id' => 1, + 'type' => 'header', + 'pattern' => 'hmmnoe@test.int', + 'data' => 'data', + 'action' => 'DISCARD', + 'active' => 'y' + ); + + $filter_id = $client->mail_filter_add($session_id, $client_id, $params); + + echo "Filter ID: ".$filter_id."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_filter_delete.php b/remoting_client/examples/mail_filter_delete.php new file mode 100644 index 0000000000..076ac0bd10 --- /dev/null +++ b/remoting_client/examples/mail_filter_delete.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $filter_id = 1; + + $affected_rows = $client->mail_filter_delete($session_id, $filter_id); + + echo "Number of records that have been deleted: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_filter_get.php b/remoting_client/examples/mail_filter_get.php new file mode 100644 index 0000000000..58c5ddc320 --- /dev/null +++ b/remoting_client/examples/mail_filter_get.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $filter_id = 1; + + $mail_filter_record = $client->mail_filter_get($session_id, $filter_id); + + print_r($mail_filter_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_filter_update.php b/remoting_client/examples/mail_filter_update.php new file mode 100644 index 0000000000..e1c140d27b --- /dev/null +++ b/remoting_client/examples/mail_filter_update.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $filter_id = 1; + $client_id = 1; + + + //* Get the email filter record + $mail_filter_record = $client->mail_filter_get($session_id, $filter_id); + + //* Change the status to inactive + $mail_filter_record['active'] = 'n'; + + $affected_rows = $client->mail_filter_update($session_id, $client_id, $filter_id, $mail_filter_record); + + echo "Number of records that have been changed in the database: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_forward_add.php b/remoting_client/examples/mail_forward_add.php new file mode 100644 index 0000000000..52b514e2d5 --- /dev/null +++ b/remoting_client/examples/mail_forward_add.php @@ -0,0 +1,41 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $client_id = 1; + $params = array( + 'server_id' => 1, + 'source' => 'hallo@test.int', + 'destination' => 'ciao@test.int', + 'type' => 'forward', + 'active' => 'y' + ); + + $affected_rows = $client->mail_forward_add($session_id, $client_id, $params); + + echo "Forwarding ID: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_forward_delete.php b/remoting_client/examples/mail_forward_delete.php new file mode 100644 index 0000000000..eedf45160d --- /dev/null +++ b/remoting_client/examples/mail_forward_delete.php @@ -0,0 +1,36 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $forwarding_id = 5; + + + //* Delete email forward record + $affected_rows = $client->mail_forward_delete($session_id, $forwarding_id); + + echo "Number of records that have been deleted: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_forward_get.php b/remoting_client/examples/mail_forward_get.php new file mode 100644 index 0000000000..e47d5784bc --- /dev/null +++ b/remoting_client/examples/mail_forward_get.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $forwarding_id = 1; + + $mail_forwarding_record = $client->mail_forward_get($session_id, $forwarding_id); + + print_r($mail_forwarding_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_forward_update.php b/remoting_client/examples/mail_forward_update.php new file mode 100644 index 0000000000..47ef9f1ee0 --- /dev/null +++ b/remoting_client/examples/mail_forward_update.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $forwarding_id = 5; + $client_id = 1; + + + //* Get the email forward record + $mail_forward_record = $client->mail_forward_get($session_id, $forwarding_id); + + //* Change the status to inactive + $mail_forward_record['active'] = 'n'; + + $affected_rows = $client->mail_forward_update($session_id, $client_id, $forwarding_id, $mail_forward_record); + + echo "Number of records that have been changed in the database: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_mailinglist_add.php b/remoting_client/examples/mail_mailinglist_add.php new file mode 100644 index 0000000000..c75eca30cd --- /dev/null +++ b/remoting_client/examples/mail_mailinglist_add.php @@ -0,0 +1,41 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $client_id = 1; + $params = array( + 'server_id' => 1, + 'domain' => 'test.int', + 'listname' => 'work', + 'email' => 'hmmnoe@test.int', + 'password' => 'hmmyea' + ); + + $mailinglist_id = $client->mail_mailinglist_add($session_id, $client_id, $params); + + echo "Mailinglist ID: ".$mailinglist_id."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_mailinglist_delete.php b/remoting_client/examples/mail_mailinglist_delete.php new file mode 100644 index 0000000000..218e34c229 --- /dev/null +++ b/remoting_client/examples/mail_mailinglist_delete.php @@ -0,0 +1,36 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $mailinglist_id = 1; + + + //* Delete the email mailinglist record + $affected_rows = $client->mail_mailinglist_delete($session_id, $mailinglist_id); + + echo "Number of records that have been deleted: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_mailinglist_get.php b/remoting_client/examples/mail_mailinglist_get.php new file mode 100644 index 0000000000..81ffbfb9aa --- /dev/null +++ b/remoting_client/examples/mail_mailinglist_get.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $mailinglist_id = 1; + + $mailinglist_record = $client->mail_mailinglist_get($session_id, $mailinglist_id); + + print_r($mailinglist_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_mailinglist_update.php b/remoting_client/examples/mail_mailinglist_update.php new file mode 100644 index 0000000000..2940c8bdba --- /dev/null +++ b/remoting_client/examples/mail_mailinglist_update.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $mailinglist_id = 1; + $client_id = 1; + + + //* Get the email mailinglist record + $mailinglist_record = $client->mail_mailinglist_get($session_id, $mailinglist_id); + + //* Change the listname to home + $mailinglist_record['listname'] = 'home'; + + $affected_rows = $client->mail_mailinglist_update($session_id, $client_id, $mailinglist_id, $mailinglist_record); + + echo "Number of records that have been changed in the database: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_policy_add.php b/remoting_client/examples/mail_policy_add.php new file mode 100644 index 0000000000..a020e2372e --- /dev/null +++ b/remoting_client/examples/mail_policy_add.php @@ -0,0 +1,74 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $client_id = 1; + $params = array( + 'policy_name' => 'numberone', + 'virus_lover' => 'Y', + 'spam_lover' => 'Y', + 'banned_files_lover' => 'Y', + 'bad_header_lover' => 'Y', + 'bypass_virus_checks' => 'Y', + 'bypass_spam_checks' => 'Y', + 'bypass_banned_checks' => 'Y', + 'bypass_header_checks' => 'Y', + 'spam_modifies_subj' => 'Y', + 'virus_quarantine_to' => '', + 'spam_quarantine_to' => '', + 'banned_quarantine_to' => '', + 'bad_header_quarantine_to' => '', + 'clean_quarantine_to' => '', + 'other_quarantine_to' => '', + 'spam_tag_level' => 1, + 'spam_tag2_level' => 1, + 'spam_kill_level' => 1, + 'spam_dsn_cutoff_level' => 1, + 'spam_quarantine_cutoff_level' => 1, + 'addr_extension_virus' => '', + 'addr_extension_spam' => '', + 'addr_extension_banned' => '', + 'addr_extension_bad_header' => '', + 'warnvirusrecip' => 'Y', + 'warnbannedrecip' => 'Y', + 'warnbadhrecip' => 'Y', + 'newvirus_admin' => '', + 'virus_admin' => '', + 'banned_admin' => '', + 'bad_header_admin' => '', + 'spam_admin' => '', + 'spam_subject_tag' => '', + 'spam_subject_tag2' => '', + 'message_size_limit' => 10, + 'banned_rulenames' => 'welt' + ); + + $affected_rows = $client->mail_policy_add($session_id, $client_id, $params); + + echo "Policy ID: ".$affected_rows."
"; + + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_policy_delete.php b/remoting_client/examples/mail_policy_delete.php new file mode 100644 index 0000000000..e0c0cebfbc --- /dev/null +++ b/remoting_client/examples/mail_policy_delete.php @@ -0,0 +1,36 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $id = 1; + + + //* Delete policy record + $affected_rows = $client->mail_policy_delete($session_id, $id); + + echo "Number of records that have been deleted: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_policy_get.php b/remoting_client/examples/mail_policy_get.php new file mode 100644 index 0000000000..5e2005a01a --- /dev/null +++ b/remoting_client/examples/mail_policy_get.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $id = 1; + + $mail_policy_record = $client->mail_policy_get($session_id, $id); + + print_r($mail_policy_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_policy_update.php b/remoting_client/examples/mail_policy_update.php new file mode 100644 index 0000000000..abdab81570 --- /dev/null +++ b/remoting_client/examples/mail_policy_update.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $id = 1; + $client_id = 1; + + + //* Get the policy record + $mail_policy_record = $client->mail_policy_get($session_id, $id); + + //* Change policy_name to Hans_Werner + $mail_policy_record['policy_name'] = 'Hans_Werner'; + + $affected_rows = $client->mail_policy_update($session_id, $client_id, $id, $mail_policy_record); + + echo "Number of records that have been changed in the database: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_spamfilter_blacklist_add.php b/remoting_client/examples/mail_spamfilter_blacklist_add.php new file mode 100644 index 0000000000..4d5515c39c --- /dev/null +++ b/remoting_client/examples/mail_spamfilter_blacklist_add.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $client_id = 1; + $params = array( + 'server_id' => 1, + 'wb' => 'B', + 'rid' => '', + 'email' => 'hmmnoe@test.int', + 'priority' => 1, + 'active' => 'y' + ); + + $affected_rows = $client->mail_spamfilter_blacklist_add($session_id, $client_id, $params); + + echo "Blacklist ID: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_spamfilter_blacklist_delete.php b/remoting_client/examples/mail_spamfilter_blacklist_delete.php new file mode 100644 index 0000000000..9c5f701918 --- /dev/null +++ b/remoting_client/examples/mail_spamfilter_blacklist_delete.php @@ -0,0 +1,36 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $wblist_id = 2; + + + //* Delete email blacklist record + $affected_rows = $client->mail_spamfilter_blacklist_delete($session_id, $wblist_id); + + echo "Number of records that have been deleted: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_spamfilter_blacklist_get.php b/remoting_client/examples/mail_spamfilter_blacklist_get.php new file mode 100644 index 0000000000..723376acea --- /dev/null +++ b/remoting_client/examples/mail_spamfilter_blacklist_get.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $wblist_id = 2; + + $mail_wblist_record = $client->mail_spamfilter_blacklist_get($session_id, $wblist_id); + + print_r($mail_wblist_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_spamfilter_blacklist_update.php b/remoting_client/examples/mail_spamfilter_blacklist_update.php new file mode 100644 index 0000000000..6dcf5f0013 --- /dev/null +++ b/remoting_client/examples/mail_spamfilter_blacklist_update.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $wblist_id = 2; + $client_id = 1; + + + //* Get the spamfilter blacklist record + $mail_wblist_record = $client->mail_spamfilter_blacklist_get($session_id, $wblist_id); + + //* Change the priority to 2 + $mail_wblist_record['priority'] = 2; + + $affected_rows = $client->mail_spamfilter_blacklist_update($session_id, $client_id, $wblist_id, $mail_wblist_record); + + echo "Number of records that have been changed in the database: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_spamfilter_user_add.php b/remoting_client/examples/mail_spamfilter_user_add.php new file mode 100644 index 0000000000..fbcd8f73f8 --- /dev/null +++ b/remoting_client/examples/mail_spamfilter_user_add.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $client_id = 1; + $params = array( + 'server_id' => 1, + 'priority' => 3, + 'policy_ID' => 1, + 'email' => 'hmmnoe@test.int', + 'fullname' => 'Max Mustermann', + 'local' => '' + ); + + $affected_rows = $client->mail_spamfilter_user_add($session_id, $client_id, $params); + + echo "Spamfilter user ID: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_spamfilter_user_delete.php b/remoting_client/examples/mail_spamfilter_user_delete.php new file mode 100644 index 0000000000..7ff719ed03 --- /dev/null +++ b/remoting_client/examples/mail_spamfilter_user_delete.php @@ -0,0 +1,36 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $id = 1; + + + //* Delete mailing spamfilter user record + $affected_rows = $client->mail_spamfilter_user_delete($session_id, $id); + + echo "Number of records that have been deleted: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_spamfilter_user_get.php b/remoting_client/examples/mail_spamfilter_user_get.php new file mode 100644 index 0000000000..082c59dff4 --- /dev/null +++ b/remoting_client/examples/mail_spamfilter_user_get.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $id = 1; + + $mail_spamfilter_user_record = $client->mail_spamfilter_user_get($session_id, $id); + + print_r($mail_spamfilter_user_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_spamfilter_user_update.php b/remoting_client/examples/mail_spamfilter_user_update.php new file mode 100644 index 0000000000..e40415b24e --- /dev/null +++ b/remoting_client/examples/mail_spamfilter_user_update.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $id = 1; + $client_id = 1; + + + //* Get the mailing spamfilter user record + $mail_spamfilter_user_record = $client->mail_spamfilter_user_get($session_id, $id); + + //* Change fullname to Hans Werner + $mail_spamfilter_user_record['fullname'] = 'Hans Werner'; + + $affected_rows = $client->mail_spamfilter_user_update($session_id, $client_id, $id, $mail_spamfilter_user_record); + + echo "Number of records that have been changed in the database: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_spamfilter_whitelist_add.php b/remoting_client/examples/mail_spamfilter_whitelist_add.php new file mode 100644 index 0000000000..8099d937a4 --- /dev/null +++ b/remoting_client/examples/mail_spamfilter_whitelist_add.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $client_id = 1; + $params = array( + 'server_id' => 1, + 'wb' => 'W', + 'rid' => '', + 'email' => 'hmmnoe@test.int', + 'priority' => 1, + 'active' => 'y' + ); + + $affected_rows = $client->mail_spamfilter_whitelist_add($session_id, $client_id, $params); + + echo "Whitelist ID: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_spamfilter_whitelist_delete.php b/remoting_client/examples/mail_spamfilter_whitelist_delete.php new file mode 100644 index 0000000000..a6290ce3b6 --- /dev/null +++ b/remoting_client/examples/mail_spamfilter_whitelist_delete.php @@ -0,0 +1,36 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $wblist_id = 1; + + + //* Delete email whitelist record + $affected_rows = $client->mail_spamfilter_whitelist_delete($session_id, $wblist_id); + + echo "Number of records that have been deleted: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_spamfilter_whitelist_get.php b/remoting_client/examples/mail_spamfilter_whitelist_get.php new file mode 100644 index 0000000000..afef378ce4 --- /dev/null +++ b/remoting_client/examples/mail_spamfilter_whitelist_get.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $wblist_id = 1; + + $mail_wblist_record = $client->mail_spamfilter_whitelist_get($session_id, $wblist_id); + + print_r($mail_wblist_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_spamfilter_whitelist_update.php b/remoting_client/examples/mail_spamfilter_whitelist_update.php new file mode 100644 index 0000000000..910ecc7f58 --- /dev/null +++ b/remoting_client/examples/mail_spamfilter_whitelist_update.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $wblist_id = 1; + $client_id = 1; + + + //* Get the spamfilter whitelist record + $mail_wblist_record = $client->mail_spamfilter_whitelist_get($session_id, $wblist_id); + + //* Change the priority to 2 + $mail_wblist_record['priority'] = 2; + + $affected_rows = $client->mail_spamfilter_whitelist_update($session_id, $client_id, $wblist_id, $mail_wblist_record); + + echo "Number of records that have been changed in the database: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_transport_add.php b/remoting_client/examples/mail_transport_add.php new file mode 100644 index 0000000000..c0ca2d75f9 --- /dev/null +++ b/remoting_client/examples/mail_transport_add.php @@ -0,0 +1,41 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $client_id = 1; + $params = array( + 'server_id' => 1, + 'domain' => 'test.int', + 'transport' => '', + 'sort_order' => 5, + 'active' => 'y' + ); + + $affected_rows = $client->mail_transport_add($session_id, $client_id, $params); + + echo "Transport ID: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_transport_delete.php b/remoting_client/examples/mail_transport_delete.php new file mode 100644 index 0000000000..68e4812b7b --- /dev/null +++ b/remoting_client/examples/mail_transport_delete.php @@ -0,0 +1,36 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $transport_id = 1; + + + //* Delete email transport record + $affected_rows = $client->mail_transport_delete($session_id, $transport_id); + + echo "Number of records that have been deleted: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_transport_get.php b/remoting_client/examples/mail_transport_get.php new file mode 100644 index 0000000000..1ecdf6a332 --- /dev/null +++ b/remoting_client/examples/mail_transport_get.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $transport_id = 1; + + $mail_transport_record = $client->mail_transport_get($session_id, $transport_id); + + print_r($mail_transport_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_transport_update.php b/remoting_client/examples/mail_transport_update.php new file mode 100644 index 0000000000..db4d3ba221 --- /dev/null +++ b/remoting_client/examples/mail_transport_update.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $transport_id = 1; + $client_id = 1; + + + //* Get the email transport record + $mail_transport_record = $client->mail_transport_get($session_id, $transport_id); + + //* Change the status to inactive + $mail_transport_record['active'] = 'n'; + + $affected_rows = $client->mail_transport_update($session_id, $client_id, $transport_id, $mail_transport_record); + + echo "Number of records that have been changed in the database: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_user_add.php b/remoting_client/examples/mail_user_add.php new file mode 100644 index 0000000000..78d640a3dd --- /dev/null +++ b/remoting_client/examples/mail_user_add.php @@ -0,0 +1,58 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $client_id = 1; + $params = array( + 'server_id' => 1, + 'email' => 'hmmnoe@test.int', + 'password' => 'howtoforge', + 'name' => 'hmmnoe', + 'uid' => 5000, + 'gid' => 5000, + 'maildir' => '', + 'quota' => 10000000000, + 'cc' => '', + 'homedir' => '', + 'autoresponder' => 'n', + 'autoresponder_start_date' => '', + 'autoresponder_end_date' => '', + 'autoresponder_text' => 'hallo', + 'move_junk' => 'n', + 'custom_mailfilter' => 'spam', + 'postfix' => 'n', + 'access' => 'n', + 'disableimap' => 'n', + 'disablepop3' => 'n', + 'disabledeliver' => 'n', + 'disablesmtp' => 'n' + ); + + $affected_rows = $client->mail_user_add($session_id, $client_id, $params); + + echo "New user: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_user_delete.php b/remoting_client/examples/mail_user_delete.php new file mode 100644 index 0000000000..ffc3826ebe --- /dev/null +++ b/remoting_client/examples/mail_user_delete.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $mailuser_id = 1; + + $affected_rows = $client->mail_user_delete($session_id, $mailuser_id); + + echo "Number of records that have been deleted: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_user_filter_add.php b/remoting_client/examples/mail_user_filter_add.php new file mode 100644 index 0000000000..4e61695ac4 --- /dev/null +++ b/remoting_client/examples/mail_user_filter_add.php @@ -0,0 +1,44 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $client_id = 1; + $params = array( + 'mailuser_id' => '0', + 'rulename' => 'NULL', + 'source' => '', + 'searchterm' => 'NULL', + 'op' => '', + 'action' => '', + 'target' => '', + 'active' => 'y' + ); + + $filter_id = $client->mail_user_filter_add($session_id, $client_id, $params); + + echo "Filter ID: ".$filter_id."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_user_filter_delete.php b/remoting_client/examples/mail_user_filter_delete.php new file mode 100644 index 0000000000..d2eb2ed285 --- /dev/null +++ b/remoting_client/examples/mail_user_filter_delete.php @@ -0,0 +1,36 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $filter_id = 1; + + + //* Get the email filter record + $affected_rows = $client->mail_user_filter_delete($session_id, $filter_id); + + echo "Number of records that have been deleted: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_user_filter_get.php b/remoting_client/examples/mail_user_filter_get.php new file mode 100644 index 0000000000..aad3ce5eda --- /dev/null +++ b/remoting_client/examples/mail_user_filter_get.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $filter_id = 1; + + $mail_filter_record = $client->mail_user_filter_get($session_id, $filter_id); + + print_r($mail_filter_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_user_filter_update.php b/remoting_client/examples/mail_user_filter_update.php new file mode 100644 index 0000000000..f94862068c --- /dev/null +++ b/remoting_client/examples/mail_user_filter_update.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $filter_id = 1; + $client_id = 1; + + + //* Get the user filter record + $mail_user_filter_record = $client->mail_user_filter_get($session_id, $filter_id); + + //* Change the status to inactive + $mail_user_filter_record['active'] = 'n'; + + $affected_rows = $client->mail_user_filter_update($session_id, $client_id, $filter_id, $mail_user_filter_record); + + echo "Number of records that have been changed in the database: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_user_get.php b/remoting_client/examples/mail_user_get.php new file mode 100644 index 0000000000..fd36d6322a --- /dev/null +++ b/remoting_client/examples/mail_user_get.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $mailuser_id = 1; + + $app = $client->mail_user_get($session_id, $mailuser_id); + + print_r($app); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_user_update.php b/remoting_client/examples/mail_user_update.php new file mode 100644 index 0000000000..28fb90cb2c --- /dev/null +++ b/remoting_client/examples/mail_user_update.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $mailuser_id = 1; + $client_id = 1; + + + //* Get the email user record + $mail_user_record = $client->mail_user_get($session_id, $mailuser_id); + + //* Change the status to inactive + $mail_user_record['name'] = 'hmmyea'; + + $affected_rows = $client->mail_user_update($session_id, $client_id, $mailuser_id, $mail_user_record); + + echo "Number of records that have been changed in the database: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_whitelist_add.php b/remoting_client/examples/mail_whitelist_add.php new file mode 100644 index 0000000000..14f32982a2 --- /dev/null +++ b/remoting_client/examples/mail_whitelist_add.php @@ -0,0 +1,41 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $client_id = 1; + $params = array( + 'server_id' => 1, + 'source' => 'hmmnoeoe@test.int', + 'access' => 'OK', + 'type' => 'sender', + 'active' => 'y' + ); + + $whitelist_id = $client->mail_whitelist_add($session_id, $client_id, $params); + + echo "Whitelist ID: ".$whitelist_id."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_whitelist_delete.php b/remoting_client/examples/mail_whitelist_delete.php new file mode 100644 index 0000000000..555a0b8217 --- /dev/null +++ b/remoting_client/examples/mail_whitelist_delete.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $whitelist_id = 5; + + $affected_rows = $client->mail_whitelist_delete($session_id, $whitelist_id); + + echo "Number of records that have been deleted: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_whitelist_get.php b/remoting_client/examples/mail_whitelist_get.php new file mode 100644 index 0000000000..5652c71d1d --- /dev/null +++ b/remoting_client/examples/mail_whitelist_get.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $whitelist_id = 3; + + $mail_whitelist_record = $client->mail_whitelist_get($session_id, $whitelist_id); + + print_r($mail_whitelist_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/mail_whitelist_update.php b/remoting_client/examples/mail_whitelist_update.php new file mode 100644 index 0000000000..301e003552 --- /dev/null +++ b/remoting_client/examples/mail_whitelist_update.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $whitelist_id = 5; + $client_id = 1; + + + //* Get the email whitelist record + $mail_whitelist_record = $client->mail_whitelist_get($session_id, $whitelist_id); + + //* Change the status to inactive + $mail_whitelist_record['active'] = 'n'; + + $affected_rows = $client->mail_whitelist_update($session_id, $client_id, $whitelist_id, $mail_whitelist_record); + + echo "Number of records that have been changed in the database: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/openvz_get_free_ip.php b/remoting_client/examples/openvz_get_free_ip.php new file mode 100644 index 0000000000..ef04ef5fc8 --- /dev/null +++ b/remoting_client/examples/openvz_get_free_ip.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + + $record_record = $client->openvz_get_free_ip($session_id, $server_id = 0); + + print_r($record_record); + echo "
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/openvz_ip_add.php b/remoting_client/examples/openvz_ip_add.php new file mode 100644 index 0000000000..77ec4c4f8f --- /dev/null +++ b/remoting_client/examples/openvz_ip_add.php @@ -0,0 +1,40 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $client_id = 1; + $params = array( + 'server_id' => 1, + 'ip_address' => '192.168.0.111', + 'vm_id' => 1, + 'reserved' => 'n' + ); + + $ip_id = $client->openvz_ip_add($session_id, $client_id, $params); + + echo "IP ID: ".$ip_id."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/openvz_ip_delete.php b/remoting_client/examples/openvz_ip_delete.php new file mode 100644 index 0000000000..c542645636 --- /dev/null +++ b/remoting_client/examples/openvz_ip_delete.php @@ -0,0 +1,36 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $ip_id = 2; + + + //* delete the ip record + $affected_rows = $client->openvz_ip_delete($session_id, $ip_id); + + echo "Number of records that have been deleted: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/openvz_ip_get.php b/remoting_client/examples/openvz_ip_get.php new file mode 100644 index 0000000000..78ed06142c --- /dev/null +++ b/remoting_client/examples/openvz_ip_get.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $ip_id = 2; + + $ip_record = $client->openvz_ip_get($session_id, $ip_id); + + print_r($ip_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/openvz_ip_update.php b/remoting_client/examples/openvz_ip_update.php new file mode 100644 index 0000000000..f5ba0e6be3 --- /dev/null +++ b/remoting_client/examples/openvz_ip_update.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $ip_id = 2; + $client_id = 1; + + + //* Get the openvz ip record + $ip_record = $client->openvz_ip_get($session_id, $ip_id); + + //* Change the reservation to yes + $ip_record['reserved'] = 'y'; + + $affected_rows = $client->openvz_ip_update($session_id, $client_id, $ip_id, $ip_record); + + echo "Number of records that have been changed in the database: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/openvz_ostemplate_add.php b/remoting_client/examples/openvz_ostemplate_add.php new file mode 100644 index 0000000000..923b7c1a2f --- /dev/null +++ b/remoting_client/examples/openvz_ostemplate_add.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $client_id = 1; + $params = array( + 'template_name' => 'tone', + 'template_file' => 'custom', + 'server_id' => 1, + 'allservers' => 'y', + 'active' => 'y', + 'description' => 'howto', + ); + + $ostemplate_id = $client->openvz_ostemplate_add($session_id, $client_id, $params); + + echo "Ostemplate ID: ".$ostemplate_id."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/openvz_ostemplate_delete.php b/remoting_client/examples/openvz_ostemplate_delete.php new file mode 100644 index 0000000000..b8bf5f9add --- /dev/null +++ b/remoting_client/examples/openvz_ostemplate_delete.php @@ -0,0 +1,36 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $ostemplate_id = 2; + + + //* delete the ostemplate record + $affected_rows = $client->openvz_ostemplate_delete($session_id, $ostemplate_id); + + echo "Number of records that have been deleted: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/openvz_ostemplate_get.php b/remoting_client/examples/openvz_ostemplate_get.php new file mode 100644 index 0000000000..6d224130e5 --- /dev/null +++ b/remoting_client/examples/openvz_ostemplate_get.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $ostemplate_id = 2; + + $ostemplate_record = $client->openvz_ostemplate_get($session_id, $ostemplate_id); + + print_r($ostemplate_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/openvz_ostemplate_update.php b/remoting_client/examples/openvz_ostemplate_update.php new file mode 100644 index 0000000000..abc076f696 --- /dev/null +++ b/remoting_client/examples/openvz_ostemplate_update.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $ostemplate_id = 2; + $client_id = 1; + + + //* Get the os template record + $ostemplate_record = $client->openvz_ostemplate_get($session_id, $ostemplate_id); + + //* Change the status to inactive + $ostemplate_record['active'] = 'n'; + + $affected_rows = $client->openvz_ostemplate_update($session_id, $client_id, $ostemplate_id, $ostemplate_record); + + echo "Number of records that have been changed in the database: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/openvz_template_add.php b/remoting_client/examples/openvz_template_add.php new file mode 100644 index 0000000000..bdfc63a363 --- /dev/null +++ b/remoting_client/examples/openvz_template_add.php @@ -0,0 +1,74 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $client_id = 1; + $params = array( + 'template_name' => 'tone', + 'diskspace' => 10, + 'traffic' => -1, + 'bandwidth' => -1, + 'ram' => 256, + 'ram_burst' => 512, + 'cpu_units' => 1000, + 'cpu_num' => 4, + 'cpu_limit' => 400, + 'io_priority' => 4, + 'active' => 'y', + 'description' => 'howto', + 'numproc' => '999999:999999', + 'numtcpsock' => '7999992:7999992', + 'numothersock' => '7999992:7999992', + 'vmguarpages' => '65536:65536', + 'kmemsize' => '2147483646:2147483646', + 'tcpsndbuf' => '214748160:396774400', + 'tcprcvbuf' => '214748160:396774400', + 'othersockbuf' => '214748160:396774400', + 'dgramrcvbuf' => '214748160:396774400', + 'oomguarpages' => '65536:65536', + 'privvmpages' => '131072:131072', + 'lockedpages' => '999999:999999', + 'shmpages' => '65536:65536', + 'physpages' => '0:2147483647', + 'numfile' => '23999976:23999976', + 'avnumproc' => '180:180', + 'numflock' => '999999:999999', + 'numpty' => '500000:500000', + 'numsiginfo' => '999999:999999', + 'dcachesize' => '2147483646:2147483646', + 'numiptent' => '999999:999999', + 'swappages' => '256000:256000', + 'hostname' => 'host', + 'nameserver' => 'ns1', + 'create_dns' => 'n', + 'capability' => '' + ); + + $template_id = $client->openvz_template_add($session_id, $client_id, $params); + + echo "Template ID: ".$template_id."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/openvz_template_delete.php b/remoting_client/examples/openvz_template_delete.php new file mode 100644 index 0000000000..69c68f0660 --- /dev/null +++ b/remoting_client/examples/openvz_template_delete.php @@ -0,0 +1,36 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $template_id = 2; + + + //* delete the template record + $affected_rows = $client->openvz_template_delete($session_id, $template_id); + + echo "Number of records that have been deleted: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/openvz_template_get.php b/remoting_client/examples/openvz_template_get.php new file mode 100644 index 0000000000..ac8bd5d92e --- /dev/null +++ b/remoting_client/examples/openvz_template_get.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $template_id = 2; + + $template_record = $client->openvz_template_get($session_id, $template_id); + + print_r($template_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/openvz_template_update.php b/remoting_client/examples/openvz_template_update.php new file mode 100644 index 0000000000..be84d1f01e --- /dev/null +++ b/remoting_client/examples/openvz_template_update.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $template_id = 2; + $client_id = 1; + + + //* Get the openvz template record + $template_record = $client->openvz_template_get($session_id, $template_id); + + //* Change the status to inactive + $template_record['active'] = 'n'; + + $affected_rows = $client->openvz_template_update($session_id, $client_id, $template_id, $template_record); + + echo "Number of records that have been changed in the database: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/openvz_vm_add.php b/remoting_client/examples/openvz_vm_add.php index d8e46c618a..ce89be7fc1 100644 --- a/remoting_client/examples/openvz_vm_add.php +++ b/remoting_client/examples/openvz_vm_add.php @@ -1,10 +1,6 @@ $soap_location, @@ -18,16 +14,38 @@ try { echo 'Logged successfull. Session ID:'.$session_id.'
'; } - //* Prams are optional for this function. If params are set, - //* then they override the template settings. - $params = array(); - //* Set the function parameters. - $client_id = 0; - $ostemplate_id = 1; - $template_id = 1; + $client_id = 1; + $params = array( + 'server_id' => 1, + 'veid' => 1, + 'ostemplate_id' => 0, + 'template_id' => 0, + 'ip_address' => '192.168.0.111', + 'hostname' => 'host', + 'vm_password' => 'password', + 'start_boot' => 'y', + 'active' => 'y', + 'active_until_date' => '', + 'description' => '', + 'diskspace' => 10, + 'traffic' => -1, + 'bandwidth' => -1, + 'ram' => 256, + 'ram_burst' => 512, + 'cpu_units' => 1000, + 'cpu_num' => 4, + 'cpu_limit' => 400, + 'io_priority' => 4, + 'nameserver' => '8.8.8.8 8.8.4.4', + 'create_dns' => 'n', + 'capability' => '', + 'config' => '' + ); - $vm_id = $client->openvz_vm_add_from_template($session_id, $client_id, $ostemplate_id, $template_id, $params); + $vm_id = $client->openvz_vm_add($session_id, $client_id, $params); + + echo "VM ID: ".$vm_id."
"; if($client->logout($session_id)) { echo 'Logged out.
'; diff --git a/remoting_client/examples/openvz_vm_add_from_template.php b/remoting_client/examples/openvz_vm_add_from_template.php new file mode 100644 index 0000000000..2e22b99fc3 --- /dev/null +++ b/remoting_client/examples/openvz_vm_add_from_template.php @@ -0,0 +1,45 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Params are optional for this function. If params are set, + //* then they override the template settings. + $params = array(); + + //* Set the function parameters. + $client_id = 0; + $ostemplate_id = 3; + $template_id = 3; + + $vm_id = $client->openvz_vm_add_from_template($session_id, $client_id, $ostemplate_id, $template_id, $params); + + print_r($vm_id); + echo "
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/openvz_vm_delete.php b/remoting_client/examples/openvz_vm_delete.php new file mode 100644 index 0000000000..5edc93fb17 --- /dev/null +++ b/remoting_client/examples/openvz_vm_delete.php @@ -0,0 +1,36 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $vm_id = 1; + + + //* delete the virtual machine record + $affected_rows = $client->openvz_vm_delete($session_id, $vm_id); + + echo "Number of records that have been deleted: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/openvz_vm_get.php b/remoting_client/examples/openvz_vm_get.php new file mode 100644 index 0000000000..d645d34ad5 --- /dev/null +++ b/remoting_client/examples/openvz_vm_get.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $vm_id = 1; + + $vm_record = $client->openvz_vm_get($session_id, $vm_id); + + print_r($vm_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/openvz_vm_get_by_client.php b/remoting_client/examples/openvz_vm_get_by_client.php new file mode 100644 index 0000000000..1b696bfb16 --- /dev/null +++ b/remoting_client/examples/openvz_vm_get_by_client.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set function parameters + $client_id = 4; + + $vm_record = $client->openvz_vm_get_by_client($session_id, $client_id); + + print_r($vm_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/openvz_vm_update.php b/remoting_client/examples/openvz_vm_update.php new file mode 100644 index 0000000000..5a908b1831 --- /dev/null +++ b/remoting_client/examples/openvz_vm_update.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $vm_id = 1; + $client_id = 1; + + + //* Get the virtual machine record + $vm_record = $client->openvz_vm_get($session_id, $vm_id); + + //* Change active to no + $vm_record['active'] = 'n'; + + $affected_rows = $client->openvz_vm_update($session_id, $client_id, $vm_id, $vm_record); + + echo "Number of records that have been changed in the database: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/server_get.php b/remoting_client/examples/server_get.php new file mode 100644 index 0000000000..c33f3b984b --- /dev/null +++ b/remoting_client/examples/server_get.php @@ -0,0 +1,35 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $server_id = 1; + + $record_record = $client->server_get($session_id, $server_id, $section =''); + + print_r($record_record); + echo "
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/server_get_serverid_by_ip.php b/remoting_client/examples/server_get_serverid_by_ip.php new file mode 100644 index 0000000000..11a58b62ba --- /dev/null +++ b/remoting_client/examples/server_get_serverid_by_ip.php @@ -0,0 +1,35 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $ipaddress = '192.168.0.112'; + + $record_record = $client->server_get_serverid_by_ip($session_id, $ipaddress); + + print_r($record_record); + echo "
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/sites_cron_add.php b/remoting_client/examples/sites_cron_add.php new file mode 100644 index 0000000000..cc517e9a9d --- /dev/null +++ b/remoting_client/examples/sites_cron_add.php @@ -0,0 +1,47 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + + $params = array( + 'server_id' => 1, + 'parent_domain_id' => 1, + 'type' => 'url', + 'command' => 'echo 1', + 'run_min' => '1', + 'run_hour' => '1', + 'run_mday' => '1', + 'run_month' => '1', + 'run_wday' => '1', + 'active' => 'y', + ); + + $affected_rows = $client->sites_cron_add($session_id, $client_id, $params); + + echo "Cron ID: ".$affected_rows."
"; + + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/sites_cron_delete.php b/remoting_client/examples/sites_cron_delete.php new file mode 100644 index 0000000000..21aa10aff5 --- /dev/null +++ b/remoting_client/examples/sites_cron_delete.php @@ -0,0 +1,36 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $cron_id = 1; + + + //* Delete cron record + $affected_rows = $client->sites_cron_delete($session_id, $cron_id); + + echo "Number of records that have been deleted: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/sites_cron_get.php b/remoting_client/examples/sites_cron_get.php new file mode 100644 index 0000000000..4b3a718328 --- /dev/null +++ b/remoting_client/examples/sites_cron_get.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $cron_id = 1; + + $cron_record = $client->sites_cron_get($session_id, $cron_id); + + print_r($cron_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/sites_cron_update.php b/remoting_client/examples/sites_cron_update.php new file mode 100644 index 0000000000..b888e2a574 --- /dev/null +++ b/remoting_client/examples/sites_cron_update.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $client_id = 1; + $cron_id = 1; + + + //* Get the cron record + $cron_record = $client->sites_cron_get($session_id, $cron_id); + + //* Change active to no + $cron_record['active'] = 'n'; + + $affected_rows = $client->sites_cron_update($session_id, $client_id, $cron_id, $cron_record); + + echo "Number of records that have been changed in the database: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/sites_database_add.php b/remoting_client/examples/sites_database_add.php new file mode 100644 index 0000000000..2d2ee33d22 --- /dev/null +++ b/remoting_client/examples/sites_database_add.php @@ -0,0 +1,45 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $client_id = 1; + $params = array( + 'server_id' => 1, + 'type' => 'y', + 'database_name' => 'db_o', + 'database_user' => 'test', + 'database_password' => 'test', + 'database_charset' => 'UTF8', + 'remote_access' => 'y', + 'remote_ips' => '', + 'active' => 'y' + ); + + $database_id = $client->sites_database_add($session_id, $client_id, $params); + + echo "Database ID: ".$database_id."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/sites_database_delete.php b/remoting_client/examples/sites_database_delete.php new file mode 100644 index 0000000000..9d225e2ad1 --- /dev/null +++ b/remoting_client/examples/sites_database_delete.php @@ -0,0 +1,36 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $database_id = 1; + + + //* Get the database record + $affected_rows = $client->sites_database_delete($session_id, $database_id); + + echo "Number of records that have been deleted: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/sites_database_get.php b/remoting_client/examples/sites_database_get.php new file mode 100644 index 0000000000..fb26d04d5a --- /dev/null +++ b/remoting_client/examples/sites_database_get.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $database_id = 1; + + $database_record = $client->sites_database_get($session_id, $database_id); + + print_r($database_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/sites_database_get_all_by_user.php b/remoting_client/examples/sites_database_get_all_by_user.php new file mode 100644 index 0000000000..0aea522aa8 --- /dev/null +++ b/remoting_client/examples/sites_database_get_all_by_user.php @@ -0,0 +1,36 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $client_id = 1; + + $record_record = $client->sites_database_get_all_by_user($session_id, $client_id); + + + print_r($record_record); + echo "
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/sites_database_update.php b/remoting_client/examples/sites_database_update.php new file mode 100644 index 0000000000..c4c8a8023b --- /dev/null +++ b/remoting_client/examples/sites_database_update.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $database_id = 1; + $client_id = 1; + + + //* Get the database record + $database_record = $client->sites_database_get($session_id, $database_id); + + //* Change the status to inactive + $database_record['active'] = 'n'; + + $affected_rows = $client->sites_database_update($session_id, $client_id, $database_id, $database_record); + + echo "Number of records that have been changed in the database: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/sites_ftp_user_add.php b/remoting_client/examples/sites_ftp_user_add.php new file mode 100644 index 0000000000..bea10872f9 --- /dev/null +++ b/remoting_client/examples/sites_ftp_user_add.php @@ -0,0 +1,52 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $client_id = 1; + + $params = array( + 'server_id' => 1, + 'parent_domain_id' => 1, + 'username' => 'threep', + 'password' => 'wood', + 'quota_size' => 10000, + 'active' => 'y', + 'uid' => '5000', + 'gid' => '5000', + 'dir' => 'maybe', + 'quota_files' => -1, + 'ul_ratio' => -1, + 'dl_ratio' => -1, + 'ul_bandwidth' => -1, + 'dl_bandwidth' => -1 + ); + + $affected_rows = $client->sites_ftp_user_add($session_id, $client_id, $params); + + echo "FTP User ID: ".$affected_rows."
"; + + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/sites_ftp_user_delete.php b/remoting_client/examples/sites_ftp_user_delete.php new file mode 100644 index 0000000000..13c7449348 --- /dev/null +++ b/remoting_client/examples/sites_ftp_user_delete.php @@ -0,0 +1,35 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $ftp_user_id = 1; + + + $affected_rows = $client->sites_ftp_user_delete($session_id, $ftp_user_id); + + echo "Number of records that have been deleted: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/sites_ftp_user_get.php b/remoting_client/examples/sites_ftp_user_get.php new file mode 100644 index 0000000000..018c06b6ee --- /dev/null +++ b/remoting_client/examples/sites_ftp_user_get.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $ftp_user_id = 1; + + $ftp_user_record = $client->sites_ftp_user_get($session_id, $ftp_user_id); + + print_r($ftp_user_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/sites_ftp_user_update.php b/remoting_client/examples/sites_ftp_user_update.php new file mode 100644 index 0000000000..b0a22be7b5 --- /dev/null +++ b/remoting_client/examples/sites_ftp_user_update.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $client_id = 1; + $ftp_user_id = 1; + + + //* Get the ftp user record + $ftp_user_record = $client->sites_ftp_user_get($session_id, $ftp_user_id); + + //* Change active to no + $ftp_user_record['active'] = 'n'; + + $affected_rows = $client->sites_ftp_user_update($session_id, $client_id, $ftp_user_id, $ftp_user_record); + + echo "Number of records that have been changed in the database: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/sites_shell_user_add.php b/remoting_client/examples/sites_shell_user_add.php new file mode 100644 index 0000000000..1a75727d25 --- /dev/null +++ b/remoting_client/examples/sites_shell_user_add.php @@ -0,0 +1,49 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $client_id = 3; + + $params = array( + 'server_id' => 1, + 'parent_domain_id' => 1, + 'username' => 'threep2', + 'password' => 'wood', + 'quota_size' => 10000, + 'active' => 'y', + 'puser' => 'null', + 'pgroup' => 'null', + 'shell' => '/bin/bash', + 'dir' => 'maybe', + 'chroot' => '' + ); + + $affected_rows = $client->sites_shell_user_add($session_id, $client_id, $params); + + echo "Shell User ID: ".$affected_rows."
"; + + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/sites_shell_user_delete.php b/remoting_client/examples/sites_shell_user_delete.php new file mode 100644 index 0000000000..b15e3dc026 --- /dev/null +++ b/remoting_client/examples/sites_shell_user_delete.php @@ -0,0 +1,36 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $shell_user_id = 1; + + + //* Delete the shell user record + $affected_rows = $client->sites_shell_user_delete($session_id, $shell_user_id); + + echo "Number of records that have been deleted: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/sites_shell_user_get.php b/remoting_client/examples/sites_shell_user_get.php new file mode 100644 index 0000000000..ba10cc717f --- /dev/null +++ b/remoting_client/examples/sites_shell_user_get.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $shell_user_id = 1; + + $shell_user_record = $client->sites_shell_user_get($session_id, $shell_user_id); + + print_r($shell_user_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/sites_shell_user_update.php b/remoting_client/examples/sites_shell_user_update.php new file mode 100644 index 0000000000..a8976cca89 --- /dev/null +++ b/remoting_client/examples/sites_shell_user_update.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $client_id = 3; + $shell_user_id = 1; + + + //* Get the shell user record + $shell_user_record = $client->sites_shell_user_get($session_id, $shell_user_id); + + //* Change active to no + $shell_user_record['active'] = 'n'; + + $affected_rows = $client->sites_shell_user_update($session_id, $client_id, $shell_user_id, $shell_user_record); + + echo "Number of records that have been changed in the database: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/sites_web_aliasdomain_add.php b/remoting_client/examples/sites_web_aliasdomain_add.php new file mode 100644 index 0000000000..8ff90df1a8 --- /dev/null +++ b/remoting_client/examples/sites_web_aliasdomain_add.php @@ -0,0 +1,78 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $client_id = 1; + $params = array( + 'server_id' => 1, + 'ip_address' => '', + 'domain' => 'tssssst.int', + 'type' => 'alias', + 'parent_domain_id' => 1, + 'vhost_type' => '', + 'document_root' => '/web/dom', + 'system_user' => 'benutzer', + 'system_group' => 'gruppe', + 'hd_quota' => 100000, + 'traffic_quota' => -1, + 'cgi' => 'y', + 'ssi' => 'y', + 'suexec' => 'y', + 'errordocs' => 1, + 'is_subdomainwww' => 1, + 'subdomain' => '', + 'php' => 'y', + 'ruby' => 'n', + 'redirect_type' => '', + 'redirect_path' => '', + 'ssl' => 'n', + 'ssl_state' => '', + 'ssl_locality' => '', + 'ssl_organisation' => '', + 'ssl_organisation_unit' => '', + 'ssl_country' => '', + 'ssl_domain' => '', + 'ssl_request' => '', + 'ssl_cert' => '', + 'ssl_bundle' => '', + 'ssl_action' => '', + 'stats_password' => '', + 'stats_type' => 'webalizer', + 'allow_override' => 'All', + 'apache_directives' => '', + 'php_open_basedir' => '/php', + 'custom_php_ini' => '', + 'backup_interval' => '', + 'backup_copies' => 1, + 'active' => 'y', + 'traffic_quota_lock' => 'n' + ); + + $aliasdomain_id = $client->sites_web_aliasdomain_add($session_id, $client_id, $params); + + echo "Aliasdomain ID: ".$aliasdomain_id."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/sites_web_aliasdomain_delete.php b/remoting_client/examples/sites_web_aliasdomain_delete.php new file mode 100644 index 0000000000..d60acffebb --- /dev/null +++ b/remoting_client/examples/sites_web_aliasdomain_delete.php @@ -0,0 +1,36 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $aliasdomain_id = 8; + + + //* Get the aliasdomain record + $affected_rows = $client->sites_web_aliasdomain_delete($session_id, $aliasdomain_id); + + echo "Number of records that have been deleted: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/sites_web_aliasdomain_get.php b/remoting_client/examples/sites_web_aliasdomain_get.php new file mode 100644 index 0000000000..9278619695 --- /dev/null +++ b/remoting_client/examples/sites_web_aliasdomain_get.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $aliasdomain_id = 8; + + $aliasdomain_record = $client->sites_web_aliasdomain_get($session_id, $aliasdomain_id); + + print_r($aliasdomain_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/sites_web_aliasdomain_update.php b/remoting_client/examples/sites_web_aliasdomain_update.php new file mode 100644 index 0000000000..cf114dc193 --- /dev/null +++ b/remoting_client/examples/sites_web_aliasdomain_update.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $aliasdomain_id = 8; + $client_id = 1; + + + //* Get the aliasdomain record + $aliasdomain_record = $client->sites_web_aliasdomain_get($session_id, $aliasdomain_id); + + //* Change the status to inactive + $aliasdomain_record['active'] = 'n'; + + $affected_rows = $client->sites_web_aliasdomain_update($session_id, $client_id, $aliasdomain_id, $aliasdomain_record); + + echo "Number of records that have been changed in the database: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/sites_web_domain_add.php b/remoting_client/examples/sites_web_domain_add.php new file mode 100644 index 0000000000..ba0cfea18f --- /dev/null +++ b/remoting_client/examples/sites_web_domain_add.php @@ -0,0 +1,80 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $client_id = 1; + + $params = array( + 'server_id' => 0, + 'ip_address' => '', + 'domain' => 'test2.int', + 'type' => '', + 'parent_domain_id' => 0, + 'vhost_type' => '', + 'document_root' => '/web/dom', + 'system_user' => 'benutzer', + 'system_group' => 'gruppe', + 'hd_quota' => 100000, + 'traffic_quota' => -1, + 'cgi' => 'y', + 'ssi' => 'y', + 'suexec' => 'y', + 'errordocs' => 1, + 'is_subdomainwww' => 1, + 'subdomain' => '', + 'php' => 'y', + 'ruby' => 'n', + 'redirect_type' => '', + 'redirect_path' => '', + 'ssl' => 'n', + 'ssl_state' => '', + 'ssl_locality' => '', + 'ssl_organisation' => '', + 'ssl_organisation_unit' => '', + 'ssl_country' => '', + 'ssl_domain' => '', + 'ssl_request' => '', + 'ssl_cert' => '', + 'ssl_bundle' => '', + 'ssl_action' => '', + 'stats_password' => '', + 'stats_type' => 'webalizer', + 'allow_override' => 'All', + 'apache_directives' => '', + 'php_open_basedir' => '/php', + 'custom_php_ini' => '', + 'backup_interval' => '', + 'backup_copies' => 1, + 'active' => 'y', + 'traffic_quota_lock' => 'n' + ); + + $affected_rows = $client->sites_web_domain_add($session_id, $client_id, $params, $readonly = false); + + echo "Web Domain ID: ".$affected_rows."
"; + + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/sites_web_domain_delete.php b/remoting_client/examples/sites_web_domain_delete.php new file mode 100644 index 0000000000..92fa127f9f --- /dev/null +++ b/remoting_client/examples/sites_web_domain_delete.php @@ -0,0 +1,36 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $domain_id = 2; + + + //* Delete the web domain record + $affected_rows = $client->sites_web_domain_delete($session_id, $domain_id); + + echo "Number of records that have been deleted: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/sites_web_domain_get.php b/remoting_client/examples/sites_web_domain_get.php new file mode 100644 index 0000000000..dfef84a69b --- /dev/null +++ b/remoting_client/examples/sites_web_domain_get.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $domain_id = 2; + + $domain_record = $client->sites_web_domain_get($session_id, $domain_id); + + print_r($domain_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/sites_web_domain_set_status.php b/remoting_client/examples/sites_web_domain_set_status.php new file mode 100644 index 0000000000..82dddfe057 --- /dev/null +++ b/remoting_client/examples/sites_web_domain_set_status.php @@ -0,0 +1,36 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $status = 'active'; + $primary_id = 1; + + $record_record = $client->sites_web_domain_set_status($session_id, $primary_id, $status); + + print_r($record_record); + echo "
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/sites_web_domain_update.php b/remoting_client/examples/sites_web_domain_update.php new file mode 100644 index 0000000000..c26d8a1f09 --- /dev/null +++ b/remoting_client/examples/sites_web_domain_update.php @@ -0,0 +1,45 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $client_id = 0; + $domain_id = 1; + + + //* Get the web domain record + $domain_record = $client->sites_web_domain_get($session_id, $domain_id); + + //* Change parameters + $domain_record['active'] = 'n'; + $domain_record['document_root'] = '/web/doc'; + $domain_record['allow_override'] = 'All'; + $domain_record['php_open_basedir'] = '/php'; + + $affected_rows = $client->sites_web_domain_update($session_id, $client_id, $domain_id, $domain_record); + + echo "Number of records that have been changed in the database: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/sites_web_subdomain_add.php b/remoting_client/examples/sites_web_subdomain_add.php new file mode 100644 index 0000000000..344db184f8 --- /dev/null +++ b/remoting_client/examples/sites_web_subdomain_add.php @@ -0,0 +1,78 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $client_id = 1; + $params = array( + 'server_id' => 1, + 'ip_address' => '', + 'domain' => 'tsssssubt.int', + 'type' => 'subdomain', + 'parent_domain_id' => 1, + 'vhost_type' => '', + 'document_root' => '/web/dom', + 'system_user' => 'benutzer', + 'system_group' => 'gruppe', + 'hd_quota' => 100000, + 'traffic_quota' => -1, + 'cgi' => 'y', + 'ssi' => 'y', + 'suexec' => 'y', + 'errordocs' => 1, + 'is_subdomainwww' => 1, + 'subdomain' => '', + 'php' => 'y', + 'ruby' => 'n', + 'redirect_type' => '', + 'redirect_path' => '', + 'ssl' => 'n', + 'ssl_state' => '', + 'ssl_locality' => '', + 'ssl_organisation' => '', + 'ssl_organisation_unit' => '', + 'ssl_country' => '', + 'ssl_domain' => '', + 'ssl_request' => '', + 'ssl_cert' => '', + 'ssl_bundle' => '', + 'ssl_action' => '', + 'stats_password' => '', + 'stats_type' => 'webalizer', + 'allow_override' => 'All', + 'apache_directives' => '', + 'php_open_basedir' => '/php', + 'custom_php_ini' => '', + 'backup_interval' => '', + 'backup_copies' => 1, + 'active' => 'y', + 'traffic_quota_lock' => 'n' + ); + + $subdomain_id = $client->sites_web_subdomain_add($session_id, $client_id, $params); + + echo "Subdomain ID: ".$subdomain_id."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/sites_web_subdomain_delete.php b/remoting_client/examples/sites_web_subdomain_delete.php new file mode 100644 index 0000000000..be167cc5f4 --- /dev/null +++ b/remoting_client/examples/sites_web_subdomain_delete.php @@ -0,0 +1,36 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $subdomain_id = 10; + + + //* Get the subdomain record + $affected_rows = $client->sites_web_subdomain_delete($session_id, $subdomain_id); + + echo "Number of records that have been deleted: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/sites_web_subdomain_get.php b/remoting_client/examples/sites_web_subdomain_get.php new file mode 100644 index 0000000000..a86ae8de5c --- /dev/null +++ b/remoting_client/examples/sites_web_subdomain_get.php @@ -0,0 +1,34 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Set the function parameters. + $subdomain_id = 10; + + $subdomain_record = $client->sites_web_subdomain_get($session_id, $subdomain_id); + + print_r($subdomain_record); + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/sites_web_subdomain_update.php b/remoting_client/examples/sites_web_subdomain_update.php new file mode 100644 index 0000000000..ee5ed3501d --- /dev/null +++ b/remoting_client/examples/sites_web_subdomain_update.php @@ -0,0 +1,42 @@ + $soap_location, + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); + + +try { + if($session_id = $client->login($username,$password)) { + echo 'Logged successfull. Session ID:'.$session_id.'
'; + } + + //* Parameters + $subdomain_id = 10; + $client_id = 1; + + + //* Get the subdomain record + $subdomain_record = $client->sites_web_subdomain_get($session_id, $subdomain_id); + + //* Change the status to inactive + $subdomain_record['active'] = 'n'; + + $affected_rows = $client->sites_web_subdomain_update($session_id, $client_id, $subdomain_id, $subdomain_record); + + echo "Number of records that have been changed in the database: ".$affected_rows."
"; + + if($client->logout($session_id)) { + echo 'Logged out.
'; + } + + +} catch (SoapFault $e) { + echo $client->__getLastResponse(); + die('SOAP Error: '.$e->getMessage()); +} + +?> diff --git a/remoting_client/examples/soap-alias-add.php b/remoting_client/examples/soap-alias-add.php deleted file mode 100644 index 8d1b327ef9..0000000000 --- a/remoting_client/examples/soap-alias-add.php +++ /dev/null @@ -1,40 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - if($session_id = $client->login($username,$password)) { - echo 'Zalogowany. Sesja:'.$session_id.'
'; - } - - $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.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Blad: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap-alias-delete.php b/remoting_client/examples/soap-alias-delete.php deleted file mode 100644 index 7f3488afb9..0000000000 --- a/remoting_client/examples/soap-alias-delete.php +++ /dev/null @@ -1,35 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - if($session_id = $client->login($username,$password)) { - echo 'Zalogowany. Sesja:'.$session_id.'
'; - } - - - $client_id = 0; - $mailuser_id = 31; - $domain__id = $client->mail_alias_delete($session_id, $mailuser_id); - - - - if($client->logout($session_id)) { - echo 'Wylogowany.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Blad: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap-alias-update.php b/remoting_client/examples/soap-alias-update.php deleted file mode 100644 index 92e5411f50..0000000000 --- a/remoting_client/examples/soap-alias-update.php +++ /dev/null @@ -1,41 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - if($session_id = $client->login($username,$password)) { - echo 'Zalogowany. Sesja:'.$session_id.'
'; - } - - $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.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Blad: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap-blacklist-add.php b/remoting_client/examples/soap-blacklist-add.php deleted file mode 100644 index 39100c0172..0000000000 --- a/remoting_client/examples/soap-blacklist-add.php +++ /dev/null @@ -1,41 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - if($session_id = $client->login($username,$password)) { - echo 'Zalogowany. Sesja:'.$session_id.'
'; - } - - $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.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Blad: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap-blacklist-delete.php b/remoting_client/examples/soap-blacklist-delete.php deleted file mode 100644 index 479c32e010..0000000000 --- a/remoting_client/examples/soap-blacklist-delete.php +++ /dev/null @@ -1,35 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - if($session_id = $client->login($username,$password)) { - echo 'Zalogowany. Sesja:'.$session_id.'
'; - } - - - $client_id = 0; - $mailuser_id = 3; - $domain__id = $client->mail_blacklist_delete($session_id, $mailuser_id); - - - - if($client->logout($session_id)) { - echo 'Wylogowany.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Blad: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap-blacklist-update.php b/remoting_client/examples/soap-blacklist-update.php deleted file mode 100644 index b07031298d..0000000000 --- a/remoting_client/examples/soap-blacklist-update.php +++ /dev/null @@ -1,43 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - if($session_id = $client->login($username,$password)) { - echo 'Zalogowany. Sesja:'.$session_id.'
'; - } - - $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.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Blad: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap-catchall-add.php b/remoting_client/examples/soap-catchall-add.php deleted file mode 100644 index e9b5ae6b2c..0000000000 --- a/remoting_client/examples/soap-catchall-add.php +++ /dev/null @@ -1,40 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - if($session_id = $client->login($username,$password)) { - echo 'Zalogowany. Sesja:'.$session_id.'
'; - } - - $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.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Blad: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap-catchall-delete.php b/remoting_client/examples/soap-catchall-delete.php deleted file mode 100644 index cb088a827b..0000000000 --- a/remoting_client/examples/soap-catchall-delete.php +++ /dev/null @@ -1,35 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - if($session_id = $client->login($username,$password)) { - echo 'Zalogowany. Sesja:'.$session_id.'
'; - } - - - $client_id = 0; - $mailuser_id = 33; - $domain__id = $client->mail_catchall_delete($session_id, $mailuser_id); - - - - if($client->logout($session_id)) { - echo 'Wylogowany.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Blad: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap-catchall-update.php b/remoting_client/examples/soap-catchall-update.php deleted file mode 100644 index 92dc53afe1..0000000000 --- a/remoting_client/examples/soap-catchall-update.php +++ /dev/null @@ -1,41 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - if($session_id = $client->login($username,$password)) { - echo 'Zalogowany. Sesja:'.$session_id.'
'; - } - - $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.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Blad: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap-client-add.php b/remoting_client/examples/soap-client-add.php deleted file mode 100644 index ed78d0f8b5..0000000000 --- a/remoting_client/examples/soap-client-add.php +++ /dev/null @@ -1,80 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - -try { - if($session_id = $client->login($username,$password)) { - echo 'Login successfull. SessionID:'.$session_id.'
'; - } - - $params = array( 'server_id' => 1, - 'company_name' => 'Company', - 'contact_name' => 'John Doe', - 'username' =>'john', - 'password' =>'test', - 'language' =>'en', - 'usertheme' =>'default', - 'street' =>'mainstreet 10', - 'zip' =>'12345', - 'city' =>'Homecity', - 'state' =>'non-US', - 'country' =>'EN', - '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'); - - - $reseller_id = 0; - $domain_id = $client->client_add($session_id, $reseller_id, $params); - - - - if($client->logout($session_id)) { - echo 'Logout.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Error: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap-client-delete.php b/remoting_client/examples/soap-client-delete.php deleted file mode 100644 index 3a05759fa3..0000000000 --- a/remoting_client/examples/soap-client-delete.php +++ /dev/null @@ -1,29 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - if($session_id = $client->login($username,$password)) { - echo 'Login successfull. SessionID:'.$session_id.'
'; - } - - $client_id = 3; - $affected_rows = $client->client_delete($session_id, $client_id); - - - - if($client->logout($session_id)) { - echo 'Logout.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Error: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap-client-update.php b/remoting_client/examples/soap-client-update.php deleted file mode 100644 index a0ea101ee9..0000000000 --- a/remoting_client/examples/soap-client-update.php +++ /dev/null @@ -1,83 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - if($session_id = $client->login($username,$password)) { - echo 'Login successfull. SessionID:'.$session_id.'
'; - } - - $params = array( 'server_id' => 1, - 'company_name' => 'Company', - 'contact_name' => 'John Doe 3', - 'username' =>'john2', - 'password' =>'test', - 'language' =>'en', - 'usertheme' =>'default', - 'street' =>'mainstreet 10', - 'zip' =>'12345', - 'city' =>'Homecity', - 'state' =>'non-US', - 'country' =>'EN', - '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'); - - - $reseller_id = 0; - $client_id = 3; - $return_client_id = $client->client_update($session_id, $reseller_id, $client_id, $params); - - - - if($client->logout($session_id)) { - echo 'Logout.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Error: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap-fetchmail-add.php b/remoting_client/examples/soap-fetchmail-add.php deleted file mode 100644 index 2d460dc9ac..0000000000 --- a/remoting_client/examples/soap-fetchmail-add.php +++ /dev/null @@ -1,43 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - if($session_id = $client->login($username,$password)) { - echo 'Zalogowany. Sesja:'.$session_id.'
'; - } - - $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.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Blad: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap-fetchmail-delete.php b/remoting_client/examples/soap-fetchmail-delete.php deleted file mode 100644 index 10d9c3db84..0000000000 --- a/remoting_client/examples/soap-fetchmail-delete.php +++ /dev/null @@ -1,35 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - if($session_id = $client->login($username,$password)) { - echo 'Zalogowany. Sesja:'.$session_id.'
'; - } - - - $client_id = 0; - $mailuser_id = 1; - $domain__id = $client->mail_fetchmail_delete($session_id, $mailuser_id); - - - - if($client->logout($session_id)) { - echo 'Wylogowany.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Blad: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap-fetchmail-update.php b/remoting_client/examples/soap-fetchmail-update.php deleted file mode 100644 index 567c0a0625..0000000000 --- a/remoting_client/examples/soap-fetchmail-update.php +++ /dev/null @@ -1,45 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - if($session_id = $client->login($username,$password)) { - echo 'Zalogowany. Sesja:'.$session_id.'
'; - } - - $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.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Blad: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap-filtr-add.php b/remoting_client/examples/soap-filtr-add.php deleted file mode 100644 index 374e1a7ccf..0000000000 --- a/remoting_client/examples/soap-filtr-add.php +++ /dev/null @@ -1,41 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - if($session_id = $client->login($username,$password)) { - echo 'Zalogowany. Sesja:'.$session_id.'
'; - } - - $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.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Blad: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap-filtr-delete.php b/remoting_client/examples/soap-filtr-delete.php deleted file mode 100644 index c9c45cd437..0000000000 --- a/remoting_client/examples/soap-filtr-delete.php +++ /dev/null @@ -1,35 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - if($session_id = $client->login($username,$password)) { - echo 'Zalogowany. Sesja:'.$session_id.'
'; - } - - - $client_id = 0; - $mailuser_id = 1; - $domain__id = $client->mail_filtr_delete($session_id, $mailuser_id); - - - - if($client->logout($session_id)) { - echo 'Wylogowany.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Blad: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap-filtr-update.php b/remoting_client/examples/soap-filtr-update.php deleted file mode 100644 index b49073b0ba..0000000000 --- a/remoting_client/examples/soap-filtr-update.php +++ /dev/null @@ -1,42 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - if($session_id = $client->login($username,$password)) { - echo 'Zalogowany. Sesja:'.$session_id.'
'; - } - - $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.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Blad: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap-forward-add.php b/remoting_client/examples/soap-forward-add.php deleted file mode 100644 index 65a69a76a9..0000000000 --- a/remoting_client/examples/soap-forward-add.php +++ /dev/null @@ -1,40 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - if($session_id = $client->login($username,$password)) { - echo 'Zalogowany. Sesja:'.$session_id.'
'; - } - - $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.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Blad: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap-forward-delete.php b/remoting_client/examples/soap-forward-delete.php deleted file mode 100644 index 32d8e5277d..0000000000 --- a/remoting_client/examples/soap-forward-delete.php +++ /dev/null @@ -1,35 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - if($session_id = $client->login($username,$password)) { - echo 'Zalogowany. Sesja:'.$session_id.'
'; - } - - - $client_id = 0; - $mailuser_id = 32; - $domain__id = $client->mail_forward_delete($session_id, $mailuser_id); - - - - if($client->logout($session_id)) { - echo 'Wylogowany.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Blad: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap-forward-update.php b/remoting_client/examples/soap-forward-update.php deleted file mode 100644 index 34c0d5f6dc..0000000000 --- a/remoting_client/examples/soap-forward-update.php +++ /dev/null @@ -1,41 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - if($session_id = $client->login($username,$password)) { - echo 'Zalogowany. Sesja:'.$session_id.'
'; - } - - $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.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Blad: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap-mailuser-add.php b/remoting_client/examples/soap-mailuser-add.php deleted file mode 100644 index d42b5486b6..0000000000 --- a/remoting_client/examples/soap-mailuser-add.php +++ /dev/null @@ -1,45 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - if($session_id = $client->login($username,$password)) { - echo 'Zalogowany. Sesja:'.$session_id.'
'; - } - - $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.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Blad: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap-mailuser-delete.php b/remoting_client/examples/soap-mailuser-delete.php deleted file mode 100644 index b342ebb4ba..0000000000 --- a/remoting_client/examples/soap-mailuser-delete.php +++ /dev/null @@ -1,35 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - if($session_id = $client->login($username,$password)) { - echo 'Zalogowany. Sesja:'.$session_id.'
'; - } - - - $client_id = 0; - $mailuser_id = 4; - $domain__id = $client->mail_user_delete($session_id, $mailuser_id); - - - - if($client->logout($session_id)) { - echo 'Wylogowany.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Blad: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap-mailuser-update.php b/remoting_client/examples/soap-mailuser-update.php deleted file mode 100644 index a967b60819..0000000000 --- a/remoting_client/examples/soap-mailuser-update.php +++ /dev/null @@ -1,46 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - if($session_id = $client->login($username,$password)) { - echo 'Zalogowany. Sesja:'.$session_id.'
'; - } - - $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.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Blad: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap-policy-add.php b/remoting_client/examples/soap-policy-add.php deleted file mode 100644 index 013c0962c5..0000000000 --- a/remoting_client/examples/soap-policy-add.php +++ /dev/null @@ -1,43 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - if($session_id = $client->login($username,$password)) { - echo 'Zalogowany. Sesja:'.$session_id.'
'; - } - - $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.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Blad: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap-policy-delete.php b/remoting_client/examples/soap-policy-delete.php deleted file mode 100644 index 173e81a3bb..0000000000 --- a/remoting_client/examples/soap-policy-delete.php +++ /dev/null @@ -1,35 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - if($session_id = $client->login($username,$password)) { - echo 'Zalogowany. Sesja:'.$session_id.'
'; - } - - - $client_id = 0; - $mailuser_id = 10; - $domain__id = $client->mail_policy_delete($session_id, $mailuser_id); - - - - if($client->logout($session_id)) { - echo 'Wylogowany.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Blad: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap-policy-update.php b/remoting_client/examples/soap-policy-update.php deleted file mode 100644 index 3434f0bc72..0000000000 --- a/remoting_client/examples/soap-policy-update.php +++ /dev/null @@ -1,45 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - if($session_id = $client->login($username,$password)) { - echo 'Zalogowany. Sesja:'.$session_id.'
'; - } - - $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.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Blad: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap-transport-add.php b/remoting_client/examples/soap-transport-add.php deleted file mode 100644 index b49d4ebd36..0000000000 --- a/remoting_client/examples/soap-transport-add.php +++ /dev/null @@ -1,40 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - if($session_id = $client->login($username,$password)) { - echo 'Zalogowany. Sesja:'.$session_id.'
'; - } - - $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.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Blad: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap-transport-delete.php b/remoting_client/examples/soap-transport-delete.php deleted file mode 100644 index 4870c2b9c0..0000000000 --- a/remoting_client/examples/soap-transport-delete.php +++ /dev/null @@ -1,35 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - if($session_id = $client->login($username,$password)) { - echo 'Zalogowany. Sesja:'.$session_id.'
'; - } - - - $client_id = 0; - $mailuser_id = 1; - $domain__id = $client->mail_transport_delete($session_id, $mailuser_id); - - - - if($client->logout($session_id)) { - echo 'Wylogowany.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Blad: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap-transport-update.php b/remoting_client/examples/soap-transport-update.php deleted file mode 100644 index 2609258298..0000000000 --- a/remoting_client/examples/soap-transport-update.php +++ /dev/null @@ -1,44 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - if($session_id = $client->login($username,$password)) { - echo 'Zalogowany. Sesja:'.$session_id.'
'; - } - - - //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.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Blad: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap-users_spamfilter-add.php b/remoting_client/examples/soap-users_spamfilter-add.php deleted file mode 100644 index 2e8338f7ba..0000000000 --- a/remoting_client/examples/soap-users_spamfilter-add.php +++ /dev/null @@ -1,41 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - if($session_id = $client->login($username,$password)) { - echo 'Zalogowany. Sesja:'.$session_id.'
'; - } - - $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.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Blad: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap-users_spamfilter-delete.php b/remoting_client/examples/soap-users_spamfilter-delete.php deleted file mode 100644 index a34de30b51..0000000000 --- a/remoting_client/examples/soap-users_spamfilter-delete.php +++ /dev/null @@ -1,35 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - if($session_id = $client->login($username,$password)) { - echo 'Zalogowany. Sesja:'.$session_id.'
'; - } - - - $client_id = 0; - $mailuser_id = 1; - $domain__id = $client->mail_users_spamfilter_delete($session_id, $mailuser_id); - - - - if($client->logout($session_id)) { - echo 'Wylogowany.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Blad: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap-users_spamfilter-update.php b/remoting_client/examples/soap-users_spamfilter-update.php deleted file mode 100644 index 29f9d8bd06..0000000000 --- a/remoting_client/examples/soap-users_spamfilter-update.php +++ /dev/null @@ -1,43 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - if($session_id = $client->login($username,$password)) { - echo 'Zalogowany. Sesja:'.$session_id.'
'; - } - - $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.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Blad: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap-whitelist-add.php b/remoting_client/examples/soap-whitelist-add.php deleted file mode 100644 index 71fcf0348c..0000000000 --- a/remoting_client/examples/soap-whitelist-add.php +++ /dev/null @@ -1,41 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - if($session_id = $client->login($username,$password)) { - echo 'Zalogowany. Sesja:'.$session_id.'
'; - } - - $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.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Blad: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap-whitelist-delete.php b/remoting_client/examples/soap-whitelist-delete.php deleted file mode 100644 index 0fb0e8c12f..0000000000 --- a/remoting_client/examples/soap-whitelist-delete.php +++ /dev/null @@ -1,35 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - if($session_id = $client->login($username,$password)) { - echo 'Zalogowany. Sesja:'.$session_id.'
'; - } - - - $client_id = 0; - $mailuser_id = 2; - $domain__id = $client->mail_whitelist_delete($session_id, $mailuser_id); - - - - if($client->logout($session_id)) { - echo 'Wylogowany.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Blad: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap-whitelist-update.php b/remoting_client/examples/soap-whitelist-update.php deleted file mode 100644 index 075b00e384..0000000000 --- a/remoting_client/examples/soap-whitelist-update.php +++ /dev/null @@ -1,43 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - if($session_id = $client->login($username,$password)) { - echo 'Zalogowany. Sesja:'.$session_id.'
'; - } - - $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.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Blad: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap-wpisy_blacklist-add.php b/remoting_client/examples/soap-wpisy_blacklist-add.php deleted file mode 100644 index 583b6515c3..0000000000 --- a/remoting_client/examples/soap-wpisy_blacklist-add.php +++ /dev/null @@ -1,40 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - if($session_id = $client->login($username,$password)) { - echo 'Zalogowany. Sesja:'.$session_id.'
'; - } - - $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.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Blad: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap-wpisy_blacklist-delete.php b/remoting_client/examples/soap-wpisy_blacklist-delete.php deleted file mode 100644 index 0eb0db0373..0000000000 --- a/remoting_client/examples/soap-wpisy_blacklist-delete.php +++ /dev/null @@ -1,35 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - if($session_id = $client->login($username,$password)) { - echo 'Zalogowany. Sesja:'.$session_id.'
'; - } - - - $client_id = 0; - $mailuser_id = 2; - $domain__id = $client->mail_wpisy_blacklist_delete($session_id, $mailuser_id); - - - - if($client->logout($session_id)) { - echo 'Wylogowany.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Blad: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap-wpisy_blacklist-update.php b/remoting_client/examples/soap-wpisy_blacklist-update.php deleted file mode 100644 index 0174a64042..0000000000 --- a/remoting_client/examples/soap-wpisy_blacklist-update.php +++ /dev/null @@ -1,42 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - if($session_id = $client->login($username,$password)) { - echo 'Zalogowany. Sesja:'.$session_id.'
'; - } - - $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.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Blad: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap-wpisy_whitelist-add.php b/remoting_client/examples/soap-wpisy_whitelist-add.php deleted file mode 100644 index 8df97cc3ef..0000000000 --- a/remoting_client/examples/soap-wpisy_whitelist-add.php +++ /dev/null @@ -1,40 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - if($session_id = $client->login($username,$password)) { - echo 'Zalogowany. Sesja:'.$session_id.'
'; - } - - $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.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Blad: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap-wpisy_whitelist-delete.php b/remoting_client/examples/soap-wpisy_whitelist-delete.php deleted file mode 100644 index 97549c30c6..0000000000 --- a/remoting_client/examples/soap-wpisy_whitelist-delete.php +++ /dev/null @@ -1,35 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - if($session_id = $client->login($username,$password)) { - echo 'Zalogowany. Sesja:'.$session_id.'
'; - } - - - $client_id = 0; - $mailuser_id = 1; - $domain__id = $client->mail_wpisy_whitelist_delete($session_id, $mailuser_id); - - - - if($client->logout($session_id)) { - echo 'Wylogowany.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Blad: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap-wpisy_whitelist-update.php b/remoting_client/examples/soap-wpisy_whitelist-update.php deleted file mode 100644 index 9666d13544..0000000000 --- a/remoting_client/examples/soap-wpisy_whitelist-update.php +++ /dev/null @@ -1,42 +0,0 @@ - $soap_location, - 'uri' => $soap_uri)); - - -try { - if($session_id = $client->login($username,$password)) { - echo 'Zalogowany. Sesja:'.$session_id.'
'; - } - - $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.
'; - } - - -} catch (SoapFault $e) { - die('SOAP Blad: '.$e->getMessage()); -} - -?> diff --git a/remoting_client/examples/soap_config.php b/remoting_client/examples/soap_config.php index 279d0f5bd1..b3c282d0f9 100644 --- a/remoting_client/examples/soap_config.php +++ b/remoting_client/examples/soap_config.php @@ -8,7 +8,7 @@ $soap_location = 'http://localhost:8080/ispconfig3/interface/web/remote/index.ph $soap_uri = 'http://localhost:8080/ispconfig3/interface/web/remote/'; */ -$soap_location = 'http://localhost:8080/remote/index.php'; -$soap_uri = 'http://localhost:8080/remote/'; +$soap_location = 'http://192.168.0.110:8080/remote/index.php'; +$soap_uri = 'http://192.168.0.110:8080/remote/'; ?> diff --git a/remoting_client/readme b/remoting_client/readme new file mode 100644 index 0000000000..1392888bc0 --- /dev/null +++ b/remoting_client/readme @@ -0,0 +1,14 @@ + +-------------------------------------------------------- +- Remote API example files +-------------------------------------------------------- + +The examples folder contains a example script for every +Remote api function. The login details and URL for the +remote connection are defined in the file soap_config.php + +-------------------------------------------------------- +- Remote API documentation +-------------------------------------------------------- + +The startpage of the API documentation is main.html -- GitLab