* @copyright Copyright (C) 2002-2009 The Nucleus Group
* @version $Id: MEMBER.php 1616 2012-01-08 09:48:15Z sakamocchi $
*/
-class MEMBER {
-
+class MEMBER
+{
// 1 when authenticated, 0 when not
public $loggedin = 0;
public $password; // not the actual password, but rather a MD5 hash
*/
public function __construct()
{
+ global $CONF;
/* secure cookie key settings (either 'none', 0, 8, 16, 24, or 32) */
if ( !array_key_exists('secureCookieKey', $CONF) )
{
{
$errormessage = "Please enter a username.";
}
- else
+ else
{
$errormessage = 'Login failed for ' . $login;
}
. " mnotes='" . sql_real_escape_string($this->getNotes()) . "',"
. " mcanlogin=" . $this->canLogin() . ","
. " mlocale='" . sql_real_escape_string($this->getLocale()) . "',"
- . " mautosave=" . intval($this->getAutosave()) . ""
+ . " mautosave=" . intval($this->getAutosave()) . ""
. " WHERE mnumber=" . $this->getID();
sql_query($query);
return;