Florian Schaal
2013-11-24 03200f17fb330b13f2ca9a13057fb97c672cdf1d
remoting_client/examples/sites_database_user_update.php
@@ -1,16 +1,16 @@
<?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 />';
   }
@@ -24,16 +24,16 @@
   //* 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."<br>";
   if($client->logout($session_id)) {
      echo 'Logged out.<br />';
   }
} catch (SoapFault $e) {
   echo $client->__getLastResponse();
   die('SOAP Error: '.$e->getMessage());