pax_global_header 0000666 0000000 0000000 00000000064 13437460511 0014516 g ustar 00root root 0000000 0000000 52 comment=607d3643858d70b1a78e91d09e4ac27ccbe428bb
ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/ 0000775 0000000 0000000 00000000000 13437460511 0025564 5 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/ 0000775 0000000 0000000 00000000000 13437460511 0030746 5 ustar 00root root 0000000 0000000 examples/ 0000775 0000000 0000000 00000000000 13437460511 0032505 5 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client client_add.php 0000664 0000000 0000000 00000004660 13437460511 0035312 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$reseller_id = 0; // this id has to be 0 if the client shall not be assigned to admin or if the client is a reseller
$params = array(
'company_name' => 'awesomecompany',
'contact_name' => 'name',
'customer_no' => '1',
'vat_id' => '1',
'street' => 'fleetstreet',
'zip' => '21337',
'city' => 'london',
'state' => 'bavaria',
'country' => 'GB',
'telephone' => '123456789',
'mobile' => '987654321',
'fax' => '546718293',
'email' => 'e@mail.int',
'internet' => '',
'icq' => '111111111',
'notes' => 'awesome',
'default_mailserver' => 1,
'limit_maildomain' => -1,
'limit_mailbox' => -1,
'limit_mailalias' => -1,
'limit_mailaliasdomain' => -1,
'limit_mailforward' => -1,
'limit_mailcatchall' => -1,
'limit_mailrouting' => 0,
'limit_mailfilter' => -1,
'limit_fetchmail' => -1,
'limit_mailquota' => -1,
'limit_spamfilter_wblist' => 0,
'limit_spamfilter_user' => 0,
'limit_spamfilter_policy' => 1,
'default_webserver' => 1,
'limit_web_ip' => '',
'limit_web_domain' => -1,
'limit_web_quota' => -1,
'web_php_options' => 'no,fast-cgi,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());
}
?>
client_change_password.php 0000664 0000000 0000000 00000001423 13437460511 0037723 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$client_id = 1;
$new_password = 'YourNewPAssword';
$success = $client->client_change_password($session_id, $client_id, $new_password);
if ($success = 1)
{
echo "Password has been changed successfully";
}
else
{
echo "Error";
}
echo "
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
client_delete.php 0000664 0000000 0000000 00000001224 13437460511 0036015 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$id = 1;
//* Delete client
$affected_rows = $client->client_delete($session_id, $id);
echo "Number of records that have been deleted: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
client_delete_everything.php 0000664 0000000 0000000 00000001266 13437460511 0040267 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$client_id = 9;
//* Delete client
$affected_rows = $client->client_delete_everything($session_id, $client_id);
//echo "Client ".$client_id." has been deleted.
";
//print_r($affected_rows);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
client_get.php 0000664 0000000 0000000 00000001165 13437460511 0035336 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$var_client_id = 1;
$client_record = $client->client_get($session_id, $var_client_id);
print_r($client_record);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
client_get_by_username.php 0000664 0000000 0000000 00000001174 13437460511 0037727 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$username = 'guy3';
$record_record = $client->client_get_by_username($session_id, $username);
print_r($record_record);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
client_get_id.php 0000664 0000000 0000000 00000001162 13437460511 0036007 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$sys_userid = 5;
$client_record = $client->client_get_id($session_id, $sys_userid);
print_r($client_record);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
client_get_sites_by_user.php 0000664 0000000 0000000 00000001236 13437460511 0040274 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$sys_userid = 1;
$sys_groupid = 1;
$record_record = $client->client_get_sites_by_user($session_id, $sys_userid, $sys_groupid);
print_r($record_record);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
client_templates_get_all.php 0000664 0000000 0000000 00000001112 13437460511 0040234 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
$record_record = $client->client_templates_get_all($session_id);
print_r($record_record);
echo "
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
client_update.php 0000664 0000000 0000000 00000002050 13437460511 0036033 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$reseller_id = 1;
$client_id = 1;
//* Get the client record
$client_record = $client->client_get($session_id, $client_id);
//* Change parameters
$client_record['country'] = 'de';
$client_record['username'] = 'mguy';
$client_record['contact_name'] = 'brush';
//* We set the client password to a empty string as we do not want to change it.
$client_record['password'] = '';
$affected_rows = $client->client_update($session_id, $c_id, $reseller_id, $client_record);
echo "Number of records that have been changed in the database: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_a_add.php 0000664 0000000 0000000 00000001513 13437460511 0035112 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$client_id = 1;
$params = array(
'server_id' => 1,
'zone' => 5,
'name' => 'a',
'type' => 'a',
'data' => '192.168.1.88',
'aux' => '0',
'ttl' => '3600',
'active' => 'y',
'stamp' => 'CURRENT_TIMESTAMP',
'serial' => '1',
);
$id = $client->dns_a_add($session_id, $client_id, $params);
echo "ID: ".$id."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_a_delete.php 0000664 0000000 0000000 00000001200 13437460511 0035615 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$id = 3;
$affected_rows = $client->dns_a_delete($session_id, $id);
echo "Number of records that have been deleted: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_a_get.php 0000664 0000000 0000000 00000001130 13437460511 0035134 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$id = 3;
$dns_record = $client->dns_a_get($session_id, $id);
print_r($dns_record);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_a_update.php 0000664 0000000 0000000 00000001506 13437460511 0035646 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$id = 3;
$client_id = 1;
//* Get the dns record
$dns_record = $client->dns_a_get($session_id, $id);
//* Change active to inactive
$dns_record['active'] = 'n';
$affected_rows = $client->dns_a_update($session_id, $client_id, $id, $dns_record);
echo "Number of records that have been changed in the database: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_aaaa_add.php 0000664 0000000 0000000 00000001531 13437460511 0035555 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$client_id = 1;
$params = array(
'server_id' => 1,
'zone' => 1,
'name' => 'aaaa',
'type' => 'aaaa',
'data' => '3ffe:b00:c18:3::a',
'aux' => '0',
'ttl' => '3600',
'active' => 'y',
'stamp' => 'CURRENT_TIMESTAMP',
'serial' => '1',
);
$id = $client->dns_aaaa_add($session_id, $client_id, $params);
echo "ID: ".$id."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_aaaa_delete.php 0000664 0000000 0000000 00000001203 13437460511 0036263 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$id = 1;
$affected_rows = $client->dns_aaaa_delete($session_id, $id);
echo "Number of records that have been deleted: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_aaaa_get.php 0000664 0000000 0000000 00000001133 13437460511 0035602 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$id = 1;
$dns_record = $client->dns_aaaa_get($session_id, $id);
print_r($dns_record);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_aaaa_update.php 0000664 0000000 0000000 00000001514 13437460511 0036310 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$id = 1;
$client_id = 1;
//* Get the dns record
$dns_record = $client->dns_aaaa_get($session_id, $id);
//* Change active to inactive
$dns_record['active'] = 'n';
$affected_rows = $client->dns_aaaa_update($session_id, $client_id, $id, $dns_record);
echo "Number of records that have been changed in the database: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_alias_add.php 0000664 0000000 0000000 00000001526 13437460511 0035767 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$client_id = 1;
$params = array(
'server_id' => 1,
'zone' => 4,
'name' => 'alias',
'type' => 'alias',
'data' => 'hostmachine',
'aux' => '0',
'ttl' => '3600',
'active' => 'y',
'stamp' => 'CURRENT_TIMESTAMP',
'serial' => '1',
);
$id = $client->dns_alias_add($session_id, $client_id, $params);
echo "ID: ".$id."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_alias_delete.php 0000664 0000000 0000000 00000001204 13437460511 0036472 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$id = 4;
$affected_rows = $client->dns_alias_delete($session_id, $id);
echo "Number of records that have been deleted: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_alias_get.php 0000664 0000000 0000000 00000001134 13437460511 0036011 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$id = 4;
$dns_record = $client->dns_alias_get($session_id, $id);
print_r($dns_record);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_alias_update.php 0000664 0000000 0000000 00000001516 13437460511 0036520 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$id = 4;
$client_id = 1;
//* Get the dns record
$dns_record = $client->dns_alias_get($session_id, $id);
//* Change active to inactive
$dns_record['active'] = 'n';
$affected_rows = $client->dns_alias_update($session_id, $client_id, $id, $dns_record);
echo "Number of records that have been changed in the database: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_cname_add.php 0000664 0000000 0000000 00000001526 13437460511 0035761 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$client_id = 1;
$params = array(
'server_id' => 1,
'zone' => 3,
'name' => 'cname',
'type' => 'cname',
'data' => 'hostmachine',
'aux' => '0',
'ttl' => '3600',
'active' => 'y',
'stamp' => 'CURRENT_TIMESTAMP',
'serial' => '1',
);
$id = $client->dns_cname_add($session_id, $client_id, $params);
echo "ID: ".$id."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_cname_delete.php 0000664 0000000 0000000 00000001204 13437460511 0036464 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$id = 5;
$affected_rows = $client->dns_cname_delete($session_id, $id);
echo "Number of records that have been deleted: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_cname_get.php 0000664 0000000 0000000 00000001134 13437460511 0036003 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$id = 5;
$dns_record = $client->dns_cname_get($session_id, $id);
print_r($dns_record);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_cname_update.php 0000664 0000000 0000000 00000001516 13437460511 0036512 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$id = 5;
$client_id = 1;
//* Get the dns record
$dns_record = $client->dns_cname_get($session_id, $id);
//* Change active to inactive
$dns_record['active'] = 'n';
$affected_rows = $client->dns_cname_update($session_id, $client_id, $id, $dns_record);
echo "Number of records that have been changed in the database: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_hinfo_add.php 0000664 0000000 0000000 00000001535 13437460511 0036001 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$client_id = 1;
$params = array(
'server_id' => 1,
'zone' => 2,
'name' => 'info',
'type' => 'hinfo',
'data' => '"Pentium Pro" Linux',
'aux' => '0',
'ttl' => '3600',
'active' => 'y',
'stamp' => 'CURRENT_TIMESTAMP',
'serial' => '1',
);
$id = $client->dns_hinfo_add($session_id, $client_id, $params);
echo "ID: ".$id."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_hinfo_delete.php 0000664 0000000 0000000 00000001204 13437460511 0036504 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$id = 6;
$affected_rows = $client->dns_hinfo_delete($session_id, $id);
echo "Number of records that have been deleted: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_hinfo_get.php 0000664 0000000 0000000 00000001134 13437460511 0036023 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$id = 6;
$dns_record = $client->dns_hinfo_get($session_id, $id);
print_r($dns_record);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_hinfo_update.php 0000664 0000000 0000000 00000001516 13437460511 0036532 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$id = 6;
$client_id = 1;
//* Get the dns record
$dns_record = $client->dns_hinfo_get($session_id, $id);
//* Change active to inactive
$dns_record['active'] = 'n';
$affected_rows = $client->dns_hinfo_update($session_id, $client_id, $id, $dns_record);
echo "Number of records that have been changed in the database: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_mx_add.php 0000664 0000000 0000000 00000001521 13437460511 0035315 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$client_id = 1;
$params = array(
'server_id' => 1,
'zone' => 6,
'name' => 'mailexchanger',
'type' => 'mx',
'data' => 'mail',
'aux' => '0',
'ttl' => '3600',
'active' => 'y',
'stamp' => 'CURRENT_TIMESTAMP',
'serial' => '1',
);
$id = $client->dns_mx_add($session_id, $client_id, $params);
echo "ID: ".$id."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_mx_delete.php 0000664 0000000 0000000 00000001201 13437460511 0036022 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$id = 7;
$affected_rows = $client->dns_mx_delete($session_id, $id);
echo "Number of records that have been deleted: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_mx_get.php 0000664 0000000 0000000 00000001131 13437460511 0035341 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$id = 7;
$dns_record = $client->dns_mx_get($session_id, $id);
print_r($dns_record);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_mx_update.php 0000664 0000000 0000000 00000001510 13437460511 0036045 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$id = 7;
$client_id = 1;
//* Get the dns record
$dns_record = $client->dns_mx_get($session_id, $id);
//* Change active to inactive
$dns_record['active'] = 'n';
$affected_rows = $client->dns_mx_update($session_id, $client_id, $id, $dns_record);
echo "Number of records that have been changed in the database: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_ns_add.php 0000664 0000000 0000000 00000001515 13437460511 0035314 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$client_id = 1;
$params = array(
'server_id' => 1,
'zone' => 7,
'name' => 'nameserver',
'type' => 'ns',
'data' => 'ns1',
'aux' => '0',
'ttl' => '3600',
'active' => 'y',
'stamp' => 'CURRENT_TIMESTAMP',
'serial' => '1',
);
$id = $client->dns_ns_add($session_id, $client_id, $params);
echo "ID: ".$id."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_ns_delete.php 0000664 0000000 0000000 00000001201 13437460511 0036016 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$id = 8;
$affected_rows = $client->dns_ns_delete($session_id, $id);
echo "Number of records that have been deleted: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_ns_get.php 0000664 0000000 0000000 00000001131 13437460511 0035335 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$id = 8;
$dns_record = $client->dns_ns_get($session_id, $id);
print_r($dns_record);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_ns_update.php 0000664 0000000 0000000 00000001510 13437460511 0036041 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$id = 8;
$client_id = 1;
//* Get the dns record
$dns_record = $client->dns_ns_get($session_id, $id);
//* Change active to inactive
$dns_record['active'] = 'n';
$affected_rows = $client->dns_ns_update($session_id, $client_id, $id, $dns_record);
echo "Number of records that have been changed in the database: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_ptr_add.php 0000664 0000000 0000000 00000001534 13437460511 0035502 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$client_id = 1;
$params = array(
'server_id' => 1,
'zone' => 8,
'name' => 'pointer',
'type' => 'ptr',
'data' => 'webmaster.test.int.',
'aux' => '0',
'ttl' => '3600',
'active' => 'y',
'stamp' => 'CURRENT_TIMESTAMP',
'serial' => '1',
);
$id = $client->dns_ptr_add($session_id, $client_id, $params);
echo "ID: ".$id."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_ptr_delete.php 0000664 0000000 0000000 00000001202 13437460511 0036204 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$id = 9;
$affected_rows = $client->dns_ptr_delete($session_id, $id);
echo "Number of records that have been deleted: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_ptr_get.php 0000664 0000000 0000000 00000001132 13437460511 0035523 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$id = 9;
$dns_record = $client->dns_ptr_get($session_id, $id);
print_r($dns_record);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_ptr_update.php 0000664 0000000 0000000 00000001512 13437460511 0036230 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$id = 9;
$client_id = 1;
//* Get the dns record
$dns_record = $client->dns_ptr_get($session_id, $id);
//* Change active to inactive
$dns_record['active'] = 'n';
$affected_rows = $client->dns_ptr_update($session_id, $client_id, $id, $dns_record);
echo "Number of records that have been changed in the database: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_rp_add.php 0000664 0000000 0000000 00000001571 13437460511 0035317 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$client_id = 1;
$params = array(
'server_id' => 1,
'zone' => 9,
'name' => 'responsibleperson',
'type' => 'rp',
'data' => 'webmaster.test.int. contactinfo.test.int',
'aux' => '0',
'ttl' => '3600',
'active' => 'y',
'stamp' => 'CURRENT_TIMESTAMP',
'serial' => '1',
);
$id = $client->dns_rp_add($session_id, $client_id, $params);
echo "ID: ".$id."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_rp_delete.php 0000664 0000000 0000000 00000001202 13437460511 0036020 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$id = 10;
$affected_rows = $client->dns_rp_delete($session_id, $id);
echo "Number of records that have been deleted: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_rp_get.php 0000664 0000000 0000000 00000001132 13437460511 0035337 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$id = 10;
$dns_record = $client->dns_rp_get($session_id, $id);
print_r($dns_record);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_rp_update.php 0000664 0000000 0000000 00000001511 13437460511 0036043 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$id = 10;
$client_id = 1;
//* Get the dns record
$dns_record = $client->dns_rp_get($session_id, $id);
//* Change active to inactive
$dns_record['active'] = 'n';
$affected_rows = $client->dns_rp_update($session_id, $client_id, $id, $dns_record);
echo "Number of records that have been changed in the database: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_rr_get_all_by_zone.php 0000664 0000000 0000000 00000001203 13437460511 0037715 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$zone_id = 3;
$record_record = $client->dns_rr_get_all_by_zone($session_id, $zone_id);
print_r($record_record);
echo "
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_srv_add.php 0000664 0000000 0000000 00000001535 13437460511 0035510 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$client_id = 1;
$params = array(
'server_id' => 1,
'zone' => 10,
'name' => 'server',
'type' => 'srv',
'data' => '0 9 server.test.int.',
'aux' => '0',
'ttl' => '3600',
'active' => 'y',
'stamp' => 'CURRENT_TIMESTAMP',
'serial' => '1',
);
$id = $client->dns_srv_add($session_id, $client_id, $params);
echo "ID: ".$id."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_srv_delete.php 0000664 0000000 0000000 00000001203 13437460511 0036212 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$id = 11;
$affected_rows = $client->dns_srv_delete($session_id, $id);
echo "Number of records that have been deleted: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_srv_get.php 0000664 0000000 0000000 00000001133 13437460511 0035531 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$id = 11;
$dns_record = $client->dns_srv_get($session_id, $id);
print_r($dns_record);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_srv_update.php 0000664 0000000 0000000 00000001513 13437460511 0036236 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$id = 11;
$client_id = 1;
//* Get the dns record
$dns_record = $client->dns_srv_get($session_id, $id);
//* Change active to inactive
$dns_record['active'] = 'n';
$affected_rows = $client->dns_srv_update($session_id, $client_id, $id, $dns_record);
echo "Number of records that have been changed in the database: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_txt_add.php 0000664 0000000 0000000 00000001541 13437460511 0035512 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$client_id = 1;
$params = array(
'server_id' => 1,
'zone' => 11,
'name' => 'stringtext',
'type' => 'txt',
'data' => 'any text can go here',
'aux' => '0',
'ttl' => '3600',
'active' => 'y',
'stamp' => 'CURRENT_TIMESTAMP',
'serial' => '1',
);
$id = $client->dns_txt_add($session_id, $client_id, $params);
echo "ID: ".$id."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_txt_delete.php 0000664 0000000 0000000 00000001202 13437460511 0036216 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$id = 12;
$affected_rows = $client->dns_txt_delete($session_id, $id);
echo "Number of records that have been deleted: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_txt_get.php 0000664 0000000 0000000 00000001133 13437460511 0035536 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$id = 12;
$dns_record = $client->dns_txt_get($session_id, $id);
print_r($dns_record);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_txt_update.php 0000664 0000000 0000000 00000001513 13437460511 0036243 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$id = 12;
$client_id = 1;
//* Get the dns record
$dns_record = $client->dns_txt_get($session_id, $id);
//* Change active to inactive
$dns_record['active'] = 'n';
$affected_rows = $client->dns_txt_update($session_id, $client_id, $id, $dns_record);
echo "Number of records that have been changed in the database: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_zone_add.php 0000664 0000000 0000000 00000001675 13437460511 0035656 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$client_id = 2;
$params = array(
'server_id' => 1,
'origin' => 'test.intt.',
'ns' => 'one',
'mbox' => 'zonemaster.test.tld.',
'serial' => '1',
'refresh' => '28800',
'retry' => '7200',
'expire' => '604800',
'minimum' => '3600',
'ttl' => '3600',
'active' => 'y',
'xfer' => '',
'also_notify' => '',
'update_acl' => '',
);
$id = $client->dns_zone_add($session_id, $client_id, $params);
echo "DNS ID: ".$id."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_zone_delete.php 0000664 0000000 0000000 00000001202 13437460511 0036352 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$id = 1;
$affected_rows = $client->dns_zone_delete($session_id, $id);
echo "Number of records that have been deleted: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_zone_get.php 0000664 0000000 0000000 00000001133 13437460511 0035672 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$id = 1;
$dns_record = $client->dns_zone_get($session_id, $id);
print_r($dns_record);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_zone_get_by_user.php 0000664 0000000 0000000 00000001242 13437460511 0037423 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$client_id = 2;
$server_id = 1;
$record_record = $client->dns_zone_get_by_user($session_id, $client_id, $server_id);
print_r($record_record);
echo "
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_zone_set_status.php 0000664 0000000 0000000 00000001246 13437460511 0037316 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$primary_id = 3;
$status = 'inactive';
$record_record = $client->dns_zone_set_status($session_id, $primary_id, $status);
print_r($record_record);
echo "
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
dns_zone_update.php 0000664 0000000 0000000 00000001514 13437460511 0036400 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$id = 1;
$client_id = 1;
//* Get the dns record
$dns_record = $client->dns_zone_get($session_id, $id);
//* Change active to inactive
$dns_record['active'] = 'n';
$affected_rows = $client->dns_zone_update($session_id, $client_id, $id, $dns_record);
echo "Number of records that have been changed in the database: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
domains_domain_add.php 0000664 0000000 0000000 00000001271 13437460511 0037010 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$client_id = 1;
$params = array(
'domain' => 'cellar.door'
);
$domain_id = $client->domains_domain_add($session_id, $client_id, $params);
echo "Domain ID: ".$domain_id."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
domains_domain_delete.php 0000664 0000000 0000000 00000001226 13437460511 0037522 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$domain_id = 1;
$affected_rows = $client->domains_domain_delete($session_id, $domain_id);
echo "Number of records that have been deleted: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
domains_domain_get.php 0000664 0000000 0000000 00000001165 13437460511 0037041 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$domain_id = 1;
$domain_record = $client->domains_domain_get($session_id, $domain_id);
print_r($domain_record);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
domains_domain_update.php 0000664 0000000 0000000 00000001366 13437460511 0037547 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$client_id = 1;
$primary_id = 42; // The domain_id
$params = array(
'domain' => 'cellar.door'
);
$result = $client->domains_domain_update($session_id, $client_id, $primary_id, $params);
if ($result) {
echo 'Domain updated.
';
}
if ($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
domains_get_all_by_user.php 0000664 0000000 0000000 00000001170 13437460511 0040066 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$group_id = 0;
$record_record = $client->domains_get_all_by_user($session_id, $group_id);
print_r($record_record);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
get_function_list.php 0000664 0000000 0000000 00000001145 13437460511 0036736 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$record_record = $client->get_function_list($session_id);
print_r($record_record);
echo "
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
login.php 0000664 0000000 0000000 00000000732 13437460511 0034330 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
$session_id = $client->login($username, $password);
echo 'Logged successfull. Session ID:'.$session_id.'
';
echo "Logging out: ";
$client->logout($session_id);
echo "Logged out.";
}catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
logout.php 0000664 0000000 0000000 00000001054 13437460511 0034527 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$session = $session_id;
echo "Logging out: ";
$client->logout($session);
//Logged out
echo "Logged out.";
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_alias_add.php 0000664 0000000 0000000 00000001437 13437460511 0036126 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$client_id = 1;
$params = array(
'server_id' => 1,
'source' => 'hallo@test.int',
'destination' => 'ciao@test.int',
'type' => 'alias',
'active' => 'y'
);
$affected_rows = $client->mail_alias_add($session_id, $client_id, $params);
echo "Alias ID: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_alias_delete.php 0000664 0000000 0000000 00000001220 13437460511 0036626 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$alias_id = 1;
$affected_rows = $client->mail_alias_delete($session_id, $alias_id);
echo "Number of records that have been deleted: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_alias_get.php 0000664 0000000 0000000 00000001167 13437460511 0036155 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$alias_id = 1;
$mail_alias_record = $client->mail_alias_get($session_id, $alias_id);
print_r($mail_alias_record);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_alias_update.php 0000664 0000000 0000000 00000001604 13437460511 0036654 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$alias_id = 1;
$client_id = 1;
//* Get the email domain record
$mail_alias_record = $client->mail_alias_get($session_id, $alias_id);
//* Change the status to inactive
$mail_alias_record['active'] = 'n';
$affected_rows = $client->mail_alias_update($session_id, $client_id, $alias_id, $mail_alias_record);
echo "Number of records that have been changed in the database: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_blacklist_add.php 0000664 0000000 0000000 00000001435 13437460511 0037003 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$client_id = 1;
$params = array(
'server_id' => 1,
'source' => 'hmmnoeoe@test.int',
'access' => 'REJECT',
'type' => 'sender',
'active' => 'y'
);
$blacklist_id = $client->mail_blacklist_add($session_id, $client_id, $params);
echo "Blacklist ID: ".$blacklist_id."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_blacklist_delete.php 0000664 0000000 0000000 00000001234 13437460511 0037512 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$blacklist_id = 7;
$affected_rows = $client->mail_blacklist_delete($session_id, $blacklist_id);
echo "Number of records that have been deleted: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_blacklist_get.php 0000664 0000000 0000000 00000001213 13437460511 0037024 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$blacklist_id = 7;
$mail_blacklist_record = $client->mail_blacklist_get($session_id, $blacklist_id);
print_r($mail_blacklist_record);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_blacklist_update.php 0000664 0000000 0000000 00000001646 13437460511 0037541 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$blacklist_id = 7;
$client_id = 1;
//* Get the mail blacklist record
$mail_blacklist_record = $client->mail_blacklist_get($session_id, $blacklist_id);
//* Change the status to inactive
$mail_blacklist_record['active'] = 'n';
$affected_rows = $client->mail_blacklist_update($session_id, $client_id, $blacklist_id, $mail_blacklist_record);
echo "Number of records that have been changed in the database: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_catchall_add.php 0000664 0000000 0000000 00000001443 13437460511 0036605 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$client_id = 1;
$params = array(
'server_id' => 1,
'source' => '@test.int',
'destination' => 'ciao@test.int',
'type' => 'catchall',
'active' => 'y'
);
$affected_rows = $client->mail_catchall_add($session_id, $client_id, $params);
echo "Catchall ID: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_catchall_delete.php 0000664 0000000 0000000 00000001231 13437460511 0037312 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$catchall_id = 1;
$affected_rows = $client->mail_catchall_delete($session_id, $catchall_id);
echo "Number of records that have been deleted: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_catchall_get.php 0000664 0000000 0000000 00000001206 13437460511 0036631 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$catchall_id = 1;
$mail_catchall_record = $client->mail_catchall_get($session_id, $catchall_id);
print_r($mail_catchall_record);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_catchall_update.php 0000664 0000000 0000000 00000001634 13437460511 0037341 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$catchall_id = 1;
$client_id = 1;
//* Get the email domain record
$mail_catchall_record = $client->mail_catchall_get($session_id, $catchall_id);
//* Change the status to inactive
$mail_catchall_record['active'] = 'n';
$affected_rows = $client->mail_catchall_update($session_id, $client_id, $catchall_id, $mail_catchall_record);
echo "Number of records that have been changed in the database: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_domain_add.php 0000664 0000000 0000000 00000001332 13437460511 0036276 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$client_id = 1;
$params = array(
'server_id' => 1,
'domain' => 'test.tld',
'active' => 'y'
);
$domain_id = $client->mail_domain_add($session_id, $client_id, $params);
echo "Domain ID: ".$domain_id."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_domain_delete.php 0000664 0000000 0000000 00000001223 13437460511 0037007 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$domain_id = 1;
$affected_rows = $client->mail_domain_delete($session_id, $domain_id);
echo "Number of records that have been deleted: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_domain_get.php 0000664 0000000 0000000 00000001174 13437460511 0036331 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$domain_id = 1;
$mail_domain_record = $client->mail_domain_get($session_id, $domain_id);
print_r($mail_domain_record);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_domain_get_by_domain.php 0000664 0000000 0000000 00000001215 13437460511 0040346 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$domain = 'test.int';
$record_record = $client->mail_domain_get_by_domain($session_id, $domain);
print_r($record_record);
echo "
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_domain_set_status.php 0000664 0000000 0000000 00000001251 13437460511 0037744 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$primary_id = 2;
$status = 'inactive';
$record_record = $client->mail_domain_set_status($session_id, $primary_id, $status);
print_r($record_record);
echo "
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_domain_update.php 0000664 0000000 0000000 00000001614 13437460511 0037033 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$domain_id = 1;
$client_id = 1;
//* Get the email domain record
$mail_domain_record = $client->mail_domain_get($session_id, $domain_id);
//* Change the status to inactive
$mail_domain_record['active'] = 'n';
$affected_rows = $client->mail_domain_update($session_id, $client_id, $domain_id, $mail_domain_record);
echo "Number of records that have been changed in the database: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_fetchmail_add.php 0000664 0000000 0000000 00000001651 13437460511 0036767 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$client_id = 1;
$params = array(
'server_id' => 1,
'type' => 'pop3',
'source_server' => 'webzor.ext',
'source_username' => 'someguy',
'source_password' => 'somepassword',
'source_delete' => 'n',
'destination' => 'hmmnoe@test.int',
'active' => 'y',
'source_read_all' => 'y',
);
$fetchmail_id = $client->mail_fetchmail_add($session_id, $client_id, $params);
echo "Fetchmail ID: ".$fetchmail_id."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_fetchmail_delete.php 0000664 0000000 0000000 00000001234 13437460511 0037476 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$fetchmail_id = 1;
$affected_rows = $client->mail_fetchmail_delete($session_id, $fetchmail_id);
echo "Number of records that have been deleted: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_fetchmail_get.php 0000664 0000000 0000000 00000001213 13437460511 0037010 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$fetchmail_id = 1;
$mail_fetchmail_record = $client->mail_fetchmail_get($session_id, $fetchmail_id);
print_r($mail_fetchmail_record);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_fetchmail_update.php 0000664 0000000 0000000 00000001641 13437460511 0037520 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$fetchmail_id = 1;
$client_id = 1;
//* Get the fetchmail record
$mail_fetchmail_record = $client->mail_fetchmail_get($session_id, $fetchmail_id);
//* Change the status to inactive
$mail_fetchmail_record['active'] = 'n';
$affected_rows = $client->mail_fetchmail_update($session_id, $client_id, $fetchmail_id, $mail_fetchmail_record);
echo "Number of records that have been changed in the database: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_filter_add.php 0000664 0000000 0000000 00000001445 13437460511 0036321 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$client_id = 1;
$params = array(
'server_id' => 1,
'type' => 'header',
'pattern' => 'hmmnoe@test.int',
'data' => 'data',
'action' => 'DISCARD',
'active' => 'y'
);
$filter_id = $client->mail_filter_add($session_id, $client_id, $params);
echo "Filter ID: ".$filter_id."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_filter_delete.php 0000664 0000000 0000000 00000001223 13437460511 0037025 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$filter_id = 1;
$affected_rows = $client->mail_filter_delete($session_id, $filter_id);
echo "Number of records that have been deleted: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_filter_get.php 0000664 0000000 0000000 00000001174 13437460511 0036347 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$filter_id = 1;
$mail_filter_record = $client->mail_filter_get($session_id, $filter_id);
print_r($mail_filter_record);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_filter_update.php 0000664 0000000 0000000 00000001614 13437460511 0037051 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$filter_id = 1;
$client_id = 1;
//* Get the email filter record
$mail_filter_record = $client->mail_filter_get($session_id, $filter_id);
//* Change the status to inactive
$mail_filter_record['active'] = 'n';
$affected_rows = $client->mail_filter_update($session_id, $client_id, $filter_id, $mail_filter_record);
echo "Number of records that have been changed in the database: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_forward_add.php 0000664 0000000 0000000 00000001450 13437460511 0036474 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$client_id = 1;
$params = array(
'server_id' => 1,
'source' => 'hallo@test.int',
'destination' => 'ciao@test.int',
'type' => 'forward',
'active' => 'y'
);
$affected_rows = $client->mail_forward_add($session_id, $client_id, $params);
echo "Forwarding ID: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_forward_delete.php 0000664 0000000 0000000 00000001276 13437460511 0037214 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$forwarding_id = 5;
//* Delete email forward record
$affected_rows = $client->mail_forward_delete($session_id, $forwarding_id);
echo "Number of records that have been deleted: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_forward_get.php 0000664 0000000 0000000 00000001364 13437460511 0036527 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$forwarding_id = 1;
$mail_forwarding_record = $client->mail_forward_get($session_id, $forwarding_id);
// $mail_forwarding_record = $client->mail_forward_get($session_id, array('source' => '%@test.int'));
print_r($mail_forwarding_record);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_forward_update.php 0000664 0000000 0000000 00000001636 13437460511 0037234 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$forwarding_id = 5;
$client_id = 1;
//* Get the email forward record
$mail_forward_record = $client->mail_forward_get($session_id, $forwarding_id);
//* Change the status to inactive
$mail_forward_record['active'] = 'n';
$affected_rows = $client->mail_forward_update($session_id, $client_id, $forwarding_id, $mail_forward_record);
echo "Number of records that have been changed in the database: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_policy_add.php 0000664 0000000 0000000 00000003350 13437460511 0036330 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$client_id = 1;
$params = array(
'policy_name' => 'numberone',
'virus_lover' => 'Y',
'spam_lover' => 'Y',
'banned_files_lover' => 'Y',
'bad_header_lover' => 'Y',
'bypass_virus_checks' => 'Y',
'bypass_spam_checks' => 'Y',
'bypass_banned_checks' => 'Y',
'bypass_header_checks' => 'Y',
'spam_modifies_subj' => 'Y',
'virus_quarantine_to' => '',
'spam_quarantine_to' => '',
'banned_quarantine_to' => '',
'bad_header_quarantine_to' => '',
'clean_quarantine_to' => '',
'other_quarantine_to' => '',
'spam_tag_level' => 1,
'spam_tag2_level' => 1,
'spam_kill_level' => 1,
'spam_dsn_cutoff_level' => 1,
'spam_quarantine_cutoff_level' => 1,
'addr_extension_virus' => '',
'addr_extension_spam' => '',
'addr_extension_banned' => '',
'addr_extension_bad_header' => '',
'warnvirusrecip' => 'Y',
'warnbannedrecip' => 'Y',
'warnbadhrecip' => 'Y',
'newvirus_admin' => '',
'virus_admin' => '',
'banned_admin' => '',
'bad_header_admin' => '',
'spam_admin' => '',
'spam_subject_tag' => '',
'spam_subject_tag2' => '',
'message_size_limit' => 10,
'banned_rulenames' => 'welt'
);
$affected_rows = $client->mail_policy_add($session_id, $client_id, $params);
echo "Policy ID: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_policy_delete.php 0000664 0000000 0000000 00000001240 13437460511 0037036 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$id = 1;
//* Delete policy record
$affected_rows = $client->mail_policy_delete($session_id, $id);
echo "Number of records that have been deleted: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_policy_get.php 0000664 0000000 0000000 00000001156 13437460511 0036361 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$id = 1;
$mail_policy_record = $client->mail_policy_get($session_id, $id);
print_r($mail_policy_record);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_policy_update.php 0000664 0000000 0000000 00000001604 13437460511 0037062 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$id = 1;
$client_id = 1;
//* Get the policy record
$mail_policy_record = $client->mail_policy_get($session_id, $id);
//* Change policy_name to Hans_Werner
$mail_policy_record['policy_name'] = 'Hans_Werner';
$affected_rows = $client->mail_policy_update($session_id, $client_id, $id, $mail_policy_record);
echo "Number of records that have been changed in the database: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_spamfilter_blacklist_add.php 0000664 0000000 0000000 00000001452 13437460511 0041230 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$client_id = 1;
$params = array(
'server_id' => 1,
'wb' => 'B',
'rid' => '',
'email' => 'hmmnoe@test.int',
'priority' => 1,
'active' => 'y'
);
$affected_rows = $client->mail_spamfilter_blacklist_add($session_id, $client_id, $params);
echo "Blacklist ID: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_spamfilter_blacklist_delete.php 0000664 0000000 0000000 00000001305 13437460511 0041737 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$wblist_id = 2;
//* Delete email blacklist record
$affected_rows = $client->mail_spamfilter_blacklist_delete($session_id, $wblist_id);
echo "Number of records that have been deleted: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_spamfilter_blacklist_get.php 0000664 0000000 0000000 00000001212 13437460511 0041251 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$wblist_id = 2;
$mail_wblist_record = $client->mail_spamfilter_blacklist_get($session_id, $wblist_id);
print_r($mail_wblist_record);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_spamfilter_blacklist_update.php 0000664 0000000 0000000 00000001653 13437460511 0041765 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$wblist_id = 2;
$client_id = 1;
//* Get the spamfilter blacklist record
$mail_wblist_record = $client->mail_spamfilter_blacklist_get($session_id, $wblist_id);
//* Change the priority to 2
$mail_wblist_record['priority'] = 2;
$affected_rows = $client->mail_spamfilter_blacklist_update($session_id, $client_id, $wblist_id, $mail_wblist_record);
echo "Number of records that have been changed in the database: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_spamfilter_user_add.php 0000664 0000000 0000000 00000001501 13437460511 0040231 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$client_id = 1;
$params = array(
'server_id' => 1,
'priority' => 3,
'policy_id' => 1,
'email' => 'hmmnoe@test.int',
'fullname' => 'Max Mustermann',
'local' => ''
);
$affected_rows = $client->mail_spamfilter_user_add($session_id, $client_id, $params);
echo "Spamfilter user ID: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_spamfilter_user_delete.php 0000664 0000000 0000000 00000001272 13437460511 0040750 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$id = 1;
//* Delete mailing spamfilter user record
$affected_rows = $client->mail_spamfilter_user_delete($session_id, $id);
echo "Number of records that have been deleted: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_spamfilter_user_get.php 0000664 0000000 0000000 00000001211 13437460511 0040256 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$id = 1;
$mail_spamfilter_user_record = $client->mail_spamfilter_user_get($session_id, $id);
print_r($mail_spamfilter_user_record);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_spamfilter_user_update.php 0000664 0000000 0000000 00000001674 13437460511 0040776 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$id = 1;
$client_id = 1;
//* Get the mailing spamfilter user record
$mail_spamfilter_user_record = $client->mail_spamfilter_user_get($session_id, $id);
//* Change fullname to Hans Werner
$mail_spamfilter_user_record['fullname'] = 'Hans Werner';
$affected_rows = $client->mail_spamfilter_user_update($session_id, $client_id, $id, $mail_spamfilter_user_record);
echo "Number of records that have been changed in the database: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_spamfilter_whitelist_add.php 0000664 0000000 0000000 00000001452 13437460511 0041274 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$client_id = 1;
$params = array(
'server_id' => 1,
'wb' => 'W',
'rid' => '',
'email' => 'hmmnoe@test.int',
'priority' => 1,
'active' => 'y'
);
$affected_rows = $client->mail_spamfilter_whitelist_add($session_id, $client_id, $params);
echo "Whitelist ID: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_spamfilter_whitelist_delete.php 0000664 0000000 0000000 00000001305 13437460511 0042003 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$wblist_id = 1;
//* Delete email whitelist record
$affected_rows = $client->mail_spamfilter_whitelist_delete($session_id, $wblist_id);
echo "Number of records that have been deleted: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_spamfilter_whitelist_get.php 0000664 0000000 0000000 00000001212 13437460511 0041315 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$wblist_id = 1;
$mail_wblist_record = $client->mail_spamfilter_whitelist_get($session_id, $wblist_id);
print_r($mail_wblist_record);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_spamfilter_whitelist_update.php 0000664 0000000 0000000 00000001653 13437460511 0042031 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$wblist_id = 1;
$client_id = 1;
//* Get the spamfilter whitelist record
$mail_wblist_record = $client->mail_spamfilter_whitelist_get($session_id, $wblist_id);
//* Change the priority to 2
$mail_wblist_record['priority'] = 2;
$affected_rows = $client->mail_spamfilter_whitelist_update($session_id, $client_id, $wblist_id, $mail_wblist_record);
echo "Number of records that have been changed in the database: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_transport_add.php 0000664 0000000 0000000 00000001422 13437460511 0037063 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$client_id = 1;
$params = array(
'server_id' => 1,
'domain' => 'test.int',
'transport' => '',
'sort_order' => 5,
'active' => 'y'
);
$affected_rows = $client->mail_transport_add($session_id, $client_id, $params);
echo "Transport ID: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_transport_delete.php 0000664 0000000 0000000 00000001300 13437460511 0037570 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$transport_id = 1;
//* Delete email transport record
$affected_rows = $client->mail_transport_delete($session_id, $transport_id);
echo "Number of records that have been deleted: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_transport_get.php 0000664 0000000 0000000 00000001213 13437460511 0037110 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$transport_id = 1;
$mail_transport_record = $client->mail_transport_get($session_id, $transport_id);
print_r($mail_transport_record);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_transport_update.php 0000664 0000000 0000000 00000001647 13437460511 0037626 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$transport_id = 1;
$client_id = 1;
//* Get the email transport record
$mail_transport_record = $client->mail_transport_get($session_id, $transport_id);
//* Change the status to inactive
$mail_transport_record['active'] = 'n';
$affected_rows = $client->mail_transport_update($session_id, $client_id, $transport_id, $mail_transport_record);
echo "Number of records that have been changed in the database: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_user_add.php 0000664 0000000 0000000 00000002352 13437460511 0036010 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$client_id = 1;
$params = array(
'server_id' => 1,
'email' => 'joe@test.int',
'login' => 'joe@test.int',
'password' => 'howtoforge',
'name' => 'joe',
'uid' => 5000,
'gid' => 5000,
'maildir' => '/var/vmail/test.int/joe',
'quota' => 5242880,
'cc' => '',
'homedir' => '/var/vmail',
'autoresponder' => 'n',
'autoresponder_start_date' => '',
'autoresponder_end_date' => '',
'autoresponder_text' => 'hallo',
'move_junk' => 'n',
'custom_mailfilter' => 'spam',
'postfix' => 'n',
'access' => 'n',
'disableimap' => 'n',
'disablepop3' => 'n',
'disabledeliver' => 'n',
'disablesmtp' => 'n'
);
$mailuser_id = $client->mail_user_add($session_id, $client_id, $params);
echo "New user: ".$mailuser_id."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_user_delete.php 0000664 0000000 0000000 00000001225 13437460511 0036520 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$mailuser_id = 1;
$affected_rows = $client->mail_user_delete($session_id, $mailuser_id);
echo "Number of records that have been deleted: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_user_filter_add.php 0000664 0000000 0000000 00000001477 13437460511 0037364 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$client_id = 1;
$params = array(
'mailuser_id' => '0',
'rulename' => 'NULL',
'source' => '',
'searchterm' => 'NULL',
'op' => '',
'action' => '',
'target' => '',
'active' => 'y'
);
$filter_id = $client->mail_user_filter_add($session_id, $client_id, $params);
echo "Filter ID: ".$filter_id."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_user_filter_delete.php 0000664 0000000 0000000 00000001272 13437460511 0040067 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$filter_id = 1;
//* Get the email filter record
$affected_rows = $client->mail_user_filter_delete($session_id, $filter_id);
echo "Number of records that have been deleted: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_user_filter_get.php 0000664 0000000 0000000 00000001201 13437460511 0037374 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$filter_id = 1;
$mail_filter_record = $client->mail_user_filter_get($session_id, $filter_id);
print_r($mail_filter_record);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_user_filter_update.php 0000664 0000000 0000000 00000001644 13437460511 0040112 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$filter_id = 1;
$client_id = 1;
//* Get the user filter record
$mail_user_filter_record = $client->mail_user_filter_get($session_id, $filter_id);
//* Change the status to inactive
$mail_user_filter_record['active'] = 'n';
$affected_rows = $client->mail_user_filter_update($session_id, $client_id, $filter_id, $mail_user_filter_record);
echo "Number of records that have been changed in the database: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_user_get.php 0000664 0000000 0000000 00000001140 13437460511 0036031 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$mailuser_id = 1;
$app = $client->mail_user_get($session_id, $mailuser_id);
print_r($app);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_user_update.php 0000664 0000000 0000000 00000001611 13437460511 0036537 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$mailuser_id = 1;
$client_id = 1;
//* Get the email user record
$mail_user_record = $client->mail_user_get($session_id, $mailuser_id);
//* Change the status to inactive
$mail_user_record['name'] = 'hmmyea';
$affected_rows = $client->mail_user_update($session_id, $client_id, $mailuser_id, $mail_user_record);
echo "Number of records that have been changed in the database: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_whitelist_add.php 0000664 0000000 0000000 00000001431 13437460511 0037043 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$client_id = 1;
$params = array(
'server_id' => 1,
'source' => 'hmmnoeoe@test.int',
'access' => 'OK',
'type' => 'sender',
'active' => 'y'
);
$whitelist_id = $client->mail_whitelist_add($session_id, $client_id, $params);
echo "Whitelist ID: ".$whitelist_id."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_whitelist_delete.php 0000664 0000000 0000000 00000001234 13437460511 0037556 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$whitelist_id = 5;
$affected_rows = $client->mail_whitelist_delete($session_id, $whitelist_id);
echo "Number of records that have been deleted: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_whitelist_get.php 0000664 0000000 0000000 00000001213 13437460511 0037070 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$whitelist_id = 3;
$mail_whitelist_record = $client->mail_whitelist_get($session_id, $whitelist_id);
print_r($mail_whitelist_record);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
mail_whitelist_update.php 0000664 0000000 0000000 00000001647 13437460511 0037606 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$whitelist_id = 5;
$client_id = 1;
//* Get the email whitelist record
$mail_whitelist_record = $client->mail_whitelist_get($session_id, $whitelist_id);
//* Change the status to inactive
$mail_whitelist_record['active'] = 'n';
$affected_rows = $client->mail_whitelist_update($session_id, $client_id, $whitelist_id, $mail_whitelist_record);
echo "Number of records that have been changed in the database: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
monitor_jobqueue_count.php 0000664 0000000 0000000 00000001554 13437460511 0040021 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples [
// set some SSL/TLS specific options
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true
]
]);
$client = new SoapClient(null, array('location' => $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1,
'stream_context' => $context));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$server_id = 1;
$result = $client->monitor_jobqueue_count($session_id, $server_id);
print_r($result);
echo "
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
rest_example.php 0000664 0000000 0000000 00000003461 13437460511 0035712 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $remote_user, 'password' => $remote_pass, 'client_login' => false));
if($result) {
$data = json_decode($result, true);
if(!$data) die("ERROR!\n");
$session_id = $data['response'];
$result = restCall('client_get', array('session_id' => $session_id, 'client_id' => array('username' => 'abcde')));
if($result) var_dump(json_decode($result, true));
else print "Could not get client_get result\n";
// or by id
$result = restCall('client_get', array('session_id' => $session_id, 'client_id' => 2));
if($result) var_dump(json_decode($result, true));
else print "Could not get client_get result\n";
// or all
$result = restCall('client_get', array('session_id' => $session_id, 'client_id' => array()));
if($result) var_dump(json_decode($result, true));
else print "Could not get client_get result\n";
// please refer to API-Docs for expected input variables and parameters names
$result = restCall('logout', array('session_id' => $session_id));
if($result) var_dump(json_decode($result, true));
else print "Could not get logout result\n";
}
rest_example.sh 0000664 0000000 0000000 00000001752 13437460511 0035536 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples #!/bin/bash
set -e
remote_user=test
remote_password=apipassword
remote_url='https://yourserver.com:8080/remote/json.php'
# restCall method data
restCall() {
curl -sS -X POST -H "Content-Type: application/json" -H "Cache-Control: no-cache" -d "${2}" "${remote_url}?${1}"
}
# Log in
session_id=`restCall login "{\"username\": \"${remote_user}\",\"password\": \"${remote_password}\"}" | jq -r '.response'`
if [[ $isession == "false" ]]; then
echo "Login failed!"
exit 1
#else
#echo "Logged in. Session is: $session_id"
fi
restCall client_get "{\"session_id\": \"$session_id\",\"client_id\":{\"username\": \"abcde\"}}"
# or by id
restCall client_get "{\"session_id\": \"$session_id\",\"client_id\": \"2\"}"
# or all
restCall client_get "{\"session_id\": \"$session_id\",\"client_id\":{}}"
# Log out
if [[ `restCall logout "{\"session_id\": \"$session_id\"}" |jq -r .response` == "true" ]]; then
#echo "Logout successful."
exit 0
else
echo "Logout failed!"
exit 1
fi
server_config_set.php 0000664 0000000 0000000 00000001610 13437460511 0036722 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples [
// set some SSL/TLS specific options
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true
]
]);
$client = new SoapClient(null, array('location' => $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1,
'stream_context' => $context));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$server_id = 1;
$result = $client->server_config_set($session_id, $server_id, 'server', 'migration_mode', 'y');
print_r($result);
echo "
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
server_get.php 0000664 0000000 0000000 00000001211 13437460511 0035356 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$server_id = 1;
$record_record = $client->server_get($session_id, $server_id, $section ='');
print_r($record_record);
echo "
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
server_get_serverid_by_ip.php 0000664 0000000 0000000 00000001230 13437460511 0040444 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$ipaddress = '192.168.0.112';
$record_record = $client->server_get_serverid_by_ip($session_id, $ipaddress);
print_r($record_record);
echo "
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
sites_cron_add.php 0000664 0000000 0000000 00000001547 13437460511 0036205 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$params = array(
'server_id' => 1,
'parent_domain_id' => 1,
'type' => 'url',
'command' => 'echo 1',
'run_min' => '1',
'run_hour' => '1',
'run_mday' => '1',
'run_month' => '1',
'run_wday' => '1',
'active' => 'y',
);
$affected_rows = $client->sites_cron_add($session_id, $client_id, $params);
echo "Cron ID: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
sites_cron_delete.php 0000664 0000000 0000000 00000001247 13437460511 0036714 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$cron_id = 1;
//* Delete cron record
$affected_rows = $client->sites_cron_delete($session_id, $cron_id);
echo "Number of records that have been deleted: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
sites_cron_get.php 0000664 0000000 0000000 00000001151 13437460511 0036223 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$cron_id = 1;
$cron_record = $client->sites_cron_get($session_id, $cron_id);
print_r($cron_record);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
sites_cron_update.php 0000664 0000000 0000000 00000001535 13437460511 0036734 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$client_id = 1;
$cron_id = 1;
//* Get the cron record
$cron_record = $client->sites_cron_get($session_id, $cron_id);
//* Change active to no
$cron_record['active'] = 'n';
$affected_rows = $client->sites_cron_update($session_id, $client_id, $cron_id, $cron_record);
echo "Number of records that have been changed in the database: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
sites_database_add.php 0000664 0000000 0000000 00000001736 13437460511 0037010 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$client_id = 1;
$params = array(
'server_id' => 1,
'type' => 'mysql',
'parent_domain_id' => 1,
'database_name' => 'db_name2',
'database_user_id' => '1',
'database_ro_user_id' => '0',
'database_charset' => 'UTF8',
'remote_access' => 'y',
'remote_ips' => '',
'backup_interval' => 'none',
'backup_copies' => 1,
'active' => 'y'
);
$database_id = $client->sites_database_add($session_id, $client_id, $params);
echo "Database ID: ".$database_id."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
sites_database_delete.php 0000664 0000000 0000000 00000001270 13437460511 0037513 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$database_id = 1;
//* Get the database record
$affected_rows = $client->sites_database_delete($session_id, $database_id);
echo "Number of records that have been deleted: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
sites_database_get.php 0000664 0000000 0000000 00000001175 13437460511 0037034 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$database_id = 1;
$database_record = $client->sites_database_get($session_id, $database_id);
print_r($database_record);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
sites_database_get_all_by_user.php 0000664 0000000 0000000 00000001220 13437460511 0041403 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$client_id = 1;
$record_record = $client->sites_database_get_all_by_user($session_id, $client_id);
print_r($record_record);
echo "
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
sites_database_update.php 0000664 0000000 0000000 00000001613 13437460511 0037534 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$database_id = 1;
$client_id = 1;
//* Get the database record
$database_record = $client->sites_database_get($session_id, $database_id);
//* Change the status to inactive
$database_record['active'] = 'n';
$affected_rows = $client->sites_database_update($session_id, $client_id, $database_id, $database_record);
echo "Number of records that have been changed in the database: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
sites_database_user_add.php 0000664 0000000 0000000 00000001413 13437460511 0040036 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$client_id = 1;
$params = array(
'server_id' => 1,
'database_user' => 'db_name2',
'database_password' => 'db_name2'
);
$database_user_id = $client->sites_database_user_add($session_id, $client_id, $params);
echo "Database ID: ".$database_user_id."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
sites_database_user_delete.php 0000664 0000000 0000000 00000001307 13437460511 0040552 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$database_user_id = 1;
//* Get the database record
$affected_rows = $client->sites_database_user_delete($session_id, $database_user_id);
echo "Number of records that have been deleted: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
sites_database_user_get.php 0000664 0000000 0000000 00000001214 13437460511 0040064 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$database_user_id = 1;
$database_record = $client->sites_database_user_get($session_id, $database_user_id);
print_r($database_record);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
sites_database_user_update.php 0000664 0000000 0000000 00000001711 13437460511 0040571 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$database_user_id = 1;
$client_id = 1;
//* Get the database record
$database_user_record = $client->sites_database_user_get($session_id, $database_user_id);
//* Change password of the database user
$database_user_record['database_password'] = 'abcde';
$affected_rows = $client->sites_database_user_update($session_id, $client_id, $database_user_id, $database_user_record);
echo "Number of records that have been changed in the database: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
sites_ftp_user_add.php 0000664 0000000 0000000 00000001765 13437460511 0037075 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$client_id = 1;
$params = array(
'server_id' => 1,
'parent_domain_id' => 1,
'username' => 'tom',
'password' => 'secret',
'quota_size' => 10000,
'active' => 'y',
'uid' => '5000',
'gid' => '5000',
'dir' => '/var/www/clients/client0/web1',
'quota_files' => -1,
'ul_ratio' => -1,
'dl_ratio' => -1,
'ul_bandwidth' => -1,
'dl_bandwidth' => -1
);
$affected_rows = $client->sites_ftp_user_add($session_id, $client_id, $params);
echo "FTP User ID: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
sites_ftp_user_delete.php 0000664 0000000 0000000 00000001233 13437460511 0037575 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$ftp_user_id = 1;
$affected_rows = $client->sites_ftp_user_delete($session_id, $ftp_user_id);
echo "Number of records that have been deleted: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
sites_ftp_user_get.php 0000664 0000000 0000000 00000001175 13437460511 0037117 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$ftp_user_id = 1;
$ftp_user_record = $client->sites_ftp_user_get($session_id, $ftp_user_id);
print_r($ftp_user_record);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
sites_ftp_user_update.php 0000664 0000000 0000000 00000001601 13437460511 0037614 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$client_id = 0;
$ftp_user_id = 1;
//* Get the ftp user record
$ftp_user_record = $client->sites_ftp_user_get($session_id, $ftp_user_id);
//* Change active to no
$ftp_user_record['active'] = 'n';
$affected_rows = $client->sites_ftp_user_update($session_id, $client_id, $ftp_user_id, $ftp_user_record);
echo "Number of records that have been changed in the database: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
sites_shell_user_add.php 0000664 0000000 0000000 00000001674 13437460511 0037412 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$client_id = 3;
$params = array(
'server_id' => 1,
'parent_domain_id' => 1,
'username' => 'tom',
'password' => 'test',
'quota_size' => 10000,
'active' => 'y',
'puser' => 'web1',
'pgroup' => 'client0',
'shell' => '/bin/bash',
'dir' => '/var/www/clients/client0/web1',
'chroot' => ''
);
$affected_rows = $client->sites_shell_user_add($session_id, $client_id, $params);
echo "Shell User ID: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
sites_shell_user_delete.php 0000664 0000000 0000000 00000001303 13437460511 0040111 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$shell_user_id = 1;
//* Delete the shell user record
$affected_rows = $client->sites_shell_user_delete($session_id, $shell_user_id);
echo "Number of records that have been deleted: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
sites_shell_user_get.php 0000664 0000000 0000000 00000001207 13437460511 0037431 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$shell_user_id = 1;
$shell_user_record = $client->sites_shell_user_get($session_id, $shell_user_id);
print_r($shell_user_record);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
sites_shell_user_update.php 0000664 0000000 0000000 00000001623 13437460511 0040136 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$client_id = 0;
$shell_user_id = 1;
//* Get the shell user record
$shell_user_record = $client->sites_shell_user_get($session_id, $shell_user_id);
//* Change active to no
$shell_user_record['active'] = 'n';
$affected_rows = $client->sites_shell_user_update($session_id, $client_id, $shell_user_id, $shell_user_record);
echo "Number of records that have been changed in the database: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
sites_web_aliasdomain_add.php 0000664 0000000 0000000 00000003247 13437460511 0040361 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$client_id = 1;
$params = array(
'server_id' => 1,
'ip_address' => '',
'domain' => 'tssssst.int',
'type' => 'alias',
'parent_domain_id' => 1,
'vhost_type' => '',
'document_root' => '/web/dom',
'system_user' => 'benutzer',
'system_group' => 'gruppe',
'hd_quota' => 100000,
'traffic_quota' => -1,
'cgi' => 'y',
'ssi' => 'y',
'suexec' => 'y',
'errordocs' => 1,
'is_subdomainwww' => 1,
'subdomain' => '',
'php' => 'y',
'ruby' => 'n',
'redirect_type' => '',
'redirect_path' => '',
'ssl' => 'n',
'ssl_state' => '',
'ssl_locality' => '',
'ssl_organisation' => '',
'ssl_organisation_unit' => '',
'ssl_country' => '',
'ssl_domain' => '',
'ssl_request' => '',
'ssl_cert' => '',
'ssl_bundle' => '',
'ssl_action' => '',
'stats_password' => '',
'stats_type' => 'webalizer',
'allow_override' => 'All',
'apache_directives' => '',
'php_open_basedir' => '/php',
'custom_php_ini' => '',
'backup_interval' => '',
'backup_copies' => 1,
'active' => 'y',
'traffic_quota_lock' => 'n'
);
$aliasdomain_id = $client->sites_web_aliasdomain_add($session_id, $client_id, $params);
echo "Aliasdomain ID: ".$aliasdomain_id."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
sites_web_aliasdomain_delete.php 0000664 0000000 0000000 00000001310 13437460511 0041060 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$aliasdomain_id = 8;
//* Get the aliasdomain record
$affected_rows = $client->sites_web_aliasdomain_delete($session_id, $aliasdomain_id);
echo "Number of records that have been deleted: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
sites_web_aliasdomain_get.php 0000664 0000000 0000000 00000001220 13437460511 0040375 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$aliasdomain_id = 8;
$aliasdomain_record = $client->sites_web_aliasdomain_get($session_id, $aliasdomain_id);
print_r($aliasdomain_record);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
sites_web_aliasdomain_update.php 0000664 0000000 0000000 00000001656 13437460511 0041115 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$aliasdomain_id = 8;
$client_id = 1;
//* Get the aliasdomain record
$aliasdomain_record = $client->sites_web_aliasdomain_get($session_id, $aliasdomain_id);
//* Change the status to inactive
$aliasdomain_record['active'] = 'n';
$affected_rows = $client->sites_web_aliasdomain_update($session_id, $client_id, $aliasdomain_id, $aliasdomain_record);
echo "Number of records that have been changed in the database: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
sites_web_domain_add.php 0000664 0000000 0000000 00000003326 13437460511 0037345 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$client_id = 1;
$params = array(
'server_id' => 1,
'ip_address' => '*',
'domain' => 'test2.int',
'type' => 'vhost',
'parent_domain_id' => 0,
'vhost_type' => 'name',
'hd_quota' => 100000,
'traffic_quota' => -1,
'cgi' => 'y',
'ssi' => 'y',
'suexec' => 'y',
'errordocs' => 1,
'is_subdomainwww' => 1,
'subdomain' => '',
'php' => 'y',
'ruby' => 'n',
'redirect_type' => '',
'redirect_path' => '',
'ssl' => 'n',
'ssl_state' => '',
'ssl_locality' => '',
'ssl_organisation' => '',
'ssl_organisation_unit' => '',
'ssl_country' => '',
'ssl_domain' => '',
'ssl_request' => '',
'ssl_key' => '',
'ssl_cert' => '',
'ssl_bundle' => '',
'ssl_action' => '',
'stats_password' => '',
'stats_type' => 'webalizer',
'allow_override' => 'All',
'apache_directives' => '',
'php_open_basedir' => '/',
'pm_max_requests' => 0,
'pm_process_idle_timeout' => 10,
'custom_php_ini' => '',
'backup_interval' => '',
'backup_copies' => 1,
'active' => 'y',
'traffic_quota_lock' => 'n',
'http_port' => '80',
'https_port' => '443'
);
$affected_rows = $client->sites_web_domain_add($session_id, $client_id, $params, $readonly = false);
echo "Web Domain ID: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
sites_web_domain_delete.php 0000664 0000000 0000000 00000001273 13437460511 0040056 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$domain_id = 2;
//* Delete the web domain record
$affected_rows = $client->sites_web_domain_delete($session_id, $domain_id);
echo "Number of records that have been deleted: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
sites_web_domain_get.php 0000664 0000000 0000000 00000001167 13437460511 0037375 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$domain_id = 2;
$domain_record = $client->sites_web_domain_get($session_id, $domain_id);
print_r($domain_record);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
sites_web_domain_set_status.php 0000664 0000000 0000000 00000001254 13437460511 0041011 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$status = 'active';
$primary_id = 1;
$record_record = $client->sites_web_domain_set_status($session_id, $primary_id, $status);
print_r($record_record);
echo "
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
sites_web_domain_update.php 0000664 0000000 0000000 00000002001 13437460511 0040064 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$client_id = 0;
$domain_id = 1;
//* Get the web domain record
$domain_record = $client->sites_web_domain_get($session_id, $domain_id);
//* Change parameters
$domain_record['active'] = 'n';
$domain_record['document_root'] = '/web/doc';
$domain_record['allow_override'] = 'All';
$domain_record['php_open_basedir'] = '/php';
$affected_rows = $client->sites_web_domain_update($session_id, $client_id, $domain_id, $domain_record);
echo "Number of records that have been changed in the database: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
sites_web_subdomain_add.php 0000664 0000000 0000000 00000003245 13437460511 0040057 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$client_id = 1;
$params = array(
'server_id' => 1,
'ip_address' => '',
'domain' => 'tsssssubt.int',
'type' => 'subdomain',
'parent_domain_id' => 1,
'vhost_type' => '',
'document_root' => '/web/dom',
'system_user' => 'benutzer',
'system_group' => 'gruppe',
'hd_quota' => 100000,
'traffic_quota' => -1,
'cgi' => 'y',
'ssi' => 'y',
'suexec' => 'y',
'errordocs' => 1,
'is_subdomainwww' => 1,
'subdomain' => '',
'php' => 'y',
'ruby' => 'n',
'redirect_type' => '',
'redirect_path' => '',
'ssl' => 'n',
'ssl_state' => '',
'ssl_locality' => '',
'ssl_organisation' => '',
'ssl_organisation_unit' => '',
'ssl_country' => '',
'ssl_domain' => '',
'ssl_request' => '',
'ssl_cert' => '',
'ssl_bundle' => '',
'ssl_action' => '',
'stats_password' => '',
'stats_type' => 'webalizer',
'allow_override' => 'All',
'apache_directives' => '',
'php_open_basedir' => '/php',
'custom_php_ini' => '',
'backup_interval' => '',
'backup_copies' => 1,
'active' => 'y',
'traffic_quota_lock' => 'n'
);
$subdomain_id = $client->sites_web_subdomain_add($session_id, $client_id, $params);
echo "Subdomain ID: ".$subdomain_id."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
sites_web_subdomain_delete.php 0000664 0000000 0000000 00000001301 13437460511 0040560 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$subdomain_id = 10;
//* Get the subdomain record
$affected_rows = $client->sites_web_subdomain_delete($session_id, $subdomain_id);
echo "Number of records that have been deleted: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
sites_web_subdomain_get.php 0000664 0000000 0000000 00000001207 13437460511 0040102 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$subdomain_id = 10;
$subdomain_record = $client->sites_web_subdomain_get($session_id, $subdomain_id);
print_r($subdomain_record);
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
sites_web_subdomain_update.php 0000664 0000000 0000000 00000001635 13437460511 0040612 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Parameters
$subdomain_id = 10;
$client_id = 1;
//* Get the subdomain record
$subdomain_record = $client->sites_web_subdomain_get($session_id, $subdomain_id);
//* Change the status to inactive
$subdomain_record['active'] = 'n';
$affected_rows = $client->sites_web_subdomain_update($session_id, $client_id, $subdomain_id, $subdomain_record);
echo "Number of records that have been changed in the database: ".$affected_rows."
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>
soap_config.php 0000664 0000000 0000000 00000000533 13437460511 0035506 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples
system_config_set.php 0000664 0000000 0000000 00000001600 13437460511 0036737 0 ustar 00root root 0000000 0000000 ispconfig3-607d3643858d70b1a78e91d09e4ac27ccbe428bb-remoting_client-examples/remoting_client/examples [
// set some SSL/TLS specific options
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true
]
]);
$client = new SoapClient(null, array('location' => $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1,
'stream_context' => $context));
try {
if($session_id = $client->login($username, $password)) {
echo 'Logged successfull. Session ID:'.$session_id.'
';
}
//* Set the function parameters.
$server_id = 1;
$result = $client->system_config_set($session_id, 'misc', 'company_name', 'ISPConfig');
print_r($result);
echo "
";
if($client->logout($session_id)) {
echo 'Logged out.
';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
?>