From e1ceb050e19c7574bca146a8da7047ee4ff456b5 Mon Sep 17 00:00:00 2001
From: Marius Burkard <m.burkard@pixcept.de>
Date: Sun, 10 Jul 2016 05:02:35 -0400
Subject: [PATCH] Merge branch 'stable-3.1'
---
remoting_client/examples/sites_shell_user_update.php | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/remoting_client/examples/sites_shell_user_update.php b/remoting_client/examples/sites_shell_user_update.php
index a8976cc..a60262d 100644
--- a/remoting_client/examples/sites_shell_user_update.php
+++ b/remoting_client/examples/sites_shell_user_update.php
@@ -1,21 +1,21 @@
<?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 />';
}
//* Parameters
- $client_id = 3;
+ $client_id = 0;
$shell_user_id = 1;
@@ -24,16 +24,16 @@
//* 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."<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