Correction remplacement URL
This commit is contained in:
parent
0dfe1ae085
commit
9591b40aab
@ -193,7 +193,7 @@ class RechercheController extends Zend_Controller_Action
|
||||
'annee' => $annonce->Annee,
|
||||
'code' => $code,
|
||||
'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);
|
||||
|
@ -224,11 +224,13 @@ class TelechargementController extends Zend_Controller_Action
|
||||
|
||||
$url = "http://wse.scores-decisions.com:8081/fichier/bodacc/q";
|
||||
|
||||
$q = $request->getParam('q', '');
|
||||
|
||||
//Authenticate info
|
||||
$auth = Zend_Auth::getInstance();
|
||||
$identity = $auth->getIdentity();
|
||||
$authinfo = '?login='.$identity->username.'&hach='.$identity->password;
|
||||
$url = $url.$authinfo;
|
||||
$url = $url.'/'.$q.$authinfo;
|
||||
|
||||
$file = $this->getFile($url);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user