Beispiel #1
0
 $SBUY = new nusoap_client($wsdlSBUY, true);
 $loginSADMIN = $SADMIN->login($_POST['login'], 1, $_POST['pin'], $_SERVER["REMOTE_ADDR"]);
 //écite de tenter si le mec a pas le bon mdp (et donc, que +1 en fail_auth)
 if ($loginSADMIN == 1) {
     $loginSBUY = $SBUY->login($_POST['login'], 1, $_POST['pin'], $_SERVER["REMOTE_ADDR"]);
 }
 if ($loginSADMIN == 1 && $loginSBUY == 1) {
     // On verifie s'il est administrateur de fundation
     $allFundations = $SADMIN->hasDroitsInFundations();
     if ($allFundations != 409) {
         $FADMIN = new nusoap_client($wsdlFADMIN, true);
         //pk deux n nn ????
         $FADMIN->login($_POST['login'], 1, $_POST['pin'], $_SERVER["REMOTE_ADDR"]);
     }
     // On verifie s'il est admin de buckutt
     $isAdminBuckutt = $SADMIN->isAdminBuckutt();
     if ($isAdminBuckutt == 1) {
         $BADMIN = new nusoap_client($wsdlBADMIN, true);
         $BADMIN->login($_POST['login'], 1, $_POST['pin'], $_SERVER["REMOTE_ADDR"]);
     }
     include_once 'dashboard.inc.php';
     // On linéarise les objets pour les conserver de page en page.
     $_SESSION['buckutt']['SADMIN'] = serialize($SADMIN);
     $_SESSION['buckutt']['SBUY'] = serialize($SBUY);
     if ($allFundations != 409) {
         $_SESSION['buckutt']['FADMIN'] = serialize($FADMIN);
     }
     if ($isAdminBuckutt == 1) {
         $_SESSION['buckutt']['BADMIN'] = serialize($BADMIN);
     }
 } elseif ($loginSADMIN == 403 || $loginSBUY == 403) {