Ajout authentification pour la connexion à IparI, issue #0000745

This commit is contained in:
Michael RICOIS 2011-05-05 10:02:32 +00:00
parent e2f725a635
commit c169cee6ca
2 changed files with 5 additions and 3 deletions

View File

@ -48,7 +48,7 @@ define ('PATH_PDF',PATH_DATA.'/pdf/');
define ('PATH_LOGOS',PATH_DATA.'/logos/');
//URL application ipari
define ('IPARI_URL','http://ipari.scores-decisions.com');
define ('IPARI_URL','http://ipari.sd.lan');
//Webservice : accès céleste
if (in_array(ENVIRONNEMENT, array('REC', 'DEV'))) {

View File

@ -57,10 +57,12 @@ function menu_href_annonce()
function menu_href_ipari()
{
global $siret;
$href = IPARI_URL.'?action=logon&login='.$_SESSION['tabInfo']['login'].
'&hach='.$_SESSION['tabInfo']['password'].'&pass=';
if ($siret*1!=0){
return IPARI_URL.'?siret='.$siret;
return $href.'&siret='.$siret;
} else {
return IPARI_URL;
return $href;
}
}