From ace8763c1d74cf511b2470f82fe8da331549e6ce Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Mon, 5 Mar 2012 10:33:24 +0000 Subject: [PATCH] Test chemin de fichier --- application/controllers/FichierController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/controllers/FichierController.php b/application/controllers/FichierController.php index c0bf0ae79..880df19a9 100644 --- a/application/controllers/FichierController.php +++ b/application/controllers/FichierController.php @@ -319,10 +319,10 @@ class FichierController extends Zend_Controller_Action $directory = realpath($configuration->path->data).'/bodacc'; $file = $this->getRequest()->getParam('fichier'); //Construire le chemin du dossier - preg_match('/BODACC_(A|B|C)_([0-9]{4})_(.*)\.pdf/', $file, $matches); - print_r($matches); exit; + preg_match('/BODACC_(A|B|C)_([0-9]{4})_(.*)\.pdf/', $file, $matches); $directory.= '/'.$matches[1].'/'.$matches[2].'/'.$matches[3]; $output_file = $directory.'/'.$file; + echo $output_file; exit; if (file_exists($output_file) && filesize($output_file)>0) { $content_type = 'application/pdf'; header('Content-type: '.$content_type.'');