+ GLOBAL $G_false;
+
+ log_main("login_exists: ".$login);
+
+ /* check the existence of the nick in the LoginDB */
+ for ($i = 0 ; $i < $this->item_n ; $i++) {
+ if (strcasecmp($this->item[$i]->login, $login) == 0) {
+ log_main("login[".$i."]: ".$this->item[$i]->login);
+ $ret = &$this->item[$i];
+ $id = $i;
+ return ($ret);
+ }
+ }
+ $id = -1;
+ return ($G_false);
+ }
+
+ function getmail($login)
+ {
+ log_main("getmail");
+
+ /* check the existence of the nick in the LoginDB */
+ for ($i = 0 ; $i < $this->item_n ; $i++) {
+ if (strcasecmp($this->item[$i]->login, $login) == 0) {
+ log_main("login[".$i."]: ".$this->item[$i]->login);
+ return ($this->item[$i]->email);
+ }
+ }
+ return (FALSE);
+ }
+
+ function gettype($login)
+ {
+ log_main("getmail");
+
+ /* check the existence of the nick in the LoginDB */
+ for ($i = 0 ; $i < $this->item_n ; $i++) {
+ if (strcasecmp($this->item[$i]->login, $login) == 0) {
+ log_main("login[".$i."]: ".$this->item[$i]->login);
+ return ($this->item[$i]->type);
+ }
+ }
+ return (FALSE);
+ }
+
+ function &login_verify($login, $pass)
+ {
+ GLOBAL $G_false;
+
+ $ret = &$G_false;