Remove "temp" directory in shared
This commit is contained in:
parent
b9b5c774e5
commit
f74eef8399
@ -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);
|
||||
|
@ -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 '<img src="/file/image/cache/q/'.$file.'" />';
|
||||
@ -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 '<img src="/file/image/cache/q/'.$file.'" />';
|
||||
@ -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 '<img src="/file/image/cache/q/'.$file.'" />';
|
||||
@ -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);
|
||||
|
@ -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');
|
||||
|
@ -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');
|
||||
|
@ -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')
|
||||
|
@ -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;
|
||||
|
@ -1206,7 +1206,7 @@ class RechercheController extends Zend_Controller_Action
|
||||
//echo "<pre>"; print_r($etabs); echo "</pre>"; 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);
|
||||
|
@ -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;
|
||||
|
@ -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';
|
||||
}
|
||||
|
@ -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) ) {
|
||||
|
@ -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) ) {
|
||||
|
@ -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) ) {
|
||||
|
@ -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) ) {
|
||||
|
10
docs/README
10
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
|
||||
|
@ -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"
|
||||
|
@ -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('@src="/@si','src="./',$content);
|
||||
$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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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){
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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';
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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
|
@ -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 {
|
||||
|
@ -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_*')
|
||||
),
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user