ourDB == NULL) return FALSE; switch ($task) { case 'users' : $result = $this->ourDB->db_Select_gen("SELECT * FROM {$this->DBPrefix}users WHERE `status`=1"); if ($result === FALSE) return FALSE; break; case 'forumdefs' : return FALSE; case 'forumposts' : return FALSE; case 'polls' : return FALSE; case 'news' : return FALSE; default : return FALSE; } $this->copyUserInfo = !$blank_user; $this->currentTask = $task; return TRUE; } //------------------------------------ // Internal functions below here //------------------------------------ // Copy data read from the DB into the record to be returned. function copyUserData(&$target, &$source) { if ($this->copyUserInfo) $target['user_id'] = $source['uid']; $target['user_name'] = $source['name']; $target['user_loginname'] = $source['name']; $target['user_password'] = $source['pass']; $target['user_email'] = $source['mail']; $target['user_signature'] = $source['signature']; $target['user_join'] = $source['created']; $target['user_lastvisit'] = $source['login']; // Could use $source['access'] $target['user_image'] = $source['picture']; // $source['init'] is email address used to sign up from $target['user_timezone'] = $source['timezone']; // May need conversion varchar(8) $target['user_language'] = $source['language']; // May need conversion varchar(12) return $target; } } ?>