Clé path->secure remplacé par path->shared

This commit is contained in:
Michael RICOIS 2016-01-25 15:14:01 +00:00
parent adf506b2b9
commit ec89842e7b
6 changed files with 9 additions and 9 deletions

View File

@ -106,7 +106,7 @@ class FichierController extends Zend_Controller_Action
$content_type = 'application/pdf';
$filename = $this->getRequest()->getParam('fichier');
$c = Zend_Registry::get('config');
$file = realpath($c->profil->path->secure).'/kbis/'.$filename;
$file = realpath($c->profil->path->shared).'/datafile/kbis/'.$filename;
//Envoi du fichier sur la sortie standard
if ( file_exists($file) ) {
header('Content-Transfer-Encoding: none');

View File

@ -260,7 +260,7 @@ class Order extends Scores_Ws_Server
$hostname.= ':'.$_SERVER['SERVER_PORT'];
}
$c = Zend_Registry::get('config');
$path = realpath($c->profil->path->secure).'/kbis';
$path = realpath($c->profil->path->shared).'/datafile/kbis';
$file = null;
// --- Lecture des informations de la commande

View File

@ -85,7 +85,7 @@ class Pieces extends Scores_Ws_Server
}
$c = Zend_Registry::get('config');
$path = realpath($c->profil->path->secure).'/kbis/';
$path = realpath($c->profil->path->shared).'/datafile/kbis/';
//Le fichier existe avec une date de validité inférieure à 1 jour
$filepdf = $path.$siren.'.pdf';
@ -233,7 +233,7 @@ class Pieces extends Scores_Ws_Server
$filename = basename($item->pdfLink);
$c = Zend_Registry::get('config');
$file = $c->profil->path->secure.'/association/bilans/' . $filename;
$file = $c->profil->path->shared.'/datafile/association/bilans/' . $filename;
$bilansList = new Bilan();
$bilansList->DateCloture = substr($item->dateCloture,0,4).substr($item->dateCloture,5,2).substr($item->dateCloture,8,2);
@ -393,7 +393,7 @@ class Pieces extends Scores_Ws_Server
$filename = substr($reference,4);
$c = Zend_Registry::get('config');
$file = $c->profil->path->secure . '/association/bilans/' . $filename;
$file = $c->profil->path->shared . '/datafile/association/bilans/' . $filename;
$dest = $c->profil->path->shared . '/files/' . $reference;
if ( file_exists($file) && copy($file, $dest)) {
@ -942,7 +942,7 @@ class Pieces extends Scores_Ws_Server
// --- Distribuer le fichier
if ( !empty($statutResult->statutFile) ) {
$c = Zend_Registry::get('config');
$file = $c->profil->path->secure.'/association/actes/' . $statutResult->statutFile;
$file = $c->profil->path->shared.'/datafile/association/actes/' . $statutResult->statutFile;
$dest = $c->profil->path->shared . '/files/' . basename($file);
if ( file_exists($file) && copy($file, $dest)) {
$hostname = 'http://'.$_SERVER['SERVER_NAME'];

View File

@ -528,7 +528,7 @@ if ($opts->acte) {
$options = $item->numGreffe . '-' . substr($item->numRC,0,2) . '-' . substr($item->numRC,2,1) . '-' . substr($item->numRC,3) . '-' . $item->num_depot;
$file = $infogreffe->getFileName($date, $num, $type, $options);
$path = $c->profil->path->secure . '/' . $infogreffe->getFilePath($date) . '/' . $file;
$path = $c->profil->path->shared . '/datafile/' . $infogreffe->getFilePath($date) . '/' . $file;
if ( file_exists($filepath) ) {
//Analyser le fichier - Nombre de page et taille

View File

@ -68,7 +68,7 @@ try {
$baseUrl = 'http://extranetrec.scores-decisions.com/fichier/pdfassociation/actes/';
$path = $c->profil->path->secure . '/associations/actes/';
$path = $c->profil->path->shared . '/datafile/associations/actes/';
//Lecture des données
$acteM = new Application_Model_AssoActes($db);

View File

@ -226,7 +226,7 @@ function infogreffeKbis($ref)
$fichier = $identifiant . '-' . $ref . '.html';
global $c;
$dir = realpath($c->profil->path->secure).'/kbis/'.date('Ymd');
$dir = realpath($c->profil->path->shared).'/datafile/kbis/'.date('Ymd');
if (!file_exists($dir)) mkdir($dir);
file_put_contents($dir . '/' . $fichier, $output);
return ($identifiant!='unknown') ? $identifiant : false;