Remove "temp" directory in shared

This commit is contained in:
Michael RICOIS 2017-03-07 14:50:28 +01:00
parent b9b5c774e5
commit f74eef8399
28 changed files with 57 additions and 57 deletions

View File

@ -132,7 +132,7 @@ class EvaluationController extends Zend_Controller_Action
require_once 'ChartDirector/phpchartdir.php'; require_once 'ChartDirector/phpchartdir.php';
require_once 'Scores/Cache.php'; require_once 'Scores/Cache.php';
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$path = $c->profil->path->shared . '/temp/pages/imgcache/'; $path = $c->profil->path->shared . '/pages/imgcache/';
$file = 'indiscorehisto-'.$this->siret.'-'.$this->id.'-'.$type.'.png'; $file = 'indiscorehisto-'.$this->siret.'-'.$this->id.'-'.$type.'.png';
$cache = new Cache(); $cache = new Cache();
$return = null; $return = null;
@ -557,7 +557,7 @@ class EvaluationController extends Zend_Controller_Action
$file = 'evaluation-indiscore3-'.$this->siret.'.html'; $file = 'evaluation-indiscore3-'.$this->siret.'.html';
} }
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$path = $c->profil->path->shared.'/temp/pages'; $path = $c->profil->path->shared.'/pages';
if (file_exists($path.'/'.$file)) if (file_exists($path.'/'.$file))
{ {
$doc = new DOMDocument(); $doc = new DOMDocument();
@ -630,7 +630,7 @@ class EvaluationController extends Zend_Controller_Action
$xml = $doc->saveXML(); $xml = $doc->saveXML();
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$outfile = $c->profil->path->shared.'/temp/pages/p'.$user->getIdClient().'-'.$file; $outfile = $c->profil->path->shared.'/pages/p'.$user->getIdClient().'-'.$file;
file_put_contents($outfile, $xml); file_put_contents($outfile, $xml);
//Génération du pdf //Génération du pdf
@ -913,7 +913,7 @@ class EvaluationController extends Zend_Controller_Action
$date = date('Ymd'); $date = date('Ymd');
$url = 'https://www.creditsafe.fr/getdata/service/CSFRServices.asmx/GetData?RequestXmlStr='.$req; $url = 'https://www.creditsafe.fr/getdata/service/CSFRServices.asmx/GetData?RequestXmlStr='.$req;
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$file = $c->profil->path->shared.'/temp/creditsafe/'.$this->siret.'.xml'; $file = $c->profil->path->shared.'/creditsafe/'.$this->siret.'.xml';
try { try {
$client = new Zend_Http_Client($url); $client = new Zend_Http_Client($url);

View File

@ -182,7 +182,7 @@ class FinanceController extends Zend_Controller_Action
$request = $this->getRequest(); $request = $this->getRequest();
$ratio = $request->getParam('ratio'); $ratio = $request->getParam('ratio');
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$path = $c->profil->path->shared . '/temp/pages/imgcache/'; $path = $c->profil->path->shared . '/pages/imgcache/';
$file = 'syntheseEvol-'.$this->siret.'-'.$this->id.'-'.$ratio.'.png'; $file = 'syntheseEvol-'.$this->siret.'-'.$this->id.'-'.$ratio.'.png';
if (file_exists($path.$file)) { if (file_exists($path.$file)) {
echo '<img src="/file/image/cache/q/'.$file.'" />'; echo '<img src="/file/image/cache/q/'.$file.'" />';
@ -201,7 +201,7 @@ class FinanceController extends Zend_Controller_Action
$request = $this->getRequest(); $request = $this->getRequest();
$typeBilan = $request->getParam('typeBilan'); $typeBilan = $request->getParam('typeBilan');
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$path = $c->profil->path->shared . '/temp/pages/imgcache/'; $path = $c->profil->path->shared . '/pages/imgcache/';
$file = 'synthese-linecompare-'.$this->siret.'-'.$this->id.'-'.$typeBilan.'.png'; $file = 'synthese-linecompare-'.$this->siret.'-'.$this->id.'-'.$typeBilan.'.png';
if (file_exists($path.$file)) { if (file_exists($path.$file)) {
echo '<img src="/file/image/cache/q/'.$file.'" />'; echo '<img src="/file/image/cache/q/'.$file.'" />';
@ -444,7 +444,7 @@ class FinanceController extends Zend_Controller_Action
$dateCloture = $request->getParam('dateCloture'); $dateCloture = $request->getParam('dateCloture');
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$path = $c->profil->path->shared . '/temp/pages/imgcache/'; $path = $c->profil->path->shared . '/pages/imgcache/';
switch($type){ switch($type){
case 'actif': case 'actif':
$file = 'bilansgraphactif-'.$this->siret.'-'.$this->id.'-'.$typeBilan.$dateCloture.'.png'; $file = 'bilansgraphactif-'.$this->siret.'-'.$this->id.'-'.$typeBilan.$dateCloture.'.png';
@ -640,7 +640,7 @@ class FinanceController extends Zend_Controller_Action
$request = $this->getRequest(); $request = $this->getRequest();
$ratio = $request->getParam('ratio'); $ratio = $request->getParam('ratio');
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$path = $c->profil->path->shared . '/temp/pages/imgcache/'; $path = $c->profil->path->shared . '/pages/imgcache/';
$file = 'ratiosgraph-'.$this->siret.'-'.$this->id.'-'.$ratio.'.png'; $file = 'ratiosgraph-'.$this->siret.'-'.$this->id.'-'.$ratio.'.png';
if (file_exists($path.$file)) { if (file_exists($path.$file)) {
echo '<img src="/file/image/cache/q/'.$file.'" />'; echo '<img src="/file/image/cache/q/'.$file.'" />';
@ -687,7 +687,7 @@ class FinanceController extends Zend_Controller_Action
$data[$element->id] = $element->val; $data[$element->id] = $element->val;
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$path = $c->profil->path->shared . '/temp/files/'; $path = $c->profil->path->shared . '/files/';
$file = 'liasse-'.substr($this->siret, 0, 9).'-'.$this->id.'-'.$type.$date.'.xls'; $file = 'liasse-'.substr($this->siret, 0, 9).'-'.$this->id.'-'.$type.$date.'.xls';
$liasse = new Scores_Finance_Liasse_XLS($model); $liasse = new Scores_Finance_Liasse_XLS($model);

View File

@ -2064,7 +2064,7 @@ class IdentiteController extends Zend_Controller_Action
// --- Création du PDF // --- Création du PDF
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$filepdf = $c->profil->path->shared.'/temp/files/avisrncs-'.$siren.'.pdf'; $filepdf = $c->profil->path->shared.'/files/avisrncs-'.$siren.'.pdf';
try { try {
$pdf = new Scores_Pdf_Tcpdf(); $pdf = new Scores_Pdf_Tcpdf();
$pdf->SetBackgroundImage('libs/modeles/avisrncs.jpg'); $pdf->SetBackgroundImage('libs/modeles/avisrncs.jpg');

View File

@ -68,7 +68,7 @@ class IndexController extends Zend_Controller_Action
$content_type = 'application/csv-tab-delimited-table'; $content_type = 'application/csv-tab-delimited-table';
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$path = $c->profil->path->shared.'/temp/files/'; $path = $c->profil->path->shared.'/files/';
//Envoi du fichier sur la sortie standard //Envoi du fichier sur la sortie standard
if ( file_exists($path.$file) ) { if ( file_exists($path.$file) ) {
header('Content-Transfer-Encoding: none'); header('Content-Transfer-Encoding: none');

View File

@ -499,7 +499,7 @@ class PiecesController extends Zend_Controller_Action
if ( $stream->isSuccessful() && substr($stream->getBody(),0,4)=='%PDF' ) { if ( $stream->isSuccessful() && substr($stream->getBody(),0,4)=='%PDF' ) {
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$file = 'bilan-'.$siren.'-'.$type.'-'.$dateCloture.'.pdf'; $file = 'bilan-'.$siren.'-'.$type.'-'.$dateCloture.'.pdf';
if (copy($stream->getStreamName(), $c->profil->path->shared . '/temp/files/' . $file)) { if (copy($stream->getStreamName(), $c->profil->path->shared . '/files/' . $file)) {
$this->view->assign('url', $this->view->url(array('module'=>'file', $this->view->assign('url', $this->view->url(array('module'=>'file',
'controller'=>'greffe', 'action'=>'bilan', 'q'=>$file), 'default', true)); 'controller'=>'greffe', 'action'=>'bilan', 'q'=>$file), 'default', true));
} else { } else {
@ -627,7 +627,7 @@ class PiecesController extends Zend_Controller_Action
if ( $stream->isSuccessful() && substr($stream->getBody(),0,4)=='%PDF' ) { if ( $stream->isSuccessful() && substr($stream->getBody(),0,4)=='%PDF' ) {
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$file = 'acte-'.$siren.'-'.$depotNum.'-'.$acteNum.'.pdf'; $file = 'acte-'.$siren.'-'.$depotNum.'-'.$acteNum.'.pdf';
if (copy($stream->getStreamName(), $c->profil->path->shared . '/temp/files/' . $file)) { if (copy($stream->getStreamName(), $c->profil->path->shared . '/files/' . $file)) {
$this->view->assign('url', $this->view->url(array('module'=>'file', $this->view->assign('url', $this->view->url(array('module'=>'file',
'controller'=>'greffe', 'action'=>'acte', 'q'=>$file), 'default', true)); 'controller'=>'greffe', 'action'=>'acte', 'q'=>$file), 'default', true));
} else { } else {
@ -898,7 +898,7 @@ class PiecesController extends Zend_Controller_Action
if ( $stream->isSuccessful() && substr($stream->getBody(),0,4)=='%PDF' ) { if ( $stream->isSuccessful() && substr($stream->getBody(),0,4)=='%PDF' ) {
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$file = 'ST-'.$siren.'-'.$date.'.pdf'; $file = 'ST-'.$siren.'-'.$date.'.pdf';
if (copy($stream->getStreamName(), $c->profil->path->shared . '/temp/files/' . $file)) { if (copy($stream->getStreamName(), $c->profil->path->shared . '/files/' . $file)) {
$this->view->assign('url', $this->view->url(array('module'=>'file', 'controller'=>'greffe', $this->view->assign('url', $this->view->url(array('module'=>'file', 'controller'=>'greffe',
'action'=>'association', 'q'=>$file), 'default', true)); 'action'=>'association', 'q'=>$file), 'default', true));
} else { } else {
@ -1007,7 +1007,7 @@ class PiecesController extends Zend_Controller_Action
if ( $stream->isSuccessful() && substr($stream->getBody(),0,4)=='%PDF' ) { if ( $stream->isSuccessful() && substr($stream->getBody(),0,4)=='%PDF' ) {
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$file = 'bilan-'.$siren.'-'.$type.'-'.$dateCloture.'.pdf'; $file = 'bilan-'.$siren.'-'.$type.'-'.$dateCloture.'.pdf';
if (copy($stream->getStreamName(), $c->profil->path->shared . '/temp/files/' . $file)) { if (copy($stream->getStreamName(), $c->profil->path->shared . '/files/' . $file)) {
$this->view->assign('url', $this->view->url(array('module'=>'file', 'controller'=>'greffe', $this->view->assign('url', $this->view->url(array('module'=>'file', 'controller'=>'greffe',
'action' => 'association', 'q'=>$file), 'default', true)); 'action' => 'association', 'q'=>$file), 'default', true));
} else { } else {
@ -1054,7 +1054,7 @@ class PiecesController extends Zend_Controller_Action
case 'T': case 'T':
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$path = $c->profil->path->shared. '/temp/files/'; $path = $c->profil->path->shared. '/files/';
//Le fichier est déjà présent sur le serveur //Le fichier est déjà présent sur le serveur
if ( file_exists($path.'kbis-'.$siren.'.pdf') if ( file_exists($path.'kbis-'.$siren.'.pdf')

View File

@ -140,7 +140,7 @@ class PrintController extends Zend_Controller_Action
$fichier = str_replace('.pdf', '', $fichier); $fichier = str_replace('.pdf', '', $fichier);
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$file = $c->profil->path->shared.'/temp/pages/'.$fichier.'.html'; $file = $c->profil->path->shared.'/pages/'.$fichier.'.html';
if (!file_exists($file)) if (!file_exists($file))
{ {
echo 'Fichier introuvable'; echo 'Fichier introuvable';
@ -239,7 +239,7 @@ class PrintController extends Zend_Controller_Action
} }
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$file = $c->profil->path->shared.'/temp/files/'.$fichier; $file = $c->profil->path->shared.'/files/'.$fichier;
if (!file_exists($file)){ if (!file_exists($file)){
echo "Erreur lors de la génération du fichier."; echo "Erreur lors de la génération du fichier.";
exit; exit;

View File

@ -1206,7 +1206,7 @@ class RechercheController extends Zend_Controller_Action
//echo "<pre>"; print_r($etabs); echo "</pre>"; exit; //echo "<pre>"; print_r($etabs); echo "</pre>"; exit;
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$file = $c->profil->path->shared . '/temp/files/'.$user->getIdClient().'-'.$user->getLogin().'-'.date('YmdHis').'.csv'; $file = $c->profil->path->shared . '/files/'.$user->getIdClient().'-'.$user->getLogin().'-'.date('YmdHis').'.csv';
$export = new Scores_Export_ArrayCsv($etabs, 'rechercheEntreprise'); $export = new Scores_Export_ArrayCsv($etabs, 'rechercheEntreprise');
$export->writeFile($file); $export->writeFile($file);

View File

@ -709,7 +709,7 @@ class SurveillanceController extends Zend_Controller_Action
$getCSV = $request->getParam('get', ''); $getCSV = $request->getParam('get', '');
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$path = $c->profil->path->shared.'/temp/files'; $path = $c->profil->path->shared.'/files';
// --- Lister les fichiers // --- Lister les fichiers
if (empty($nomFic)) { if (empty($nomFic)) {
@ -981,7 +981,7 @@ class SurveillanceController extends Zend_Controller_Action
} }
} }
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$path = $c->profil->path->shared.'/temp/files'; $path = $c->profil->path->shared.'/files';
//Récupération du fichier //Récupération du fichier
$file = $path.'/'.$nomFic; $file = $path.'/'.$nomFic;

View File

@ -29,7 +29,7 @@ class TelechargementController extends Zend_Controller_Action
$this->_helper->viewRenderer->setNoRender(true); $this->_helper->viewRenderer->setNoRender(true);
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$this->path = $c->profil->path->shared.'/temp/files'; $this->path = $c->profil->path->shared.'/files';
require_once 'Scores/WsScores.php'; require_once 'Scores/WsScores.php';
} }

View File

@ -43,7 +43,7 @@ class File_BodaccController extends Zend_Controller_Action
{ {
$filename = $this->getRequest()->getParam('q'); $filename = $this->getRequest()->getParam('q');
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$file = $c->profil->path->shared.'/temp/files/'.$filename; $file = $c->profil->path->shared.'/files/'.$filename;
$content_type = 'application/pdf'; $content_type = 'application/pdf';
//Envoi du fichier sur la sortie standard //Envoi du fichier sur la sortie standard
if ( file_exists($file) ) { if ( file_exists($file) ) {

View File

@ -11,7 +11,7 @@ class File_GreffeController extends Zend_Controller_Action
{ {
$filename = $this->getRequest()->getParam('q'); $filename = $this->getRequest()->getParam('q');
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$file = $c->profil->path->shared.'/temp/files/'.$filename; $file = $c->profil->path->shared.'/files/'.$filename;
$content_type = 'application/pdf'; $content_type = 'application/pdf';
//Envoi du fichier sur la sortie standard //Envoi du fichier sur la sortie standard
if ( file_exists($file) ) { if ( file_exists($file) ) {
@ -42,7 +42,7 @@ class File_GreffeController extends Zend_Controller_Action
{ {
$filename = $this->getRequest()->getParam('q'); $filename = $this->getRequest()->getParam('q');
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$file = $c->profil->path->shared.'/temp/files/'.$filename; $file = $c->profil->path->shared.'/files/'.$filename;
$content_type = 'application/pdf'; $content_type = 'application/pdf';
//Envoi du fichier sur la sortie standard //Envoi du fichier sur la sortie standard
if ( file_exists($file) ) { if ( file_exists($file) ) {
@ -73,7 +73,7 @@ class File_GreffeController extends Zend_Controller_Action
{ {
$filename = $this->getRequest()->getParam('q'); $filename = $this->getRequest()->getParam('q');
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$file = $c->profil->path->shared.'/temp/files/'.$filename; $file = $c->profil->path->shared.'/files/'.$filename;
$content_type = 'application/pdf'; $content_type = 'application/pdf';
//Envoi du fichier sur la sortie standard //Envoi du fichier sur la sortie standard
if ( file_exists($file) ) { if ( file_exists($file) ) {
@ -107,7 +107,7 @@ class File_GreffeController extends Zend_Controller_Action
{ {
$filename = $this->getRequest()->getParam('q'); $filename = $this->getRequest()->getParam('q');
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$file = $c->profil->path->shared.'/temp/files/'.$filename; $file = $c->profil->path->shared.'/files/'.$filename;
$content_type = 'application/pdf'; $content_type = 'application/pdf';
//Envoi du fichier sur la sortie standard //Envoi du fichier sur la sortie standard
if ( file_exists($file) ) { if ( file_exists($file) ) {

View File

@ -54,7 +54,7 @@ class File_ImageController extends Zend_Controller_Action
{ {
$filename = $this->getRequest()->getParam('q'); $filename = $this->getRequest()->getParam('q');
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$file = $c->profil->path->shared.'/temp/pages/imgcache/'.$filename; $file = $c->profil->path->shared.'/pages/imgcache/'.$filename;
$content_type = 'image/png'; $content_type = 'image/png';
//Envoi du fichier sur la sortie standard //Envoi du fichier sur la sortie standard
if ( file_exists($file) ) { if ( file_exists($file) ) {

View File

@ -50,7 +50,7 @@ class File_IndexController extends Zend_Controller_Action
{ {
$filename = $this->getRequest()->getParam('q'); $filename = $this->getRequest()->getParam('q');
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$file = $c->profil->path->shared.'/temp/files/'.$filename; $file = $c->profil->path->shared.'/files/'.$filename;
$content_type = 'application/vnd.ms-excel'; $content_type = 'application/vnd.ms-excel';
//Envoi du fichier sur la sortie standard //Envoi du fichier sur la sortie standard
if ( file_exists($file) ) { if ( file_exists($file) ) {
@ -84,7 +84,7 @@ class File_IndexController extends Zend_Controller_Action
{ {
$filename = $this->getRequest()->getParam('q'); $filename = $this->getRequest()->getParam('q');
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$file = $c->profil->path->shared.'/temp/files/'.$filename; $file = $c->profil->path->shared.'/files/'.$filename;
$content_type = 'application/csv-tab-delimited-table'; $content_type = 'application/csv-tab-delimited-table';
//Envoi du fichier sur la sortie standard //Envoi du fichier sur la sortie standard
if ( file_exists($file) ) { if ( file_exists($file) ) {
@ -118,7 +118,7 @@ class File_IndexController extends Zend_Controller_Action
{ {
$filename = $this->getRequest()->getParam('q'); $filename = $this->getRequest()->getParam('q');
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$file = $c->profil->path->shared.'/temp/files/'.$filename; $file = $c->profil->path->shared.'/files/'.$filename;
$content_type = 'application/csv-tab-delimited-table'; $content_type = 'application/csv-tab-delimited-table';
//Envoi du fichier sur la sortie standard //Envoi du fichier sur la sortie standard
if ( file_exists($file) ) { if ( file_exists($file) ) {
@ -152,7 +152,7 @@ class File_IndexController extends Zend_Controller_Action
{ {
$filename = $this->getRequest()->getParam('q'); $filename = $this->getRequest()->getParam('q');
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$file = $c->profil->path->shared.'/temp/files/'.$filename; $file = $c->profil->path->shared.'/files/'.$filename;
$content_type = 'application/csv-tab-delimited-table'; $content_type = 'application/csv-tab-delimited-table';
//Envoi du fichier sur la sortie standard //Envoi du fichier sur la sortie standard
if ( file_exists($file) ) { if ( file_exists($file) ) {
@ -224,7 +224,7 @@ class File_IndexController extends Zend_Controller_Action
{ {
$filename = $this->getRequest()->getParam('q'); $filename = $this->getRequest()->getParam('q');
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$file = $c->profil->path->shared.'/temp/pages/'.$filename; $file = $c->profil->path->shared.'/pages/'.$filename;
$content_type = 'application/pdf'; $content_type = 'application/pdf';
//Envoi du fichier sur la sortie standard //Envoi du fichier sur la sortie standard
if ( file_exists($file) ) { if ( file_exists($file) ) {

View File

@ -75,7 +75,7 @@ Environment configuration
- Temporary storage - Temporary storage
[profil.path.shared]/temp/ [profil.path.shared]/
cache cache
files files
sessions sessions
@ -87,10 +87,10 @@ Environment configuration
- Printing symbolic links - Printing symbolic links
ln -vsf [profil.path.shared]/temp/pages/imgcache [profil.path.shared]/temp/pages/file/image/cache/q; ln -vsf [profil.path.shared]/pages/imgcache [profil.path.shared]/pages/file/image/cache/q;
ln -vsf [profil.path.shared]/persist/streetview [profil.path.shared]/temp/pages/file/streetview/img/q; ln -vsf [profil.path.shared]/persist/streetview [profil.path.shared]/pages/file/streetview/img/q;
ln -vsf [profil.path.shared]/persist/logos [profil.path.shared]/temp/pages/file/image/logo/q; ln -vsf [profil.path.shared]/persist/logos [profil.path.shared]/pages/file/image/logo/q;
ln -vsf [VHOST]/public/themes [profil.path.shared]/temp/pages/themes; ln -vsf [VHOST]/public/themes [profil.path.shared]/pages/themes;
Apache configuration Apache configuration

View File

@ -2,11 +2,11 @@
phpSettings.date.timezone = "Europe/Paris" phpSettings.date.timezone = "Europe/Paris"
phpSettings.display_startup_errors = 0 phpSettings.display_startup_errors = 0
phpSettings.display_errors = 0 phpSettings.display_errors = 0
phpSettings.soap.wsdl_cache_dir = "/home/vhosts/data/extranet/temp/wsdl" phpSettings.soap.wsdl_cache_dir = "/home/vhosts/data/extranet/wsdl"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php" bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap" bootstrap.class = "Bootstrap"
appnamespace = "Application" appnamespace = "Application"
resources.session.save_path = "/home/vhosts/data/extranet/temp/sessions" resources.session.save_path = "/home/vhosts/data/extranet/sessions"
resources.useragent.mobile.features.path = APPLICATION_PATH "/../library/Zend/Http/UserAgent/Features/Adapter/Browscap.php" resources.useragent.mobile.features.path = APPLICATION_PATH "/../library/Zend/Http/UserAgent/Features/Adapter/Browscap.php"
resources.useragent.mobile.features.classname = "Zend_Http_UserAgent_Features_Adapter_Browscap" resources.useragent.mobile.features.classname = "Zend_Http_UserAgent_Features_Adapter_Browscap"
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers" resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"

View File

@ -21,7 +21,7 @@ class Application_Controller_Plugin_Pdf extends Zend_Controller_Plugin_Abstract
$content = preg_replace('@<link href="/@si','<link href="./',$layout); $content = preg_replace('@<link href="/@si','<link href="./',$layout);
$content = preg_replace('@src="/@si','src="./',$content); $content = preg_replace('@src="/@si','src="./',$content);
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
file_put_contents($c->profil->path->shared.'/temp/pages/'.$filename.'.html', $content); file_put_contents($c->profil->path->shared.'/pages/'.$filename.'.html', $content);
} }
} }

View File

@ -19,7 +19,7 @@ Class GiantControllerLib
{ {
$this->configVal = new Zend_Config_Ini( realpath(dirname(__FILE__)).'/giant.ini' ); $this->configVal = new Zend_Config_Ini( realpath(dirname(__FILE__)).'/giant.ini' );
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$this->pathImg = $c->profil->path->shared.'/temp/pages/imgcache/'.$companyId; $this->pathImg = $c->profil->path->shared.'/pages/imgcache/'.$companyId;
} }
public function getCache($pays){ public function getCache($pays){

View File

@ -672,7 +672,7 @@ class BDF
$filename = false; $filename = false;
} else { } else {
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$filename = $c->profil->path->shared.'/temp/cache/bdf_'.$service.'_'.$req.'_'.$module.'.html'; $filename = $c->profil->path->shared.'/cache/bdf_'.$service.'_'.$req.'_'.$module.'.html';
} }
//@todo : Ajouter timeover //@todo : Ajouter timeover

View File

@ -14,7 +14,7 @@ class Cache
*/ */
public function __construct($name = null) public function __construct($name = null)
{ {
$this->filename = Zend_Registry::get('config')->profil->path->shared.'/temp/cache/'.$name.$this->extension; $this->filename = Zend_Registry::get('config')->profil->path->shared.'/cache/'.$name.$this->extension;
} }
/** /**

View File

@ -162,7 +162,7 @@ class Scores_Export_Print
$content = $serializer->serialize($object); $content = $serializer->serialize($object);
$filename = $this->filename('xml', $params); $filename = $this->filename('xml', $params);
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$path = $c->profil->path->shared.'/temp/files/'; $path = $c->profil->path->shared.'/files/';
file_put_contents($path.$filename.'.xml', $content); file_put_contents($path.$filename.'.xml', $content);
} catch (Zend_Serializer_Exception $e) { } catch (Zend_Serializer_Exception $e) {
//Error //Error

View File

@ -22,7 +22,7 @@ class Scores_Finance_Liasse_XLS
public function __construct($modele = '', $mode = 'Excel5') public function __construct($modele = '', $mode = 'Excel5')
{ {
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$this->path = $c->profil->path->shared . '/temp/files/'; $this->path = $c->profil->path->shared . '/files/';
if (!is_dir($this->path)){ if (!is_dir($this->path)){
mkdir($this->path); mkdir($this->path);
} }

View File

@ -11,7 +11,7 @@ class Scores_Finance_Ratios_Graph
require_once 'ChartDirector/phpchartdir.php'; require_once 'ChartDirector/phpchartdir.php';
require_once 'Scores/Cache.php'; require_once 'Scores/Cache.php';
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$this->path = $c->profil->path->shared . '/temp/pages/imgcache/'; $this->path = $c->profil->path->shared . '/pages/imgcache/';
$this->siret = $siret; $this->siret = $siret;
$this->id = $id; $this->id = $id;
} }

View File

@ -13,7 +13,7 @@ class Scores_Insee_AvisSituation
$this->siret = $siret; $this->siret = $siret;
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$this->pathPdf = $c->profil->path->shared.'/temp/files'; $this->pathPdf = $c->profil->path->shared.'/files';
$this->pathLog = $c->profil->path->shared.'/persist/log'; $this->pathLog = $c->profil->path->shared.'/persist/log';
$this->lock = $this->pathLog.'/aviserreur.lock'; $this->lock = $this->pathLog.'/aviserreur.lock';
} }

View File

@ -33,7 +33,7 @@ class RapportComment
//Assignation //Assignation
$this->commentaires = $tabCommentaires; $this->commentaires = $tabCommentaires;
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$this->pathImage = $c->profil->path->shared.'/temp/pages/imgcache/'; $this->pathImage = $c->profil->path->shared.'/pages/imgcache/';
$this->idEntreprise = $id; $this->idEntreprise = $id;
$this->siret = $siret; $this->siret = $siret;

View File

@ -132,7 +132,7 @@ class Scores_Ws_Client extends Zend_Soap_Client
// --- Create Cache // --- Create Cache
$frontend = array( 'lifetime' => 14400, 'automatic_seralization' => true ); $frontend = array( 'lifetime' => 14400, 'automatic_seralization' => true );
$backend = array( 'cache_dir' => $c->profil->path->shared . '/temp/cache' ); $backend = array( 'cache_dir' => $c->profil->path->shared . '/cache' );
$this->cache = Zend_Cache::factory('Core', 'File', $frontend, $backend); $this->cache = Zend_Cache::factory('Core', 'File', $frontend, $backend);
} }

View File

@ -8,6 +8,6 @@ wsworldcheck.assigneeIdentifier = cnu_so_77
wsworldcheck.response.limit = 200 wsworldcheck.response.limit = 200
wsworldcheck.response.start = 0 wsworldcheck.response.start = 0
worldcheck.page.items = 15 worldcheck.page.items = 15
worldcheck.cachedir.path = "/home/vhosts/data/extranet/temp/cache/" worldcheck.cachedir.path = "/home/vhosts/data/extranet/cache/"
worldcheck.cachedir.name = worldcheck worldcheck.cachedir.name = worldcheck
worldcheck.cachedir.lifetime = 86400 worldcheck.cachedir.lifetime = 86400

View File

@ -89,7 +89,7 @@ foreach ($logins as $login => $hash ) {
echo " URL = " . $url; echo " URL = " . $url;
$file = basename($url); $file = basename($url);
$path = $c->profil->path->shared.'/temp/files'; $path = $c->profil->path->shared.'/files';
//Télécharger le fichier //Télécharger le fichier
try { try {

View File

@ -42,23 +42,23 @@ $c = new Zend_Config($application->getOptions());
//Liste des Repertoires //Liste des Repertoires
$tempDirs = array( $tempDirs = array(
'cache' => array( 'cache' => array(
'path' => $c->profil->path->shared.'/temp/cache', 'path' => $c->profil->path->shared.'/cache',
'files' => array('*.tpl') 'files' => array('*.tpl')
), ),
'files' => array( 'files' => array(
'path' => $c->profil->path->shared.'/temp/files', 'path' => $c->profil->path->shared.'/files',
'files' => array('*.pdf', '*.jpeg', '*.jpg', '*.csv', '*.csv.bz2', '*.xls','*.xml') 'files' => array('*.pdf', '*.jpeg', '*.jpg', '*.csv', '*.csv.bz2', '*.xls','*.xml')
), ),
'pages' => array( 'pages' => array(
'path' => $c->profil->path->shared.'/temp/pages', 'path' => $c->profil->path->shared.'/pages',
'files' => array('*.html') 'files' => array('*.html')
), ),
'imgcache' => array( 'imgcache' => array(
'path' => $c->profil->path->shared . '/temp/pages/imgcache', 'path' => $c->profil->path->shared . '/pages/imgcache',
'files' => array('*.png', '*.gif', '*.jpeg', '*.jpg') 'files' => array('*.png', '*.gif', '*.jpeg', '*.jpg')
), ),
'sessions' => array( 'sessions' => array(
'path' => $c->profil->path->shared . '/temp/sessions', 'path' => $c->profil->path->shared . '/sessions',
'files' => array('sess_*') 'files' => array('sess_*')
), ),
); );