LoginDB renamed to more general BriskDB and separate the creation of the class with...
[brisk.git] / web / Obj / dbase_file.phh
index d09f5df..12ae750 100644 (file)
@@ -26,15 +26,21 @@ require_once("${G_base}Obj/dbase_base.phh");
 
 define(BRISK_AUTH_CONF,   "brisk_auth.conf.pho");
 
-class LoginDB {
+class BriskDB {
     var $item;
     var $item_n;
 
   
-    function LoginDB()
+    function BriskDB()
+    {
+        log_main("BriskDB create:start");
+
+        log_main("BriskDB create:end");
+    }
+
+    function users_load() 
     {
         GLOBAL $DOCUMENT_ROOT;
-        log_main("LoginDB create:start");
 
         if (file_exists("$DOCUMENT_ROOT/Etc/".BRISK_AUTH_CONF)) {
             require("$DOCUMENT_ROOT/Etc/".BRISK_AUTH_CONF);
@@ -46,7 +52,6 @@ class LoginDB {
                                  new LoginDBItem(4, "tre", md5("three"), "pippo@pluto.com", USER_FLAG_TY_NORM) );
         }
         $this->item_n = count($this->item);
-        log_main("LoginDB create:end");
     }
 
     function count()
@@ -58,7 +63,7 @@ class LoginDB {
     {
         log_main("login_exists: ".$login);
     
-        /* check the existence of the nick in the LoginDB */
+        /* check the existence of the nick in the BriskDB */
         for ($i = 0 ; $i < $this->item_n ; $i++) {
             if (strcasecmp($this->item[$i]->login, $login) == 0) {
                 log_main("login[".$i."]: ".$this->item[$i]->login);
@@ -81,7 +86,7 @@ class LoginDB {
 
             log_main("login_exists: ".$login);
     
-            /* check the existence of the nick in the LoginDB */
+            /* check the existence of the nick in the BriskDB */
             for ($i = 0 ; $i < $this->item_n ; $i++) {
                 if (strcasecmp($this->item[$i]->login, $login) == 0) {
                     log_main("login[".$i."]: ".$this->item[$i]->login);
@@ -98,7 +103,7 @@ class LoginDB {
     {
         log_main("getmail");
     
-        /* check the existence of the nick in the LoginDB */
+        /* check the existence of the nick in the BriskDB */
         for ($i = 0 ; $i < $this->item_n ; $i++) {
             if (strcasecmp($this->item[$i]->login, $login) == 0) {
                 log_main("login[".$i."]: ".$this->item[$i]->login);
@@ -112,7 +117,7 @@ class LoginDB {
     {
         log_main("getmail");
     
-        /* check the existence of the nick in the LoginDB */
+        /* check the existence of the nick in the BriskDB */
         for ($i = 0 ; $i < $this->item_n ; $i++) {
             if (strcasecmp($this->item[$i]->login, $login) == 0) {
                 log_main("login[".$i."]: ".$this->item[$i]->login);
@@ -130,7 +135,7 @@ class LoginDB {
         
         log_main("login_verify: ".$login);
         
-        /* check the existence of the nick in the LoginDB */
+        /* check the existence of the nick in the BriskDB */
         for ($i = 0 ; $i < $this->item_n ; $i++) {
             log_main("login_verify: LOOP");
             if (strcasecmp($this->item[$i]->login, $login) == 0) {