pax_global_header 0000666 0000000 0000000 00000000064 13377471101 0014516 g ustar 00root root 0000000 0000000 52 comment=922b2803302b184692ee7484c31c122929fbc8ad
ispconfig3-master-remoting_client/ 0000775 0000000 0000000 00000000000 13377471101 0017577 5 ustar 00root root 0000000 0000000 ispconfig3-master-remoting_client/remoting_client/ 0000775 0000000 0000000 00000000000 13377471101 0022761 5 ustar 00root root 0000000 0000000 ispconfig3-master-remoting_client/remoting_client/API-docs/ 0000775 0000000 0000000 00000000000 13377471101 0024320 5 ustar 00root root 0000000 0000000 ispconfig3-master-remoting_client/remoting_client/API-docs/client_add.html 0000664 0000000 0000000 00000014500 13377471101 0027274 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/client_change_password.html 0000664 0000000 0000000 00000002367 13377471101 0031723 0 ustar 00root root 0000000 0000000
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
ispconfig3-master-remoting_client/remoting_client/API-docs/client_delete.html 0000664 0000000 0000000 00000001772 13377471101 0030015 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/client_delete_everything.html 0000664 0000000 0000000 00000002163 13377471101 0032254 0 ustar 00root root 0000000 0000000
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 "
ispconfig3-master-remoting_client/remoting_client/API-docs/client_get.html 0000664 0000000 0000000 00000002031 13377471101 0027317 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/client_get_by_username.html 0000664 0000000 0000000 00000002302 13377471101 0031711 0 ustar 00root root 0000000 0000000
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 ."'"
ispconfig3-master-remoting_client/remoting_client/API-docs/client_get_id.html 0000664 0000000 0000000 00000002063 13377471101 0030000 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/client_get_sites_by_user.html 0000664 0000000 0000000 00000002735 13377471101 0032271 0 ustar 00root root 0000000 0000000
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'"
ispconfig3-master-remoting_client/remoting_client/API-docs/client_templates_get_all.html 0000664 0000000 0000000 00000002105 13377471101 0032227 0 ustar 00root root 0000000 0000000
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"
ispconfig3-master-remoting_client/remoting_client/API-docs/client_update.html 0000664 0000000 0000000 00000014507 13377471101 0030035 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/content.html 0000664 0000000 0000000 00000002012 13377471101 0026653 0 ustar 00root root 0000000 0000000
ISPCOnfig 3 remote API documentation
Home
ISPConfig 3 remote API documentation.
ispconfig3-master-remoting_client/remoting_client/API-docs/definitionen.css 0000664 0000000 0000000 00000001562 13377471101 0027511 0 ustar 00root root 0000000 0000000 .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;
}
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_a_add.html 0000664 0000000 0000000 00000003715 13377471101 0027110 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_a_delete.html 0000664 0000000 0000000 00000002023 13377471101 0027611 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_a_get.html 0000664 0000000 0000000 00000002103 13377471101 0027125 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_a_update.html 0000664 0000000 0000000 00000003724 13377471101 0027642 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_aaaa_add.html 0000664 0000000 0000000 00000003734 13377471101 0027554 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_aaaa_delete.html 0000664 0000000 0000000 00000002026 13377471101 0030257 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_aaaa_get.html 0000664 0000000 0000000 00000002106 13377471101 0027573 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_aaaa_update.html 0000664 0000000 0000000 00000003746 13377471101 0030311 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_alias_add.html 0000664 0000000 0000000 00000003744 13377471101 0027763 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_alias_delete.html 0000664 0000000 0000000 00000002030 13377471101 0030460 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_alias_get.html 0000664 0000000 0000000 00000002120 13377471101 0027775 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_alias_update.html 0000664 0000000 0000000 00000003755 13377471101 0030517 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_cname_add.html 0000664 0000000 0000000 00000003747 13377471101 0027760 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_cname_delete.html 0000664 0000000 0000000 00000002030 13377471101 0030452 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_cname_get.html 0000664 0000000 0000000 00000002111 13377471101 0027767 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_cname_update.html 0000664 0000000 0000000 00000003760 13377471101 0030505 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_hinfo_add.html 0000664 0000000 0000000 00000003743 13377471101 0027774 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_hinfo_delete.html 0000664 0000000 0000000 00000002030 13377471101 0030472 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_hinfo_get.html 0000664 0000000 0000000 00000002111 13377471101 0030007 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_hinfo_update.html 0000664 0000000 0000000 00000003754 13377471101 0030530 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_mx_add.html 0000664 0000000 0000000 00000003730 13377471101 0027311 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_mx_delete.html 0000664 0000000 0000000 00000002022 13377471101 0030014 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_mx_get.html 0000664 0000000 0000000 00000002100 13377471101 0027326 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_mx_update.html 0000664 0000000 0000000 00000003744 13377471101 0030050 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_ns_add.html 0000664 0000000 0000000 00000003742 13377471101 0027310 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_ns_delete.html 0000664 0000000 0000000 00000002022 13377471101 0030010 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_ns_get.html 0000664 0000000 0000000 00000002100 13377471101 0027322 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_ns_update.html 0000664 0000000 0000000 00000003753 13377471101 0030044 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_ptr_add.html 0000664 0000000 0000000 00000003740 13377471101 0027473 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_ptr_delete.html 0000664 0000000 0000000 00000002024 13377471101 0030177 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_ptr_get.html 0000664 0000000 0000000 00000002103 13377471101 0027512 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_ptr_update.html 0000664 0000000 0000000 00000003753 13377471101 0030231 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_rp_add.html 0000664 0000000 0000000 00000003734 13377471101 0027312 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_rp_delete.html 0000664 0000000 0000000 00000002022 13377471101 0030011 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_rp_get.html 0000664 0000000 0000000 00000002100 13377471101 0027323 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_rp_update.html 0000664 0000000 0000000 00000003750 13377471101 0030042 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_rr_get_all_by_zone.html 0000664 0000000 0000000 00000002271 13377471101 0031713 0 ustar 00root root 0000000 0000000
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 )
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_srv_add.html 0000664 0000000 0000000 00000003734 13377471101 0027503 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_srv_delete.html 0000664 0000000 0000000 00000002024 13377471101 0030204 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_srv_get.html 0000664 0000000 0000000 00000002103 13377471101 0027517 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_srv_update.html 0000664 0000000 0000000 00000003747 13377471101 0030241 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_txt_add.html 0000664 0000000 0000000 00000003730 13377471101 0027504 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_txt_delete.html 0000664 0000000 0000000 00000002024 13377471101 0030211 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_txt_get.html 0000664 0000000 0000000 00000002103 13377471101 0027524 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_txt_update.html 0000664 0000000 0000000 00000003743 13377471101 0030242 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_zone_add.html 0000664 0000000 0000000 00000004300 13377471101 0027632 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_zone_delete.html 0000664 0000000 0000000 00000002000 13377471101 0030337 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_zone_get.html 0000664 0000000 0000000 00000002041 13377471101 0027661 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_zone_get_by_user.html 0000664 0000000 0000000 00000002571 13377471101 0031421 0 ustar 00root root 0000000 0000000
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 "
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_zone_set_status.html 0000664 0000000 0000000 00000002572 13377471101 0031311 0 ustar 00root root 0000000 0000000
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 )
ispconfig3-master-remoting_client/remoting_client/API-docs/dns_zone_update.html 0000664 0000000 0000000 00000004322 13377471101 0030370 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/domains_domain_add.html 0000664 0000000 0000000 00000002202 13377471101 0030773 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/domains_domain_delete.html 0000664 0000000 0000000 00000002004 13377471101 0031505 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/domains_domain_get.html 0000664 0000000 0000000 00000002043 13377471101 0031025 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/domains_get_all_by_user.html 0000664 0000000 0000000 00000002332 13377471101 0032057 0 ustar 00root root 0000000 0000000
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 "
ispconfig3-master-remoting_client/remoting_client/API-docs/get_function_list.html 0000664 0000000 0000000 00000001736 13377471101 0030734 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/index.html 0000664 0000000 0000000 00000001753 13377471101 0026323 0 ustar 00root root 0000000 0000000
ISCPConfig 3 API Functions
ispconfig3-master-remoting_client/remoting_client/API-docs/login.html 0000664 0000000 0000000 00000002276 13377471101 0026325 0 ustar 00root root 0000000 0000000
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 ')"
ispconfig3-master-remoting_client/remoting_client/API-docs/logout.html 0000664 0000000 0000000 00000002047 13377471101 0026522 0 ustar 00root root 0000000 0000000
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 '"
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_alias_add.html 0000664 0000000 0000000 00000003037 13377471101 0030114 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_alias_delete.html 0000664 0000000 0000000 00000002004 13377471101 0030617 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_alias_get.html 0000664 0000000 0000000 00000002047 13377471101 0030143 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_alias_update.html 0000664 0000000 0000000 00000003044 13377471101 0030644 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_blacklist_add.html 0000664 0000000 0000000 00000003057 13377471101 0030775 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_blacklist_delete.html 0000664 0000000 0000000 00000002022 13377471101 0031476 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_blacklist_get.html 0000664 0000000 0000000 00000002077 13377471101 0031025 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_blacklist_update.html 0000664 0000000 0000000 00000003024 13377471101 0031521 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_catchall_add.html 0000664 0000000 0000000 00000003053 13377471101 0030574 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_catchall_delete.html 0000664 0000000 0000000 00000002012 13377471101 0031300 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_catchall_get.html 0000664 0000000 0000000 00000002060 13377471101 0030620 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_catchall_update.html 0000664 0000000 0000000 00000003055 13377471101 0031330 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_domain_add.html 0000664 0000000 0000000 00000002464 13377471101 0030275 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_domain_delete.html 0000664 0000000 0000000 00000002006 13377471101 0030777 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_domain_get.html 0000664 0000000 0000000 00000002053 13377471101 0030316 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_domain_get_by_domain.html 0000664 0000000 0000000 00000002267 13377471101 0032346 0 ustar 00root root 0000000 0000000
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 '"
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_domain_set_status.html 0000664 0000000 0000000 00000002617 13377471101 0031743 0 ustar 00root root 0000000 0000000
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 )
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_domain_update.html 0000664 0000000 0000000 00000002503 13377471101 0031021 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_fetchmail_add.html 0000664 0000000 0000000 00000003541 13377471101 0030757 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_fetchmail_delete.html 0000664 0000000 0000000 00000002007 13377471101 0031465 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_fetchmail_get.html 0000664 0000000 0000000 00000002051 13377471101 0031001 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_fetchmail_update.html 0000664 0000000 0000000 00000003521 13377471101 0031507 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_forward_add.html 0000664 0000000 0000000 00000003055 13377471101 0030467 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_forward_delete.html 0000664 0000000 0000000 00000002013 13377471101 0031172 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_forward_get.html 0000664 0000000 0000000 00000002063 13377471101 0030514 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_forward_update.html 0000664 0000000 0000000 00000003055 13377471101 0031221 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_mailinglist_add.html 0000664 0000000 0000000 00000002747 13377471101 0031346 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_mailinglist_delete.html 0000664 0000000 0000000 00000002013 13377471101 0032042 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_mailinglist_get.html 0000664 0000000 0000000 00000002057 13377471101 0031367 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_mailinglist_update.html 0000664 0000000 0000000 00000002766 13377471101 0032101 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_policy_add.html 0000664 0000000 0000000 00000011020 13377471101 0030311 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_policy_delete.html 0000664 0000000 0000000 00000002006 13377471101 0031027 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_policy_get.html 0000664 0000000 0000000 00000002052 13377471101 0030345 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_policy_update.html 0000664 0000000 0000000 00000011024 13377471101 0031047 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_spamfilter_blacklist_add.html 0000664 0000000 0000000 00000003173 13377471101 0033222 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_spamfilter_blacklist_delete.html 0000664 0000000 0000000 00000002053 13377471101 0033730 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_spamfilter_blacklist_get.html 0000664 0000000 0000000 00000002136 13377471101 0033247 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_spamfilter_blacklist_update.html 0000664 0000000 0000000 00000003160 13377471101 0033750 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_spamfilter_user_add.html 0000664 0000000 0000000 00000003111 13377471101 0032220 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_spamfilter_user_delete.html 0000664 0000000 0000000 00000002033 13377471101 0032734 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_spamfilter_user_get.html 0000664 0000000 0000000 00000002103 13377471101 0032247 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_spamfilter_user_update.html 0000664 0000000 0000000 00000003111 13377471101 0032752 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_spamfilter_whitelist_add.html 0000664 0000000 0000000 00000003173 13377471101 0033266 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_spamfilter_whitelist_delete.html 0000664 0000000 0000000 00000002053 13377471101 0033774 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_spamfilter_whitelist_get.html 0000664 0000000 0000000 00000002136 13377471101 0033313 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_spamfilter_whitelist_update.html 0000664 0000000 0000000 00000003152 13377471101 0034015 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_transport_add.html 0000664 0000000 0000000 00000002753 13377471101 0031063 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_transport_delete.html 0000664 0000000 0000000 00000002014 13377471101 0031563 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_transport_get.html 0000664 0000000 0000000 00000002063 13377471101 0031104 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_transport_update.html 0000664 0000000 0000000 00000002754 13377471101 0031616 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_user_add.html 0000664 0000000 0000000 00000006043 13377471101 0030001 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_user_backup.html 0000664 0000000 0000000 00000002073 13377471101 0030515 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_user_backup_list.html 0000664 0000000 0000000 00000001724 13377471101 0031552 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_user_delete.html 0000664 0000000 0000000 00000002020 13377471101 0030502 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_user_filter_add.html 0000664 0000000 0000000 00000003364 13377471101 0031351 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_user_filter_delete.html 0000664 0000000 0000000 00000002020 13377471101 0032047 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_user_filter_get.html 0000664 0000000 0000000 00000002071 13377471101 0031372 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_user_filter_update.html 0000664 0000000 0000000 00000003363 13377471101 0032102 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_user_get.html 0000664 0000000 0000000 00000002045 13377471101 0030026 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_user_update.html 0000664 0000000 0000000 00000006125 13377471101 0030534 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_whitelist_add.html 0000664 0000000 0000000 00000003053 13377471101 0031035 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_whitelist_delete.html 0000664 0000000 0000000 00000002022 13377471101 0031542 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_whitelist_get.html 0000664 0000000 0000000 00000002077 13377471101 0031071 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/mail_whitelist_update.html 0000664 0000000 0000000 00000003020 13377471101 0031561 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/navigation.html 0000664 0000000 0000000 00000042020 13377471101 0027343 0 ustar 00root root 0000000 0000000
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
ispconfig3-master-remoting_client/remoting_client/API-docs/openvz_get_free_ip.html 0000664 0000000 0000000 00000002600 13377471101 0031055 0 ustar 00root root 0000000 0000000
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"
ispconfig3-master-remoting_client/remoting_client/API-docs/openvz_ip_add.html 0000664 0000000 0000000 00000002576 13377471101 0030041 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/openvz_ip_delete.html 0000664 0000000 0000000 00000001771 13377471101 0030547 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/openvz_ip_get.html 0000664 0000000 0000000 00000002024 13377471101 0030054 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/openvz_ip_update.html 0000664 0000000 0000000 00000002606 13377471101 0030565 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/openvz_ostemplate_add.html 0000664 0000000 0000000 00000003130 13377471101 0031571 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/openvz_ostemplate_delete.html 0000664 0000000 0000000 00000002032 13377471101 0032303 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/openvz_ostemplate_get.html 0000664 0000000 0000000 00000002076 13377471101 0031630 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/openvz_ostemplate_update.html 0000664 0000000 0000000 00000003147 13377471101 0032333 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/openvz_template_add.html 0000664 0000000 0000000 00000010505 13377471101 0031233 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/openvz_template_delete.html 0000664 0000000 0000000 00000002021 13377471101 0031737 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/openvz_template_get.html 0000664 0000000 0000000 00000002062 13377471101 0031261 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/openvz_template_update.html 0000664 0000000 0000000 00000010523 13377471101 0031765 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/openvz_vm_add.html 0000664 0000000 0000000 00000006053 13377471101 0030045 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/openvz_vm_add_from_template.html 0000664 0000000 0000000 00000002722 13377471101 0032762 0 ustar 00root root 0000000 0000000
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 "
ispconfig3-master-remoting_client/remoting_client/API-docs/openvz_vm_delete.html 0000664 0000000 0000000 00000001771 13377471101 0030561 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/openvz_vm_get.html 0000664 0000000 0000000 00000002024 13377471101 0030066 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/openvz_vm_get_by_client.html 0000664 0000000 0000000 00000002275 13377471101 0032126 0 ustar 00root root 0000000 0000000
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'] )
ispconfig3-master-remoting_client/remoting_client/API-docs/openvz_vm_update.html 0000664 0000000 0000000 00000006063 13377471101 0030600 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/server_get.html 0000664 0000000 0000000 00000002051 13377471101 0027351 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/server_get_php_versions.html 0000664 0000000 0000000 00000001612 13377471101 0032152 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/server_get_serverid_by_ip.html 0000664 0000000 0000000 00000002315 13377471101 0032441 0 ustar 00root root 0000000 0000000
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 "
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_aps_available_packages_list.html 0000664 0000000 0000000 00000002267 13377471101 0034100 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_aps_get_package_details.html 0000664 0000000 0000000 00000002070 13377471101 0033216 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_aps_get_package_file.html 0000664 0000000 0000000 00000002702 13377471101 0032512 0 ustar 00root root 0000000 0000000
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)));
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_aps_get_package_settings.html 0000664 0000000 0000000 00000002073 13377471101 0033434 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_aps_install_package.html 0000664 0000000 0000000 00000002303 13377471101 0032377 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_aps_instance_delete.html 0000664 0000000 0000000 00000002346 13377471101 0032413 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_aps_instance_get.html 0000664 0000000 0000000 00000002017 13377471101 0031723 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_aps_instance_settings_get.html 0000664 0000000 0000000 00000002053 13377471101 0033643 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_aps_update_package_list.html 0000664 0000000 0000000 00000001753 13377471101 0033256 0 ustar 00root root 0000000 0000000
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
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_cron_add.html 0000664 0000000 0000000 00000003644 13377471101 0030175 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_cron_delete.html 0000664 0000000 0000000 00000001773 13377471101 0030710 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_cron_get.html 0000664 0000000 0000000 00000002033 13377471101 0030213 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_cron_update.html 0000664 0000000 0000000 00000003646 13377471101 0030731 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_database_add.html 0000664 0000000 0000000 00000004276 13377471101 0031002 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_database_delete.html 0000664 0000000 0000000 00000002006 13377471101 0031501 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_database_get.html 0000664 0000000 0000000 00000002047 13377471101 0031023 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_database_get_all_by_user.html 0000664 0000000 0000000 00000002446 13377471101 0033406 0 ustar 00root root 0000000 0000000
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 "
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_database_update.html 0000664 0000000 0000000 00000003547 13377471101 0031534 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_database_user_add.html 0000664 0000000 0000000 00000002512 13377471101 0032027 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_database_user_delete.html 0000664 0000000 0000000 00000002020 13377471101 0032533 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_database_user_get.html 0000664 0000000 0000000 00000002054 13377471101 0032057 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_database_user_update.html 0000664 0000000 0000000 00000002527 13377471101 0032567 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_ftp_user_add.html 0000664 0000000 0000000 00000004336 13377471101 0031062 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_ftp_user_delete.html 0000664 0000000 0000000 00000002007 13377471101 0031565 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_ftp_user_get.html 0000664 0000000 0000000 00000002050 13377471101 0031100 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_ftp_user_update.html 0000664 0000000 0000000 00000004350 13377471101 0031610 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_shell_user_add.html 0000664 0000000 0000000 00000003742 13377471101 0031400 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_shell_user_delete.html 0000664 0000000 0000000 00000002012 13377471101 0032077 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_shell_user_get.html 0000664 0000000 0000000 00000002055 13377471101 0031423 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_shell_user_update.html 0000664 0000000 0000000 00000003747 13377471101 0032137 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_web_aliasdomain_add.html 0000664 0000000 0000000 00000011525 13377471101 0032347 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_web_aliasdomain_delete.html 0000664 0000000 0000000 00000002012 13377471101 0033050 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_web_aliasdomain_get.html 0000664 0000000 0000000 00000002062 13377471101 0032372 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_web_aliasdomain_update.html 0000664 0000000 0000000 00000011576 13377471101 0033107 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_web_domain_add.html 0000664 0000000 0000000 00000012041 13377471101 0031327 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_web_domain_backup.html 0000664 0000000 0000000 00000002047 13377471101 0032051 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_web_domain_backup_list.html 0000664 0000000 0000000 00000001643 13377471101 0033105 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_web_domain_delete.html 0000664 0000000 0000000 00000002000 13377471101 0032033 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_web_domain_get.html 0000664 0000000 0000000 00000002043 13377471101 0031357 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_web_domain_set_status.html 0000664 0000000 0000000 00000002611 13377471101 0032777 0 ustar 00root root 0000000 0000000
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 )
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_web_domain_update.html 0000664 0000000 0000000 00000011374 13377471101 0032071 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_web_subdomain_add.html 0000664 0000000 0000000 00000011523 13377471101 0032045 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_web_subdomain_delete.html 0000664 0000000 0000000 00000002006 13377471101 0032553 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_web_subdomain_get.html 0000664 0000000 0000000 00000002054 13377471101 0032073 0 ustar 00root root 0000000 0000000
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.
ispconfig3-master-remoting_client/remoting_client/API-docs/sites_web_subdomain_update.html 0000664 0000000 0000000 00000011451 13377471101 0032577 0 ustar 00root root 0000000 0000000
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-master-remoting_client/remoting_client/cli/ 0000775 0000000 0000000 00000000000 13377471101 0023530 5 ustar 00root root 0000000 0000000 ispconfig3-master-remoting_client/remoting_client/cli/README.md 0000664 0000000 0000000 00000005540 13377471101 0025013 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.
ispconfig3-master-remoting_client/remoting_client/cli/ispconfig-cli 0000775 0000000 0000000 00000032223 13377471101 0026206 0 ustar 00root root 0000000 0000000 #!/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
ispconfig3-master-remoting_client/remoting_client/cli/ispconfig-cli.conf.example 0000664 0000000 0000000 00000000235 13377471101 0030557 0 ustar 00root root 0000000 0000000 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-master-remoting_client/remoting_client/examples/ 0000775 0000000 0000000 00000000000 13377471101 0024577 5 ustar 00root root 0000000 0000000 ispconfig3-master-remoting_client/remoting_client/examples/client_add.php 0000664 0000000 0000000 00000004660 13377471101 0027404 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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,mod',
'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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/client_change_password.php 0000664 0000000 0000000 00000001423 13377471101 0032015 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/client_delete.php 0000664 0000000 0000000 00000001224 13377471101 0030107 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/client_delete_everything.php 0000664 0000000 0000000 00000001266 13377471101 0032361 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/client_get.php 0000664 0000000 0000000 00000001165 13377471101 0027430 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/client_get_by_username.php 0000664 0000000 0000000 00000001174 13377471101 0032021 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/client_get_id.php 0000664 0000000 0000000 00000001162 13377471101 0030101 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/client_get_sites_by_user.php 0000664 0000000 0000000 00000001236 13377471101 0032366 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/client_templates_get_all.php 0000664 0000000 0000000 00000001112 13377471101 0032326 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/client_update.php 0000664 0000000 0000000 00000002050 13377471101 0030125 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_a_add.php 0000664 0000000 0000000 00000001513 13377471101 0027204 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_a_delete.php 0000664 0000000 0000000 00000001200 13377471101 0027707 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_a_get.php 0000664 0000000 0000000 00000001130 13377471101 0027226 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_a_update.php 0000664 0000000 0000000 00000001506 13377471101 0027740 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_aaaa_add.php 0000664 0000000 0000000 00000001531 13377471101 0027647 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_aaaa_delete.php 0000664 0000000 0000000 00000001203 13377471101 0030355 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_aaaa_get.php 0000664 0000000 0000000 00000001133 13377471101 0027674 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_aaaa_update.php 0000664 0000000 0000000 00000001514 13377471101 0030402 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_alias_add.php 0000664 0000000 0000000 00000001526 13377471101 0030061 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_alias_delete.php 0000664 0000000 0000000 00000001204 13377471101 0030564 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_alias_get.php 0000664 0000000 0000000 00000001134 13377471101 0030103 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_alias_update.php 0000664 0000000 0000000 00000001516 13377471101 0030612 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_cname_add.php 0000664 0000000 0000000 00000001526 13377471101 0030053 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_cname_delete.php 0000664 0000000 0000000 00000001204 13377471101 0030556 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_cname_get.php 0000664 0000000 0000000 00000001134 13377471101 0030075 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_cname_update.php 0000664 0000000 0000000 00000001516 13377471101 0030604 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_hinfo_add.php 0000664 0000000 0000000 00000001535 13377471101 0030073 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_hinfo_delete.php 0000664 0000000 0000000 00000001204 13377471101 0030576 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_hinfo_get.php 0000664 0000000 0000000 00000001134 13377471101 0030115 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_hinfo_update.php 0000664 0000000 0000000 00000001516 13377471101 0030624 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_mx_add.php 0000664 0000000 0000000 00000001521 13377471101 0027407 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_mx_delete.php 0000664 0000000 0000000 00000001201 13377471101 0030114 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_mx_get.php 0000664 0000000 0000000 00000001131 13377471101 0027433 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_mx_update.php 0000664 0000000 0000000 00000001510 13377471101 0030137 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_ns_add.php 0000664 0000000 0000000 00000001515 13377471101 0027406 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_ns_delete.php 0000664 0000000 0000000 00000001201 13377471101 0030110 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_ns_get.php 0000664 0000000 0000000 00000001131 13377471101 0027427 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_ns_update.php 0000664 0000000 0000000 00000001510 13377471101 0030133 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_ptr_add.php 0000664 0000000 0000000 00000001534 13377471101 0027574 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_ptr_delete.php 0000664 0000000 0000000 00000001202 13377471101 0030276 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_ptr_get.php 0000664 0000000 0000000 00000001132 13377471101 0027615 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_ptr_update.php 0000664 0000000 0000000 00000001512 13377471101 0030322 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_rp_add.php 0000664 0000000 0000000 00000001571 13377471101 0027411 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_rp_delete.php 0000664 0000000 0000000 00000001202 13377471101 0030112 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_rp_get.php 0000664 0000000 0000000 00000001132 13377471101 0027431 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_rp_update.php 0000664 0000000 0000000 00000001511 13377471101 0030135 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_rr_get_all_by_zone.php 0000664 0000000 0000000 00000001203 13377471101 0032007 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_srv_add.php 0000664 0000000 0000000 00000001535 13377471101 0027602 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_srv_delete.php 0000664 0000000 0000000 00000001203 13377471101 0030304 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_srv_get.php 0000664 0000000 0000000 00000001133 13377471101 0027623 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_srv_update.php 0000664 0000000 0000000 00000001513 13377471101 0030330 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_txt_add.php 0000664 0000000 0000000 00000001541 13377471101 0027604 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_txt_delete.php 0000664 0000000 0000000 00000001202 13377471101 0030310 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_txt_get.php 0000664 0000000 0000000 00000001133 13377471101 0027630 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_txt_update.php 0000664 0000000 0000000 00000001513 13377471101 0030335 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_zone_add.php 0000664 0000000 0000000 00000001675 13377471101 0027750 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_zone_delete.php 0000664 0000000 0000000 00000001202 13377471101 0030444 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_zone_get.php 0000664 0000000 0000000 00000001133 13377471101 0027764 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_zone_get_by_user.php 0000664 0000000 0000000 00000001242 13377471101 0031515 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_zone_set_status.php 0000664 0000000 0000000 00000001246 13377471101 0031410 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/dns_zone_update.php 0000664 0000000 0000000 00000001514 13377471101 0030472 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/domains_domain_add.php 0000664 0000000 0000000 00000001271 13377471101 0031102 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/domains_domain_delete.php 0000664 0000000 0000000 00000001226 13377471101 0031614 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/domains_domain_get.php 0000664 0000000 0000000 00000001165 13377471101 0031133 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/domains_get_all_by_user.php 0000664 0000000 0000000 00000001170 13377471101 0032160 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/get_function_list.php 0000664 0000000 0000000 00000001145 13377471101 0031030 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/login.php 0000664 0000000 0000000 00000000732 13377471101 0026422 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/logout.php 0000664 0000000 0000000 00000001054 13377471101 0026621 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_alias_add.php 0000664 0000000 0000000 00000001437 13377471101 0030220 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_alias_delete.php 0000664 0000000 0000000 00000001220 13377471101 0030720 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_alias_get.php 0000664 0000000 0000000 00000001167 13377471101 0030247 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_alias_update.php 0000664 0000000 0000000 00000001604 13377471101 0030746 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_blacklist_add.php 0000664 0000000 0000000 00000001435 13377471101 0031075 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_blacklist_delete.php 0000664 0000000 0000000 00000001234 13377471101 0031604 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_blacklist_get.php 0000664 0000000 0000000 00000001213 13377471101 0031116 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_blacklist_update.php 0000664 0000000 0000000 00000001646 13377471101 0031633 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_catchall_add.php 0000664 0000000 0000000 00000001443 13377471101 0030677 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_catchall_delete.php 0000664 0000000 0000000 00000001231 13377471101 0031404 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_catchall_get.php 0000664 0000000 0000000 00000001206 13377471101 0030723 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_catchall_update.php 0000664 0000000 0000000 00000001634 13377471101 0031433 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_domain_add.php 0000664 0000000 0000000 00000001332 13377471101 0030370 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_domain_delete.php 0000664 0000000 0000000 00000001223 13377471101 0031101 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_domain_get.php 0000664 0000000 0000000 00000001174 13377471101 0030423 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_domain_get_by_domain.php 0000664 0000000 0000000 00000001215 13377471101 0032440 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_domain_set_status.php 0000664 0000000 0000000 00000001251 13377471101 0032036 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_domain_update.php 0000664 0000000 0000000 00000001614 13377471101 0031125 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_fetchmail_add.php 0000664 0000000 0000000 00000001651 13377471101 0031061 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_fetchmail_delete.php 0000664 0000000 0000000 00000001234 13377471101 0031570 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_fetchmail_get.php 0000664 0000000 0000000 00000001213 13377471101 0031102 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_fetchmail_update.php 0000664 0000000 0000000 00000001641 13377471101 0031612 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_filter_add.php 0000664 0000000 0000000 00000001445 13377471101 0030413 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_filter_delete.php 0000664 0000000 0000000 00000001223 13377471101 0031117 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_filter_get.php 0000664 0000000 0000000 00000001174 13377471101 0030441 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_filter_update.php 0000664 0000000 0000000 00000001614 13377471101 0031143 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_forward_add.php 0000664 0000000 0000000 00000001450 13377471101 0030566 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_forward_delete.php 0000664 0000000 0000000 00000001276 13377471101 0031306 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_forward_get.php 0000664 0000000 0000000 00000001364 13377471101 0030621 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_forward_update.php 0000664 0000000 0000000 00000001636 13377471101 0031326 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_mailinglist_add.php 0000664 0000000 0000000 00000001455 13377471101 0031443 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_mailinglist_delete.php 0000664 0000000 0000000 00000001314 13377471101 0032147 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_mailinglist_get.php 0000664 0000000 0000000 00000001213 13377471101 0031462 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_mailinglist_update.php 0000664 0000000 0000000 00000001655 13377471101 0032177 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_policy_add.php 0000664 0000000 0000000 00000003350 13377471101 0030422 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_policy_delete.php 0000664 0000000 0000000 00000001240 13377471101 0031130 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_policy_get.php 0000664 0000000 0000000 00000001156 13377471101 0030453 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_policy_update.php 0000664 0000000 0000000 00000001604 13377471101 0031154 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_spamfilter_blacklist_add.php 0000664 0000000 0000000 00000001452 13377471101 0033322 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_spamfilter_blacklist_delete.php 0000664 0000000 0000000 00000001305 13377471101 0034031 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_spamfilter_blacklist_get.php 0000664 0000000 0000000 00000001212 13377471101 0033343 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_spamfilter_blacklist_update.php 0000664 0000000 0000000 00000001653 13377471101 0034057 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_spamfilter_user_add.php 0000664 0000000 0000000 00000001501 13377471101 0032323 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_spamfilter_user_delete.php 0000664 0000000 0000000 00000001272 13377471101 0033042 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_spamfilter_user_get.php 0000664 0000000 0000000 00000001211 13377471101 0032350 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_spamfilter_user_update.php 0000664 0000000 0000000 00000001674 13377471101 0033070 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_spamfilter_whitelist_add.php 0000664 0000000 0000000 00000001452 13377471101 0033366 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_spamfilter_whitelist_delete.php 0000664 0000000 0000000 00000001305 13377471101 0034075 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_spamfilter_whitelist_get.php 0000664 0000000 0000000 00000001212 13377471101 0033407 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_spamfilter_whitelist_update.php 0000664 0000000 0000000 00000001653 13377471101 0034123 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_transport_add.php 0000664 0000000 0000000 00000001422 13377471101 0031155 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_transport_delete.php 0000664 0000000 0000000 00000001300 13377471101 0031662 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_transport_get.php 0000664 0000000 0000000 00000001213 13377471101 0031202 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_transport_update.php 0000664 0000000 0000000 00000001647 13377471101 0031720 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_user_add.php 0000664 0000000 0000000 00000002352 13377471101 0030102 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_user_delete.php 0000664 0000000 0000000 00000001225 13377471101 0030612 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_user_filter_add.php 0000664 0000000 0000000 00000001477 13377471101 0031456 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_user_filter_delete.php 0000664 0000000 0000000 00000001272 13377471101 0032161 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_user_filter_get.php 0000664 0000000 0000000 00000001201 13377471101 0031466 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_user_filter_update.php 0000664 0000000 0000000 00000001644 13377471101 0032204 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_user_get.php 0000664 0000000 0000000 00000001140 13377471101 0030123 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_user_update.php 0000664 0000000 0000000 00000001611 13377471101 0030631 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_whitelist_add.php 0000664 0000000 0000000 00000001431 13377471101 0031135 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_whitelist_delete.php 0000664 0000000 0000000 00000001234 13377471101 0031650 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_whitelist_get.php 0000664 0000000 0000000 00000001213 13377471101 0031162 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/mail_whitelist_update.php 0000664 0000000 0000000 00000001647 13377471101 0031700 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/monitor_jobqueue_count.php 0000664 0000000 0000000 00000001554 13377471101 0032113 0 ustar 00root root 0000000 0000000 [
// 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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/openvz_get_free_ip.php 0000664 0000000 0000000 00000001166 13377471101 0031165 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/openvz_ip_add.php 0000664 0000000 0000000 00000001347 13377471101 0030136 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/openvz_ip_delete.php 0000664 0000000 0000000 00000001244 13377471101 0030644 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/openvz_ip_get.php 0000664 0000000 0000000 00000001140 13377471101 0030154 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/openvz_ip_update.php 0000664 0000000 0000000 00000001540 13377471101 0030663 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/openvz_ostemplate_add.php 0000664 0000000 0000000 00000001502 13377471101 0031674 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/openvz_ostemplate_delete.php 0000664 0000000 0000000 00000001304 13377471101 0032406 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/openvz_ostemplate_get.php 0000664 0000000 0000000 00000001210 13377471101 0031717 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/openvz_ostemplate_update.php 0000664 0000000 0000000 00000001640 13377471101 0032431 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/openvz_template_add.php 0000664 0000000 0000000 00000003442 13377471101 0031337 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/openvz_template_delete.php 0000664 0000000 0000000 00000001274 13377471101 0032052 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/openvz_template_get.php 0000664 0000000 0000000 00000001176 13377471101 0031370 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/openvz_template_update.php 0000664 0000000 0000000 00000001624 13377471101 0032071 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/openvz_vm_add.php 0000664 0000000 0000000 00000002260 13377471101 0030143 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/openvz_vm_add_from_template.php 0000664 0000000 0000000 00000001706 13377471101 0033065 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/openvz_vm_delete.php 0000664 0000000 0000000 00000001261 13377471101 0030655 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/openvz_vm_get.php 0000664 0000000 0000000 00000001140 13377471101 0030166 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/openvz_vm_get_by_client.php 0000664 0000000 0000000 00000001155 13377471101 0032224 0 ustar 00root root 0000000 0000000 $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/openvz_vm_update.php 0000664 0000000 0000000 00000001532 13377471101 0030676 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/rest_example.php 0000664 0000000 0000000 00000003461 13377471101 0030004 0 ustar 00root root 0000000 0000000 $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";
}
ispconfig3-master-remoting_client/remoting_client/examples/rest_example.sh 0000664 0000000 0000000 00000001752 13377471101 0027630 0 ustar 00root root 0000000 0000000 #!/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
ispconfig3-master-remoting_client/remoting_client/examples/server_config_set.php 0000664 0000000 0000000 00000001610 13377471101 0031014 0 ustar 00root root 0000000 0000000 [
// 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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/server_get.php 0000664 0000000 0000000 00000001211 13377471101 0027450 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/server_get_serverid_by_ip.php 0000664 0000000 0000000 00000001230 13377471101 0032536 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/sites_cron_add.php 0000664 0000000 0000000 00000001547 13377471101 0030277 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/sites_cron_delete.php 0000664 0000000 0000000 00000001247 13377471101 0031006 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/sites_cron_get.php 0000664 0000000 0000000 00000001151 13377471101 0030315 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/sites_cron_update.php 0000664 0000000 0000000 00000001535 13377471101 0031026 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/sites_database_add.php 0000664 0000000 0000000 00000001736 13377471101 0031102 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/sites_database_delete.php 0000664 0000000 0000000 00000001270 13377471101 0031605 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/sites_database_get.php 0000664 0000000 0000000 00000001175 13377471101 0031126 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/sites_database_get_all_by_user.php 0000664 0000000 0000000 00000001220 13377471101 0033475 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/sites_database_update.php 0000664 0000000 0000000 00000001613 13377471101 0031626 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/sites_database_user_add.php 0000664 0000000 0000000 00000001413 13377471101 0032130 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/sites_database_user_delete.php 0000664 0000000 0000000 00000001307 13377471101 0032644 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/sites_database_user_get.php 0000664 0000000 0000000 00000001214 13377471101 0032156 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/sites_database_user_update.php 0000664 0000000 0000000 00000001711 13377471101 0032663 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/sites_ftp_user_add.php 0000664 0000000 0000000 00000001765 13377471101 0031167 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/sites_ftp_user_delete.php 0000664 0000000 0000000 00000001233 13377471101 0031667 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/sites_ftp_user_get.php 0000664 0000000 0000000 00000001175 13377471101 0031211 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/sites_ftp_user_update.php 0000664 0000000 0000000 00000001601 13377471101 0031706 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/sites_shell_user_add.php 0000664 0000000 0000000 00000001674 13377471101 0031504 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/sites_shell_user_delete.php 0000664 0000000 0000000 00000001303 13377471101 0032203 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/sites_shell_user_get.php 0000664 0000000 0000000 00000001207 13377471101 0031523 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/sites_shell_user_update.php 0000664 0000000 0000000 00000001623 13377471101 0032230 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/sites_web_aliasdomain_add.php 0000664 0000000 0000000 00000003247 13377471101 0032453 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/sites_web_aliasdomain_delete.php 0000664 0000000 0000000 00000001310 13377471101 0033152 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/sites_web_aliasdomain_get.php 0000664 0000000 0000000 00000001220 13377471101 0032467 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/sites_web_aliasdomain_update.php 0000664 0000000 0000000 00000001656 13377471101 0033207 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/sites_web_domain_add.php 0000664 0000000 0000000 00000003326 13377471101 0031437 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/sites_web_domain_delete.php 0000664 0000000 0000000 00000001273 13377471101 0032150 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/sites_web_domain_get.php 0000664 0000000 0000000 00000001167 13377471101 0031467 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/sites_web_domain_set_status.php 0000664 0000000 0000000 00000001254 13377471101 0033103 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/sites_web_domain_update.php 0000664 0000000 0000000 00000002001 13377471101 0032156 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/sites_web_subdomain_add.php 0000664 0000000 0000000 00000003245 13377471101 0032151 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/sites_web_subdomain_delete.php 0000664 0000000 0000000 00000001301 13377471101 0032652 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/sites_web_subdomain_get.php 0000664 0000000 0000000 00000001207 13377471101 0032174 0 ustar 00root root 0000000 0000000 $soap_location,
'uri' => $soap_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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/sites_web_subdomain_update.php 0000664 0000000 0000000 00000001635 13377471101 0032704 0 ustar 00root root 0000000 0000000 $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());
}
?>
ispconfig3-master-remoting_client/remoting_client/examples/soap_config.php 0000664 0000000 0000000 00000000533 13377471101 0027600 0 ustar 00root root 0000000 0000000
ispconfig3-master-remoting_client/remoting_client/examples/system_config_set.php 0000664 0000000 0000000 00000001600 13377471101 0031031 0 ustar 00root root 0000000 0000000 [
// 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-master-remoting_client/remoting_client/readme 0000664 0000000 0000000 00000001006 13377471101 0024136 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