log($loginVu, 'loginVu'); $firephp->log($tabOptions, 'tabOptions'); try { $O = $client->setInfosLogin($loginVu, $tabOptions); if ($O['result']==1) { $message = 'Compte mis à jour !'; //Pour un changement de mot de pass if ($_REQUEST['frmOptions']['changepwd']==1 && $loginVu==$_SESSION['tabInfo']['login'] && $tabOptions['action']=='save' ) { $login = $_SESSION['tabInfo']['login']; $hach = md5($_SESSION['tabInfo']['login'].'|'.$_REQUEST['frmOptions']['password']); $_SESSION['tabInfo']['password'] = $hach; $client = new SoapClient( null, array( 'trace' => 1, 'soap_version' => SOAP_1_1, 'location' => WEBSERVICE_URL, 'uri' => WEBSERVICE_URI, 'login' => $login, 'password' => $hach )); } } } catch (SoapFault $fault) { require_once 'soaperror.php'; processSoapFault($client,$fault,$tabInfo); $message = 'Erreur SOAP lors de la mise à jour du compte !'; } if ($_REQUEST['referer']=='administration') { ?> getInfosLogin($loginVu); $login=$O['result']; } else { $O = $client->getNextLogin($loginVu); $loginNew=$O['result']['racine']; $idClient=$O['result']['idClient']; $login=$O['result']; } } catch (SoapFault $fault) { require_once 'soaperror.php'; processSoapFault($client,$fault,$tabInfo); die(); } $admin = false; if ($_SESSION['tabInfo']['profil']=='Administrateur' || $_SESSION['tabInfo']['profil']=='SuperAdministrateur'){ $admin = true; } ?>
=$message?>