ourDB == NULL) return FALSE; switch ($task) { case 'users' : $result = $this->ourDB->db_Select_gen("SELECT * FROM {$this->DBPrefix}member_profiles"); 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['MEMBER_ID']; $target['user_name'] = $source['MEMBER_NAME']; $target['user_loginname'] = $source['MEMBER_NAME']; $target['user_password'] = $source['MEMBER_PASSWORD']; $target['user_email'] = $source['MEMBER_EMAIL']; $target['user_signature'] = $source['SIGNATURE']; $target['user_join'] = $source['MEMBER_JOINED']; $target['user_lastvisit'] = $source['LAST_LOG_IN']; $target['user_image'] = $source['MEMBER_AVATAR']; $target['user_forums'] = $source['MEMBER_POSTS']; $target['user_sess'] = $source['PHOTO']; $target['user_hideemail'] = $source['HIDE_EMAIL']; $target['user_login'] = $source['MEMBER_NAME_R']; // Guessing on this one $target['user_ip'] = $source['MEMBER_IP']; $target['user_aim'] = $source['AOLNAME']; $target['user_icq'] = $source['ICQNUMBER']; $target['user_location'] = $source['LOCATION']; $target['user_homepage'] = $source['WEBSITE']; $target['user_yahoo'] = $source['YAHOONAME']; $target['user_customtitle'] = $source['MEMBER_TITLE']; $target['user_timezone'] = $source['TIME_ADJUST']; // May need conversion $target['user_language'] = $source['LANGUAGE']; // May need conversion $target['user_msn'] = $source['MSNNAME']; $target['user_lastpost'] = $source['LAST_POST']; // May need conversion // $target['user_'] = $source['']; // $target['user_'] = $source['']; // $target['user_'] = $source['']; // $source['MEMBER_LEVEL'] may be an admin indicator return $target; } } ?>