From 9b0ee8d9832edd60b772ee11a18f2e1c4f39e8cf Mon Sep 17 00:00:00 2001 From: Marius Cramer <m.cramer@pixcept.de> Date: Tue, 03 Feb 2015 04:10:04 -0500 Subject: [PATCH] Merge branch 'master' of git.ispconfig.org:ispconfig/ispconfig3 --- remoting_client/examples/server_get_serverid_by_ip.php | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/remoting_client/examples/server_get_serverid_by_ip.php b/remoting_client/examples/server_get_serverid_by_ip.php index 11a58b6..f3e1ec4 100644 --- a/remoting_client/examples/server_get_serverid_by_ip.php +++ b/remoting_client/examples/server_get_serverid_by_ip.php @@ -1,32 +1,32 @@ <?php -require('soap_config.php'); +require 'soap_config.php'; $client = new SoapClient(null, array('location' => $soap_location, - 'uri' => $soap_uri, - 'trace' => 1, - 'exceptions' => 1)); + 'uri' => $soap_uri, + 'trace' => 1, + 'exceptions' => 1)); try { - if($session_id = $client->login($username,$password)) { + if($session_id = $client->login($username, $password)) { echo 'Logged successfull. Session ID:'.$session_id.'<br />'; } - + //* 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 "<br>"; - + if($client->logout($session_id)) { echo 'Logged out.<br />'; } - - + + } catch (SoapFault $e) { echo $client->__getLastResponse(); die('SOAP Error: '.$e->getMessage()); -- Gitblit v1.9.1