diff --git a/application/modules/default/controllers/EvaluationController.php b/application/modules/default/controllers/EvaluationController.php index 17749c17b..a1da94aac 100644 --- a/application/modules/default/controllers/EvaluationController.php +++ b/application/modules/default/controllers/EvaluationController.php @@ -132,7 +132,7 @@ class EvaluationController extends Zend_Controller_Action require_once 'ChartDirector/phpchartdir.php'; require_once 'Scores/Cache.php'; $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'; $cache = new Cache(); $return = null; @@ -557,7 +557,7 @@ class EvaluationController extends Zend_Controller_Action $file = 'evaluation-indiscore3-'.$this->siret.'.html'; } $c = Zend_Registry::get('config'); - $path = $c->profil->path->shared.'/temp/pages'; + $path = $c->profil->path->shared.'/pages'; if (file_exists($path.'/'.$file)) { $doc = new DOMDocument(); @@ -630,7 +630,7 @@ class EvaluationController extends Zend_Controller_Action $xml = $doc->saveXML(); $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); //Génération du pdf @@ -913,7 +913,7 @@ class EvaluationController extends Zend_Controller_Action $date = date('Ymd'); $url = 'https://www.creditsafe.fr/getdata/service/CSFRServices.asmx/GetData?RequestXmlStr='.$req; $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 { $client = new Zend_Http_Client($url); diff --git a/application/modules/default/controllers/FinanceController.php b/application/modules/default/controllers/FinanceController.php index 6f17ea933..52b076ad8 100644 --- a/application/modules/default/controllers/FinanceController.php +++ b/application/modules/default/controllers/FinanceController.php @@ -182,7 +182,7 @@ class FinanceController extends Zend_Controller_Action $request = $this->getRequest(); $ratio = $request->getParam('ratio'); $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'; if (file_exists($path.$file)) { echo ''; @@ -201,7 +201,7 @@ class FinanceController extends Zend_Controller_Action $request = $this->getRequest(); $typeBilan = $request->getParam('typeBilan'); $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'; if (file_exists($path.$file)) { echo ''; @@ -444,7 +444,7 @@ class FinanceController extends Zend_Controller_Action $dateCloture = $request->getParam('dateCloture'); $c = Zend_Registry::get('config'); - $path = $c->profil->path->shared . '/temp/pages/imgcache/'; + $path = $c->profil->path->shared . '/pages/imgcache/'; switch($type){ case 'actif': $file = 'bilansgraphactif-'.$this->siret.'-'.$this->id.'-'.$typeBilan.$dateCloture.'.png'; @@ -640,7 +640,7 @@ class FinanceController extends Zend_Controller_Action $request = $this->getRequest(); $ratio = $request->getParam('ratio'); $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'; if (file_exists($path.$file)) { echo ''; @@ -687,7 +687,7 @@ class FinanceController extends Zend_Controller_Action $data[$element->id] = $element->val; $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'; $liasse = new Scores_Finance_Liasse_XLS($model); diff --git a/application/modules/default/controllers/IdentiteController.php b/application/modules/default/controllers/IdentiteController.php index 83647e030..34d453765 100644 --- a/application/modules/default/controllers/IdentiteController.php +++ b/application/modules/default/controllers/IdentiteController.php @@ -2064,7 +2064,7 @@ class IdentiteController extends Zend_Controller_Action // --- Création du PDF $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 { $pdf = new Scores_Pdf_Tcpdf(); $pdf->SetBackgroundImage('libs/modeles/avisrncs.jpg'); diff --git a/application/modules/default/controllers/IndexController.php b/application/modules/default/controllers/IndexController.php index 8f189d4ec..25c1f2432 100644 --- a/application/modules/default/controllers/IndexController.php +++ b/application/modules/default/controllers/IndexController.php @@ -68,7 +68,7 @@ class IndexController extends Zend_Controller_Action $content_type = 'application/csv-tab-delimited-table'; $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 if ( file_exists($path.$file) ) { header('Content-Transfer-Encoding: none'); diff --git a/application/modules/default/controllers/PiecesController.php b/application/modules/default/controllers/PiecesController.php index b347020ac..8b70b7dc1 100644 --- a/application/modules/default/controllers/PiecesController.php +++ b/application/modules/default/controllers/PiecesController.php @@ -499,7 +499,7 @@ class PiecesController extends Zend_Controller_Action if ( $stream->isSuccessful() && substr($stream->getBody(),0,4)=='%PDF' ) { $c = Zend_Registry::get('config'); $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', 'action'=>'bilan', 'q'=>$file), 'default', true)); } else { @@ -627,7 +627,7 @@ class PiecesController extends Zend_Controller_Action if ( $stream->isSuccessful() && substr($stream->getBody(),0,4)=='%PDF' ) { $c = Zend_Registry::get('config'); $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', 'controller'=>'greffe', 'action'=>'acte', 'q'=>$file), 'default', true)); } else { @@ -898,7 +898,7 @@ class PiecesController extends Zend_Controller_Action if ( $stream->isSuccessful() && substr($stream->getBody(),0,4)=='%PDF' ) { $c = Zend_Registry::get('config'); $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', 'action'=>'association', 'q'=>$file), 'default', true)); } else { @@ -1007,7 +1007,7 @@ class PiecesController extends Zend_Controller_Action if ( $stream->isSuccessful() && substr($stream->getBody(),0,4)=='%PDF' ) { $c = Zend_Registry::get('config'); $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', 'action' => 'association', 'q'=>$file), 'default', true)); } else { @@ -1054,7 +1054,7 @@ class PiecesController extends Zend_Controller_Action case 'T': $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 if ( file_exists($path.'kbis-'.$siren.'.pdf') diff --git a/application/modules/default/controllers/PrintController.php b/application/modules/default/controllers/PrintController.php index 66b0fb5db..fca497701 100644 --- a/application/modules/default/controllers/PrintController.php +++ b/application/modules/default/controllers/PrintController.php @@ -140,7 +140,7 @@ class PrintController extends Zend_Controller_Action $fichier = str_replace('.pdf', '', $fichier); $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)) { echo 'Fichier introuvable'; @@ -239,7 +239,7 @@ class PrintController extends Zend_Controller_Action } $c = Zend_Registry::get('config'); - $file = $c->profil->path->shared.'/temp/files/'.$fichier; + $file = $c->profil->path->shared.'/files/'.$fichier; if (!file_exists($file)){ echo "Erreur lors de la génération du fichier."; exit; diff --git a/application/modules/default/controllers/RechercheController.php b/application/modules/default/controllers/RechercheController.php index 5549a0bce..6baa9655e 100644 --- a/application/modules/default/controllers/RechercheController.php +++ b/application/modules/default/controllers/RechercheController.php @@ -1206,7 +1206,7 @@ class RechercheController extends Zend_Controller_Action //echo "
"; print_r($etabs); echo "
"; exit; $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->writeFile($file); diff --git a/application/modules/default/controllers/SurveillanceController.php b/application/modules/default/controllers/SurveillanceController.php index cdd08d60c..1eeb847a0 100644 --- a/application/modules/default/controllers/SurveillanceController.php +++ b/application/modules/default/controllers/SurveillanceController.php @@ -709,7 +709,7 @@ class SurveillanceController extends Zend_Controller_Action $getCSV = $request->getParam('get', ''); $c = Zend_Registry::get('config'); - $path = $c->profil->path->shared.'/temp/files'; + $path = $c->profil->path->shared.'/files'; // --- Lister les fichiers if (empty($nomFic)) { @@ -981,7 +981,7 @@ class SurveillanceController extends Zend_Controller_Action } } $c = Zend_Registry::get('config'); - $path = $c->profil->path->shared.'/temp/files'; + $path = $c->profil->path->shared.'/files'; //Récupération du fichier $file = $path.'/'.$nomFic; diff --git a/application/modules/default/controllers/TelechargementController.php b/application/modules/default/controllers/TelechargementController.php index fb79b36be..9daf9fb5d 100644 --- a/application/modules/default/controllers/TelechargementController.php +++ b/application/modules/default/controllers/TelechargementController.php @@ -29,7 +29,7 @@ class TelechargementController extends Zend_Controller_Action $this->_helper->viewRenderer->setNoRender(true); $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'; } diff --git a/application/modules/file/controllers/BodaccController.php b/application/modules/file/controllers/BodaccController.php index 59ded6eea..451db04ae 100644 --- a/application/modules/file/controllers/BodaccController.php +++ b/application/modules/file/controllers/BodaccController.php @@ -43,7 +43,7 @@ class File_BodaccController extends Zend_Controller_Action { $filename = $this->getRequest()->getParam('q'); $c = Zend_Registry::get('config'); - $file = $c->profil->path->shared.'/temp/files/'.$filename; + $file = $c->profil->path->shared.'/files/'.$filename; $content_type = 'application/pdf'; //Envoi du fichier sur la sortie standard if ( file_exists($file) ) { diff --git a/application/modules/file/controllers/GreffeController.php b/application/modules/file/controllers/GreffeController.php index 4367961e0..5e627d2d5 100644 --- a/application/modules/file/controllers/GreffeController.php +++ b/application/modules/file/controllers/GreffeController.php @@ -11,7 +11,7 @@ class File_GreffeController extends Zend_Controller_Action { $filename = $this->getRequest()->getParam('q'); $c = Zend_Registry::get('config'); - $file = $c->profil->path->shared.'/temp/files/'.$filename; + $file = $c->profil->path->shared.'/files/'.$filename; $content_type = 'application/pdf'; //Envoi du fichier sur la sortie standard if ( file_exists($file) ) { @@ -42,7 +42,7 @@ class File_GreffeController extends Zend_Controller_Action { $filename = $this->getRequest()->getParam('q'); $c = Zend_Registry::get('config'); - $file = $c->profil->path->shared.'/temp/files/'.$filename; + $file = $c->profil->path->shared.'/files/'.$filename; $content_type = 'application/pdf'; //Envoi du fichier sur la sortie standard if ( file_exists($file) ) { @@ -73,7 +73,7 @@ class File_GreffeController extends Zend_Controller_Action { $filename = $this->getRequest()->getParam('q'); $c = Zend_Registry::get('config'); - $file = $c->profil->path->shared.'/temp/files/'.$filename; + $file = $c->profil->path->shared.'/files/'.$filename; $content_type = 'application/pdf'; //Envoi du fichier sur la sortie standard if ( file_exists($file) ) { @@ -107,7 +107,7 @@ class File_GreffeController extends Zend_Controller_Action { $filename = $this->getRequest()->getParam('q'); $c = Zend_Registry::get('config'); - $file = $c->profil->path->shared.'/temp/files/'.$filename; + $file = $c->profil->path->shared.'/files/'.$filename; $content_type = 'application/pdf'; //Envoi du fichier sur la sortie standard if ( file_exists($file) ) { diff --git a/application/modules/file/controllers/ImageController.php b/application/modules/file/controllers/ImageController.php index faaa7137f..91e076df4 100644 --- a/application/modules/file/controllers/ImageController.php +++ b/application/modules/file/controllers/ImageController.php @@ -54,7 +54,7 @@ class File_ImageController extends Zend_Controller_Action { $filename = $this->getRequest()->getParam('q'); $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'; //Envoi du fichier sur la sortie standard if ( file_exists($file) ) { diff --git a/application/modules/file/controllers/IndexController.php b/application/modules/file/controllers/IndexController.php index 49ba021b9..bec6b2cd8 100644 --- a/application/modules/file/controllers/IndexController.php +++ b/application/modules/file/controllers/IndexController.php @@ -50,7 +50,7 @@ class File_IndexController extends Zend_Controller_Action { $filename = $this->getRequest()->getParam('q'); $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'; //Envoi du fichier sur la sortie standard if ( file_exists($file) ) { @@ -84,7 +84,7 @@ class File_IndexController extends Zend_Controller_Action { $filename = $this->getRequest()->getParam('q'); $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'; //Envoi du fichier sur la sortie standard if ( file_exists($file) ) { @@ -118,7 +118,7 @@ class File_IndexController extends Zend_Controller_Action { $filename = $this->getRequest()->getParam('q'); $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'; //Envoi du fichier sur la sortie standard if ( file_exists($file) ) { @@ -152,7 +152,7 @@ class File_IndexController extends Zend_Controller_Action { $filename = $this->getRequest()->getParam('q'); $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'; //Envoi du fichier sur la sortie standard if ( file_exists($file) ) { @@ -224,7 +224,7 @@ class File_IndexController extends Zend_Controller_Action { $filename = $this->getRequest()->getParam('q'); $c = Zend_Registry::get('config'); - $file = $c->profil->path->shared.'/temp/pages/'.$filename; + $file = $c->profil->path->shared.'/pages/'.$filename; $content_type = 'application/pdf'; //Envoi du fichier sur la sortie standard if ( file_exists($file) ) { diff --git a/docs/README b/docs/README index 6e7664233..1b96564ed 100644 --- a/docs/README +++ b/docs/README @@ -75,7 +75,7 @@ Environment configuration - Temporary storage - [profil.path.shared]/temp/ + [profil.path.shared]/ cache files sessions @@ -87,10 +87,10 @@ Environment configuration - 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]/persist/streetview [profil.path.shared]/temp/pages/file/streetview/img/q; - ln -vsf [profil.path.shared]/persist/logos [profil.path.shared]/temp/pages/file/image/logo/q; - ln -vsf [VHOST]/public/themes [profil.path.shared]/temp/pages/themes; + 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]/pages/file/streetview/img/q; + ln -vsf [profil.path.shared]/persist/logos [profil.path.shared]/pages/file/image/logo/q; + ln -vsf [VHOST]/public/themes [profil.path.shared]/pages/themes; Apache configuration diff --git a/docs/config/application.ini b/docs/config/application.ini index 42097ee59..2979d0f52 100755 --- a/docs/config/application.ini +++ b/docs/config/application.ini @@ -2,11 +2,11 @@ phpSettings.date.timezone = "Europe/Paris" phpSettings.display_startup_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.class = "Bootstrap" 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.classname = "Zend_Http_UserAgent_Features_Adapter_Browscap" resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers" diff --git a/library/Application/Controller/Plugin/Pdf.php b/library/Application/Controller/Plugin/Pdf.php index 7e8e342a4..18496267f 100644 --- a/library/Application/Controller/Plugin/Pdf.php +++ b/library/Application/Controller/Plugin/Pdf.php @@ -21,7 +21,7 @@ class Application_Controller_Plugin_Pdf extends Zend_Controller_Plugin_Abstract $content = preg_replace('@profil->path->shared.'/temp/pages/'.$filename.'.html', $content); + file_put_contents($c->profil->path->shared.'/pages/'.$filename.'.html', $content); } } diff --git a/library/Giant/Controllers.lib.php b/library/Giant/Controllers.lib.php index 0d3efbd37..743237185 100644 --- a/library/Giant/Controllers.lib.php +++ b/library/Giant/Controllers.lib.php @@ -19,7 +19,7 @@ Class GiantControllerLib { $this->configVal = new Zend_Config_Ini( realpath(dirname(__FILE__)).'/giant.ini' ); $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){ diff --git a/library/Scores/Bdf.php b/library/Scores/Bdf.php index 9ba9d1463..1ee11e4e4 100644 --- a/library/Scores/Bdf.php +++ b/library/Scores/Bdf.php @@ -672,7 +672,7 @@ class BDF $filename = false; } else { $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 diff --git a/library/Scores/Cache.php b/library/Scores/Cache.php index 73046b1b3..89ff60ab5 100644 --- a/library/Scores/Cache.php +++ b/library/Scores/Cache.php @@ -14,7 +14,7 @@ class Cache */ 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; } /** diff --git a/library/Scores/Export/Print.php b/library/Scores/Export/Print.php index dadf75cd2..d97c0b1a5 100644 --- a/library/Scores/Export/Print.php +++ b/library/Scores/Export/Print.php @@ -162,7 +162,7 @@ class Scores_Export_Print $content = $serializer->serialize($object); $filename = $this->filename('xml', $params); $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); } catch (Zend_Serializer_Exception $e) { //Error diff --git a/library/Scores/Finance/Liasse/XLS.php b/library/Scores/Finance/Liasse/XLS.php index fc2cc82a3..c80fc7fa2 100644 --- a/library/Scores/Finance/Liasse/XLS.php +++ b/library/Scores/Finance/Liasse/XLS.php @@ -22,7 +22,7 @@ class Scores_Finance_Liasse_XLS public function __construct($modele = '', $mode = 'Excel5') { $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)){ mkdir($this->path); } diff --git a/library/Scores/Finance/Ratios/Graph.php b/library/Scores/Finance/Ratios/Graph.php index c882c85fa..0fc5e1948 100644 --- a/library/Scores/Finance/Ratios/Graph.php +++ b/library/Scores/Finance/Ratios/Graph.php @@ -11,7 +11,7 @@ class Scores_Finance_Ratios_Graph require_once 'ChartDirector/phpchartdir.php'; require_once 'Scores/Cache.php'; $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->id = $id; } diff --git a/library/Scores/Insee/AvisSituation.php b/library/Scores/Insee/AvisSituation.php index e00c22226..ed6cf913f 100644 --- a/library/Scores/Insee/AvisSituation.php +++ b/library/Scores/Insee/AvisSituation.php @@ -13,7 +13,7 @@ class Scores_Insee_AvisSituation $this->siret = $siret; $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->lock = $this->pathLog.'/aviserreur.lock'; } diff --git a/library/Scores/RapportComment.php b/library/Scores/RapportComment.php index a8e047350..c0469242d 100644 --- a/library/Scores/RapportComment.php +++ b/library/Scores/RapportComment.php @@ -33,7 +33,7 @@ class RapportComment //Assignation $this->commentaires = $tabCommentaires; $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->siret = $siret; diff --git a/library/Scores/Ws/Client.php b/library/Scores/Ws/Client.php index 991baedfd..9af554e27 100644 --- a/library/Scores/Ws/Client.php +++ b/library/Scores/Ws/Client.php @@ -132,7 +132,7 @@ class Scores_Ws_Client extends Zend_Soap_Client // --- Create Cache $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); } diff --git a/library/WorldCheck/applicationWC.ini b/library/WorldCheck/applicationWC.ini index 9edd17f28..b0e3e0722 100644 --- a/library/WorldCheck/applicationWC.ini +++ b/library/WorldCheck/applicationWC.ini @@ -8,6 +8,6 @@ wsworldcheck.assigneeIdentifier = cnu_so_77 wsworldcheck.response.limit = 200 wsworldcheck.response.start = 0 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.lifetime = 86400 \ No newline at end of file diff --git a/scripts/jobs/getAltiScore.php b/scripts/jobs/getAltiScore.php index 2772dd8ab..cad507101 100644 --- a/scripts/jobs/getAltiScore.php +++ b/scripts/jobs/getAltiScore.php @@ -89,7 +89,7 @@ foreach ($logins as $login => $hash ) { echo " URL = " . $url; $file = basename($url); - $path = $c->profil->path->shared.'/temp/files'; + $path = $c->profil->path->shared.'/files'; //Télécharger le fichier try { diff --git a/scripts/jobs/removeTempFile.php b/scripts/jobs/removeTempFile.php index 79653642e..df2240c26 100644 --- a/scripts/jobs/removeTempFile.php +++ b/scripts/jobs/removeTempFile.php @@ -42,23 +42,23 @@ $c = new Zend_Config($application->getOptions()); //Liste des Repertoires $tempDirs = array( 'cache' => array( - 'path' => $c->profil->path->shared.'/temp/cache', + 'path' => $c->profil->path->shared.'/cache', 'files' => array('*.tpl') ), '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') ), 'pages' => array( - 'path' => $c->profil->path->shared.'/temp/pages', + 'path' => $c->profil->path->shared.'/pages', 'files' => array('*.html') ), 'imgcache' => array( - 'path' => $c->profil->path->shared . '/temp/pages/imgcache', + 'path' => $c->profil->path->shared . '/pages/imgcache', 'files' => array('*.png', '*.gif', '*.jpeg', '*.jpg') ), 'sessions' => array( - 'path' => $c->profil->path->shared . '/temp/sessions', + 'path' => $c->profil->path->shared . '/sessions', 'files' => array('sess_*') ), );