issue #0000533, getListeSurveillancesCsv
This commit is contained in:
parent
d27aa9cfba
commit
3c70ba52a9
@ -2996,7 +2996,11 @@ class WsInterne extends WsScore
|
||||
|
||||
//Initialisation
|
||||
$error = new ErrorType();
|
||||
|
||||
if (empty($source)) $source = '';
|
||||
if (empty($login)) $login = '';
|
||||
if (empty($idClient)) $idClient = 0;
|
||||
|
||||
|
||||
debugLog('I',"getListeSurveillancesCsv Début $source $login $idClient",__LINE__,__FILE__, __FUNCTION__, __CLASS__);
|
||||
|
||||
$tabRet = array();
|
||||
@ -3034,11 +3038,11 @@ class WsInterne extends WsScore
|
||||
|
||||
// Surveillances de tous les utilisateurs du client
|
||||
if (empty($login) && ($this->tabInfoUser['profil']=='SuperAdministrateur' ||
|
||||
$this->tabInfoUser['profil']=='Administrateur')){
|
||||
$this->tabInfoUser['profil']=='Administrateur')) {
|
||||
$login=''; //$tabInfoUser['login'];
|
||||
//Surveillances de l'utilisateur
|
||||
} elseif ($login!='' && ($this->tabInfoUser['profil']=='SuperAdministrateur' ||
|
||||
$this->tabInfoUser['profil']=='Administrateur')){
|
||||
$this->tabInfoUser['profil']=='Administrateur')) {
|
||||
$strLogin=" AND s.login='$login' ";
|
||||
//Par défaut préselection de l'utilisateur
|
||||
} else {
|
||||
@ -3091,7 +3095,7 @@ class WsInterne extends WsScore
|
||||
$fp = fopen(DOC_WEB_LOCAL."csv/listesurv-$source-$login-$idClient.sql", 'w');
|
||||
fwrite($fp, $sql.EOL);
|
||||
fclose($fp);
|
||||
exec(APPLICATION_PATH."/batch/sql2csv.php jo ".DOC_WEB_LOCAL."csv/listesurv-$source-$login-$idClient.sql $fichierCsv > /dev/null &");
|
||||
exec(APPLICATION_PATH."/../batch/sql2csv.php jo ".DOC_WEB_LOCAL."csv/listesurv-$source-$login-$idClient.sql $fichierCsv > /dev/null &");
|
||||
$size=$cache=0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user