Suppression des chemins en dur

This commit is contained in:
Michael RICOIS 2016-01-25 16:39:40 +00:00
parent 1e1c7c7584
commit f4b6075b19
2 changed files with 3 additions and 2 deletions

View File

@ -12,7 +12,8 @@ class FichierController extends Zend_Controller_Action
$auth = Zend_Auth::getInstance();
if ( $auth->hasIdentity() ) {
$directory = '/mnt/datafile/bodacc/histo';
$c = Zend_Registry::get('config');
$directory = $c->profil->path->shared.'/datafile/bodacc/histo';
$q = $this->getRequest()->getParam('q');
$filename = base64_decode($q);

View File

@ -1474,7 +1474,7 @@ class Interne extends Scores_Ws_Server
{
$this->authenticate();
$c = Zend_Registry::get('config');
$path = "/mnt/clients/oldcrm";
$path = $c->profil->path->shared."/clients/oldcrm";
if (empty($ref)) $ref = '*';
if (empty($nomFic)) $nomFic = '';