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,
|
'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);
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user