1, 'soap_version' => SOAP_1_1, 'location' => WEBSERVICE_URL, 'uri' => WEBSERVICE_URI, 'login' => $_SESSION['tabInfo']['login'], 'password' => $_SESSION['tabInfo']['password'] )); if($_REQUEST['q']=='setsurv') { $set = setSurveillance($_REQUEST['formSurv']); FB::log($set, 'set'); if($set==''){ $return = ''; }elseif ($set===false){ $return = 'Erreur : Mise sous surveillance impossible.'."\n"; }else{ $return = 'Erreur : '.$set."\n"; } } elseif($_REQUEST['q']=='getsurv') { $return = getSurveillance($source, $siret); } elseif($_REQUEST['q']=='ajouter') { $siret = $_REQUEST['siret']; $source = ( isset($_REQUEST['source']) && !empty($_REQUEST['source']) ) ? $_REQUEST['source'] : '' ; $return = formSurveillance($source, $siret, array(), true); } echo $return;