[ Index ]

PHP Cross Reference of Mambo 4.6.5

[ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/mambots/authenticator/ -> mosvaliduserbot.php (source)

   1  <?php
   2  /**
   3  * @package Mambo
   4  * @author Mambo Foundation Inc see README.php
   5  * @copyright (C) 2000 - 2009 Mambo Foundation Inc.
   6  * See COPYRIGHT.php for copyright notices and details.
   7  * @license GNU/GPL Version 2, see LICENSE.php
   8  *
   9  * Redistributions of files must retain the above copyright notice.
  10  *
  11  * Mambo is free software; you can redistribute it and/or
  12  * modify it under the terms of the GNU General Public License
  13  * as published by the Free Software Foundation; version 2 of the License.
  14  */
  15  
  16  class mosValidUserBot {
  17      
  18  	function register () {
  19          return 'requiredLogin';
  20      }
  21  
  22  	function perform ($loginobject) {
  23          $username = $loginobject->getUser();
  24          $passwd = md5($loginobject->getPassword());
  25          $remember = $loginobject->getRemember();
  26          $authenticator =& mamboAuthenticator::getInstance();
  27          $checkuser = $authenticator->authenticateUser($message, $username, $passwd, $remember);
  28          return $message;
  29      }
  30  }
  31  
  32  ?>