X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fdbase_file.phh;h=9461f1e99da381d267da84dfc4e06dcb5fc8d72b;hb=9878243b4e002b50ee444cf906b9e13faba4fe01;hp=12ae75048f9ea3718730eaa617005f3cd088abba;hpb=ad62ecf88ef0d5e5fa03d6461ac4510314fc2b50;p=brisk.git diff --git a/web/Obj/dbase_file.phh b/web/Obj/dbase_file.phh index 12ae750..9461f1e 100644 --- a/web/Obj/dbase_file.phh +++ b/web/Obj/dbase_file.phh @@ -2,7 +2,7 @@ /* * 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 @@ -38,6 +38,13 @@ class BriskDB { log_main("BriskDB create:end"); } + static function create() + { + $ret = new BriskDB(); + + return ($ret); + } + function users_load() { GLOBAL $DOCUMENT_ROOT; @@ -80,10 +87,8 @@ class BriskDB { 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 */ @@ -96,7 +101,7 @@ class BriskDB { } } $id = -1; - return ($G_false); + return (FALSE); } function getmail($login) @@ -127,11 +132,9 @@ class BriskDB { 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); @@ -142,7 +145,7 @@ class BriskDB { 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++) { @@ -163,7 +166,7 @@ class BriskDB { } if ($chals->ismod()) { - Challenges::save_data(&$chals); + Challenges::save_data($chals); } Challenges::unlock_data($a_sem); @@ -174,7 +177,11 @@ class BriskDB { return ($ret); } - -} // End class LoginDB + + function bin5_points_save($date, $table, $tidx, $action, $ucodes, $pts) + { + return TRUE; + } +} // End class BriskDB ?> \ No newline at end of file