pax_global_header 0000666 0000000 0000000 00000000064 13365333425 0014521 g ustar 00root root 0000000 0000000 52 comment=01df7d60d68945afb7e03566fd1d486c83af335f
ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/ 0000775 0000000 0000000 00000000000 13365333425 0023766 5 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/ 0000775 0000000 0000000 00000000000 13365333425 0027150 5 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs/ 0000775 0000000 0000000 00000000000 13365333425 0030507 5 ustar 00root root 0000000 0000000 client_add.html 0000664 0000000 0000000 00000014500 13365333425 0033404 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
client_change_password.html 0000664 0000000 0000000 00000002367 13365333425 0036033 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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
client_delete.html 0000664 0000000 0000000 00000001772 13365333425 0034125 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
client_delete_everything.html 0000664 0000000 0000000 00000002163 13365333425 0036364 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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 "
client_get.html 0000664 0000000 0000000 00000002031 13365333425 0033427 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
client_get_by_username.html 0000664 0000000 0000000 00000002302 13365333425 0036021 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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 ."'"
client_get_id.html 0000664 0000000 0000000 00000002063 13365333425 0034110 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
client_get_sites_by_user.html 0000664 0000000 0000000 00000002735 13365333425 0036401 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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'"
client_templates_get_all.html 0000664 0000000 0000000 00000002105 13365333425 0036337 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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"
client_update.html 0000664 0000000 0000000 00000014507 13365333425 0034145 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
content.html 0000664 0000000 0000000 00000002012 13365333425 0032763 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
Home
ISPConfig 3 remote API documentation.
definitionen.css 0000664 0000000 0000000 00000001562 13365333425 0033621 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs .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;
}
dns_a_add.html 0000664 0000000 0000000 00000003715 13365333425 0033220 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_a_delete.html 0000664 0000000 0000000 00000002023 13365333425 0033721 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_a_get.html 0000664 0000000 0000000 00000002103 13365333425 0033235 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_a_update.html 0000664 0000000 0000000 00000003724 13365333425 0033752 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_aaaa_add.html 0000664 0000000 0000000 00000003734 13365333425 0033664 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_aaaa_delete.html 0000664 0000000 0000000 00000002026 13365333425 0034367 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_aaaa_get.html 0000664 0000000 0000000 00000002106 13365333425 0033703 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_aaaa_update.html 0000664 0000000 0000000 00000003746 13365333425 0034421 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_alias_add.html 0000664 0000000 0000000 00000003744 13365333425 0034073 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_alias_delete.html 0000664 0000000 0000000 00000002030 13365333425 0034570 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_alias_get.html 0000664 0000000 0000000 00000002120 13365333425 0034105 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_alias_update.html 0000664 0000000 0000000 00000003755 13365333425 0034627 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_cname_add.html 0000664 0000000 0000000 00000003747 13365333425 0034070 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_cname_delete.html 0000664 0000000 0000000 00000002030 13365333425 0034562 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_cname_get.html 0000664 0000000 0000000 00000002111 13365333425 0034077 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_cname_update.html 0000664 0000000 0000000 00000003760 13365333425 0034615 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_hinfo_add.html 0000664 0000000 0000000 00000003743 13365333425 0034104 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_hinfo_delete.html 0000664 0000000 0000000 00000002030 13365333425 0034602 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_hinfo_get.html 0000664 0000000 0000000 00000002111 13365333425 0034117 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_hinfo_update.html 0000664 0000000 0000000 00000003754 13365333425 0034640 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_mx_add.html 0000664 0000000 0000000 00000003730 13365333425 0033421 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_mx_delete.html 0000664 0000000 0000000 00000002022 13365333425 0034124 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_mx_get.html 0000664 0000000 0000000 00000002100 13365333425 0033436 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_mx_update.html 0000664 0000000 0000000 00000003744 13365333425 0034160 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_ns_add.html 0000664 0000000 0000000 00000003742 13365333425 0033420 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_ns_delete.html 0000664 0000000 0000000 00000002022 13365333425 0034120 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_ns_get.html 0000664 0000000 0000000 00000002100 13365333425 0033432 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_ns_update.html 0000664 0000000 0000000 00000003753 13365333425 0034154 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_ptr_add.html 0000664 0000000 0000000 00000003740 13365333425 0033603 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_ptr_delete.html 0000664 0000000 0000000 00000002024 13365333425 0034307 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_ptr_get.html 0000664 0000000 0000000 00000002103 13365333425 0033622 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_ptr_update.html 0000664 0000000 0000000 00000003753 13365333425 0034341 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_rp_add.html 0000664 0000000 0000000 00000003734 13365333425 0033422 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_rp_delete.html 0000664 0000000 0000000 00000002022 13365333425 0034121 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_rp_get.html 0000664 0000000 0000000 00000002100 13365333425 0033433 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_rp_update.html 0000664 0000000 0000000 00000003750 13365333425 0034152 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_rr_get_all_by_zone.html 0000664 0000000 0000000 00000002271 13365333425 0036023 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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 )
dns_srv_add.html 0000664 0000000 0000000 00000003734 13365333425 0033613 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_srv_delete.html 0000664 0000000 0000000 00000002024 13365333425 0034314 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_srv_get.html 0000664 0000000 0000000 00000002103 13365333425 0033627 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_srv_update.html 0000664 0000000 0000000 00000003747 13365333425 0034351 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_txt_add.html 0000664 0000000 0000000 00000003730 13365333425 0033614 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_txt_delete.html 0000664 0000000 0000000 00000002024 13365333425 0034321 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_txt_get.html 0000664 0000000 0000000 00000002103 13365333425 0033634 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_txt_update.html 0000664 0000000 0000000 00000003743 13365333425 0034352 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_zone_add.html 0000664 0000000 0000000 00000004300 13365333425 0033742 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_zone_delete.html 0000664 0000000 0000000 00000002000 13365333425 0034447 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_zone_get.html 0000664 0000000 0000000 00000002041 13365333425 0033771 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
dns_zone_get_by_user.html 0000664 0000000 0000000 00000002571 13365333425 0035531 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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 "
dns_zone_set_status.html 0000664 0000000 0000000 00000002572 13365333425 0035421 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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 )
dns_zone_update.html 0000664 0000000 0000000 00000004322 13365333425 0034500 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
domains_domain_add.html 0000664 0000000 0000000 00000002202 13365333425 0035103 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
domains_domain_delete.html 0000664 0000000 0000000 00000002004 13365333425 0035615 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
domains_domain_get.html 0000664 0000000 0000000 00000002043 13365333425 0035135 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
domains_get_all_by_user.html 0000664 0000000 0000000 00000002332 13365333425 0036167 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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 "
get_function_list.html 0000664 0000000 0000000 00000001736 13365333425 0035044 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
index.html 0000664 0000000 0000000 00000001753 13365333425 0032433 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISCPConfig 3 API Functions
login.html 0000664 0000000 0000000 00000002276 13365333425 0032435 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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 ')"
logout.html 0000664 0000000 0000000 00000002047 13365333425 0032632 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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 '"
mail_alias_add.html 0000664 0000000 0000000 00000003037 13365333425 0034224 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_alias_delete.html 0000664 0000000 0000000 00000002004 13365333425 0034727 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_alias_get.html 0000664 0000000 0000000 00000002047 13365333425 0034253 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_alias_update.html 0000664 0000000 0000000 00000003044 13365333425 0034754 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_blacklist_add.html 0000664 0000000 0000000 00000003057 13365333425 0035105 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_blacklist_delete.html 0000664 0000000 0000000 00000002022 13365333425 0035606 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_blacklist_get.html 0000664 0000000 0000000 00000002077 13365333425 0035135 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_blacklist_update.html 0000664 0000000 0000000 00000003024 13365333425 0035631 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_catchall_add.html 0000664 0000000 0000000 00000003053 13365333425 0034704 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_catchall_delete.html 0000664 0000000 0000000 00000002012 13365333425 0035410 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_catchall_get.html 0000664 0000000 0000000 00000002060 13365333425 0034730 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_catchall_update.html 0000664 0000000 0000000 00000003055 13365333425 0035440 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_domain_add.html 0000664 0000000 0000000 00000002464 13365333425 0034405 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_domain_delete.html 0000664 0000000 0000000 00000002006 13365333425 0035107 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_domain_get.html 0000664 0000000 0000000 00000002053 13365333425 0034426 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_domain_get_by_domain.html 0000664 0000000 0000000 00000002267 13365333425 0036456 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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 '"
mail_domain_set_status.html 0000664 0000000 0000000 00000002617 13365333425 0036053 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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 )
mail_domain_update.html 0000664 0000000 0000000 00000002503 13365333425 0035131 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_fetchmail_add.html 0000664 0000000 0000000 00000003541 13365333425 0035067 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_fetchmail_delete.html 0000664 0000000 0000000 00000002007 13365333425 0035575 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_fetchmail_get.html 0000664 0000000 0000000 00000002051 13365333425 0035111 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_fetchmail_update.html 0000664 0000000 0000000 00000003521 13365333425 0035617 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_forward_add.html 0000664 0000000 0000000 00000003055 13365333425 0034577 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_forward_delete.html 0000664 0000000 0000000 00000002013 13365333425 0035302 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_forward_get.html 0000664 0000000 0000000 00000002063 13365333425 0034624 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_forward_update.html 0000664 0000000 0000000 00000003055 13365333425 0035331 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_mailinglist_add.html 0000664 0000000 0000000 00000002747 13365333425 0035456 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_mailinglist_delete.html 0000664 0000000 0000000 00000002013 13365333425 0036152 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_mailinglist_get.html 0000664 0000000 0000000 00000002057 13365333425 0035477 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_mailinglist_update.html 0000664 0000000 0000000 00000002766 13365333425 0036211 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_policy_add.html 0000664 0000000 0000000 00000011020 13365333425 0034421 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_policy_delete.html 0000664 0000000 0000000 00000002006 13365333425 0035137 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_policy_get.html 0000664 0000000 0000000 00000002052 13365333425 0034455 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_policy_update.html 0000664 0000000 0000000 00000011024 13365333425 0035157 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_spamfilter_blacklist_add.html 0000664 0000000 0000000 00000003173 13365333425 0037332 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_spamfilter_blacklist_delete.html 0000664 0000000 0000000 00000002053 13365333425 0040040 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_spamfilter_blacklist_get.html 0000664 0000000 0000000 00000002136 13365333425 0037357 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_spamfilter_blacklist_update.html 0000664 0000000 0000000 00000003160 13365333425 0040060 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_spamfilter_user_add.html 0000664 0000000 0000000 00000003111 13365333425 0036330 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_spamfilter_user_delete.html 0000664 0000000 0000000 00000002033 13365333425 0037044 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_spamfilter_user_get.html 0000664 0000000 0000000 00000002103 13365333425 0036357 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_spamfilter_user_update.html 0000664 0000000 0000000 00000003111 13365333425 0037062 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_spamfilter_whitelist_add.html 0000664 0000000 0000000 00000003173 13365333425 0037376 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_spamfilter_whitelist_delete.html 0000664 0000000 0000000 00000002053 13365333425 0040104 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_spamfilter_whitelist_get.html 0000664 0000000 0000000 00000002136 13365333425 0037423 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_spamfilter_whitelist_update.html 0000664 0000000 0000000 00000003152 13365333425 0040125 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_transport_add.html 0000664 0000000 0000000 00000002753 13365333425 0035173 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_transport_delete.html 0000664 0000000 0000000 00000002014 13365333425 0035673 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_transport_get.html 0000664 0000000 0000000 00000002063 13365333425 0035214 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_transport_update.html 0000664 0000000 0000000 00000002754 13365333425 0035726 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_user_add.html 0000664 0000000 0000000 00000006043 13365333425 0034111 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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) )
login (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.
mail_user_backup.html 0000664 0000000 0000000 00000002073 13365333425 0034625 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISCPConfig 3 API Functions
mail_user_backup($session_id , $primary_id , $action_type );
Description:
Adds a new backup / restore task. Please note: $action_type must be backup_restore_mail
Input Variables:
$session_id , $primary_id , $action_type
Output:
Returns TRUE if successfull or FALSE if failure.
mail_user_backup_list.html 0000664 0000000 0000000 00000001724 13365333425 0035662 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISCPConfig 3 API Functions
mail_user_backup_list($session_id , $primary_id );
Description:
Gets list of all available mail backups. If no $primary_id (mail-domain-id) is given, all mail backups available on this server are read.
Input Variables:
$session_id , $primary_id (mail-domain-id)
Output:
Returns array of all available backups.
mail_user_delete.html 0000664 0000000 0000000 00000002020 13365333425 0034612 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_user_filter_add.html 0000664 0000000 0000000 00000003364 13365333425 0035461 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_user_filter_delete.html 0000664 0000000 0000000 00000002020 13365333425 0036157 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_user_filter_get.html 0000664 0000000 0000000 00000002071 13365333425 0035502 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_user_filter_update.html 0000664 0000000 0000000 00000003363 13365333425 0036212 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_user_get.html 0000664 0000000 0000000 00000002045 13365333425 0034136 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_user_update.html 0000664 0000000 0000000 00000006125 13365333425 0034644 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_whitelist_add.html 0000664 0000000 0000000 00000003053 13365333425 0035145 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_whitelist_delete.html 0000664 0000000 0000000 00000002022 13365333425 0035652 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_whitelist_get.html 0000664 0000000 0000000 00000002077 13365333425 0035201 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
mail_whitelist_update.html 0000664 0000000 0000000 00000003020 13365333425 0035671 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
navigation.html 0000664 0000000 0000000 00000042020 13365333425 0033453 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
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_user_backup_list
mail_user_backup
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_php_versions
server_get_serverid_by_ip
sites_aps_available_packages_list
sites_aps_get_package_details
sites_aps_get_package_file
sites_aps_get_package_settings
sites_aps_install_package
sites_aps_instance_get
sites_aps_instance_delete
sites_aps_instance_settings_get
sites_aps_update_package_list
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_database_user_add
sites_database_user_delete
sites_database_user_get
sites_database_user_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_domain_backup_list
sites_web_domain_backup
sites_web_subdomain_add
sites_web_subdomain_delete
sites_web_subdomain_get
sites_web_subdomain_update
openvz_get_free_ip.html 0000664 0000000 0000000 00000002600 13365333425 0035165 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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"
openvz_ip_add.html 0000664 0000000 0000000 00000002576 13365333425 0034151 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
openvz_ip_delete.html 0000664 0000000 0000000 00000001771 13365333425 0034657 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
openvz_ip_get.html 0000664 0000000 0000000 00000002024 13365333425 0034164 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
openvz_ip_update.html 0000664 0000000 0000000 00000002606 13365333425 0034675 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
openvz_ostemplate_add.html 0000664 0000000 0000000 00000003130 13365333425 0035701 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
openvz_ostemplate_delete.html 0000664 0000000 0000000 00000002032 13365333425 0036413 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
openvz_ostemplate_get.html 0000664 0000000 0000000 00000002076 13365333425 0035740 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
openvz_ostemplate_update.html 0000664 0000000 0000000 00000003147 13365333425 0036443 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
openvz_template_add.html 0000664 0000000 0000000 00000010505 13365333425 0035343 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
openvz_template_delete.html 0000664 0000000 0000000 00000002021 13365333425 0036047 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
openvz_template_get.html 0000664 0000000 0000000 00000002062 13365333425 0035371 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
openvz_template_update.html 0000664 0000000 0000000 00000010523 13365333425 0036075 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
openvz_vm_add.html 0000664 0000000 0000000 00000006053 13365333425 0034155 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
openvz_vm_add_from_template.html 0000664 0000000 0000000 00000002722 13365333425 0037072 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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 "
openvz_vm_delete.html 0000664 0000000 0000000 00000001771 13365333425 0034671 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
openvz_vm_get.html 0000664 0000000 0000000 00000002024 13365333425 0034176 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
openvz_vm_get_by_client.html 0000664 0000000 0000000 00000002275 13365333425 0036236 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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'] )
openvz_vm_update.html 0000664 0000000 0000000 00000006063 13365333425 0034710 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
server_get.html 0000664 0000000 0000000 00000002051 13365333425 0033461 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
server_get_php_versions.html 0000664 0000000 0000000 00000001612 13365333425 0036262 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
server_get_php_versions($session_id , $server_id , $php );
Description:
Returns the available PHP versions of the given server.
Input Variables:
$session_id , $server_id , $php
Output:
Returns an array with the available PHP versions.
server_get_serverid_by_ip.html 0000664 0000000 0000000 00000002315 13365333425 0036551 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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 "
sites_aps_available_packages_list.html 0000664 0000000 0000000 00000002267 13365333425 0040210 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
sites_aps_available_packages_list($session_id , $params );
Description:
Reads all available packages with state PACKAGE_ENABLED. If set param all_packages to true, also includes PACKAGE_LOCKED.
Input Variables:
$session_id , $params
Parameters (in $params ):
all_packages (boolean )
Output:
Returns array with all selected package records.
sites_aps_get_package_details.html 0000664 0000000 0000000 00000002070 13365333425 0037326 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
sites_aps_get_package_details($session_id , $primary_id );
Description:
Gets all possible details for selected package.
Input Variables:
$session_id , $primary_id
Parameters (in $params ):
None
Output:
Returns array with all details of selected package.
sites_aps_get_package_file.html 0000664 0000000 0000000 00000002702 13365333425 0036622 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
sites_aps_get_package_file($session_id , $primary_id , $filename );
Description:
Gets the file with given name (like screenshots or icon) of the selected package. Use sites_aps_get_package_details to get all available files of this package.
Input Variables:
$session_id , $primary_id , $filename
Parameters (in $params ):
None
Output:
Returns base64_encoded file content of selected file. Use the followoing example code to save file content over remote api:file_put_contents($file, base64_decode(sites_aps_get_package_file($session_id, $primary_id, $filename)));
sites_aps_get_package_settings.html 0000664 0000000 0000000 00000002073 13365333425 0037544 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
sites_aps_get_package_settings($session_id , $primary_id );
Description:
Gets all possible settings for selected package.
Input Variables:
$session_id , $primary_id
Parameters (in $params ):
None
Output:
Returns array with all settings of selected package.
sites_aps_install_package.html 0000664 0000000 0000000 00000002303 13365333425 0036507 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
sites_aps_install_package($session_id , $primary_id , $params );
Description:
Starts installation of the selected package in given main_domains webfolder.
Input Variables:
$session_id , $primary_id , $params
Parameters (in $params ):
main_domain (varchar(255) )
Output:
Returns new instance id or false.
sites_aps_instance_delete.html 0000664 0000000 0000000 00000002346 13365333425 0036523 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
sites_aps_instance_delete($session_id , $primary_id , $params );
Description:
Starts deletion of the selected APS instance. If param keep_database is set true, database will not be deleted.
Input Variables:
$session_id , $primary_id , $params
Parameters (in $params ):
keep_database (boolean )
Output:
Returns true if deletion is started.
sites_aps_instance_get.html 0000664 0000000 0000000 00000002017 13365333425 0036033 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
sites_aps_instance_get($session_id , $primary_id );
Description:
Gets record of given instance id.
Input Variables:
$session_id , $primary_id
Parameters (in $params ):
None
Output:
Returns record of APS instance.
sites_aps_instance_settings_get.html 0000664 0000000 0000000 00000002053 13365333425 0037753 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
sites_aps_instance_settings_get($session_id , $primary_id );
Description:
Gets record of given instance ids settings.
Input Variables:
$session_id , $primary_id
Parameters (in $params ):
None
Output:
Returns record of APS instance settings.
sites_aps_update_package_list.html 0000664 0000000 0000000 00000001753 13365333425 0037366 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
sites_aps_update_package_list($session_id );
Description:
Update available package list. Starts the ApsCrawler in server mode. May take a while.
Input Variables:
$session_id
Parameters (in $params ):
None
Output:
always true
sites_cron_add.html 0000664 0000000 0000000 00000003644 13365333425 0034305 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
sites_cron_delete.html 0000664 0000000 0000000 00000001773 13365333425 0035020 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
sites_cron_get.html 0000664 0000000 0000000 00000002033 13365333425 0034323 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
sites_cron_update.html 0000664 0000000 0000000 00000003646 13365333425 0035041 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
sites_database_add.html 0000664 0000000 0000000 00000004276 13365333425 0035112 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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) )
website_id (int(11) )
type (varchar(16) )
database_name (varchar(64) )
database_user_id (int(11) )
database_ro_user_id (int(11) )
database_password (varchar(64) )
database_charset (varchar(64) )
remote_access (enum('n','y') )
remote_ips (text )
backup_interval (varchar(255) )
backup_copies (int(11) )
active (enum('n','y') )
Output:
Returns the ID of the newly added database.
sites_database_delete.html 0000664 0000000 0000000 00000002006 13365333425 0035611 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
sites_database_get.html 0000664 0000000 0000000 00000002047 13365333425 0035133 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
sites_database_get_all_by_user.html 0000664 0000000 0000000 00000002446 13365333425 0037516 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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 "
sites_database_update.html 0000664 0000000 0000000 00000003547 13365333425 0035644 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
sites_database_user_add.html 0000664 0000000 0000000 00000002512 13365333425 0036137 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
sites_database_user_add($session_id , $client_id , $params );
Description:
Adds a new database user.
Input Variables:
$session_id , $client_id , $params
Parameters (in $params ):
server_id (int(11) )
database_user (varchar(64) )
database_password (varchar(64) )
Output:
Returns the ID of the newly added database.
sites_database_user_delete.html 0000664 0000000 0000000 00000002020 13365333425 0036643 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
sites_database_user_delete($session_id , $primary_id );
Description:
Deletes a database user.
Input Variables:
$session_id , $primary_id
Parameters (in $params ):
None
Output:
Returns the number of deleted records.
sites_database_user_get.html 0000664 0000000 0000000 00000002054 13365333425 0036167 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
sites_database_user_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.
sites_database_user_update.html 0000664 0000000 0000000 00000002527 13365333425 0036677 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
sites_database_user_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) )
database_name (varchar(64) )
database_password (varchar(64) )
Output:
Returns the number of affected rows.
sites_ftp_user_add.html 0000664 0000000 0000000 00000004336 13365333425 0035172 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
sites_ftp_user_delete.html 0000664 0000000 0000000 00000002007 13365333425 0035675 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
sites_ftp_user_get.html 0000664 0000000 0000000 00000002050 13365333425 0035210 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
sites_ftp_user_update.html 0000664 0000000 0000000 00000004350 13365333425 0035720 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
sites_shell_user_add.html 0000664 0000000 0000000 00000003742 13365333425 0035510 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
sites_shell_user_delete.html 0000664 0000000 0000000 00000002012 13365333425 0036207 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
sites_shell_user_get.html 0000664 0000000 0000000 00000002055 13365333425 0035533 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
sites_shell_user_update.html 0000664 0000000 0000000 00000003747 13365333425 0036247 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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.
sites_web_aliasdomain_add.html 0000664 0000000 0000000 00000011525 13365333425 0036457 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
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.
sites_web_aliasdomain_delete.html 0000664 0000000 0000000 00000002012 13365333425 0037160 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
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.
sites_web_aliasdomain_get.html 0000664 0000000 0000000 00000002062 13365333425 0036502 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
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.
sites_web_aliasdomain_update.html 0000664 0000000 0000000 00000011576 13365333425 0037217 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
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_key (mediumtext )
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.
sites_web_domain_add.html 0000664 0000000 0000000 00000012041 13365333425 0035437 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
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_key (mediumtext )
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') )
http_port (int(11) )
https_port (int(11) )
Output:
Returns the ID of the newly added web domain.
sites_web_domain_backup.html 0000664 0000000 0000000 00000002047 13365333425 0036161 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISCPConfig 3 API Functions
sites_web_domain_backup($session_id , $primary_id , $action_type );
Description:
Adds a new backup / restore task. Please note: $action_type is either backup_download or backup_restore
Input Variables:
$session_id , $primary_id , $action_type
Output:
Returns TRUE if successfull or FALSE if failure.
sites_web_domain_backup_list.html 0000664 0000000 0000000 00000001643 13365333425 0037215 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISCPConfig 3 API Functions
sites_web_domain_backup_list($session_id , $site_id );
Description:
Gets list of all available backups. If no $site_id given, all backups available on this server are read.
Input Variables:
$session_id , $site_id
Output:
Returns array of all available backups.
sites_web_domain_delete.html 0000664 0000000 0000000 00000002000 13365333425 0036143 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
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.
sites_web_domain_get.html 0000664 0000000 0000000 00000002043 13365333425 0035467 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
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.
sites_web_domain_set_status.html 0000664 0000000 0000000 00000002611 13365333425 0037107 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
ISPCOnfig 3 remote API documentation
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 )
sites_web_domain_update.html 0000664 0000000 0000000 00000011374 13365333425 0036201 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
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.
sites_web_subdomain_add.html 0000664 0000000 0000000 00000011523 13365333425 0036155 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
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.
sites_web_subdomain_delete.html 0000664 0000000 0000000 00000002006 13365333425 0036663 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
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.
sites_web_subdomain_get.html 0000664 0000000 0000000 00000002054 13365333425 0036203 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
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.
sites_web_subdomain_update.html 0000664 0000000 0000000 00000011451 13365333425 0036707 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/API-docs
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.
ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/cli/ 0000775 0000000 0000000 00000000000 13365333425 0027717 5 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/cli/README.md 0000664 0000000 0000000 00000005540 13365333425 0031202 0 ustar 00root root 0000000 0000000 # ISPConfig CLI
Command line for ISPConfig remote user REST API using either smart functions or raw methods.
## Getting Started
This tool can be used and packaged stand alone, without requiring ISPConfig to be installed locally. It is designed to have as few dependencies as possible.
The script has two main modes: smart functions and raw methods.
Raw methods simply wrap your JSON and use the arbitrary method name you've given when calling the API. As such, it works with any method, and makes properly formatted requests with curl. It is a handy tool for custom requests, testing, advanced scripting and integration work. The actual data is provided through a file, stdin or as an argument.
Functions, on the other hand, are combinations of methods and checks that act more like an intelligent tool and does not require the user to understand JSON. The functions are designed based on their method equivalent, but requiring only a single command and automating the rest (login, get ID's, check existing records etc.). This is handy for manual interaction or for scripting. Unlike methods, functions are limited to those methods implemented in the script itself. Functions are named as their method counterparts. The exception are ```login``` and ```logout``` in order to avoid collisions with system commands. They are called log_in and log_out, respectively.
Functions can also be processed as a batch from file or stdin, optimizing performance by using a single session and single bash instance.
> **Note:**
Consider using ```-q``` for scripting, this will suppress everything but results and errors on the output.
### Example smart function usage:
ispconfig-cli -f "dns_a_add example.com. www 192.168.0.2"
DNS zone example.com. has id 1.
DNS A www exists with id 228, updating...
Updated records: 1
### Example raw method usage:
ispconfig-cli -m login -j credentials.json
{"code":"ok","message":"","response":"dc39619b0ac9694cb85e93d8b3ac8258"}
> **Note:**
The whole function has to be quoted as one due to how bash manages the command line arguments.
### Config file
The script uses an optional config file, allowing commands as short as in the examples above.
## Dependencies
- ```jq``` for working with JSON
- ```curl``` for talking to the endpoint
On debian-based distributions such as ubuntu, you can ensure these are installed by running
sudo apt install jq curl
## Installing
1. Place this script in your path. For example, placing it in your ```~/bin``` folder (and logging out and back in if you just created the folder) works on many distributions.
2. Make it executable by running ```chmod 755 ispconfig-cli```.
3. Optionally create a config file in ```/etc/ispconfig-cli.conf``` or ```~/.ispconfig-cli```.
## Details on usage
Run the script without arguments or with ```-h``` for the full list of functionality and config file creation instructions.
ispconfig-cli 0000775 0000000 0000000 00000032223 13365333425 0032316 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/cli #!/bin/bash
# Command line for ISPConfig remote user REST API using either smart functions or raw methods.
# Author: Johan Ehnberg, johan@molnix.com
set -e
### Variables
VERSION=2018-04-24
PROGNAME=$(basename $0)
DATESTAMP=`date +%s`
### Common commands
# usage
usage() {
echo "Command line for ISPConfig remote user REST API using either smart functions or raw methods."
echo
echo "Usage: $PROGNAME -h/-f /-m [options] ..."
echo
echo "Common options:"
echo
echo " -a "
echo " Config file. Options are read in the following order: system configuration, user configuration, the file specified in this option, other command line options. The last occurrence overrides previous ones."
echo
echo " -e "
echo " API endpoint url such as https://myserver.example.com:8080/remote/json.php ."
echo
echo " -h"
echo " Show this help text."
echo
echo " -i "
echo " Server id (defaults to 1)."
echo
echo " -k"
echo " Do not validate server certificate (for self-signed certificates)."
echo
echo " -q"
echo " Quiet, only outputs results."
echo
echo " -v"
echo " Verbose, outputs all info where available."
echo
echo "Functions combine several methods to carry out common tasks. Function options:"
echo
echo " -b "
echo " Batch file for processing of functions, one per row. Cannot be used with -m, -f or -t."
echo
echo " -c "
echo " Username of the client whose records are to be accessed, see Client->Clients and Client->Resellers."
echo
echo " -f \"\""
echo " Function to perform. Note the qoutes around the full function command. Cannot be used with -m, -b or -t."
echo
echo " -p "
echo " Password of the remote user as specified in System->Remote Users."
echo
echo " -t"
echo " Read batch for processing of functions from stdin, one per row. Cannot be used with -m, -b or -f."
echo
echo " -u "
echo " Username of the remote user as specified in System->Remote Users."
echo
echo " Available functions:"
echo
echo " clients List all clients"
echo " dns_as List all A records for a zone"
echo " dns_a_add Add or update a DNS A record"
echo " dns_a_delete Delete a DNS A record"
echo " dns_cnames List all CNAME records for a zone"
echo " dns_rr List all records for a zone"
echo " dns_zones List all zones"
echo " methods List available methods"
echo " log_in Create a session (not needed by default)"
echo " log_out Log out a session (not needed by default)"
echo " servers List all servers"
echo
echo "Using a method wraps the JSON data to the API call and returns a JSON response. Method options:"
echo
echo " -d "
echo " Read JSON data from command line. Use escapes and quotes! Cannot be used with -j or -s."
echo
echo " -j "
echo " Read JSON data from file. Cannot be used with -d or -s."
echo
echo " -m "
echo " Raw method to use such as dns_a_add. Cannot be used with -f. Requires one of -d, -j or -s."
echo
echo " -s"
echo " Read JSON data from stdin. Cannot be used with -d or -j."
echo
echo "For details on methods, see:"
echo "https://git.ispconfig.org/ispconfig/ispconfig3/tree/master/remoting_client/API-docs"
echo
echo "Config files are bash files that can contain the following variables:"
echo
echo "remote_user=myuser # see -u"
echo "remote_password=mypassword # see -p"
echo "remote_url=https://myserver.example.com:8080/remote/json.php # see -e"
echo "client_user=myclient # see -c"
echo "server_id=1 # see -i"
echo "ssl_validate=off # see -k"
echo
echo "Example uses:"
echo " 1. Log in using the method and escaped JSON on the command line, without config file"
echo ' ispconfig-cli -m login -d "{\"username\": \"myuser\",\"password\": \"mypassword\"}" -e https://myserver.example.com:8080/remote/json.php'
echo
echo " 2. Log in using the function, without config file"
echo " ispconfig-cli -f \"log_in\" -u myuser -p mypassword -e https://myserver.example.com:8080/remote/json.php -c myclient"
echo
echo " 3. Update a DNS A record or update if it already exists, with complete config file"
echo " ispconfig-cli -f \"dns_a_add example.com. johnscomputer 192.168.0.99\""
echo
}
# message verbosity message
message() {
if [ $1 -le $VERBOSITY ]; then
MESSAGE="${MESSAGE}${2}"
fi
}
# restCall method data
restCall() {
curl $CURLK -sS -X POST -H "Content-Type: application/json" -H "Cache-Control: no-cache" -d "${2}" "${remote_url}?${1}"
}
# method method
method() {
restCall $1 "$JSONDATA"
}
### Smart functions
# List all clients
# clients
clients() {
clientsGet | jq .response
}
# List all A records for a zone
# dns_as zone
dns_as() {
dns_rr $1 | jq -r ".[] | select(.type == \"A\") | .name"
}
# Add or update an A record
# dns_a_add zone name ip
dns_a_add() {
dns_zone_id $1
dns_a_id $1 $2
if [[ $dns_a_id =~ ^-?[0-9]+$ ]]; then
message 2 "DNS A $2 exists with id $dns_a_id, updating rows: "
message 1 "`dnsUpdateAByIdAndIp $dns_a_id $3 | jq -r .response`\n"
elif [[ $dns_a_id == "" ]]; then
message 2 "DNS A $2 does not exist, created ID: "
message 1 "`dnsAddAByZoneAndNameAndIp $dns_zone_id $2 $3 | jq -r .response`\n"
fi
}
# Delete an A record if it exists
# dns_a_delete zone name
dns_a_delete() {
dns_zone_id $1
dns_a_id $1 $2
if [[ $dns_a_id =~ ^-?[0-9]+$ ]]; then
message 2 "DNS A $2 has id $dns_a_id, deleted rows: "
message 1 "`dnsDeleteAById $dns_a_id | jq -r .response`\n"
else
message 2 "DNS A $2 does not exist, skipping.\n"
fi
}
# List all CNAME records for a zone
# dns_cnames zone
dns_cnames() {
dns_rr $1 | jq -r ".[] | select(.type == \"CNAME\") | .name"
}
# List all records for a zone
# dns_rr zone
dns_rr() {
dns_zone_id $1
dnsGetRrByZone $dns_zone_id | jq .response
}
# List all zones
# dns_zones
dns_zones() {
dnsGetZones | jq .response
}
# List all available methods
# methods
methods() {
methods=`functionsGet | jq .response`
if [[ $methods == "false" ]]; then
message 1 "Getting methods (Server functions) failed, check permissions?\n"
else
echo $methods | jq
fi
}
# List all servers
# server
servers() {
serversGet | jq .response
}
# Log in
# log_in remote_user remote_password
log_in() {
log_in=`logInByUserAndPassword $1 $2 | jq -r '.response'`
if [[ $log_in == "false" ]]; then
message 1 "Login failed!\n"
else
message 3 "Logged in session_id $log_in as $1.\n"
echo "$log_in"
fi
}
# Log out
# log_out session
log_out() {
if [[ `logOutBySession $1 | jq -r .response` == "true" ]]; then
message 3 "Logged out session $1 successfully.\n"
else
message 1 "Logging out failed!\n"
fi
}
### ID helpers
# Due to bash limitations, id's should only be set in _id functions below.
# This is due to nested subshells losing the variables.
# As such, some helpers may be called several times redundantly when both
# a child and parent function are also to be available on the CLI.
# Get client id
# client_id client_user
client_id() {
client_id=`clients | jq -r ".[] | select(.username == \"${1}\") | .client_id"`
message 3 "Client $1 has id $client_id.\n"
}
# Get dns A id
# dns_a_id zone name
dns_a_id() {
dns_a_id=`dns_rr $1 | jq -r ".[] | select(.name == \"${2}\") | .id"`
message 3 "DNS A $2 has id $dns_a_id.\n"
}
# Get zone id
# dns_zone_id zone
dns_zone_id() {
dns_zone_id=`dns_zones | jq -r ".[] | select(.origin == \"${1}\") | .id"`
message 3 "DNS zone $1 has id $dns_zone_id.\n"
}
### Methods
# Get clients
clientsGet() {
restCall client_get "{\"session_id\": \"${session_id}\",\"client_id\":{}}"
}
# Add A by zone and name and IP
dnsAddAByZoneAndNameAndIp() {
restCall dns_a_add "{\"session_id\": \"${session_id}\",\"client_id\": \"${client_id}\",\"params\": {\"server_id\": ${SERVER},\"zone\": \"${1}\",\"name\": \"${2}\",\"type\": \"a\",\"data\": \"${3}\",\"aux\": \"0\", \"ttl\": \"3600\", \"active\": \"y\", \"stamp\": \"${datestamp}\", \"serial\": \"1\"}}"
}
# Delete A by id
dnsDeleteAById() {
restCall dns_a_delete "{\"session_id\": \"${session_id}\",\"primary_id\": \"${1}\"}"
}
# Get RR by id
dnsGetRrByZone() {
restCall dns_rr_get_all_by_zone "{\"session_id\": \"${session_id}\",\"zone_id\": \"${1}\"}"
}
# Get zones
dnsGetZones() {
restCall dns_zone_get_by_user "{\"session_id\": \"${session_id}\",\"client_id\": \"${client_id}\",\"server_id\": ${SERVER}}"
}
# Update A by id and IP
dnsUpdateAByIdAndIp() {
restCall dns_a_update "{\"session_id\": \"${session_id}\",\"client_id\": \"${client_id}\",\"primary_id\": \"${1}\",\"params\": {\"data\": \"${2}\", \"stamp\": \"${datestamp}\"}}"
}
# Get functions
functionsGet() {
restCall get_function_list "{\"session_id\": \"${session_id}\"}"
}
# Log in by user and password
logInByUserAndPassword() {
restCall login "{\"username\": \"${1}\",\"password\": \"${2}\"}"
}
# Log out by session
logOutBySession() {
restCall logout "{\"session_id\": \"${1}\"}"
}
# Get servers info
serversGet() {
restCall server_get "{\"session_id\": \"${session_id}\",\"server_id\":{}}"
}
### Run
# Check dependencies
if ! [ -x "$(command -v curl)" ]; then
echo 'Error: curl is not installed.' >&2
exit 1
fi
if ! [ -x "$(command -v jq)" ]; then
echo 'Error: jq is not installed.' >&2
exit 1
fi
# Check config files
if [ -r /etc/ispconfig-cli.conf ]; then
. /etc/ispconfig-cli.conf
fi
if [ -r ~/.ispconfig-cli ]; then
. ~/.ispconfig-cli
fi
# Check command line
if [[ $1 == "" ]]; then
usage
exit 1
fi
SERVER=1
VERBOSITY=2
while getopts :a:e:hi:kqvb:c:f:p:tu:d:j:m:s opt; do
case $opt in
a)
if [[ -e $OPTARG ]]; then
source $OPTARG
else
echo "Config file $OPTARG not found!"
exit 1
fi
;;
e)
remote_url=$OPTARG
;;
h)
usage
exit 1
;;
i)
SERVER=$OPTARG
;;
k)
$ssl_validate=off
;;
q)
if [[ $VERBOSITY == "2" ]]; then
VERBOSITY=1
else
echo "-q and -v cannot be specified at the same time!"
exit 1
fi
;;
v)
if [[ $VERBOSITY == "2" ]]; then
VERBOSITY=3
else
echo "-q and -v cannot be specified at the same time!"
exit 1
fi
;;
b)
if [[ $METHOD == "" ]]; then
if [[ $FUNCTION == "" ]]; then
FUNCTION=`cat $OPTARG`
else
echo "You can only use one function source!"
exit 1
fi
else
echo "Function and method cannot be specified at the same time!"
exit 1
fi
;;
c)
client_user=$OPTARG
;;
f)
if [[ $METHOD == "" ]]; then
if [[ $FUNCTION == "" ]]; then
FUNCTION=$OPTARG
else
echo "You can only use one function source!"
exit 1
fi
else
echo "Function and method cannot be specified at the same time!"
exit 1
fi
;;
p)
remote_password=$OPTARG
;;
t)
if [[ $METHOD == "" ]]; then
if [[ $FUNCTION == "" ]]; then
FUNCTION=`cat`
else
echo "You can only use one function source!"
exit 1
fi
else
echo "Function and method cannot be specified at the same time!"
exit 1
fi
;;
u)
remote_user=$OPTARG
;;
d)
if [[ $JSONMODE == "" ]]; then
JSONMODE=cli
JSONDATA=$OPTARG
else
echo "You can only use one JSON data source!"
exit 1
fi
;;
j)
if [[ $JSONMODE == "" ]]; then
JSONMODE=fil
JSONDATA=`cat $OPTARG`
else
echo "You can only use one JSON data source!"
exit 1
fi
;;
m)
if [[ $FUNCTION == "" ]]; then
METHOD=$OPTARG
else
echo "Function and method cannot be specified at the same time!"
exit 1
fi
;;
s)
if [[ $JSONMODE == "" ]]; then
JSONMODE=std
JSONDATA=`cat`
else
echo "You can only use one JSON data source!"
exit 1
fi
;;
\?)
echo "Invalid option: -$OPTARG" >&2
exit 1
;;
:)
echo "Option -$OPTARG requires an argument." >&2
exit 1
;;
esac
done
if [[ $remote_url == "" ]]; then
echo "No url provided!"
exit 1
fi
if [[ $ssl_validate == "off" ]]; then
CURLK="-k"
fi
if [[ $METHOD != "" ]]; then
method $METHOD
elif [[ $FUNCTION != "" ]]; then
session_id="`log_in $remote_user $remote_password`" # This is the only ID that has to be set outside ID helpers
message 3 "Using session_id $session_id as $remote_user for CLI operations.\n"
client_id $client_user
#echo $FUNCTION|while read i; do message 1 `$i`; done # Does not work here due to creating subshells
IFS=$'\n'
for i in $FUNCTION; do eval $i; done
unset IFS
log_out $session_id
else
echo "Neither method nor function specified!"
exit 1
fi
echo -e $MESSAGE
exit 0
ispconfig-cli.conf.example 0000664 0000000 0000000 00000000235 13365333425 0034667 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/cli remote_user=myuser
remote_password=mypassword
remote_url=https://myserver.example.com:8080/remote/json.php
client_user=myclient
server_id=1
ssl_validate=off
ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples/ 0000775 0000000 0000000 00000000000 13365333425 0030766 5 ustar 00root root 0000000 0000000 client_add.php 0000664 0000000 0000000 00000004672 13365333425 0033517 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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.
$reseller_id = 0; // this id has to be 0 if the client shall not be assigned to admin or if the client is a reseller
$params = array(
'company_name' => 'awesomecompany',
'contact_name' => 'name',
'customer_no' => '1',
'vat_id' => '1',
'street' => 'fleetstreet',
'zip' => '21337',
'city' => 'london',
'state' => 'bavaria',
'country' => 'GB',
'telephone' => '123456789',
'mobile' => '987654321',
'fax' => '546718293',
'email' => 'e@mail.int',
'internet' => '',
'icq' => '111111111',
'notes' => 'awesome',
'default_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, // If this value is > 0, then the client is a reseller
'parent_client_id' => 0,
'username' => 'guy3',
'password' => 'brush',
'language' => 'en',
'usertheme' => 'default',
'template_master' => 0,
'template_additional' => '',
'created_at' => 0
);
$affected_rows = $client->client_add($session_id, $reseller_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());
}
?>
client_change_password.php 0000664 0000000 0000000 00000001423 13365333425 0036125 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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;
$new_password = 'YourNewPAssword';
$success = $client->client_change_password($session_id, $client_id, $new_password);
if ($success = 1)
{
echo "Password has been changed successfully";
}
else
{
echo "Error";
}
echo " ";
if($client->logout($session_id)) {
echo 'Logged out. ';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
client_delete.php 0000664 0000000 0000000 00000001224 13365333425 0034217 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
client_delete_everything.php 0000664 0000000 0000000 00000001266 13365333425 0036471 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
client_get.php 0000664 0000000 0000000 00000001165 13365333425 0033540 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
client_get_by_username.php 0000664 0000000 0000000 00000001174 13365333425 0036131 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
client_get_id.php 0000664 0000000 0000000 00000001162 13365333425 0034211 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
client_get_sites_by_user.php 0000664 0000000 0000000 00000001236 13365333425 0036476 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
client_templates_get_all.php 0000664 0000000 0000000 00000001112 13365333425 0036436 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
client_update.php 0000664 0000000 0000000 00000002050 13365333425 0034235 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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;
$client_id = 1;
//* Get the client record
$client_record = $client->client_get($session_id, $client_id);
//* Change parameters
$client_record['country'] = 'de';
$client_record['username'] = 'mguy';
$client_record['contact_name'] = 'brush';
//* We set the client password to a empty string as we do not want to change it.
$client_record['password'] = '';
$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());
}
?>
dns_a_add.php 0000664 0000000 0000000 00000001513 13365333425 0033314 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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' => '3600',
'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());
}
?>
dns_a_delete.php 0000664 0000000 0000000 00000001200 13365333425 0034017 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
dns_a_get.php 0000664 0000000 0000000 00000001130 13365333425 0033336 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
dns_a_update.php 0000664 0000000 0000000 00000001506 13365333425 0034050 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
dns_aaaa_add.php 0000664 0000000 0000000 00000001531 13365333425 0033757 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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' => '3600',
'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());
}
?>
dns_aaaa_delete.php 0000664 0000000 0000000 00000001203 13365333425 0034465 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
dns_aaaa_get.php 0000664 0000000 0000000 00000001133 13365333425 0034004 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
dns_aaaa_update.php 0000664 0000000 0000000 00000001514 13365333425 0034512 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
dns_alias_add.php 0000664 0000000 0000000 00000001526 13365333425 0034171 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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' => '3600',
'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());
}
?>
dns_alias_delete.php 0000664 0000000 0000000 00000001204 13365333425 0034674 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
dns_alias_get.php 0000664 0000000 0000000 00000001134 13365333425 0034213 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
dns_alias_update.php 0000664 0000000 0000000 00000001516 13365333425 0034722 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
dns_cname_add.php 0000664 0000000 0000000 00000001526 13365333425 0034163 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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' => '3600',
'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());
}
?>
dns_cname_delete.php 0000664 0000000 0000000 00000001204 13365333425 0034666 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
dns_cname_get.php 0000664 0000000 0000000 00000001134 13365333425 0034205 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
dns_cname_update.php 0000664 0000000 0000000 00000001516 13365333425 0034714 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
dns_hinfo_add.php 0000664 0000000 0000000 00000001535 13365333425 0034203 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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' => '3600',
'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());
}
?>
dns_hinfo_delete.php 0000664 0000000 0000000 00000001204 13365333425 0034706 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
dns_hinfo_get.php 0000664 0000000 0000000 00000001134 13365333425 0034225 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
dns_hinfo_update.php 0000664 0000000 0000000 00000001516 13365333425 0034734 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
dns_mx_add.php 0000664 0000000 0000000 00000001521 13365333425 0033517 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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' => '3600',
'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());
}
?>
dns_mx_delete.php 0000664 0000000 0000000 00000001201 13365333425 0034224 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
dns_mx_get.php 0000664 0000000 0000000 00000001131 13365333425 0033543 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
dns_mx_update.php 0000664 0000000 0000000 00000001510 13365333425 0034247 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
dns_ns_add.php 0000664 0000000 0000000 00000001515 13365333425 0033516 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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' => '3600',
'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());
}
?>
dns_ns_delete.php 0000664 0000000 0000000 00000001201 13365333425 0034220 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
dns_ns_get.php 0000664 0000000 0000000 00000001131 13365333425 0033537 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
dns_ns_update.php 0000664 0000000 0000000 00000001510 13365333425 0034243 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
dns_ptr_add.php 0000664 0000000 0000000 00000001534 13365333425 0033704 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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' => '3600',
'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());
}
?>
dns_ptr_delete.php 0000664 0000000 0000000 00000001202 13365333425 0034406 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
dns_ptr_get.php 0000664 0000000 0000000 00000001132 13365333425 0033725 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
dns_ptr_update.php 0000664 0000000 0000000 00000001512 13365333425 0034432 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
dns_rp_add.php 0000664 0000000 0000000 00000001571 13365333425 0033521 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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' => '3600',
'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());
}
?>
dns_rp_delete.php 0000664 0000000 0000000 00000001202 13365333425 0034222 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
dns_rp_get.php 0000664 0000000 0000000 00000001132 13365333425 0033541 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
dns_rp_update.php 0000664 0000000 0000000 00000001511 13365333425 0034245 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
dns_rr_get_all_by_zone.php 0000664 0000000 0000000 00000001203 13365333425 0036117 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
dns_srv_add.php 0000664 0000000 0000000 00000001535 13365333425 0033712 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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' => '3600',
'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());
}
?>
dns_srv_delete.php 0000664 0000000 0000000 00000001203 13365333425 0034414 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
dns_srv_get.php 0000664 0000000 0000000 00000001133 13365333425 0033733 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
dns_srv_update.php 0000664 0000000 0000000 00000001513 13365333425 0034440 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
dns_txt_add.php 0000664 0000000 0000000 00000001541 13365333425 0033714 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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' => '3600',
'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());
}
?>
dns_txt_delete.php 0000664 0000000 0000000 00000001202 13365333425 0034420 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
dns_txt_get.php 0000664 0000000 0000000 00000001133 13365333425 0033740 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
dns_txt_update.php 0000664 0000000 0000000 00000001513 13365333425 0034445 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
dns_zone_add.php 0000664 0000000 0000000 00000001675 13365333425 0034060 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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' => '3600',
'ttl' => '3600',
'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());
}
?>
dns_zone_delete.php 0000664 0000000 0000000 00000001202 13365333425 0034554 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
dns_zone_get.php 0000664 0000000 0000000 00000001133 13365333425 0034074 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
dns_zone_get_by_user.php 0000664 0000000 0000000 00000001242 13365333425 0035625 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
dns_zone_set_status.php 0000664 0000000 0000000 00000001246 13365333425 0035520 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
dns_zone_update.php 0000664 0000000 0000000 00000001514 13365333425 0034602 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
domains_domain_add.php 0000664 0000000 0000000 00000001271 13365333425 0035212 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
domains_domain_delete.php 0000664 0000000 0000000 00000001226 13365333425 0035724 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
domains_domain_get.php 0000664 0000000 0000000 00000001165 13365333425 0035243 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
domains_get_all_by_user.php 0000664 0000000 0000000 00000001170 13365333425 0036270 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
get_function_list.php 0000664 0000000 0000000 00000001145 13365333425 0035140 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
login.php 0000664 0000000 0000000 00000000732 13365333425 0032532 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
logout.php 0000664 0000000 0000000 00000001054 13365333425 0032731 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_alias_add.php 0000664 0000000 0000000 00000001437 13365333425 0034330 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_alias_delete.php 0000664 0000000 0000000 00000001220 13365333425 0035030 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_alias_get.php 0000664 0000000 0000000 00000001167 13365333425 0034357 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_alias_update.php 0000664 0000000 0000000 00000001604 13365333425 0035056 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_blacklist_add.php 0000664 0000000 0000000 00000001435 13365333425 0035205 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_blacklist_delete.php 0000664 0000000 0000000 00000001234 13365333425 0035714 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_blacklist_get.php 0000664 0000000 0000000 00000001213 13365333425 0035226 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_blacklist_update.php 0000664 0000000 0000000 00000001646 13365333425 0035743 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_catchall_add.php 0000664 0000000 0000000 00000001443 13365333425 0035007 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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' => '@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());
}
?>
mail_catchall_delete.php 0000664 0000000 0000000 00000001231 13365333425 0035514 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_catchall_get.php 0000664 0000000 0000000 00000001206 13365333425 0035033 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_catchall_update.php 0000664 0000000 0000000 00000001634 13365333425 0035543 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_domain_add.php 0000664 0000000 0000000 00000001332 13365333425 0034500 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_domain_delete.php 0000664 0000000 0000000 00000001223 13365333425 0035211 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_domain_get.php 0000664 0000000 0000000 00000001174 13365333425 0034533 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_domain_get_by_domain.php 0000664 0000000 0000000 00000001215 13365333425 0036550 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_domain_set_status.php 0000664 0000000 0000000 00000001251 13365333425 0036146 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_domain_update.php 0000664 0000000 0000000 00000001614 13365333425 0035235 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_fetchmail_add.php 0000664 0000000 0000000 00000001651 13365333425 0035171 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_fetchmail_delete.php 0000664 0000000 0000000 00000001234 13365333425 0035700 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_fetchmail_get.php 0000664 0000000 0000000 00000001213 13365333425 0035212 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_fetchmail_update.php 0000664 0000000 0000000 00000001641 13365333425 0035722 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_filter_add.php 0000664 0000000 0000000 00000001445 13365333425 0034523 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_filter_delete.php 0000664 0000000 0000000 00000001223 13365333425 0035227 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_filter_get.php 0000664 0000000 0000000 00000001174 13365333425 0034551 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_filter_update.php 0000664 0000000 0000000 00000001614 13365333425 0035253 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_forward_add.php 0000664 0000000 0000000 00000001450 13365333425 0034676 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_forward_delete.php 0000664 0000000 0000000 00000001276 13365333425 0035416 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_forward_get.php 0000664 0000000 0000000 00000001364 13365333425 0034731 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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);
// $mail_forwarding_record = $client->mail_forward_get($session_id, array('source' => '%@test.int'));
print_r($mail_forwarding_record);
if($client->logout($session_id)) {
echo 'Logged out. ';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_forward_update.php 0000664 0000000 0000000 00000001636 13365333425 0035436 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_mailinglist_add.php 0000664 0000000 0000000 00000001455 13365333425 0035553 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_mailinglist_delete.php 0000664 0000000 0000000 00000001314 13365333425 0036257 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_mailinglist_get.php 0000664 0000000 0000000 00000001213 13365333425 0035572 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_mailinglist_update.php 0000664 0000000 0000000 00000001655 13365333425 0036307 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_policy_add.php 0000664 0000000 0000000 00000003350 13365333425 0034532 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_policy_delete.php 0000664 0000000 0000000 00000001240 13365333425 0035240 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_policy_get.php 0000664 0000000 0000000 00000001156 13365333425 0034563 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_policy_update.php 0000664 0000000 0000000 00000001604 13365333425 0035264 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_spamfilter_blacklist_add.php 0000664 0000000 0000000 00000001452 13365333425 0037432 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_spamfilter_blacklist_delete.php 0000664 0000000 0000000 00000001305 13365333425 0040141 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_spamfilter_blacklist_get.php 0000664 0000000 0000000 00000001212 13365333425 0037453 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_spamfilter_blacklist_update.php 0000664 0000000 0000000 00000001653 13365333425 0040167 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_spamfilter_user_add.php 0000664 0000000 0000000 00000001501 13365333425 0036433 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_spamfilter_user_delete.php 0000664 0000000 0000000 00000001272 13365333425 0037152 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_spamfilter_user_get.php 0000664 0000000 0000000 00000001211 13365333425 0036460 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_spamfilter_user_update.php 0000664 0000000 0000000 00000001674 13365333425 0037200 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_spamfilter_whitelist_add.php 0000664 0000000 0000000 00000001452 13365333425 0037476 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_spamfilter_whitelist_delete.php 0000664 0000000 0000000 00000001305 13365333425 0040205 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_spamfilter_whitelist_get.php 0000664 0000000 0000000 00000001212 13365333425 0037517 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_spamfilter_whitelist_update.php 0000664 0000000 0000000 00000001653 13365333425 0040233 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_transport_add.php 0000664 0000000 0000000 00000001422 13365333425 0035265 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_transport_delete.php 0000664 0000000 0000000 00000001300 13365333425 0035772 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_transport_get.php 0000664 0000000 0000000 00000001213 13365333425 0035312 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_transport_update.php 0000664 0000000 0000000 00000001647 13365333425 0036030 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_user_add.php 0000664 0000000 0000000 00000002352 13365333425 0034212 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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' => 'joe@test.int',
'login' => 'joe@test.int',
'password' => 'howtoforge',
'name' => 'joe',
'uid' => 5000,
'gid' => 5000,
'maildir' => '/var/vmail/test.int/joe',
'quota' => 5242880,
'cc' => '',
'homedir' => '/var/vmail',
'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'
);
$mailuser_id = $client->mail_user_add($session_id, $client_id, $params);
echo "New user: ".$mailuser_id." ";
if($client->logout($session_id)) {
echo 'Logged out. ';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_user_delete.php 0000664 0000000 0000000 00000001225 13365333425 0034722 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_user_filter_add.php 0000664 0000000 0000000 00000001477 13365333425 0035566 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_user_filter_delete.php 0000664 0000000 0000000 00000001272 13365333425 0036271 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_user_filter_get.php 0000664 0000000 0000000 00000001201 13365333425 0035576 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_user_filter_update.php 0000664 0000000 0000000 00000001644 13365333425 0036314 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_user_get.php 0000664 0000000 0000000 00000001140 13365333425 0034233 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_user_update.php 0000664 0000000 0000000 00000001611 13365333425 0034741 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_whitelist_add.php 0000664 0000000 0000000 00000001431 13365333425 0035245 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_whitelist_delete.php 0000664 0000000 0000000 00000001234 13365333425 0035760 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_whitelist_get.php 0000664 0000000 0000000 00000001213 13365333425 0035272 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
mail_whitelist_update.php 0000664 0000000 0000000 00000001647 13365333425 0036010 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
monitor_jobqueue_count.php 0000664 0000000 0000000 00000001554 13365333425 0036223 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples [
// set some SSL/TLS specific options
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true
]
]);
$client = new SoapClient(null, array('location' => $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1,
'stream_context' => $context));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.' ';
}
//* Set the function parameters.
$server_id = 1;
$result = $client->monitor_jobqueue_count($session_id, $server_id);
print_r($result);
echo " ";
if($client->logout($session_id)) {
echo 'Logged out. ';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
openvz_get_free_ip.php 0000664 0000000 0000000 00000001166 13365333425 0035275 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
openvz_ip_add.php 0000664 0000000 0000000 00000001347 13365333425 0034246 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
openvz_ip_delete.php 0000664 0000000 0000000 00000001244 13365333425 0034754 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
openvz_ip_get.php 0000664 0000000 0000000 00000001140 13365333425 0034264 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
openvz_ip_update.php 0000664 0000000 0000000 00000001540 13365333425 0034773 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
openvz_ostemplate_add.php 0000664 0000000 0000000 00000001502 13365333425 0036004 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
openvz_ostemplate_delete.php 0000664 0000000 0000000 00000001304 13365333425 0036516 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
openvz_ostemplate_get.php 0000664 0000000 0000000 00000001210 13365333425 0036027 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
openvz_ostemplate_update.php 0000664 0000000 0000000 00000001640 13365333425 0036541 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
openvz_template_add.php 0000664 0000000 0000000 00000003442 13365333425 0035447 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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:unlimited',
'kmemsize' => '2147483646:2147483646',
'tcpsndbuf' => '214748160:396774400',
'tcprcvbuf' => '214748160:396774400',
'othersockbuf' => '214748160:396774400',
'dgramrcvbuf' => '214748160:396774400',
'oomguarpages' => '65536:65536',
'privvmpages' => '131072:139264',
'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());
}
?>
openvz_template_delete.php 0000664 0000000 0000000 00000001274 13365333425 0036162 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
openvz_template_get.php 0000664 0000000 0000000 00000001176 13365333425 0035500 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
openvz_template_update.php 0000664 0000000 0000000 00000001624 13365333425 0036201 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
openvz_vm_add.php 0000664 0000000 0000000 00000002260 13365333425 0034253 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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,
'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($session_id, $client_id, $params);
echo "VM ID: ".$vm_id." ";
if($client->logout($session_id)) {
echo 'Logged out. ';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
openvz_vm_add_from_template.php 0000664 0000000 0000000 00000001706 13365333425 0037175 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
openvz_vm_delete.php 0000664 0000000 0000000 00000001261 13365333425 0034765 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
openvz_vm_get.php 0000664 0000000 0000000 00000001140 13365333425 0034276 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
openvz_vm_get_by_client.php 0000664 0000000 0000000 00000001155 13365333425 0036334 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
openvz_vm_update.php 0000664 0000000 0000000 00000001532 13365333425 0035006 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
rest_example.php 0000664 0000000 0000000 00000003461 13365333425 0034114 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $remote_user, 'password' => $remote_pass, 'client_login' => false));
if($result) {
$data = json_decode($result, true);
if(!$data) die("ERROR!\n");
$session_id = $data['response'];
$result = restCall('client_get', array('session_id' => $session_id, 'client_id' => array('username' => 'abcde')));
if($result) var_dump(json_decode($result, true));
else print "Could not get client_get result\n";
// or by id
$result = restCall('client_get', array('session_id' => $session_id, 'client_id' => 2));
if($result) var_dump(json_decode($result, true));
else print "Could not get client_get result\n";
// or all
$result = restCall('client_get', array('session_id' => $session_id, 'client_id' => array()));
if($result) var_dump(json_decode($result, true));
else print "Could not get client_get result\n";
// please refer to API-Docs for expected input variables and parameters names
$result = restCall('logout', array('session_id' => $session_id));
if($result) var_dump(json_decode($result, true));
else print "Could not get logout result\n";
}
rest_example.sh 0000664 0000000 0000000 00000001752 13365333425 0033740 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples #!/bin/bash
set -e
remote_user=test
remote_password=apipassword
remote_url='https://yourserver.com:8080/remote/json.php'
# restCall method data
restCall() {
curl -sS -X POST -H "Content-Type: application/json" -H "Cache-Control: no-cache" -d "${2}" "${remote_url}?${1}"
}
# Log in
session_id=`restCall login "{\"username\": \"${remote_user}\",\"password\": \"${remote_password}\"}" | jq -r '.response'`
if [[ $isession == "false" ]]; then
echo "Login failed!"
exit 1
#else
#echo "Logged in. Session is: $session_id"
fi
restCall client_get "{\"session_id\": \"$session_id\",\"client_id\":{\"username\": \"abcde\"}}"
# or by id
restCall client_get "{\"session_id\": \"$session_id\",\"client_id\": \"2\"}"
# or all
restCall client_get "{\"session_id\": \"$session_id\",\"client_id\":{}}"
# Log out
if [[ `restCall logout "{\"session_id\": \"$session_id\"}" |jq -r .response` == "true" ]]; then
#echo "Logout successful."
exit 0
else
echo "Logout failed!"
exit 1
fi
server_config_set.php 0000664 0000000 0000000 00000001610 13365333425 0035124 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples [
// set some SSL/TLS specific options
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true
]
]);
$client = new SoapClient(null, array('location' => $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1,
'stream_context' => $context));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.' ';
}
//* Set the function parameters.
$server_id = 1;
$result = $client->server_config_set($session_id, $server_id, 'server', 'migration_mode', 'y');
print_r($result);
echo " ";
if($client->logout($session_id)) {
echo 'Logged out. ';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
server_get.php 0000664 0000000 0000000 00000001211 13365333425 0033560 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
server_get_serverid_by_ip.php 0000664 0000000 0000000 00000001230 13365333425 0036646 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
sites_cron_add.php 0000664 0000000 0000000 00000001547 13365333425 0034407 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
sites_cron_delete.php 0000664 0000000 0000000 00000001247 13365333425 0035116 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
sites_cron_get.php 0000664 0000000 0000000 00000001151 13365333425 0034425 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
sites_cron_update.php 0000664 0000000 0000000 00000001535 13365333425 0035136 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
sites_database_add.php 0000664 0000000 0000000 00000001736 13365333425 0035212 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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' => 'mysql',
'parent_domain_id' => 1,
'database_name' => 'db_name2',
'database_user_id' => '1',
'database_ro_user_id' => '0',
'database_charset' => 'UTF8',
'remote_access' => 'y',
'remote_ips' => '',
'backup_interval' => 'none',
'backup_copies' => 1,
'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());
}
?>
sites_database_delete.php 0000664 0000000 0000000 00000001270 13365333425 0035715 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
sites_database_get.php 0000664 0000000 0000000 00000001175 13365333425 0035236 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
sites_database_get_all_by_user.php 0000664 0000000 0000000 00000001220 13365333425 0037605 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
sites_database_update.php 0000664 0000000 0000000 00000001613 13365333425 0035736 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
sites_database_user_add.php 0000664 0000000 0000000 00000001413 13365333425 0036240 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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,
'database_user' => 'db_name2',
'database_password' => 'db_name2'
);
$database_user_id = $client->sites_database_user_add($session_id, $client_id, $params);
echo "Database ID: ".$database_user_id." ";
if($client->logout($session_id)) {
echo 'Logged out. ';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
sites_database_user_delete.php 0000664 0000000 0000000 00000001307 13365333425 0036754 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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_user_id = 1;
//* Get the database record
$affected_rows = $client->sites_database_user_delete($session_id, $database_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());
}
?>
sites_database_user_get.php 0000664 0000000 0000000 00000001214 13365333425 0036266 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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_user_id = 1;
$database_record = $client->sites_database_user_get($session_id, $database_user_id);
print_r($database_record);
if($client->logout($session_id)) {
echo 'Logged out. ';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
sites_database_user_update.php 0000664 0000000 0000000 00000001711 13365333425 0036773 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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_user_id = 1;
$client_id = 1;
//* Get the database record
$database_user_record = $client->sites_database_user_get($session_id, $database_user_id);
//* Change password of the database user
$database_user_record['database_password'] = 'abcde';
$affected_rows = $client->sites_database_user_update($session_id, $client_id, $database_user_id, $database_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());
}
?>
sites_ftp_user_add.php 0000664 0000000 0000000 00000001765 13365333425 0035277 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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' => 'tom',
'password' => 'secret',
'quota_size' => 10000,
'active' => 'y',
'uid' => '5000',
'gid' => '5000',
'dir' => '/var/www/clients/client0/web1',
'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());
}
?>
sites_ftp_user_delete.php 0000664 0000000 0000000 00000001233 13365333425 0035777 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
sites_ftp_user_get.php 0000664 0000000 0000000 00000001175 13365333425 0035321 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
sites_ftp_user_update.php 0000664 0000000 0000000 00000001601 13365333425 0036016 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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;
$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());
}
?>
sites_shell_user_add.php 0000664 0000000 0000000 00000001674 13365333425 0035614 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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' => 'tom',
'password' => 'test',
'quota_size' => 10000,
'active' => 'y',
'puser' => 'web1',
'pgroup' => 'client0',
'shell' => '/bin/bash',
'dir' => '/var/www/clients/client0/web1',
'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());
}
?>
sites_shell_user_delete.php 0000664 0000000 0000000 00000001303 13365333425 0036313 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
sites_shell_user_get.php 0000664 0000000 0000000 00000001207 13365333425 0035633 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
sites_shell_user_update.php 0000664 0000000 0000000 00000001623 13365333425 0036340 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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;
$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());
}
?>
sites_web_aliasdomain_add.php 0000664 0000000 0000000 00000003247 13365333425 0036563 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
sites_web_aliasdomain_delete.php 0000664 0000000 0000000 00000001310 13365333425 0037262 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
sites_web_aliasdomain_get.php 0000664 0000000 0000000 00000001220 13365333425 0036577 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
sites_web_aliasdomain_update.php 0000664 0000000 0000000 00000001656 13365333425 0037317 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
sites_web_domain_add.php 0000664 0000000 0000000 00000003326 13365333425 0035547 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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' => 'test2.int',
'type' => 'vhost',
'parent_domain_id' => 0,
'vhost_type' => 'name',
'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_key' => '',
'ssl_cert' => '',
'ssl_bundle' => '',
'ssl_action' => '',
'stats_password' => '',
'stats_type' => 'webalizer',
'allow_override' => 'All',
'apache_directives' => '',
'php_open_basedir' => '/',
'pm_max_requests' => 0,
'pm_process_idle_timeout' => 10,
'custom_php_ini' => '',
'backup_interval' => '',
'backup_copies' => 1,
'active' => 'y',
'traffic_quota_lock' => 'n',
'http_port' => '80',
'https_port' => '443'
);
$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());
}
?>
sites_web_domain_delete.php 0000664 0000000 0000000 00000001273 13365333425 0036260 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
sites_web_domain_get.php 0000664 0000000 0000000 00000001167 13365333425 0035577 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
sites_web_domain_set_status.php 0000664 0000000 0000000 00000001254 13365333425 0037213 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
sites_web_domain_update.php 0000664 0000000 0000000 00000002001 13365333425 0036266 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
sites_web_subdomain_add.php 0000664 0000000 0000000 00000003245 13365333425 0036261 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
sites_web_subdomain_delete.php 0000664 0000000 0000000 00000001301 13365333425 0036762 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
sites_web_subdomain_get.php 0000664 0000000 0000000 00000001207 13365333425 0036304 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
sites_web_subdomain_update.php 0000664 0000000 0000000 00000001635 13365333425 0037014 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples $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());
}
?>
soap_config.php 0000664 0000000 0000000 00000000533 13365333425 0033710 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples
system_config_set.php 0000664 0000000 0000000 00000001600 13365333425 0035141 0 ustar 00root root 0000000 0000000 ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/examples [
// set some SSL/TLS specific options
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true
]
]);
$client = new SoapClient(null, array('location' => $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1,
'stream_context' => $context));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.' ';
}
//* Set the function parameters.
$server_id = 1;
$result = $client->system_config_set($session_id, 'misc', 'company_name', 'ISPConfig');
print_r($result);
echo " ";
if($client->logout($session_id)) {
echo 'Logged out. ';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
ispconfig3-01df7d60d68945afb7e03566fd1d486c83af335f-remoting_client/remoting_client/readme 0000664 0000000 0000000 00000001006 13365333425 0030325 0 ustar 00root root 0000000 0000000
--------------------------------------------------------
- Remote API example files
--------------------------------------------------------
The examples folder contains an 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 API-docs/index.html