Correct ipari access

This commit is contained in:
Michael RICOIS 2012-07-30 13:29:14 +00:00
parent e8f475eb42
commit 357f43cae8

View File

@ -363,7 +363,7 @@ class RechercheController extends Zend_Controller_Action
//Giant
if( !empty($params['pays']) && $type == 'ent' ){
Zend_Registry::get('firebug')->info('RECHERCHE GIANT');
$this->_forward('search', 'giant', null, $params);
$this->_forward('search', 'international', null, $params);
//Recherche
} else {
@ -444,7 +444,7 @@ class RechercheController extends Zend_Controller_Action
$criteres['actif'] = $filtres[$filtre]['value'];
$reponse = $ws->searchEntreprise($criteres, $position);
$reponse = $ws->searchEntreprise($criteres, $position);
unset($criteres['actif']);
@ -743,11 +743,13 @@ class RechercheController extends Zend_Controller_Action
public function ipariAction()
{
$user = new Scores_Utilisateur();
$siret = $this->getRequest()->getParam('siret');
$user = new Scores_Utilisateur();
$url = 'http://ipari.scores-decisions.com/?action=logon&login='.$user->getLogin().
'&hach='.$user->getPassword().'&pass=';
if (!empty($this->siret)){
$url.= '&siret='.$this->siret;
if (!empty($siret)){
$url.= '&siret='.$siret;
}
$this->_redirect($url);
}