I need this part of the code changed:
/**
* Check if a username+password pair is a valid login.
*/
function authenticate( $username, $password ) {
$dbr =& $this->getAuthPressDB();
$res =
$dbr->selectRow($this->getAuthPressUserTableName(),
"password",
"name=".$dbr->addQuotes($username),
"AuthPress::authenticate" );
if( $res && ( $res->passwd == MD5( $password ))) {
return true;
} else {
return false;
}