Correction remplacement URL

This commit is contained in:
Michael RICOIS 2012-06-05 15:22:18 +00:00
parent 0dfe1ae085
commit 9591b40aab
2 changed files with 4 additions and 2 deletions

View File

@ -193,7 +193,7 @@ class RechercheController extends Zend_Controller_Action
'annee' => $annonce->Annee, 'annee' => $annonce->Annee,
'code' => $code, 'code' => $code,
'text' => $texte, 'text' => $texte,
'file' => $this->view->url(array('controller'=>'telechargement', 'action'=>'histopdf')).'/'.$fichier, 'file' => $this->view->url(array('controller'=>'telechargement', 'action'=>'histopdf')).'/q/'.$fichier,
); );
} }
$this->view->assign('annonces', $annonces); $this->view->assign('annonces', $annonces);

View File

@ -224,11 +224,13 @@ class TelechargementController extends Zend_Controller_Action
$url = "http://wse.scores-decisions.com:8081/fichier/bodacc/q"; $url = "http://wse.scores-decisions.com:8081/fichier/bodacc/q";
$q = $request->getParam('q', '');
//Authenticate info //Authenticate info
$auth = Zend_Auth::getInstance(); $auth = Zend_Auth::getInstance();
$identity = $auth->getIdentity(); $identity = $auth->getIdentity();
$authinfo = '?login='.$identity->username.'&hach='.$identity->password; $authinfo = '?login='.$identity->username.'&hach='.$identity->password;
$url = $url.$authinfo; $url = $url.'/'.$q.$authinfo;
$file = $this->getFile($url); $file = $this->getFile($url);