X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fdbase_file.phh;h=13dce471ba744053fe628fa2e436bcf7b1ce9776;hb=440ccf37d9c67a25d407793effdaad3f610d9554;hp=6801031f93a8be3a4acf0b3329ea8963b9a30ff3;hpb=05ed776e8b692bcd0dd708ea639f0e93dadb55c5;p=brisk.git diff --git a/web/Obj/dbase_file.phh b/web/Obj/dbase_file.phh index 6801031..13dce47 100644 --- a/web/Obj/dbase_file.phh +++ b/web/Obj/dbase_file.phh @@ -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);