diff --git a/docs/Remote_API_docs.txt b/docs/Remote_API_docs.txt new file mode 100644 index 0000000000000000000000000000000000000000..a11c78dd496939b3cee19c25cef68ce88bdf57b3 --- /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 0000000000000000000000000000000000000000..c4881f3a5b42b5adef5d1f61745978d45dd28a33 --- /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 0000000000000000000000000000000000000000..caf1a44083cd6d433e94d25d3e39dd906cfe7bd6 --- /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 0000000000000000000000000000000000000000..b5781bef46ba7d9550cd21f7e16b229479674efb --- /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 0000000000000000000000000000000000000000..f78b9aaaf4f53eb7c73da21c339f8572f0e7dee9 --- /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 0000000000000000000000000000000000000000..3017c5d0010a5a6a9202df7bb2285d37b5765bce --- /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 0000000000000000000000000000000000000000..42f47094b0927b2a58aadb4a59778ff3f3f82401 --- /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 0000000000000000000000000000000000000000..5510c3c300a00e6a6273dbddb05331db19e1e7a3 --- /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 0000000000000000000000000000000000000000..b556fc1ad33ba82b114e617be27e04de286ef311 --- /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 0000000000000000000000000000000000000000..34c8631fed3e0f42acc585b884b3782bf1ee228c --- /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 0000000000000000000000000000000000000000..67cc5cad34cf6863feecdfeaba966b0c36ef2df3 --- /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 0000000000000000000000000000000000000000..658cf34f957e6c91967d9f0c40be01e99e93962f --- /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 0000000000000000000000000000000000000000..6c4bde1b07f6e83b24153ea4e424b4ea01fc1a63 --- /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 0000000000000000000000000000000000000000..946ae00b2ffe104a39bf1b455383454eef0785f3 --- /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 0000000000000000000000000000000000000000..8c76e7ed301933c4761175ba17f46ee1872dc391 --- /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 0000000000000000000000000000000000000000..a240e852729d8246063d216b940d13a8406b0a6d --- /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 0000000000000000000000000000000000000000..e6f2e9e96eedd3f12441b58b755f028b3c3056a3 --- /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 0000000000000000000000000000000000000000..b638994fcaa410ea690c292df3c39dc287068518 --- /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 0000000000000000000000000000000000000000..727fbd91d9535aea7d2d4de8f9194d61b0fb359d --- /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 0000000000000000000000000000000000000000..9ba6ba1261486ab8806e2ad1f8eb7e5f6391fb1c --- /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 0000000000000000000000000000000000000000..37f5da959ae36b101d7a9bfdf5b2f256d967508e --- /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 0000000000000000000000000000000000000000..7e3389c1dfe3300938cfd0caaf53d7282e37a445 --- /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 0000000000000000000000000000000000000000..173147da483c3c35e6f42d68c918e13234d2e75f --- /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 0000000000000000000000000000000000000000..228b2dcd49b512cd70eb5b0ea41a2f7c78cfc269 --- /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 0000000000000000000000000000000000000000..3008b4398ff423f7f94782187a02cbf0a9830ccb --- /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 0000000000000000000000000000000000000000..1930ba2aac8c63481d89c7a798ef2957cf2501d7 --- /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 0000000000000000000000000000000000000000..393cb35db713ec74a513f20726b84b0cabfa2a9a --- /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 0000000000000000000000000000000000000000..237a94628fabf13427d0f8ec0fc0f71b5538bb48 --- /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 0000000000000000000000000000000000000000..f97b4d26c27f3bc59749d04869768c1a40fcccf5 --- /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 0000000000000000000000000000000000000000..2cc042bbafb55af7da181e964ac9fd9680389c1a --- /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 0000000000000000000000000000000000000000..d19cbc04c12b811c48f31ecd6e92dc35341fc281 --- /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 0000000000000000000000000000000000000000..504c85887ac461416329df1c431361e5166c3573 --- /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 0000000000000000000000000000000000000000..c4b2e95ad24925048c1a74dc6d556e8495cec33d --- /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 0000000000000000000000000000000000000000..01d4ccba44bf442d2f24d5c2aa3fd52d3f6a5ee2 --- /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 0000000000000000000000000000000000000000..38fd40b43941c137bbacd7b377f9c7e90ed30ae4 --- /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 0000000000000000000000000000000000000000..53a86370f2e463f711c76d55390a54ca5eecdce2 --- /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 0000000000000000000000000000000000000000..648e6066f3f1742b012ff96d99355d2ec74da73c --- /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 0000000000000000000000000000000000000000..425f4b3d9f365b84a586b04244a845239317a981 --- /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 0000000000000000000000000000000000000000..d8b2b3bb6335b7f3cb7ef035070ce0557ada6c2f --- /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 0000000000000000000000000000000000000000..93a90371db7c026d5491d8210385ba44f0a8a840 --- /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 0000000000000000000000000000000000000000..808af150d51955afeb27e9a676f2ba194f6415c3 --- /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 0000000000000000000000000000000000000000..c3be2ecdcfc98ef9b64e5fc60a51cf21a46a7507 --- /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 0000000000000000000000000000000000000000..5606ab91e88d1a952c6a55bd297746f5af542998 --- /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 0000000000000000000000000000000000000000..ea811c93cad6a1f198684d127553246c663ddac6 --- /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 0000000000000000000000000000000000000000..38064f3f0a992abee2ffdb56d3afac9baddfec91 --- /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 0000000000000000000000000000000000000000..eaa70c698ebf748f83ba6023628bcaf57ef5ba5e --- /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 0000000000000000000000000000000000000000..d78bfe276d0f6b09bf341312018fd3b2a4538cb5 --- /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 0000000000000000000000000000000000000000..fd98045b751a1ebe758ae46e2619d9ea75a992d8 --- /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 0000000000000000000000000000000000000000..ce120f8978f7fd6d3441d4f15b08cb7c0dc1f11f --- /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 0000000000000000000000000000000000000000..186c1ac8648ef36d286acfbaf17e8a68aa2f39d3 --- /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 0000000000000000000000000000000000000000..70754ad58f7f5c8f6e5e5bd0fdc9d51f34ddd96c --- /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 0000000000000000000000000000000000000000..d3eacef9ccad76ccf61514655327582e6b25ed97 --- /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 0000000000000000000000000000000000000000..6883ec35b6c68c30bbebbf00851738683252f0ed --- /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 0000000000000000000000000000000000000000..0fed81f844fd772175d9f9c972332027cb08004e --- /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 0000000000000000000000000000000000000000..fd3d3f713a1d0d168b87b60f39e256b588765e17 --- /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 0000000000000000000000000000000000000000..6a410cbaf512628a49ff51ceee74b63e98c2f533 --- /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 0000000000000000000000000000000000000000..868ad6e756878ae78e42912877f7774a9203aa03 --- /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 0000000000000000000000000000000000000000..606a579b9184ae93bbc00634eb03d1f6321b1f8d --- /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 0000000000000000000000000000000000000000..53c8928e02b74a0d06c39dca5a11351317cf1e08 --- /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 0000000000000000000000000000000000000000..3190e4032e78d2d922537e3f9f1baa9c3220f7a4 --- /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 0000000000000000000000000000000000000000..58f13f578fe2557f807a310b75cb355631bc4e7d --- /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 0000000000000000000000000000000000000000..00d9f828b0c9c137ffc9b62cf7668391a7848ca2 --- /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 0000000000000000000000000000000000000000..8ccfcec17e72e453924e950a72f9f724ddc3a4cc --- /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 0000000000000000000000000000000000000000..b7ac435a0a2892fece00d179f03e6501f29f461d --- /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 0000000000000000000000000000000000000000..3abff06a95fd582daaecd5e390bf3ce8d1d712a2 --- /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 0000000000000000000000000000000000000000..ab0cd23205e8f3e50cece8d15095fbb241bddff3 --- /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 0000000000000000000000000000000000000000..7496d262a95bac462e9c68926be20b54202d4042 --- /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 0000000000000000000000000000000000000000..f395a0fb9e154c9b5e983fc6af3dbb3f99de5f02 --- /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 0000000000000000000000000000000000000000..cb185592b09c50997a8164992bd1b1305c7a45c3 --- /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 0000000000000000000000000000000000000000..849180029726e314f70f9cd096967d6395b87a3e --- /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 0000000000000000000000000000000000000000..6b78b27c984fd43397dc39339fd650e66737cbf6 --- /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 0000000000000000000000000000000000000000..59f75d4dacf7ead7bd117e72c0827c0c4fdb7214 --- /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 0000000000000000000000000000000000000000..d3283369e35e63ac064e72dfc1a3c93ba6d4bf6a --- /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 0000000000000000000000000000000000000000..858df572768a370afcba3ebd980f840f2fb6eb0e --- /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 0000000000000000000000000000000000000000..f92a74a5eafd4a3e9c63b33a645851b2074e6af5 --- /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 0000000000000000000000000000000000000000..c984f0ec2fe214d697deb51453bc401bb87108b2 --- /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 0000000000000000000000000000000000000000..2c7ae2b38f6464fdd0aecde22a91af3c99e4c8f5 --- /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 0000000000000000000000000000000000000000..f0c30c11d8372de450ac089bd3ee4cf3cdf2e242 --- /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 0000000000000000000000000000000000000000..20e3464bb9c2d0513b5c6d06c5c2fc09e6c7ccc4 --- /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 0000000000000000000000000000000000000000..82120b0315b21e6aa22f015a7557a4b5dead129a --- /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 0000000000000000000000000000000000000000..e9012365441bd40551a871c43432e70639ea4707 --- /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 0000000000000000000000000000000000000000..e6eeec07ba03532e8118735ce9a769fdc672987b --- /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 0000000000000000000000000000000000000000..b53acfe433e41c1a16a5b1d23c618f8b6f827f91 --- /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 0000000000000000000000000000000000000000..ed5f6b8d01edc072dbcbb85bc5096a93648c09e8 --- /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 0000000000000000000000000000000000000000..941e88a235cddcbc25a8c01790ef71d7671a5423 --- /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 0000000000000000000000000000000000000000..814430cf8861f4ab74efa8f631dba433d23fbc65 --- /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 0000000000000000000000000000000000000000..a37805f78610656c0abf5e71df2f219a5186754e --- /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 0000000000000000000000000000000000000000..6c0329e98291357f5ac8e8e4901409eb9e89ad40 --- /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 0000000000000000000000000000000000000000..ebfaecddef00c8c8bc3f48fa34c85531df8ec557 --- /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 0000000000000000000000000000000000000000..1b7d63d1a3dd3b61eae1667ed26f22d46cfaae6f --- /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 0000000000000000000000000000000000000000..5c1d972087bb235d16e4ee01b9b9006cf92b055c --- /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 0000000000000000000000000000000000000000..4f6d2f72b8d6df4336768ac5e322c52834b96010 --- /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 0000000000000000000000000000000000000000..5ed2f51022d879148310285a7adbdb057dfb0dec --- /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 0000000000000000000000000000000000000000..85d57cc941697f056d42892818828112e970db5a --- /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 0000000000000000000000000000000000000000..70e7d4ee4b481583d3d4543358e9227cc2b3f975 --- /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 0000000000000000000000000000000000000000..99246380f6cf63914aed537c85935d9d7210888b --- /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 0000000000000000000000000000000000000000..3fa32a564d72b06615f942628bb068d61c4fe7e6 --- /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 0000000000000000000000000000000000000000..9b8a9a4a1ed9e8866ba0daf05211068cae0cb416 --- /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 0000000000000000000000000000000000000000..771521a197720143dbdfe1465490b74e47fd6e5e --- /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 0000000000000000000000000000000000000000..aec649ab813bfb958d2c1158ef33a44b607f759c --- /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 0000000000000000000000000000000000000000..f7d63df435b1e21f54720f26c38f64997d83485f --- /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 0000000000000000000000000000000000000000..0421c8040f961e97bb02fae4eacd40eb3a6a9054 --- /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 0000000000000000000000000000000000000000..0aeed7f37768272952a5652af43883cf11bcf530 --- /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 0000000000000000000000000000000000000000..ba1ea3a3aad25d712353e4f0b51499d2c8aff232 --- /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 0000000000000000000000000000000000000000..ad62641b1b3b8e5867fd266a5ea0c82414e41bc1 --- /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 0000000000000000000000000000000000000000..c3be7c37b2bf7bc2b1fa9daab34f70bbc309956f --- /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 0000000000000000000000000000000000000000..c370135192c3fa4a1aae42ba2f0d439d79c87460 --- /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 0000000000000000000000000000000000000000..766c1931ea07c9f97738bf6cbea7aba9c3404f49 --- /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 0000000000000000000000000000000000000000..f2596ea81b464055dad04b7fc50930e45748264e --- /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 0000000000000000000000000000000000000000..aa9816c26c65e4a55616321be5fa9996dd382496 --- /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 0000000000000000000000000000000000000000..c24bb34811adc0dce2681134212f3451e57b667c --- /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 0000000000000000000000000000000000000000..45d06412cc2a6527adb69ae8d46209ede0b97c81 --- /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 0000000000000000000000000000000000000000..8cb6e48cc749eaa30749b2da9a39fe644dc4e762 --- /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 0000000000000000000000000000000000000000..80e28e9b8a6871660b96aa2b09f24446c4245d82 --- /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 0000000000000000000000000000000000000000..0acbb2ecd6fba28a3578ff878104530a32b86a7e --- /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 0000000000000000000000000000000000000000..fe362781aa6bf82b26255f17f299a15e1287d217 --- /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 0000000000000000000000000000000000000000..e3cd2f8d8be1b6e904e1c79f11cc934b6ccfe53d --- /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 0000000000000000000000000000000000000000..5faddf52d120d74045c1360c460853bf154685cc --- /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 0000000000000000000000000000000000000000..7ba5dec41bc30e4e4f22708e34d6658e830dfa88 --- /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 0000000000000000000000000000000000000000..c1fc005963e2ccf38c8b992201770fb5e5e5085d --- /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 0000000000000000000000000000000000000000..ff63d01c2a2aa13dd8d4629774cd909fd092f761 --- /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 0000000000000000000000000000000000000000..ba943d94f947cf8b24c312beca572387bca30809 --- /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 0000000000000000000000000000000000000000..00a306dbf2422ed217f941864e522b9862063807 --- /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 0000000000000000000000000000000000000000..e6b5e1860384ebe4c13376fb73ed6aad36a443e0 --- /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 0000000000000000000000000000000000000000..b64ba6700b2a3e3a6c6c621bb7b4c88e984c59e2 --- /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 0000000000000000000000000000000000000000..982f829c3c0226a655940fb5887cbd221228b44c --- /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 0000000000000000000000000000000000000000..312e76739e31ad8ad381fca506bc8a83f4478774 --- /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 0000000000000000000000000000000000000000..3099cf4fe59bc3382cd75000055dc65c94246ff0 --- /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 0000000000000000000000000000000000000000..cc2b76cbe40e1eaab29941d7167a4a27355a600d --- /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 0000000000000000000000000000000000000000..90f7a89e9aae5ddc318ee8ab59016e3db19c327b --- /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 0000000000000000000000000000000000000000..b23b59eea791bf95d83239af9fc295e155b2f7df --- /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 0000000000000000000000000000000000000000..50fefff2a16c79085f010b08c776143902a13c13 --- /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 0000000000000000000000000000000000000000..d671817898e3f2ff5a72bd97acab990828feff37 --- /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 0000000000000000000000000000000000000000..62439b58e83b49d6d31cb0fd15c83c14791fde1c --- /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 0000000000000000000000000000000000000000..0c6254f228d98afc967064c0c8e2d8eaf7120ff8 --- /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 0000000000000000000000000000000000000000..c9186e8d894bd645713474f0a149519ff544fc81 --- /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 0000000000000000000000000000000000000000..3288e06a2234b61e8fa0d039876b47c80c06da61 --- /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 0000000000000000000000000000000000000000..af96bfb93686f44288be578e53e12a29bc54091a --- /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 0000000000000000000000000000000000000000..a5ae26073197b984e93bef0ad59b8c57a71747c9 --- /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 0000000000000000000000000000000000000000..19abc0d60c7e27f3bb6c70ed7e2c53c838994d30 --- /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 0000000000000000000000000000000000000000..226bbb9c0d96e30c02ece82b47ff4c94ab4dac65 --- /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 0000000000000000000000000000000000000000..101c3a1ff10a61ce45adefb8b1cd5f74b03daf6d --- /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 0000000000000000000000000000000000000000..d0a618c694750758dcc8133d2dfc9df0b728da68 --- /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 0000000000000000000000000000000000000000..2ac7cc71885e2c1c94617b2471ca6ebf0d4f1765 --- /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 0000000000000000000000000000000000000000..823a5fbe345e3108d61089a23a3cc69be047d60e --- /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 0000000000000000000000000000000000000000..a47566c4226b368cd94cec31a0180e05e7e0b6f8 --- /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 0000000000000000000000000000000000000000..bd7fe7107cabee51a566c1a1a70a53c9c0dbb662 --- /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 0000000000000000000000000000000000000000..057ff867aea0972e04213e7b4097538a1d0f676c --- /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 0000000000000000000000000000000000000000..1107c267e5e45c94ab5d62147eb042bac580811a --- /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 0000000000000000000000000000000000000000..3a13b732cbae8b2e869615cc748490bf96c0acc9 --- /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 0000000000000000000000000000000000000000..73afcb7c94e6537f57c47f6516b57820b48a437e --- /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 0000000000000000000000000000000000000000..13770ccb5b1a01516ab6a8e504c57a8649ccbf19 --- /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 0000000000000000000000000000000000000000..f8338c6d37fbd80baf3ce0d4582f3d427dbc0241 --- /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 0000000000000000000000000000000000000000..801d6e7a87ca1731658cda04f7926f1cb2fef82e --- /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 0000000000000000000000000000000000000000..71d21b43277b5abade042ec6171e0df58ef5f73a --- /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 0000000000000000000000000000000000000000..420caad2fd28f14fc592b8f92ef6e5e3946f13e0 --- /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 0000000000000000000000000000000000000000..6815b0b51cf2d06bb9dfe5415e64966d213e8c17 --- /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 0000000000000000000000000000000000000000..a01666a10797ffee7440d8f388b89202097dafeb --- /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 0000000000000000000000000000000000000000..fe3735974806cbe44d09cdf46d00e70e1bcff58d --- /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 0000000000000000000000000000000000000000..b55151f8cd41992ccd61c9406607104ad1fc2923 --- /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 0000000000000000000000000000000000000000..573ad66199974b6cf03b534b12d86db75a878a73 --- /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 0000000000000000000000000000000000000000..d64a7e3e0729079f7bbc767553c6f97f0a9f5708 --- /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 0000000000000000000000000000000000000000..267b706c8a08e722fcbfba5c7e142c2d532117ff --- /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 0000000000000000000000000000000000000000..c1c7a73789b57da9673ffd3d2d003f1b5ffe47e1 --- /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 0000000000000000000000000000000000000000..a96eb47bc59507d7962904bfcf31d8a1afe778c1 --- /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 0000000000000000000000000000000000000000..74e324fcdb0a85379e5aefa88da83ad4a44fddd7 --- /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 0000000000000000000000000000000000000000..c797af0f172589e29b3c4b698425d52806dbeb00 --- /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 0000000000000000000000000000000000000000..a850c53b019f7276995dba650cf18a425822ee0c --- /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 0000000000000000000000000000000000000000..a69c97dbc761ed4f7379a387a6c8368fdf1af98a --- /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 0000000000000000000000000000000000000000..95a965bf57e27f909b5df707ac3630f6492cb7e8 --- /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 0000000000000000000000000000000000000000..d72cbd66c74bf0dedb6546186155cf1ae8fdc89f --- /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 0000000000000000000000000000000000000000..ffc027dab9debbb2af0ace87262e34661c036b62 --- /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 0000000000000000000000000000000000000000..0d57f6483c9c9cbc82d18d7a81b86d197d7ff1d7 --- /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 0000000000000000000000000000000000000000..12e313efcc6f2e980562da0b45d635a489f8a0f6 --- /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 0000000000000000000000000000000000000000..0f551110f21b2173cc806f11999f994d7f911cab --- /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 0000000000000000000000000000000000000000..5a76dea39480066d7d35fc7f42d765004b26788a --- /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 0000000000000000000000000000000000000000..a40259496381147b46ae61c4c1b534fa86541bdd --- /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 0000000000000000000000000000000000000000..de4780670abea09ea3d70e2b2b1627307c9d8af2 --- /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 0000000000000000000000000000000000000000..5f5424daed34d62a7c85cd20ed1f76c7983e5b17 --- /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 0000000000000000000000000000000000000000..06f044289723abb2858674a7312c4e122cda814e --- /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 0000000000000000000000000000000000000000..522996e7d1ca0e8b75e2beef077fc8a5ebf7591c --- /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 0000000000000000000000000000000000000000..c25bb41ab25ebead85156853642f836dc9a63f68 --- /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 0000000000000000000000000000000000000000..3e884f4ec7c733071db6ca589d66e03a9cf3839f --- /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 0000000000000000000000000000000000000000..22db8f33b0999459e47fbee1378369caf40b7705 --- /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 0000000000000000000000000000000000000000..d42c293d2bae8b0fb634bcf12d2d7fb88b84aab3 --- /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 0000000000000000000000000000000000000000..4563912b59daa09bc0c5076f31e4703911c2b41f --- /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 ddef0ee142c5ba964a66a9c770c84efa79186b9a..0000000000000000000000000000000000000000 --- 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 0000000000000000000000000000000000000000..e95e89677ef3577d7b1ac790e33e5dab3870d5ac --- /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 0000000000000000000000000000000000000000..157423b27c3c23fb1e859f4e1e7b475a164c02c9 --- /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 0000000000000000000000000000000000000000..367c7512f87b08af02c546883e0dc9def1cebdc2 --- /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 0000000000000000000000000000000000000000..e11e77217cc25e8b914cf073ac3bb258be2fb917 --- /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 0000000000000000000000000000000000000000..095fd95b77b3b13422c83b7d2849acb00c06aee3 --- /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 0000000000000000000000000000000000000000..93c516dce3d57e50ed3a8e949739e9fbb72fb88c --- /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 0000000000000000000000000000000000000000..e19edded71e353f077b7628ae29d4c068b043d39 --- /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 0000000000000000000000000000000000000000..ebebc551c8224903203b96a73e9eccc9f29346aa --- /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 0000000000000000000000000000000000000000..003e1c7d2720d490edda8c7ad2007f64e082395f --- /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 0000000000000000000000000000000000000000..82f879703daafbd3a6a08a2071657514de431875 --- /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 0000000000000000000000000000000000000000..9ab12888364a9faefc48aad13fdf9402c401260e --- /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 0000000000000000000000000000000000000000..c092097f9d4d3d9a4331b1997fb9eb39791c5b2a --- /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 0000000000000000000000000000000000000000..d3e296ae42e5e484393acaa04a70f2d9f5d787a1 --- /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 0000000000000000000000000000000000000000..f543b40192aa1f2fb9eeef415ed9c595140f8660 --- /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 0000000000000000000000000000000000000000..bcd640b1962067a68d386bc8dc120f9e6f25c49f --- /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 0000000000000000000000000000000000000000..0021b2025d3010ca0c0145d03cd47a0240dff47c --- /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 0000000000000000000000000000000000000000..d1510542ec5c875df579436156e5f2181d328e30 --- /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 0000000000000000000000000000000000000000..e0d719400ae5fa327d9dabcede57e1ff20307d48 --- /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 0000000000000000000000000000000000000000..5b81662dcce896f3ee42d6651256f7e204b36d10 --- /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 0000000000000000000000000000000000000000..68c7667b8ba8d2312b7674bd22017f81af44d7be --- /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 0000000000000000000000000000000000000000..d80a1240c40dcc7b744844d7ede33f662cd8b0a6 --- /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 0000000000000000000000000000000000000000..8c9873b42aea69cf07019e10b9595ab60ccf7481 --- /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 0000000000000000000000000000000000000000..4c6a61fe5f3490d90e4861264224752e15c063c9 --- /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 0000000000000000000000000000000000000000..493e71ce598c36f43c2122c93223cc2b142b20c0 --- /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 0000000000000000000000000000000000000000..8ea6af1c63ce30eb89c4dc9b75303fdf7dee31a2 --- /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 0000000000000000000000000000000000000000..b689168fba9f35fdf91498062ff9f777730fe011 --- /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 0000000000000000000000000000000000000000..2c49d1e22e86344fe582c29a04899ccafdd7c50a --- /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 0000000000000000000000000000000000000000..c2fc7eb1bf4c9cb906172b85b4ad7f19c9a1adee --- /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 0000000000000000000000000000000000000000..23c8a4ade73fa957828c4e23301761212fd9d9f7 --- /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 0000000000000000000000000000000000000000..b35c73216feadf639252e648b3bd668658170306 --- /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 0000000000000000000000000000000000000000..878be4794ecb03213dea6e7120a052f1f3a4341f --- /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 0000000000000000000000000000000000000000..857b90c56cbdfd2771037f276f9bafb39cfaf8f2 --- /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 0000000000000000000000000000000000000000..112141e2feca19ce1425471a11e32111e5ee62e7 --- /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 0000000000000000000000000000000000000000..c51221ab35a45856f6b0abeeab40c6c7eaf7ec3b --- /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 0000000000000000000000000000000000000000..2dd7efd65bd172ecd1e02fb2f43152c8a480dcbd --- /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 0000000000000000000000000000000000000000..e50ff7c1b8041c92035d7ab97c5e086e5066b3d4 --- /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 0000000000000000000000000000000000000000..28fcf383ccfce5c41714f2cb29701bb4f55bc238 --- /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 0000000000000000000000000000000000000000..92fdb93dd6f1f69660c19477ebecdcee5e0d7e3d --- /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 0000000000000000000000000000000000000000..55ed112353d0c38d325f57fdc252234904c50f25 --- /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 0000000000000000000000000000000000000000..ced26845e021ca09a8e680f97db95e3cf09ec713 --- /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 0000000000000000000000000000000000000000..1332a30c325340f5337d9b615407527aee1bef64 --- /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 0000000000000000000000000000000000000000..a2b360ae0f1316e7ee9e5e9170a0ab5cb26508b7 --- /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 0000000000000000000000000000000000000000..ac04cf786132971b7d894e5a25295dd3dac2a877 --- /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 0000000000000000000000000000000000000000..3edcb7b17a9c3f8f19ec6a02f89b58c54a749184 --- /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 0000000000000000000000000000000000000000..3f575937577dc209e6e5757eb8379da14af44a5a --- /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 0000000000000000000000000000000000000000..7cc587de2b635074abde4919a71ef720780b9770 --- /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 0000000000000000000000000000000000000000..284bad4f24e830d89d957cd6229ab3a96b36b220 --- /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 0000000000000000000000000000000000000000..9f021ac88f8afc194c1d74601f8d08a64f2c5d51 --- /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 0000000000000000000000000000000000000000..6bd7661408ff2d029f0cb303c19982c613c667f1 --- /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 0000000000000000000000000000000000000000..eb771a3f4496b643a7c30f2e3e9db340c4cda555 --- /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 0000000000000000000000000000000000000000..569651c24e80f68cbf663da61f117474504f0dea --- /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 0000000000000000000000000000000000000000..d760d57bc810fc172d26cfc19b5fe9145b173614 --- /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 0000000000000000000000000000000000000000..862c801ea852e1bd48a12ae67f72d4fdee07df77 --- /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 0000000000000000000000000000000000000000..9c515f70a31eeaa788eee51f93a6ccd3685d2fdb --- /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 0000000000000000000000000000000000000000..d6466e98de33bf09cc59739e042c5eff5f61e6d2 --- /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 0000000000000000000000000000000000000000..163480816acbce1732e9a4279ec68ca884586afd --- /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 0000000000000000000000000000000000000000..2bfc9c4c5842cc42da12e6a698f5ed77733d2a74 --- /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 0000000000000000000000000000000000000000..4ac8f174a37e578b5b7a1d8bb7715af6dfa9031e --- /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 0000000000000000000000000000000000000000..38d70a27329ac9115d193bc3d30df1cf6931a58f --- /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 0000000000000000000000000000000000000000..e1b46c7842c6f01a92dfa824b62d2bcd3fb9246c --- /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 0000000000000000000000000000000000000000..4b8e7c2a74c742cf48c93864d8a1ca172300cb34 --- /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 0000000000000000000000000000000000000000..30f2341f1792edadc1545970f43e97c1c7fcfd95 --- /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 0000000000000000000000000000000000000000..8582783807781fdaaada8287f9a1491ad6aea9e6 --- /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 0000000000000000000000000000000000000000..e8fcd65cd89f0a078592712a636d30a5cc0b7fa9 --- /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 0000000000000000000000000000000000000000..647741b52250bd33f000b535a49758e046e73fde --- /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 0000000000000000000000000000000000000000..b4b3cbe24b46ebc2a5017e31b0876919ac9222eb --- /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 0000000000000000000000000000000000000000..21b735d1cf0e06d35fbb77da9b2d5807eadc1027 --- /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 0000000000000000000000000000000000000000..8c7c5c1b6cb6fb8f753f635a0e1d36faf05cae4a --- /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 0000000000000000000000000000000000000000..38dbc6541140f82e648918e5b903763403e17c16 --- /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 0000000000000000000000000000000000000000..61c7ba20618c7ec8b647bef5d0cf3a14b0bb169f --- /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 0000000000000000000000000000000000000000..778dc90068e216a50022c58c4cdf4fecd4cf7954 --- /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 0000000000000000000000000000000000000000..3d00d949fbb4512830b31a0a8e6ae15cda906260 --- /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 0000000000000000000000000000000000000000..70dcf78a85c9e93f93ea051625c4f7560cdfe7c3 --- /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 0000000000000000000000000000000000000000..90e7d4737bc352fe20c9b16d441091390e26e5f2 --- /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 0000000000000000000000000000000000000000..7e28a20ca1b0f34ea586ed5f0d2bf06b54c95a3c --- /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 0000000000000000000000000000000000000000..27778ed8d9604201cf021bf440ceb62ae5957482 --- /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 0000000000000000000000000000000000000000..8bf320675da7ee3e157833cd9fcca35e4d5ce971 --- /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 0000000000000000000000000000000000000000..b0a51467181318ab93fea73626dd3fd7b04348e3 --- /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 0000000000000000000000000000000000000000..2bce08880dbc474d4defbc2a50f2091002100a8b --- /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 0000000000000000000000000000000000000000..d2542ddee251c74db87e882c5ecee527e80d390e --- /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 0000000000000000000000000000000000000000..304ccb24a6e849052eb226a1d8647a12d3b8bbf3 --- /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 0000000000000000000000000000000000000000..e98c527fe15f810ab3af2870d9404343f722c5fb --- /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 0000000000000000000000000000000000000000..5c2e9f17407b2620400c8ca7a6fc805a400bfc93 --- /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 0000000000000000000000000000000000000000..157423b27c3c23fb1e859f4e1e7b475a164c02c9 --- /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 0000000000000000000000000000000000000000..9508ad7f67716e9bcf6af2d098222ef553303293 --- /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 0000000000000000000000000000000000000000..b65894b22c23033f309857c5056f3f0c36c4a834 --- /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 0000000000000000000000000000000000000000..55e59c11b3935383ee8562b79db2eca3950bcd27 --- /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 0000000000000000000000000000000000000000..a522bc154753ea18375c36607e990a76e77a9e20 --- /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 0000000000000000000000000000000000000000..d804867e2af89315c068e913f6f355dfaadc6e69 --- /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 0000000000000000000000000000000000000000..b9dc0c8a49c8c90a1c95858b82575bddd6388323 --- /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 0000000000000000000000000000000000000000..3b7e469596e0d7a02fb9eec0a2eaa1ff3d6400ec --- /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 0000000000000000000000000000000000000000..076ac0bd10db6e6d1772eb3acc5dff93bb492d97 --- /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 0000000000000000000000000000000000000000..58c5ddc320ab1369f244eae91190a18792d5c7a3 --- /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 0000000000000000000000000000000000000000..e1c140d27b54aa630575e658e0afde98bd0fa10b --- /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 0000000000000000000000000000000000000000..52b514e2d5d3f617a62da1838cd5981aebd217bd --- /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 0000000000000000000000000000000000000000..eedf45160d3bf0a190493d1fdf2da0434b760207 --- /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 0000000000000000000000000000000000000000..e47d5784bcd1557e64115c47913289733a9f9646 --- /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 0000000000000000000000000000000000000000..47ef9f1ee0d172b845c6ec3ce23028782c0b47af --- /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 0000000000000000000000000000000000000000..c75eca30cda6b4c3342352435d40048d228b2d60 --- /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 0000000000000000000000000000000000000000..218e34c2295022e35efc018d76e14f5bb3aac47e --- /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 0000000000000000000000000000000000000000..81ffbfb9aa709b2a8555d56c102496db03ec7412 --- /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 0000000000000000000000000000000000000000..2940c8bdbae69d9bdca62558880465f216e365f8 --- /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 0000000000000000000000000000000000000000..a020e2372ee20a887694a48d060f2bf5f1841105 --- /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 0000000000000000000000000000000000000000..e0c0cebfbc55700eaf9e1095dbfcf0e8832933e2 --- /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 0000000000000000000000000000000000000000..5e2005a01a8193c5f4a7219c7b39f5004d2ff545 --- /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 0000000000000000000000000000000000000000..abdab81570740eddd35ec71da291d7b75a17f068 --- /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 0000000000000000000000000000000000000000..4d5515c39cf60b7256edb268738a9cd02d6abfeb --- /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 0000000000000000000000000000000000000000..9c5f701918bb9659fa794b0ddede3494a7880cd7 --- /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 0000000000000000000000000000000000000000..723376acea4c8ac5f34e7785cee34ec3c24cc4ab --- /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 0000000000000000000000000000000000000000..6dcf5f00136140659e59538cc06e3dfb3027353a --- /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 0000000000000000000000000000000000000000..fbcd8f73f8ab527ee3549ddb1b64acc471da0a6f --- /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 0000000000000000000000000000000000000000..7ff719ed03cab2a93caea9cfb4b63ed85f315b3d --- /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 0000000000000000000000000000000000000000..082c59dff4f5a73f8d49a264d3e182757224eca6 --- /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 0000000000000000000000000000000000000000..e40415b24e5af716255f716e81f99d987be2b760 --- /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 0000000000000000000000000000000000000000..8099d937a4ae4f4c46f5ae39de5c20f58951b679 --- /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 0000000000000000000000000000000000000000..a6290ce3b64b210a17eef278a237fa63325cca4d --- /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 0000000000000000000000000000000000000000..afef378ce410218b2764cb91970a4bc17e7d803b --- /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 0000000000000000000000000000000000000000..910ecc7f58a7af925f609857ca4812617e2a1ab4 --- /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 0000000000000000000000000000000000000000..c0ca2d75f908721091dbf953a3ed78d874904db7 --- /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 0000000000000000000000000000000000000000..68e4812b7bfe0b77d4668ebc4829d6927f7ef890 --- /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 0000000000000000000000000000000000000000..1ecdf6a332602d1c305348befa5c4f1403ab7bb1 --- /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 0000000000000000000000000000000000000000..db4d3ba22141ed527fec569e77848a3f13659f79 --- /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 0000000000000000000000000000000000000000..78d640a3ddfb27b18458f166a12f972a347e06a6 --- /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 0000000000000000000000000000000000000000..ffc3826ebe19361724dd5aa7b07530b65c9858b9 --- /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 0000000000000000000000000000000000000000..4e61695ac491798c28643c03be531941c140cfef --- /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 0000000000000000000000000000000000000000..d2eb2ed2855ca001888feeca8d5cb46411163a36 --- /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 0000000000000000000000000000000000000000..aad3ce5eda7d7065079c6e16e64e9e1647c359ea --- /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 0000000000000000000000000000000000000000..f94862068cc92ce67e7d06fed38a039129b9b4d5 --- /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 0000000000000000000000000000000000000000..fd36d6322aed1e1cbcc6faba25d6e94f5b231fbc --- /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 0000000000000000000000000000000000000000..28fb90cb2c84ab0f790a1c7c06cbb4ad99ada584 --- /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 0000000000000000000000000000000000000000..14f32982a2f928d719e4b13dc466a70db27a51a0 --- /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 0000000000000000000000000000000000000000..555a0b821727f51cd31bb00279d0d20c4e17281b --- /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 0000000000000000000000000000000000000000..5652c71d1d93fb6469de70f5a83bc5398d841af0 --- /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 0000000000000000000000000000000000000000..301e0035526d7b7d34448d49ec1c7bf2d6884af5 --- /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 0000000000000000000000000000000000000000..ef04ef5fc87a37cef78d0e81688f541189a76437 --- /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 0000000000000000000000000000000000000000..77ec4c4f8f6802dd091614d95b1984f8c4caba2a --- /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 0000000000000000000000000000000000000000..c542645636c47b28c5e5c94c874b50728d266b91 --- /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 0000000000000000000000000000000000000000..78ed06142c749ecb00e775a63dcc242473da9ded --- /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 0000000000000000000000000000000000000000..f5ba0e6be3d8ecdf96f73b268f78f21f60ddcfb8 --- /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 0000000000000000000000000000000000000000..923b7c1a2f6e7d6f6479706e95ca045ccded0490 --- /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 0000000000000000000000000000000000000000..b8bf5f9add9942d51f3f22cec90ab806d4b1244a --- /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 0000000000000000000000000000000000000000..6d224130e509c842ad6b02cbcdddfb1ad5cc9a70 --- /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 0000000000000000000000000000000000000000..abc076f696590bf4bd1c05a609ce63ff981042f0 --- /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 0000000000000000000000000000000000000000..bdfc63a363c5f9cd1fa10294c01cc35c523f8b07 --- /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 0000000000000000000000000000000000000000..69c68f06602cefbc0203e8f18e828a6911026a29 --- /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 0000000000000000000000000000000000000000..ac8bd5d92e066b7b53f028674aaa213688c93301 --- /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 0000000000000000000000000000000000000000..be84d1f01ec32a45f5d22e3664acca9181228526 --- /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 d8e46c618aa061d25f4ecfbb8d4842a70ed88d25..ce89be7fc13ce69d2b6a4985dd3e94cf41808c6a 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 0000000000000000000000000000000000000000..2e22b99fc376364c15938595a2eda0b2658183a9 --- /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 0000000000000000000000000000000000000000..5edc93fb172f37c5c6f58ad415d14dc2f8784018 --- /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 0000000000000000000000000000000000000000..d645d34ad5b90d8be556a5e9575fe25c0552f84b --- /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 0000000000000000000000000000000000000000..1b696bfb16b4e316f6165381a7534e844121b6d6 --- /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 0000000000000000000000000000000000000000..5a908b18310741cdca3416358abac17c2c3d5c38 --- /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 0000000000000000000000000000000000000000..c33f3b984b779929b728e15e7fa5c7648dfc4975 --- /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 0000000000000000000000000000000000000000..11a58b62ba33982b4af4784c3e278eb4f41ab926 --- /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 0000000000000000000000000000000000000000..cc517e9a9ddd5ad082aa9fff07117d29601e0a8b --- /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 0000000000000000000000000000000000000000..21aa10aff54ba09c1b9849c2ae09300e35bfabb4 --- /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 0000000000000000000000000000000000000000..4b3a71832824752c428e9c723ef39e25541feb82 --- /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 0000000000000000000000000000000000000000..b888e2a574df5a4385e87c40830a2d21f1234d5a --- /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 0000000000000000000000000000000000000000..2d2ee33d22d65f2335aaecd604c930a82075967a --- /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 0000000000000000000000000000000000000000..9d225e2ad1b221a52cfb7196894efde779855201 --- /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 0000000000000000000000000000000000000000..fb26d04d5ad214d2128fcb704536d1b37d0b7d53 --- /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 0000000000000000000000000000000000000000..0aea522aa879d4673577414dfe91390776269da4 --- /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 0000000000000000000000000000000000000000..c4c8a8023bf20790df48dc0dbcf6821575d27ae9 --- /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 0000000000000000000000000000000000000000..bea10872f9fc41e2bf53abe9817a8d28c57ab7cd --- /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 0000000000000000000000000000000000000000..13c744934832c36d1ae2c984c65d211d1be44516 --- /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 0000000000000000000000000000000000000000..018c06b6ee06dd5b111e7d5bb7f240b7b728fa85 --- /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 0000000000000000000000000000000000000000..b0a22be7b50e54e8f5ca0df2fe25387b9022604a --- /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 0000000000000000000000000000000000000000..1a75727d25014a2a4ef7500ebd5cd3020cdaee9f --- /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 0000000000000000000000000000000000000000..b15e3dc026c5dd918b89b09c331293a0a5a3f0a1 --- /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 0000000000000000000000000000000000000000..ba10cc717fdc3bcd6dbd6827d2a7ccd7749d0421 --- /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 0000000000000000000000000000000000000000..a8976cca893bbb9789934ebb1b8a1030a0465b0d --- /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 0000000000000000000000000000000000000000..8ff90df1a87ff53ff5fadfdcaf5f92b543209bee --- /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 0000000000000000000000000000000000000000..d60acffebb398051015ec730300483717729c6ba --- /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 0000000000000000000000000000000000000000..9278619695e0bc6d2ac6ed0dc7caa8a14a39ede8 --- /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 0000000000000000000000000000000000000000..cf114dc193505c35923913a9dc7e9799598357a5 --- /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 0000000000000000000000000000000000000000..ba0cfea18fa18d929f2ff6cc8c3cb3c146bb747c --- /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 0000000000000000000000000000000000000000..92fa127f9f3c59d9de4f42ca689ec75e08721de1 --- /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 0000000000000000000000000000000000000000..dfef84a69b3bd1f0696764be8de4de4f2c2d9a6d --- /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 0000000000000000000000000000000000000000..82dddfe0578d856c8c11a4d3f7314beeea9af238 --- /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 0000000000000000000000000000000000000000..c26d8a1f09de391cd002d0d8aa05a1f3291f856b --- /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 0000000000000000000000000000000000000000..344db184f869abe5e0937a975f97f988f68c9798 --- /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 0000000000000000000000000000000000000000..be167cc5f46e49395ee24579c6f60be7d52a4788 --- /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 0000000000000000000000000000000000000000..a86ae8de5c045c3641150a2da5afd25c8c1f161d --- /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 0000000000000000000000000000000000000000..ee5ed3501d8dbd00ec75e5fc180be4217ebb12a8 --- /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 8d1b327ef9110756eff990f653afa2913475ceda..0000000000000000000000000000000000000000 --- 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 7f3488afb9ba7d19216b519704be37b2016df982..0000000000000000000000000000000000000000 --- 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 92e5411f50284471244c83e4b68c85ad08506527..0000000000000000000000000000000000000000 --- 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 39100c017241675a026d5b54764f659dbbf0b740..0000000000000000000000000000000000000000 --- 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 479c32e010982095a84e2d4975dc58f89eef5a4f..0000000000000000000000000000000000000000 --- 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 b07031298dd3342687cad2790e63fa3fc3286942..0000000000000000000000000000000000000000 --- 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 e9b5ae6b2cc1619160a8dd616ee6e75300679cde..0000000000000000000000000000000000000000 --- 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 cb088a827b6ba8d51a855ee1f898d1dd22e49a5e..0000000000000000000000000000000000000000 --- 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 92dc53afe1cd8b80e3f9419e68455247971b2ef7..0000000000000000000000000000000000000000 --- 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 ed78d0f8b5efc031e077f3448107eccc9bdf755b..0000000000000000000000000000000000000000 --- 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 3a05759fa33392f1b47676c56ae44d44fcf15fc3..0000000000000000000000000000000000000000 --- 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 a0ea101ee99cda307972e255679c961e32613a87..0000000000000000000000000000000000000000 --- 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 2d460dc9ac38bdf28442e4384660a4de65547683..0000000000000000000000000000000000000000 --- 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 10d9c3db84c70f05177f3bbb906ff01b86dc8e64..0000000000000000000000000000000000000000 --- 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 567c0a062556946cd121f38d4044444e93f79ab8..0000000000000000000000000000000000000000 --- 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 374e1a7ccfb667cd7fe095c95c89b51fc7ba03de..0000000000000000000000000000000000000000 --- 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 c9c45cd437ebb1ba910e670b454662f1eb9745f7..0000000000000000000000000000000000000000 --- 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 b49073b0ba2ab4c919c260cf049794aa429fc9a4..0000000000000000000000000000000000000000 --- 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 65a69a76a9ea9d2460f38385a81803ea13700059..0000000000000000000000000000000000000000 --- 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 32d8e5277d3277dd4c686b4038108a2d709909a2..0000000000000000000000000000000000000000 --- 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 34c0d5f6dcc3df65a0a7feab76507ec4309609ca..0000000000000000000000000000000000000000 --- 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 d42b5486b64f44328464a54c975d1101886fe4bf..0000000000000000000000000000000000000000 --- 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 b342ebb4ba94cfa6cb9d36773c47285faeb8bbd0..0000000000000000000000000000000000000000 --- 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 a967b60819c42431d31398be07964d6a06a2e62b..0000000000000000000000000000000000000000 --- 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 013c0962c5bce1ffa717ce92c2248727eff7ab8a..0000000000000000000000000000000000000000 --- 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 173e81a3bbda775d119fb9ea1a01524441634dd7..0000000000000000000000000000000000000000 --- 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 3434f0bc7258c6c15b054bec110b5e2ba109db64..0000000000000000000000000000000000000000 --- 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 b49d4ebd3620871fbdc6bf031cbefe3e45bc8dd8..0000000000000000000000000000000000000000 --- 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 4870c2b9c0fb0fece6801bc88ba9e07e8a700c84..0000000000000000000000000000000000000000 --- 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 260925829872aae4b6f2b3b25bca98495b7b9f71..0000000000000000000000000000000000000000 --- 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 2e8338f7ba92963526ab3ce8548a42dada6a7dc4..0000000000000000000000000000000000000000 --- 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 a34de30b51fe81198134030a73e7c6ff45774f02..0000000000000000000000000000000000000000 --- 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 29f9d8bd06bff04682b3ea1a8412c2166a47c429..0000000000000000000000000000000000000000 --- 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 71fcf0348c8209568ad468bfc6be9ee6fc63224d..0000000000000000000000000000000000000000 --- 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 0fb0e8c12f9f14a049d1ca4fc7767914e9657a47..0000000000000000000000000000000000000000 --- 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 075b00e384864e224156c33a5024bbdc8e799c0d..0000000000000000000000000000000000000000 --- 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 583b6515c3653f4f6b624ef069c7bb7f79b0f52c..0000000000000000000000000000000000000000 --- 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 0eb0db03730ac981c676fe76998370d2f724658c..0000000000000000000000000000000000000000 --- 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 0174a640423fa9a8b80bef28d5d4ca1668ac93b6..0000000000000000000000000000000000000000 --- 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 8df97cc3efbc7d6e4c5900e284a990f6a2f64cb9..0000000000000000000000000000000000000000 --- 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 97549c30c670f3f53796b913e60f5a0cd7f1496f..0000000000000000000000000000000000000000 --- 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 9666d1354431dfd65d7cc8f1ab45720518fd9de0..0000000000000000000000000000000000000000 --- 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 279d0f5bd1a3e8c56456b8cf550c5a9f2dea3f2c..b3c282d0f9b2affe2de61aa6a922bd1e2e88308d 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 0000000000000000000000000000000000000000..1392888bc0e44213c4bde4a0a2cf13523fbfae2e --- /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