[ Index ]
 

Code source de SPIP Agora 1.4

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/Agora1-4/ecrire/ -> inc_auth_extranet.php (source)

   1  <?php
   2  /******* Fichier Ajouté EXTRANET guillaume.grason@diplomatie.gouv.fr *******/
   3  //
   4  // Ce fichier ne sera execute qu'une fois
   5  if (defined("_ECRIRE_INC_AUTH_EXTRANET")) return;
   6  define("_ECRIRE_INC_AUTH_EXTRANET", "1");
   7  
   8  class Auth_extranet {
   9      var $extranauteId, $nom, $login, $email, $md5pass, $md5next;
  10  
  11  	function init() {
  12          return true;
  13      }
  14  
  15  	function verifier_challenge_md5($login, $mdpass_actuel, $mdpass_futur) {
  16          $extranauteMetier = &recuperer_instance_extranaute();
  17          $allExtranautes = $extranauteMetier->getAllForLoginAndPass($login, $mdpass_actuel);
  18          if(PEAR::isError($allExtranautes)) {
  19              die($allExtranautes->getMessage());
  20          }
  21  
  22          if(list(,$monExtranaute) = each($allExtranautes)) {
  23              $this->extranauteId = $monExtranaute->getExtranauteId();
  24              $this->nom = $monExtranaute->getNom();
  25              $this->login = $monExtranaute->getLogin();
  26              $this->email = $monExtranaute->getEmail();
  27              $this->md5pass = $mdpass_actuel;
  28              $this->md5next = $mdpass_futur;
  29              return true;
  30          }
  31          return false;
  32      }
  33  
  34  	function verifier($login, $pass) {
  35          return false;
  36      }
  37  
  38  	function lire() {
  39          return true;
  40      }
  41  
  42  	function activer() {
  43      }
  44  }
  45  
  46  
  47  ?>


Généré le : Sat Feb 24 14:40:03 2007 par Balluche grâce à PHPXref 0.7