1, 'soap_version' => SOAP_1_1, 'location' => WEBSERVICE_URL, 'uri' => WEBSERVICE_URI, 'login' => $_SESSION['tabInfo']['login'], 'password' => $_SESSION['tabInfo']['password'] )); if($_REQUEST['q']=='setsurv') { $firephp->log($_REQUEST['formSurv'],'formSurv'); $set = setSurveillance($_REQUEST['formSurv']); $firephp->log($set, 'set'); if($set!==false){ $return = '
L\'entité a été placé sous surveillance.'."\n"; }else{ $return = '
Une erreur a rendu impossible la mise sous surveillance.'."\n"; } } elseif($_REQUEST['q']=='getsurv') { $return = getSurveillance($source, $siret); } elseif($_REQUEST['q']=='ajouter') { $firephp->log($_REQUEST, 'REQUEST'); $siren = $_REQUEST['siren']; $source = ( isset($_REQUEST['source']) && !empty($_REQUEST['source']) ) ? $_REQUEST['source'] : '' ; $return = formSurveillance($source, $siren, array(), false); } echo $return; exit; ?>