Suppress define DOC_WEB_LOCAL
This commit is contained in:
parent
49baff3c24
commit
12a8c1deeb
@ -11,7 +11,6 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
||||
define('MYSQL_PASS', $config->profil->db->metier->params->password);
|
||||
define('MYSQL_DEFAULT_DB', 'jo');
|
||||
|
||||
define('DOC_WEB_LOCAL' , $config->profil->path->shared.'/files/');
|
||||
define('LOG_PATH' , $config->profil->path->shared.'/log');
|
||||
|
||||
// Entreprise
|
||||
|
@ -1289,7 +1289,9 @@ class Interne extends Scores_Ws_Server
|
||||
$strLogin = "AND s.login='$login' ";
|
||||
}
|
||||
|
||||
$fichierCsv = DOC_WEB_LOCAL."listesurv-$source-$login-$idClient.csv";
|
||||
$c = Zend_Registry::get('config');
|
||||
$path = $c->profil->path->shared.'/files';
|
||||
$fichierCsv = $path."/listesurv-$source-$login-$idClient.csv";
|
||||
|
||||
if ( file_exists($fichierCsv)
|
||||
&& date('Ymd', filemtime($fichierCsv))==date('Ymd')
|
||||
@ -1330,9 +1332,11 @@ class Interne extends Scores_Ws_Server
|
||||
ORDER BY loginUti ASC, s.siren ASC, s.nic ASC, s.source ASC, s.ref ASC";
|
||||
}
|
||||
Metier_Util_Log::write('I',"getListeSurveillancesCsv SQL $sql",__LINE__,__FILE__, __FUNCTION__, __CLASS__);
|
||||
file_put_contents(DOC_WEB_LOCAL."listesurv-$source-$login-$idClient.sql", $sql);
|
||||
|
||||
$c = Zend_Registry::get('config');
|
||||
exec("php ".APPLICATION_PATH."/../scripts/jobs/sql2csv.php --sqlfile ".DOC_WEB_LOCAL."listesurv-$source-$login-$idClient.sql --csvfile $fichierCsv > /dev/null &");
|
||||
$path = $c->profil->path->shared.'/files';
|
||||
file_put_contents($path."/listesurv-$source-$login-$idClient.sql", $sql);
|
||||
exec("php ".APPLICATION_PATH."/../scripts/jobs/sql2csv.php --sqlfile ".$path."/listesurv-$source-$login-$idClient.sql --csvfile $fichierCsv > /dev/null &");
|
||||
$size=$cache=0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user