Re-ajout de la méthoed getListeFichierSurv
This commit is contained in:
parent
2c71a09c14
commit
af573a18e6
@ -18,7 +18,7 @@ else {
|
||||
$_SESSION['tabInfo']['idClient']==32
|
||||
) $ref='*';
|
||||
|
||||
try {
|
||||
try {
|
||||
$O = $client->getListeFichierSurv($_SESSION['tabInfo']['login'], $ref, $nomFic);
|
||||
$tabFichier=$O['results'];
|
||||
} catch (SoapFault $fault) {
|
||||
|
@ -28,6 +28,13 @@ else{
|
||||
$file = PATH_DATA.'/survliste/'.$nomFic;
|
||||
$file2 = $file.'.bz2';
|
||||
if (!file_exists($file) || filesize($file)==0 ) {
|
||||
//Génération du fichier
|
||||
try {
|
||||
$O = $client->getListeFichierSurv($_SESSION['tabInfo']['login'], $_SESSION['tabInfo']['prenom'], $nomFic);
|
||||
} catch (SoapFault $fault) {
|
||||
require_once 'soaperror.php';
|
||||
processSoapFault($client,$fault,$tabInfo);
|
||||
}
|
||||
$page = getUrl(WEBSERVICE_URI.'csv/'.$nomFic.'.bz2', '', '', '', false);
|
||||
$body = $page['body'];
|
||||
$fp=@fopen($file2, 'w');
|
||||
|
Loading…
x
Reference in New Issue
Block a user