|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-12-14 18:08 UTC] daniel at electroteque dot org
Since i have upgraded my entire class script is buggered up.
Call to undefined function: _crypt()
here is the snippets
function login($username,$password,$remember,$page){
$this->db = $GLOBALS['db'];
$this->password = $this->_crypt($password);
$this->_check_username($username);
$this->_check_password($username);
$this->_is_confirmed($username);
if ($this->username_result && $this->pass_result && $this->confirmed_result){
$this->_setSession($remember,true);
redirect($page);
//return true;
}
else
// login/pass check failed
{
$this->logout($_SERVER['PHP_SELF'].$this->_build_errorquery($this->result));
}
}
//pass password :: private
function _crypt($password){
return md5($password);
}
i cant honestly see what the reason for this is, i suggest its a bug , as my script was working before , what is even more wierd , my function was called _encrypt it wasnt working so i changed it to _crypt and it started working fine , i have reloaded my page today and its back to the same error.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 15:00:01 2025 UTC |
class auth { function login($username,$password){ $this->db = $GLOBALS['db']; echo $this->password = $this->_crypt($password); } //pass password :: private function _crypt($password){ return md5($password); } } use: auth::login("dan","bollox");