/*
* brisk - dbase_file.phh
*
- * Copyright (C) 2006-2011 Matteo Nastasi
+ * Copyright (C) 2006-2012 Matteo Nastasi
* mailto: nastasi@alternativeoutput.it
* matteo.nastasi@milug.org
* web: http://www.alternativeoutput.it
log_main("BriskDB create:end");
}
+ static function create()
+ {
+ $ret = new BriskDB();
+
+ return ($ret);
+ }
+
function users_load()
{
GLOBAL $DOCUMENT_ROOT;
return ($this->item[$idx]->login);
}
- function &getitem_bylogin($login, &$id)
+ function getitem_bylogin($login, &$id)
{
- GLOBAL $G_false;
-
log_main("login_exists: ".$login);
/* check the existence of the nick in the BriskDB */
}
}
$id = -1;
- return ($G_false);
+ return (FALSE);
}
function getmail($login)
return (FALSE);
}
- function &login_verify($login, $pass)
+ function login_verify($login, $pass)
{
- GLOBAL $G_false;
-
- $ret = &$G_false;
+ $ret = FALSE;
log_main("login_verify: ".$login);
log_main("login[".$i."]: ".$this->item[$i]->login);
/* if it exists check for a valid challenge */
- if (($a_sem = Challenges::lock_data()) != FALSE) {
+ if (($a_sem = Challenges::lock_data(TRUE)) != FALSE) {
if (($chals = &Challenges::load_data()) != FALSE) {
for ($e = 0 ; $e < $chals->item_n ; $e++) {