indvdum@0: 'phpBB 2.0.x', indvdum@0: 'version' => '1.0.3', indvdum@0: 'phpbb_version' => '3.0.10', indvdum@0: 'author' => 'phpBB Group', indvdum@0: 'dbms' => $dbms, indvdum@0: 'dbhost' => $dbhost, indvdum@0: 'dbport' => $dbport, indvdum@0: 'dbuser' => $dbuser, indvdum@0: 'dbpasswd' => '', indvdum@0: 'dbname' => $dbname, indvdum@0: 'table_prefix' => 'phpbb_', indvdum@0: 'forum_path' => '../forums', indvdum@0: 'author_notes' => '', indvdum@0: ); indvdum@0: indvdum@0: /** indvdum@0: * $tables is a list of the tables (minus prefix) which we expect to find in the indvdum@0: * source forum. It is used to guess the prefix if the specified prefix is incorrect indvdum@0: */ indvdum@0: $tables = array( indvdum@0: 'auth_access', indvdum@0: 'banlist', indvdum@0: 'categories', indvdum@0: 'disallow', indvdum@0: 'forum_prune', indvdum@0: 'forums', indvdum@0: 'groups', indvdum@0: 'posts', indvdum@0: 'posts_text', indvdum@0: 'privmsgs', indvdum@0: 'privmsgs_text', indvdum@0: 'ranks', indvdum@0: 'smilies', indvdum@0: 'topics', indvdum@0: 'topics_watch', indvdum@0: 'user_group', indvdum@0: 'users', indvdum@0: 'vote_desc', indvdum@0: 'vote_results', indvdum@0: 'vote_voters', indvdum@0: 'words' indvdum@0: ); indvdum@0: indvdum@0: /** indvdum@0: * $config_schema details how the board configuration information is stored in the source forum. indvdum@0: * indvdum@0: * 'table_format' can take the value 'file' to indicate a config file. In this case array_name indvdum@0: * is set to indicate the name of the array the config values are stored in indvdum@0: * Example of using a file: indvdum@0: * $config_schema = array( indvdum@0: * 'table_format' => 'file', indvdum@0: * 'filename' => 'NAME OF FILE', // If the file is not in the root directory, the path needs to be added with no leading slash indvdum@0: * 'array_name' => 'NAME OF ARRAY', // Only used if the configuration file stores the setting in an array. indvdum@0: * 'settings' => array( indvdum@0: * 'board_email' => 'SUPPORT_EMAIL', // target config name => source target name indvdum@0: * ) indvdum@0: * ); indvdum@0: * 'table_format' can be an array if the values are stored in a table which is an assosciative array indvdum@0: * (as per phpBB 2.0.x) indvdum@0: * If left empty, values are assumed to be stored in a table where each config setting is indvdum@0: * a column (as per phpBB 1.x) indvdum@0: * indvdum@0: * In either of the latter cases 'table_name' indicates the name of the table in the database indvdum@0: * indvdum@0: * 'settings' is an array which maps the name of the config directive in the source forum indvdum@0: * to the config directive in phpBB3. It can either be a direct mapping or use a function. indvdum@0: * Please note that the contents of the old config value are passed to the function, therefore indvdum@0: * an in-built function requiring the variable passed by reference is not able to be used. Since indvdum@0: * empty() is such a function we created the function is_empty() to be used instead. indvdum@0: */ indvdum@0: $config_schema = array( indvdum@0: 'table_name' => 'config', indvdum@0: 'table_format' => array('config_name' => 'config_value'), indvdum@0: 'settings' => array( indvdum@0: 'allow_bbcode' => 'allow_bbcode', indvdum@0: 'allow_smilies' => 'allow_smilies', indvdum@0: 'allow_sig' => 'allow_sig', indvdum@0: 'allow_namechange' => 'allow_namechange', indvdum@0: 'allow_avatar_local' => 'allow_avatar_local', indvdum@0: 'allow_avatar_remote' => 'allow_avatar_remote', indvdum@0: 'allow_avatar_upload' => 'allow_avatar_upload', indvdum@0: 'board_disable' => 'board_disable', indvdum@0: 'sitename' => 'phpbb_set_encoding(sitename)', indvdum@0: 'site_desc' => 'phpbb_set_encoding(site_desc)', indvdum@0: 'session_length' => 'session_length', indvdum@0: 'board_email_sig' => 'phpbb_set_encoding(board_email_sig)', indvdum@0: 'posts_per_page' => 'posts_per_page', indvdum@0: 'topics_per_page' => 'topics_per_page', indvdum@0: 'enable_confirm' => 'enable_confirm', indvdum@0: 'board_email_form' => 'board_email_form', indvdum@0: 'override_user_style' => 'override_user_style', indvdum@0: 'hot_threshold' => 'hot_threshold', indvdum@0: 'max_poll_options' => 'max_poll_options', indvdum@0: 'max_sig_chars' => 'max_sig_chars', indvdum@0: 'pm_max_msgs' => 'max_inbox_privmsgs', indvdum@0: 'smtp_delivery' => 'smtp_delivery', indvdum@0: 'smtp_host' => 'smtp_host', indvdum@0: 'smtp_username' => 'smtp_username', indvdum@0: 'smtp_password' => 'smtp_password', indvdum@0: 'require_activation' => 'require_activation', indvdum@0: 'flood_interval' => 'flood_interval', indvdum@0: 'avatar_filesize' => 'avatar_filesize', indvdum@0: 'avatar_max_width' => 'avatar_max_width', indvdum@0: 'avatar_max_height' => 'avatar_max_height', indvdum@0: 'default_dateformat' => 'phpbb_set_encoding(default_dateformat)', indvdum@0: 'board_timezone' => 'board_timezone', indvdum@0: 'allow_privmsg' => 'not(privmsg_disable)', indvdum@0: 'gzip_compress' => 'gzip_compress', indvdum@0: 'coppa_enable' => '!is_empty(coppa_mail)', indvdum@0: 'coppa_fax' => 'coppa_fax', indvdum@0: 'coppa_mail' => 'coppa_mail', indvdum@0: 'record_online_users' => 'record_online_users', indvdum@0: 'record_online_date' => 'record_online_date', indvdum@0: 'board_startdate' => 'board_startdate', indvdum@0: ) indvdum@0: ); indvdum@0: indvdum@0: /** indvdum@0: * $test_file is the name of a file which is present on the source indvdum@0: * forum which can be used to check that the path specified by the indvdum@0: * user was correct indvdum@0: */ indvdum@0: $test_file = 'modcp.php'; indvdum@0: indvdum@0: /** indvdum@0: * If this is set then we are not generating the first page of information but getting the conversion information. indvdum@0: */ indvdum@0: if (!$get_info) indvdum@0: { indvdum@0: // Test to see if the birthday MOD is installed on the source forum indvdum@0: // Niels' birthday mod indvdum@0: if (get_config_value('birthday_required') !== false || get_config_value('bday_require') !== false) indvdum@0: { indvdum@0: define('MOD_BIRTHDAY', true); indvdum@0: } indvdum@0: indvdum@0: // TerraFrost's validated birthday mod indvdum@0: if (get_config_value('bday_require') !== false) indvdum@0: { indvdum@0: define('MOD_BIRTHDAY_TERRA', true); indvdum@0: } indvdum@0: indvdum@0: // Test to see if the attachment MOD is installed on the source forum indvdum@0: // If it is, we will convert this data as well indvdum@0: $src_db->sql_return_on_error(true); indvdum@0: indvdum@0: $sql = "SELECT config_value indvdum@0: FROM {$convert->src_table_prefix}attachments_config indvdum@0: WHERE config_name = 'upload_dir'"; indvdum@0: $result = $src_db->sql_query($sql); indvdum@0: indvdum@0: if ($result && $row = $src_db->sql_fetchrow($result)) indvdum@0: { indvdum@0: // Here the constant is defined indvdum@0: define('MOD_ATTACHMENT', true); indvdum@0: indvdum@0: // Here i add more tables to be checked in the old forum indvdum@0: $tables += array( indvdum@0: 'attachments', indvdum@0: 'attachments_desc', indvdum@0: 'extensions', indvdum@0: 'extension_groups' indvdum@0: ); indvdum@0: indvdum@0: $src_db->sql_freeresult($result); indvdum@0: } indvdum@0: else if ($result) indvdum@0: { indvdum@0: $src_db->sql_freeresult($result); indvdum@0: } indvdum@0: indvdum@0: indvdum@0: /** indvdum@0: * Tests for further MODs can be included here. indvdum@0: * Please use constants for this, prefixing them with MOD_ indvdum@0: */ indvdum@0: indvdum@0: $src_db->sql_return_on_error(false); indvdum@0: indvdum@0: // Now let us set a temporary config variable for user id incrementing indvdum@0: $sql = "SELECT user_id indvdum@0: FROM {$convert->src_table_prefix}users indvdum@0: WHERE user_id = 1"; indvdum@0: $result = $src_db->sql_query($sql); indvdum@0: $user_id = (int) $src_db->sql_fetchfield('user_id'); indvdum@0: $src_db->sql_freeresult($result); indvdum@0: indvdum@0: // If there is a user id 1, we need to increment user ids. :/ indvdum@0: if ($user_id === 1) indvdum@0: { indvdum@0: // Try to get the maximum user id possible... indvdum@0: $sql = "SELECT MAX(user_id) AS max_user_id indvdum@0: FROM {$convert->src_table_prefix}users"; indvdum@0: $result = $src_db->sql_query($sql); indvdum@0: $user_id = (int) $src_db->sql_fetchfield('max_user_id'); indvdum@0: $src_db->sql_freeresult($result); indvdum@0: indvdum@0: set_config('increment_user_id', ($user_id + 1), true); indvdum@0: } indvdum@0: else indvdum@0: { indvdum@0: set_config('increment_user_id', 0, true); indvdum@0: } indvdum@0: indvdum@0: // Overwrite maximum avatar width/height indvdum@0: @define('DEFAULT_AVATAR_X_CUSTOM', get_config_value('avatar_max_width')); indvdum@0: @define('DEFAULT_AVATAR_Y_CUSTOM', get_config_value('avatar_max_height')); indvdum@0: indvdum@0: // additional table used only during conversion indvdum@0: @define('USERCONV_TABLE', $table_prefix . 'userconv'); indvdum@0: indvdum@0: /** indvdum@0: * Description on how to use the convertor framework. indvdum@0: * indvdum@0: * 'schema' Syntax Description indvdum@0: * -> 'target' => Target Table. If not specified the next table will be handled indvdum@0: * -> 'primary' => Primary Key. If this is specified then this table is processed in batches indvdum@0: * -> 'query_first' => array('target' or 'src', Query to execute before beginning the process indvdum@0: * (if more than one then specified as array)) indvdum@0: * -> 'function_first' => Function to execute before beginning the process (if more than one then specified as array) indvdum@0: * (This is mostly useful if variables need to be given to the converting process) indvdum@0: * -> 'test_file' => This is not used at the moment but should be filled with a file from the old installation indvdum@0: * indvdum@0: * // DB Functions indvdum@0: * 'distinct' => Add DISTINCT to the select query indvdum@0: * 'where' => Add WHERE to the select query indvdum@0: * 'group_by' => Add GROUP BY to the select query indvdum@0: * 'left_join' => Add LEFT JOIN to the select query (if more than one joins specified as array) indvdum@0: * 'having' => Add HAVING to the select query indvdum@0: * indvdum@0: * // DB INSERT array indvdum@0: * This one consist of three parameters indvdum@0: * First Parameter: indvdum@0: * The key need to be filled within the target table indvdum@0: * If this is empty, the target table gets not assigned the source value indvdum@0: * Second Parameter: indvdum@0: * Source value. If the first parameter is specified, it will be assigned this value. indvdum@0: * If the first parameter is empty, this only gets added to the select query indvdum@0: * Third Parameter: indvdum@0: * Custom Function. Function to execute while storing source value into target table. indvdum@0: * The functions return value get stored. indvdum@0: * The function parameter consist of the value of the second parameter. indvdum@0: * indvdum@0: * types: indvdum@0: * - empty string == execute nothing indvdum@0: * - string == function to execute indvdum@0: * - array == complex execution instructions indvdum@0: * indvdum@0: * Complex execution instructions: indvdum@0: * @todo test complex execution instructions - in theory they will work fine indvdum@0: * indvdum@0: * By defining an array as the third parameter you are able to define some statements to be executed. The key indvdum@0: * is defining what to execute, numbers can be appended... indvdum@0: * indvdum@0: * 'function' => execute function indvdum@0: * 'execute' => run code, whereby all occurrences of {VALUE} get replaced by the last returned value. indvdum@0: * The result *must* be assigned/stored to {RESULT}. indvdum@0: * 'typecast' => typecast value indvdum@0: * indvdum@0: * The returned variables will be made always available to the next function to continue to work with. indvdum@0: * indvdum@0: * example (variable inputted is an integer of 1): indvdum@0: * indvdum@0: * array( indvdum@0: * 'function1' => 'increment_by_one', // returned variable is 2 indvdum@0: * 'typecast' => 'string', // typecast variable to be a string indvdum@0: * 'execute' => '{RESULT} = {VALUE} . ' is good';', // returned variable is '2 is good' indvdum@0: * 'function2' => 'replace_good_with_bad', // returned variable is '2 is bad' indvdum@0: * ), indvdum@0: * indvdum@0: */ indvdum@0: indvdum@0: $convertor = array( indvdum@0: 'test_file' => 'viewtopic.php', indvdum@0: indvdum@0: 'avatar_path' => get_config_value('avatar_path') . '/', indvdum@0: 'avatar_gallery_path' => get_config_value('avatar_gallery_path') . '/', indvdum@0: 'smilies_path' => get_config_value('smilies_path') . '/', indvdum@0: 'upload_path' => (defined('MOD_ATTACHMENT')) ? phpbb_get_files_dir() . '/' : '', indvdum@0: 'thumbnails' => (defined('MOD_ATTACHMENT')) ? array('thumbs/', 't_') : '', indvdum@0: 'ranks_path' => false, // phpBB 2.0.x had no config value for a ranks path indvdum@0: indvdum@0: // We empty some tables to have clean data available indvdum@0: 'query_first' => array( indvdum@0: array('target', $convert->truncate_statement . SEARCH_RESULTS_TABLE), indvdum@0: array('target', $convert->truncate_statement . SEARCH_WORDLIST_TABLE), indvdum@0: array('target', $convert->truncate_statement . SEARCH_WORDMATCH_TABLE), indvdum@0: array('target', $convert->truncate_statement . LOG_TABLE), indvdum@0: ), indvdum@0: indvdum@0: // with this you are able to import all attachment files on the fly. For large boards this is not an option, therefore commented out by default. indvdum@0: // Instead every file gets copied while processing the corresponding attachment entry. indvdum@0: // if (defined("MOD_ATTACHMENT")) { import_attachment_files(); phpbb_copy_thumbnails(); } indvdum@0: indvdum@0: // phpBB2 allowed some similar usernames to coexist which would have the same indvdum@0: // username_clean in phpBB3 which is not possible, so we'll give the admin a list indvdum@0: // of user ids and usernames and let him deicde what he wants to do with them indvdum@0: 'execute_first' => ' indvdum@0: phpbb_create_userconv_table(); indvdum@0: import_avatar_gallery(); indvdum@0: if (defined("MOD_ATTACHMENT")) phpbb_import_attach_config(); indvdum@0: phpbb_insert_forums(); indvdum@0: ', indvdum@0: indvdum@0: 'execute_last' => array(' indvdum@0: add_bots(); indvdum@0: ', ' indvdum@0: update_folder_pm_count(); indvdum@0: ', ' indvdum@0: update_unread_count(); indvdum@0: ', ' indvdum@0: phpbb_convert_authentication(\'start\'); indvdum@0: ', ' indvdum@0: phpbb_convert_authentication(\'first\'); indvdum@0: ', ' indvdum@0: phpbb_convert_authentication(\'second\'); indvdum@0: ', ' indvdum@0: phpbb_convert_authentication(\'third\'); indvdum@0: '), indvdum@0: indvdum@0: 'schema' => array( indvdum@0: array( indvdum@0: 'target' => USERCONV_TABLE, indvdum@0: 'query_first' => array('target', $convert->truncate_statement . USERCONV_TABLE), indvdum@0: indvdum@0: indvdum@0: array('user_id', 'users.user_id', ''), indvdum@0: array('username_clean', 'users.username', array('function1' => 'phpbb_set_encoding', 'function2' => 'utf8_clean_string')), indvdum@0: ), indvdum@0: indvdum@0: array( indvdum@0: 'target' => (defined('MOD_ATTACHMENT')) ? ATTACHMENTS_TABLE : '', indvdum@0: 'primary' => 'attachments.attach_id', indvdum@0: 'query_first' => (defined('MOD_ATTACHMENT')) ? array('target', $convert->truncate_statement . ATTACHMENTS_TABLE) : '', indvdum@0: 'autoincrement' => 'attach_id', indvdum@0: indvdum@0: array('attach_id', 'attachments.attach_id', ''), indvdum@0: array('post_msg_id', 'attachments.post_id', ''), indvdum@0: array('topic_id', 'posts.topic_id', ''), indvdum@0: array('in_message', 0, ''), indvdum@0: array('is_orphan', 0, ''), indvdum@0: array('poster_id', 'attachments.user_id_1 AS poster_id', 'phpbb_user_id'), indvdum@0: array('physical_filename', 'attachments_desc.physical_filename', 'import_attachment'), indvdum@0: array('real_filename', 'attachments_desc.real_filename', 'phpbb_set_encoding'), indvdum@0: array('download_count', 'attachments_desc.download_count', ''), indvdum@0: array('attach_comment', 'attachments_desc.comment', array('function1' => 'phpbb_set_encoding', 'function2' => 'utf8_htmlspecialchars')), indvdum@0: array('extension', 'attachments_desc.extension', ''), indvdum@0: array('mimetype', 'attachments_desc.mimetype', ''), indvdum@0: array('filesize', 'attachments_desc.filesize', ''), indvdum@0: array('filetime', 'attachments_desc.filetime', ''), indvdum@0: array('thumbnail', 'attachments_desc.thumbnail', ''), indvdum@0: indvdum@0: 'where' => 'attachments_desc.attach_id = attachments.attach_id AND attachments.privmsgs_id = 0 AND posts.post_id = attachments.post_id', indvdum@0: 'group_by' => 'attachments.attach_id' indvdum@0: ), indvdum@0: indvdum@0: array( indvdum@0: 'target' => (defined('MOD_ATTACHMENT')) ? ATTACHMENTS_TABLE : '', indvdum@0: 'primary' => 'attachments.attach_id', indvdum@0: 'autoincrement' => 'attach_id', indvdum@0: indvdum@0: array('attach_id', 'attachments.attach_id', ''), indvdum@0: array('post_msg_id', 'attachments.privmsgs_id', ''), indvdum@0: array('topic_id', 0, ''), indvdum@0: array('in_message', 1, ''), indvdum@0: array('is_orphan', 0, ''), indvdum@0: array('poster_id', 'attachments.user_id_1 AS poster_id', 'phpbb_user_id'), indvdum@0: array('physical_filename', 'attachments_desc.physical_filename', 'import_attachment'), indvdum@0: array('real_filename', 'attachments_desc.real_filename', ''), indvdum@0: array('download_count', 'attachments_desc.download_count', ''), indvdum@0: array('attach_comment', 'attachments_desc.comment', array('function1' => 'phpbb_set_encoding', 'function2' => 'utf8_htmlspecialchars')), indvdum@0: array('extension', 'attachments_desc.extension', ''), indvdum@0: array('mimetype', 'attachments_desc.mimetype', ''), indvdum@0: array('filesize', 'attachments_desc.filesize', ''), indvdum@0: array('filetime', 'attachments_desc.filetime', ''), indvdum@0: array('thumbnail', 'attachments_desc.thumbnail', ''), indvdum@0: indvdum@0: 'where' => 'attachments_desc.attach_id = attachments.attach_id AND attachments.post_id = 0', indvdum@0: 'group_by' => 'attachments.attach_id' indvdum@0: ), indvdum@0: indvdum@0: array( indvdum@0: 'target' => (defined('MOD_ATTACHMENT')) ? EXTENSIONS_TABLE : '', indvdum@0: 'query_first' => (defined('MOD_ATTACHMENT')) ? array('target', $convert->truncate_statement . EXTENSIONS_TABLE) : '', indvdum@0: 'autoincrement' => 'extension_id', indvdum@0: indvdum@0: array('extension_id', 'extensions.ext_id', ''), indvdum@0: array('group_id', 'extensions.group_id', ''), indvdum@0: array('extension', 'extensions.extension', ''), indvdum@0: ), indvdum@0: indvdum@0: array( indvdum@0: 'target' => (defined('MOD_ATTACHMENT')) ? EXTENSION_GROUPS_TABLE : '', indvdum@0: 'query_first' => (defined('MOD_ATTACHMENT')) ? array('target', $convert->truncate_statement . EXTENSION_GROUPS_TABLE) : '', indvdum@0: 'autoincrement' => 'group_id', indvdum@0: indvdum@0: array('group_id', 'extension_groups.group_id', ''), indvdum@0: array('group_name', 'extension_groups.group_name', array('function1' => 'phpbb_set_encoding', 'function2' => 'utf8_htmlspecialchars')), indvdum@0: array('cat_id', 'extension_groups.cat_id', 'phpbb_attachment_category'), indvdum@0: array('allow_group', 'extension_groups.allow_group', ''), indvdum@0: array('download_mode', 1, ''), indvdum@0: array('upload_icon', '', ''), indvdum@0: array('max_filesize', 'extension_groups.max_filesize', ''), indvdum@0: array('allowed_forums', 'extension_groups.forum_permissions', 'phpbb_attachment_forum_perms'), indvdum@0: array('allow_in_pm', 1, ''), indvdum@0: ), indvdum@0: indvdum@0: array( indvdum@0: 'target' => BANLIST_TABLE, indvdum@0: 'execute_first' => 'phpbb_check_username_collisions();', indvdum@0: 'query_first' => array('target', $convert->truncate_statement . BANLIST_TABLE), indvdum@0: indvdum@0: array('ban_ip', 'banlist.ban_ip', 'decode_ban_ip'), indvdum@0: array('ban_userid', 'banlist.ban_userid', 'phpbb_user_id'), indvdum@0: array('ban_email', 'banlist.ban_email', ''), indvdum@0: array('ban_reason', '', ''), indvdum@0: array('ban_give_reason', '', ''), indvdum@0: indvdum@0: 'where' => "banlist.ban_ip NOT LIKE '%.%'", indvdum@0: ), indvdum@0: indvdum@0: array( indvdum@0: 'target' => BANLIST_TABLE, indvdum@0: indvdum@0: array('ban_ip', 'banlist.ban_ip', ''), indvdum@0: array('ban_userid', 0, ''), indvdum@0: array('ban_email', '', ''), indvdum@0: array('ban_reason', '', ''), indvdum@0: array('ban_give_reason', '', ''), indvdum@0: indvdum@0: 'where' => "banlist.ban_ip LIKE '%.%'", indvdum@0: ), indvdum@0: indvdum@0: array( indvdum@0: 'target' => DISALLOW_TABLE, indvdum@0: 'query_first' => array('target', $convert->truncate_statement . DISALLOW_TABLE), indvdum@0: indvdum@0: array('disallow_username', 'disallow.disallow_username', 'phpbb_disallowed_username'), indvdum@0: ), indvdum@0: indvdum@0: array( indvdum@0: 'target' => RANKS_TABLE, indvdum@0: 'query_first' => array('target', $convert->truncate_statement . RANKS_TABLE), indvdum@0: 'autoincrement' => 'rank_id', indvdum@0: indvdum@0: array('rank_id', 'ranks.rank_id', ''), indvdum@0: array('rank_title', 'ranks.rank_title', array('function1' => 'phpbb_set_default_encoding', 'function2' => 'utf8_htmlspecialchars')), indvdum@0: array('rank_min', 'ranks.rank_min', array('typecast' => 'int', 'execute' => '{RESULT} = ({VALUE}[0] < 0) ? 0 : {VALUE}[0];')), indvdum@0: array('rank_special', 'ranks.rank_special', ''), indvdum@0: array('rank_image', 'ranks.rank_image', 'import_rank'), indvdum@0: ), indvdum@0: indvdum@0: array( indvdum@0: 'target' => TOPICS_TABLE, indvdum@0: 'query_first' => array('target', $convert->truncate_statement . TOPICS_TABLE), indvdum@0: 'primary' => 'topics.topic_id', indvdum@0: 'autoincrement' => 'topic_id', indvdum@0: indvdum@0: array('topic_id', 'topics.topic_id', ''), indvdum@0: array('forum_id', 'topics.forum_id', ''), indvdum@0: array('icon_id', 0, ''), indvdum@0: array('topic_poster', 'topics.topic_poster AS poster_id', 'phpbb_user_id'), indvdum@0: array('topic_attachment', ((defined('MOD_ATTACHMENT')) ? 'topics.topic_attachment' : 0), ''), indvdum@0: array('topic_title', 'topics.topic_title', 'phpbb_set_encoding'), indvdum@0: array('topic_time', 'topics.topic_time', ''), indvdum@0: array('topic_views', 'topics.topic_views', ''), indvdum@0: array('topic_replies', 'topics.topic_replies', ''), indvdum@0: array('topic_replies_real', 'topics.topic_replies', ''), indvdum@0: array('topic_last_post_id', 'topics.topic_last_post_id', ''), indvdum@0: array('topic_status', 'topics.topic_status', 'is_topic_locked'), indvdum@0: array('topic_moved_id', 0, ''), indvdum@0: array('topic_type', 'topics.topic_type', 'phpbb_convert_topic_type'), indvdum@0: array('topic_first_post_id', 'topics.topic_first_post_id', ''), indvdum@0: array('topic_last_view_time', 'posts.post_time', 'intval'), indvdum@0: array('poll_title', 'vote_desc.vote_text', array('function1' => 'null_to_str', 'function2' => 'phpbb_set_encoding', 'function3' => 'htmlspecialchars_decode', 'function4' => 'utf8_htmlspecialchars')), indvdum@0: array('poll_start', 'vote_desc.vote_start', 'null_to_zero'), indvdum@0: array('poll_length', 'vote_desc.vote_length', 'null_to_zero'), indvdum@0: array('poll_max_options', 1, ''), indvdum@0: array('poll_vote_change', 0, ''), indvdum@0: indvdum@0: 'left_join' => array ( 'topics LEFT JOIN vote_desc ON topics.topic_id = vote_desc.topic_id AND topics.topic_vote = 1', indvdum@0: 'topics LEFT JOIN posts ON topics.topic_last_post_id = posts.post_id', indvdum@0: ), indvdum@0: 'where' => 'topics.topic_moved_id = 0', indvdum@0: ), indvdum@0: indvdum@0: array( indvdum@0: 'target' => TOPICS_TABLE, indvdum@0: 'primary' => 'topics.topic_id', indvdum@0: 'autoincrement' => 'topic_id', indvdum@0: indvdum@0: array('topic_id', 'topics.topic_id', ''), indvdum@0: array('forum_id', 'topics.forum_id', ''), indvdum@0: array('icon_id', 0, ''), indvdum@0: array('topic_poster', 'topics.topic_poster AS poster_id', 'phpbb_user_id'), indvdum@0: array('topic_attachment', ((defined('MOD_ATTACHMENT')) ? 'topics.topic_attachment' : 0), ''), indvdum@0: array('topic_title', 'topics.topic_title', 'phpbb_set_encoding'), indvdum@0: array('topic_time', 'topics.topic_time', ''), indvdum@0: array('topic_views', 'topics.topic_views', ''), indvdum@0: array('topic_replies', 'topics.topic_replies', ''), indvdum@0: array('topic_replies_real', 'topics.topic_replies', ''), indvdum@0: array('topic_last_post_id', 'topics.topic_last_post_id', ''), indvdum@0: array('topic_status', ITEM_MOVED, ''), indvdum@0: array('topic_moved_id', 'topics.topic_moved_id', ''), indvdum@0: array('topic_type', 'topics.topic_type', 'phpbb_convert_topic_type'), indvdum@0: array('topic_first_post_id', 'topics.topic_first_post_id', ''), indvdum@0: indvdum@0: array('poll_title', 'vote_desc.vote_text', array('function1' => 'null_to_str', 'function2' => 'phpbb_set_encoding', 'function3' => 'htmlspecialchars_decode', 'function4' => 'utf8_htmlspecialchars')), indvdum@0: array('poll_start', 'vote_desc.vote_start', 'null_to_zero'), indvdum@0: array('poll_length', 'vote_desc.vote_length', 'null_to_zero'), indvdum@0: array('poll_max_options', 1, ''), indvdum@0: array('poll_vote_change', 0, ''), indvdum@0: indvdum@0: 'left_join' => 'topics LEFT JOIN vote_desc ON topics.topic_id = vote_desc.topic_id AND topics.topic_vote = 1', indvdum@0: 'where' => 'topics.topic_moved_id <> 0', indvdum@0: ), indvdum@0: indvdum@0: array( indvdum@0: 'target' => TOPICS_WATCH_TABLE, indvdum@0: 'primary' => 'topics_watch.topic_id', indvdum@0: 'query_first' => array('target', $convert->truncate_statement . TOPICS_WATCH_TABLE), indvdum@0: indvdum@0: array('topic_id', 'topics_watch.topic_id', ''), indvdum@0: array('user_id', 'topics_watch.user_id', 'phpbb_user_id'), indvdum@0: array('notify_status', 'topics_watch.notify_status', ''), indvdum@0: ), indvdum@0: indvdum@0: array( indvdum@0: 'target' => SMILIES_TABLE, indvdum@0: 'query_first' => array('target', $convert->truncate_statement . SMILIES_TABLE), indvdum@0: 'autoincrement' => 'smiley_id', indvdum@0: indvdum@0: array('smiley_id', 'smilies.smilies_id', ''), indvdum@0: array('code', 'smilies.code', array('function1' => 'phpbb_smilie_html_decode', 'function2' => 'phpbb_set_encoding', 'function3' => 'utf8_htmlspecialchars')), indvdum@0: array('emotion', 'smilies.emoticon', 'phpbb_set_encoding'), indvdum@0: array('smiley_url', 'smilies.smile_url', 'import_smiley'), indvdum@0: array('smiley_width', 'smilies.smile_url', 'get_smiley_width'), indvdum@0: array('smiley_height', 'smilies.smile_url', 'get_smiley_height'), indvdum@0: array('smiley_order', 'smilies.smilies_id', ''), indvdum@0: array('display_on_posting', 'smilies.smilies_id', 'get_smiley_display'), indvdum@0: indvdum@0: 'order_by' => 'smilies.smilies_id ASC', indvdum@0: ), indvdum@0: indvdum@0: array( indvdum@0: 'target' => POLL_OPTIONS_TABLE, indvdum@0: 'primary' => 'vote_results.vote_option_id', indvdum@0: 'query_first' => array('target', $convert->truncate_statement . POLL_OPTIONS_TABLE), indvdum@0: indvdum@0: array('poll_option_id', 'vote_results.vote_option_id', ''), indvdum@0: array('topic_id', 'vote_desc.topic_id', ''), indvdum@0: array('', 'topics.topic_poster AS poster_id', 'phpbb_user_id'), indvdum@0: array('poll_option_text', 'vote_results.vote_option_text', array('function1' => 'phpbb_set_encoding', 'function2' => 'htmlspecialchars_decode', 'function3' => 'utf8_htmlspecialchars')), indvdum@0: array('poll_option_total', 'vote_results.vote_result', ''), indvdum@0: indvdum@0: 'where' => 'vote_results.vote_id = vote_desc.vote_id', indvdum@0: 'left_join' => 'vote_desc LEFT JOIN topics ON topics.topic_id = vote_desc.topic_id', indvdum@0: ), indvdum@0: indvdum@0: array( indvdum@0: 'target' => POLL_VOTES_TABLE, indvdum@0: 'primary' => 'vote_desc.topic_id', indvdum@0: 'query_first' => array('target', $convert->truncate_statement . POLL_VOTES_TABLE), indvdum@0: indvdum@0: array('poll_option_id', VOTE_CONVERTED, ''), indvdum@0: array('topic_id', 'vote_desc.topic_id', ''), indvdum@0: array('vote_user_id', 'vote_voters.vote_user_id', 'phpbb_user_id'), indvdum@0: array('vote_user_ip', 'vote_voters.vote_user_ip', 'decode_ip'), indvdum@0: indvdum@0: 'where' => 'vote_voters.vote_id = vote_desc.vote_id', indvdum@0: ), indvdum@0: indvdum@0: array( indvdum@0: 'target' => WORDS_TABLE, indvdum@0: 'primary' => 'words.word_id', indvdum@0: 'query_first' => array('target', $convert->truncate_statement . WORDS_TABLE), indvdum@0: 'autoincrement' => 'word_id', indvdum@0: indvdum@0: array('word_id', 'words.word_id', ''), indvdum@0: array('word', 'words.word', 'phpbb_set_encoding'), indvdum@0: array('replacement', 'words.replacement', 'phpbb_set_encoding'), indvdum@0: ), indvdum@0: indvdum@0: array( indvdum@0: 'target' => POSTS_TABLE, indvdum@0: 'primary' => 'posts.post_id', indvdum@0: 'autoincrement' => 'post_id', indvdum@0: 'query_first' => array('target', $convert->truncate_statement . POSTS_TABLE), indvdum@0: 'execute_first' => ' indvdum@0: $config["max_post_chars"] = 0; indvdum@0: $config["min_post_chars"] = 0; indvdum@0: $config["max_quote_depth"] = 0; indvdum@0: ', indvdum@0: indvdum@0: array('post_id', 'posts.post_id', ''), indvdum@0: array('topic_id', 'posts.topic_id', ''), indvdum@0: array('forum_id', 'posts.forum_id', ''), indvdum@0: array('poster_id', 'posts.poster_id', 'phpbb_user_id'), indvdum@0: array('icon_id', 0, ''), indvdum@0: array('poster_ip', 'posts.poster_ip', 'decode_ip'), indvdum@0: array('post_time', 'posts.post_time', ''), indvdum@0: array('enable_bbcode', 'posts.enable_bbcode', ''), indvdum@0: array('', 'posts.enable_html', ''), indvdum@0: array('enable_smilies', 'posts.enable_smilies', ''), indvdum@0: array('enable_sig', 'posts.enable_sig', ''), indvdum@0: array('enable_magic_url', 1, ''), indvdum@0: array('post_username', 'posts.post_username', 'phpbb_set_encoding'), indvdum@0: array('post_subject', 'posts_text.post_subject', 'phpbb_set_encoding'), indvdum@0: array('post_attachment', ((defined('MOD_ATTACHMENT')) ? 'posts.post_attachment' : 0), ''), indvdum@0: array('post_edit_time', 'posts.post_edit_time', array('typecast' => 'int')), indvdum@0: array('post_edit_count', 'posts.post_edit_count', ''), indvdum@0: array('post_edit_reason', '', ''), indvdum@0: array('post_edit_user', '', 'phpbb_post_edit_user'), indvdum@0: indvdum@0: array('bbcode_uid', 'posts.post_time', 'make_uid'), indvdum@0: array('post_text', 'posts_text.post_text', 'phpbb_prepare_message'), indvdum@0: array('', 'posts_text.bbcode_uid AS old_bbcode_uid', ''), indvdum@0: array('bbcode_bitfield', '', 'get_bbcode_bitfield'), indvdum@0: array('post_checksum', '', ''), indvdum@0: indvdum@0: // Commented out inline search indexing, this takes up a LOT of time. :D indvdum@0: // @todo We either need to enable this or call the rebuild search functionality post convert indvdum@0: /* array('', '', 'search_indexing'), indvdum@0: array('', 'posts_text.post_text AS message', ''), indvdum@0: array('', 'posts_text.post_subject AS title', ''),*/ indvdum@0: indvdum@0: 'where' => 'posts.post_id = posts_text.post_id' indvdum@0: ), indvdum@0: indvdum@0: array( indvdum@0: 'target' => PRIVMSGS_TABLE, indvdum@0: 'primary' => 'privmsgs.privmsgs_id', indvdum@0: 'autoincrement' => 'msg_id', indvdum@0: 'query_first' => array( indvdum@0: array('target', $convert->truncate_statement . PRIVMSGS_TABLE), indvdum@0: array('target', $convert->truncate_statement . PRIVMSGS_RULES_TABLE), indvdum@0: ), indvdum@0: indvdum@0: 'execute_first' => ' indvdum@0: $config["max_post_chars"] = 0; indvdum@0: $config["min_post_chars"] = 0; indvdum@0: $config["max_quote_depth"] = 0; indvdum@0: ', indvdum@0: indvdum@0: array('msg_id', 'privmsgs.privmsgs_id', ''), indvdum@0: array('root_level', 0, ''), indvdum@0: array('author_id', 'privmsgs.privmsgs_from_userid AS poster_id', 'phpbb_user_id'), indvdum@0: array('icon_id', 0, ''), indvdum@0: array('author_ip', 'privmsgs.privmsgs_ip', 'decode_ip'), indvdum@0: array('message_time', 'privmsgs.privmsgs_date', ''), indvdum@0: array('enable_bbcode', 'privmsgs.privmsgs_enable_bbcode AS enable_bbcode', ''), indvdum@0: array('', 'privmsgs.privmsgs_enable_html AS enable_html', ''), indvdum@0: array('enable_smilies', 'privmsgs.privmsgs_enable_smilies AS enable_smilies', ''), indvdum@0: array('enable_magic_url', 1, ''), indvdum@0: array('enable_sig', 'privmsgs.privmsgs_attach_sig', ''), indvdum@0: array('message_subject', 'privmsgs.privmsgs_subject', 'phpbb_set_encoding'), // Already specialchared in 2.0.x indvdum@0: array('message_attachment', ((defined('MOD_ATTACHMENT')) ? 'privmsgs.privmsgs_attachment' : 0), ''), indvdum@0: array('message_edit_reason', '', ''), indvdum@0: array('message_edit_user', 0, ''), indvdum@0: array('message_edit_time', 0, ''), indvdum@0: array('message_edit_count', 0, ''), indvdum@0: indvdum@0: array('bbcode_uid', 'privmsgs.privmsgs_date AS post_time', 'make_uid'), indvdum@0: array('message_text', 'privmsgs_text.privmsgs_text', 'phpbb_prepare_message'), indvdum@0: array('', 'privmsgs_text.privmsgs_bbcode_uid AS old_bbcode_uid', ''), indvdum@0: array('bbcode_bitfield', '', 'get_bbcode_bitfield'), indvdum@0: array('to_address', 'privmsgs.privmsgs_to_userid', 'phpbb_privmsgs_to_userid'), indvdum@0: array('bcc_address', '', ''), indvdum@0: indvdum@0: 'where' => 'privmsgs.privmsgs_id = privmsgs_text.privmsgs_text_id' indvdum@0: ), indvdum@0: indvdum@0: array( indvdum@0: 'target' => PRIVMSGS_FOLDER_TABLE, indvdum@0: 'primary' => 'users.user_id', indvdum@0: 'query_first' => array('target', $convert->truncate_statement . PRIVMSGS_FOLDER_TABLE), indvdum@0: indvdum@0: array('user_id', 'users.user_id', 'phpbb_user_id'), indvdum@0: array('folder_name', $user->lang['CONV_SAVED_MESSAGES'], ''), indvdum@0: array('pm_count', 0, ''), indvdum@0: indvdum@0: 'where' => 'users.user_id <> -1', indvdum@0: ), indvdum@0: indvdum@0: // Inbox indvdum@0: array( indvdum@0: 'target' => PRIVMSGS_TO_TABLE, indvdum@0: 'primary' => 'privmsgs.privmsgs_id', indvdum@0: 'query_first' => array('target', $convert->truncate_statement . PRIVMSGS_TO_TABLE), indvdum@0: indvdum@0: array('msg_id', 'privmsgs.privmsgs_id', ''), indvdum@0: array('user_id', 'privmsgs.privmsgs_to_userid', 'phpbb_user_id'), indvdum@0: array('author_id', 'privmsgs.privmsgs_from_userid', 'phpbb_user_id'), indvdum@0: array('pm_deleted', 0, ''), indvdum@0: array('pm_new', 'privmsgs.privmsgs_type', 'phpbb_new_pm'), indvdum@0: array('pm_unread', 'privmsgs.privmsgs_type', 'phpbb_unread_pm'), indvdum@0: array('pm_replied', 0, ''), indvdum@0: array('pm_marked', 0, ''), indvdum@0: array('pm_forwarded', 0, ''), indvdum@0: array('folder_id', PRIVMSGS_INBOX, ''), indvdum@0: indvdum@0: 'where' => 'privmsgs.privmsgs_id = privmsgs_text.privmsgs_text_id indvdum@0: AND (privmsgs.privmsgs_type = 0 OR privmsgs.privmsgs_type = 1 OR privmsgs.privmsgs_type = 5)', indvdum@0: ), indvdum@0: indvdum@0: // Outbox indvdum@0: array( indvdum@0: 'target' => PRIVMSGS_TO_TABLE, indvdum@0: 'primary' => 'privmsgs.privmsgs_id', indvdum@0: indvdum@0: array('msg_id', 'privmsgs.privmsgs_id', ''), indvdum@0: array('user_id', 'privmsgs.privmsgs_from_userid', 'phpbb_user_id'), indvdum@0: array('author_id', 'privmsgs.privmsgs_from_userid', 'phpbb_user_id'), indvdum@0: array('pm_deleted', 0, ''), indvdum@0: array('pm_new', 0, ''), indvdum@0: array('pm_unread', 0, ''), indvdum@0: array('pm_replied', 0, ''), indvdum@0: array('pm_marked', 0, ''), indvdum@0: array('pm_forwarded', 0, ''), indvdum@0: array('folder_id', PRIVMSGS_OUTBOX, ''), indvdum@0: indvdum@0: 'where' => 'privmsgs.privmsgs_id = privmsgs_text.privmsgs_text_id indvdum@0: AND (privmsgs.privmsgs_type = 1 OR privmsgs.privmsgs_type = 5)', indvdum@0: ), indvdum@0: indvdum@0: // Sentbox indvdum@0: array( indvdum@0: 'target' => PRIVMSGS_TO_TABLE, indvdum@0: 'primary' => 'privmsgs.privmsgs_id', indvdum@0: indvdum@0: array('msg_id', 'privmsgs.privmsgs_id', ''), indvdum@0: array('user_id', 'privmsgs.privmsgs_from_userid', 'phpbb_user_id'), indvdum@0: array('author_id', 'privmsgs.privmsgs_from_userid', 'phpbb_user_id'), indvdum@0: array('pm_deleted', 0, ''), indvdum@0: array('pm_new', 'privmsgs.privmsgs_type', 'phpbb_new_pm'), indvdum@0: array('pm_unread', 'privmsgs.privmsgs_type', 'phpbb_unread_pm'), indvdum@0: array('pm_replied', 0, ''), indvdum@0: array('pm_marked', 0, ''), indvdum@0: array('pm_forwarded', 0, ''), indvdum@0: array('folder_id', PRIVMSGS_SENTBOX, ''), indvdum@0: indvdum@0: 'where' => 'privmsgs.privmsgs_id = privmsgs_text.privmsgs_text_id indvdum@0: AND privmsgs.privmsgs_type = 2', indvdum@0: ), indvdum@0: indvdum@0: // Savebox (SAVED IN) indvdum@0: array( indvdum@0: 'target' => PRIVMSGS_TO_TABLE, indvdum@0: 'primary' => 'privmsgs.privmsgs_id', indvdum@0: indvdum@0: array('msg_id', 'privmsgs.privmsgs_id', ''), indvdum@0: array('user_id', 'privmsgs.privmsgs_to_userid', 'phpbb_user_id'), indvdum@0: array('author_id', 'privmsgs.privmsgs_from_userid', 'phpbb_user_id'), indvdum@0: array('pm_deleted', 0, ''), indvdum@0: array('pm_new', 'privmsgs.privmsgs_type', 'phpbb_new_pm'), indvdum@0: array('pm_unread', 'privmsgs.privmsgs_type', 'phpbb_unread_pm'), indvdum@0: array('pm_replied', 0, ''), indvdum@0: array('pm_marked', 0, ''), indvdum@0: array('pm_forwarded', 0, ''), indvdum@0: array('folder_id', 'privmsgs.privmsgs_to_userid', 'phpbb_get_savebox_id'), indvdum@0: indvdum@0: 'where' => 'privmsgs.privmsgs_id = privmsgs_text.privmsgs_text_id indvdum@0: AND privmsgs.privmsgs_type = 3', indvdum@0: ), indvdum@0: indvdum@0: // Savebox (SAVED OUT) indvdum@0: array( indvdum@0: 'target' => PRIVMSGS_TO_TABLE, indvdum@0: 'primary' => 'privmsgs.privmsgs_id', indvdum@0: indvdum@0: array('msg_id', 'privmsgs.privmsgs_id', ''), indvdum@0: array('user_id', 'privmsgs.privmsgs_from_userid', 'phpbb_user_id'), indvdum@0: array('author_id', 'privmsgs.privmsgs_from_userid', 'phpbb_user_id'), indvdum@0: array('pm_deleted', 0, ''), indvdum@0: array('pm_new', 'privmsgs.privmsgs_type', 'phpbb_new_pm'), indvdum@0: array('pm_unread', 'privmsgs.privmsgs_type', 'phpbb_unread_pm'), indvdum@0: array('pm_replied', 0, ''), indvdum@0: array('pm_marked', 0, ''), indvdum@0: array('pm_forwarded', 0, ''), indvdum@0: array('folder_id', 'privmsgs.privmsgs_from_userid', 'phpbb_get_savebox_id'), indvdum@0: indvdum@0: 'where' => 'privmsgs.privmsgs_id = privmsgs_text.privmsgs_text_id indvdum@0: AND privmsgs.privmsgs_type = 4', indvdum@0: ), indvdum@0: indvdum@0: array( indvdum@0: 'target' => GROUPS_TABLE, indvdum@0: 'autoincrement' => 'group_id', indvdum@0: 'query_first' => array('target', $convert->truncate_statement . GROUPS_TABLE), indvdum@0: indvdum@0: array('group_id', 'groups.group_id', ''), indvdum@0: array('group_type', 'groups.group_type', 'phpbb_convert_group_type'), indvdum@0: array('group_display', 0, ''), indvdum@0: array('group_legend', 0, ''), indvdum@0: array('group_name', 'groups.group_name', 'phpbb_convert_group_name'), // phpbb_set_encoding called in phpbb_convert_group_name indvdum@0: array('group_desc', 'groups.group_description', 'phpbb_set_encoding'), indvdum@0: indvdum@0: 'where' => 'groups.group_single_user = 0', indvdum@0: ), indvdum@0: indvdum@0: array( indvdum@0: 'target' => USER_GROUP_TABLE, indvdum@0: 'query_first' => array('target', $convert->truncate_statement . USER_GROUP_TABLE), indvdum@0: 'execute_first' => ' indvdum@0: add_default_groups(); indvdum@0: ', indvdum@0: indvdum@0: array('group_id', 'groups.group_id', ''), indvdum@0: array('user_id', 'groups.group_moderator', 'phpbb_user_id'), indvdum@0: array('group_leader', 1, ''), indvdum@0: array('user_pending', 0, ''), indvdum@0: indvdum@0: 'where' => 'groups.group_single_user = 0 AND groups.group_moderator <> 0', indvdum@0: ), indvdum@0: indvdum@0: array( indvdum@0: 'target' => USER_GROUP_TABLE, indvdum@0: indvdum@0: array('group_id', 'user_group.group_id', ''), indvdum@0: array('user_id', 'user_group.user_id', 'phpbb_user_id'), indvdum@0: array('group_leader', 0, ''), indvdum@0: array('user_pending', 'user_group.user_pending', ''), indvdum@0: indvdum@0: 'where' => 'user_group.group_id = groups.group_id AND groups.group_single_user = 0 AND groups.group_moderator <> user_group.user_id', indvdum@0: ), indvdum@0: indvdum@0: array( indvdum@0: 'target' => USERS_TABLE, indvdum@0: 'primary' => 'users.user_id', indvdum@0: 'autoincrement' => 'user_id', indvdum@0: 'query_first' => array( indvdum@0: array('target', 'DELETE FROM ' . USERS_TABLE . ' WHERE user_id <> ' . ANONYMOUS), indvdum@0: array('target', $convert->truncate_statement . BOTS_TABLE) indvdum@0: ), indvdum@0: indvdum@0: 'execute_last' => ' indvdum@0: remove_invalid_users(); indvdum@0: ', indvdum@0: indvdum@0: array('user_id', 'users.user_id', 'phpbb_user_id'), indvdum@0: array('', 'users.user_id AS poster_id', 'phpbb_user_id'), indvdum@0: array('user_type', 'users.user_active', 'set_user_type'), indvdum@0: array('group_id', 'users.user_level', 'phpbb_set_primary_group'), indvdum@0: array('user_regdate', 'users.user_regdate', ''), indvdum@0: array('username', 'users.username', 'phpbb_set_default_encoding'), // recode to utf8 with default lang indvdum@0: array('username_clean', 'users.username', array('function1' => 'phpbb_set_default_encoding', 'function2' => 'utf8_clean_string')), indvdum@0: array('user_password', 'users.user_password', 'phpbb_hash'), indvdum@0: array('user_pass_convert', 1, ''), indvdum@0: array('user_posts', 'users.user_posts', 'intval'), indvdum@0: array('user_email', 'users.user_email', 'strtolower'), indvdum@0: array('user_email_hash', 'users.user_email', 'gen_email_hash'), indvdum@0: array('user_birthday', ((defined('MOD_BIRTHDAY')) ? 'users.user_birthday' : ''), 'phpbb_get_birthday'), indvdum@0: array('user_lastvisit', 'users.user_lastvisit', 'intval'), indvdum@0: array('user_lastmark', 'users.user_lastvisit', 'intval'), indvdum@0: array('user_lang', $config['default_lang'], ''), indvdum@0: array('', 'users.user_lang', ''), indvdum@0: array('user_timezone', 'users.user_timezone', 'floatval'), indvdum@0: array('user_dateformat', 'users.user_dateformat', array('function1' => 'phpbb_set_encoding', 'function2' => 'fill_dateformat')), indvdum@0: array('user_inactive_reason', '', 'phpbb_inactive_reason'), indvdum@0: array('user_inactive_time', '', 'phpbb_inactive_time'), indvdum@0: indvdum@0: array('user_interests', 'users.user_interests', array('function1' => 'phpbb_set_encoding')), indvdum@0: array('user_occ', 'users.user_occ', array('function1' => 'phpbb_set_encoding')), indvdum@0: array('user_website', 'users.user_website', 'validate_website'), indvdum@0: array('user_jabber', '', ''), indvdum@0: array('user_msnm', 'users.user_msnm', array('function1' => 'phpbb_set_encoding')), indvdum@0: array('user_yim', 'users.user_yim', array('function1' => 'phpbb_set_encoding')), indvdum@0: array('user_aim', 'users.user_aim', array('function1' => 'phpbb_set_encoding')), indvdum@0: array('user_icq', 'users.user_icq', array('function1' => 'phpbb_set_encoding')), indvdum@0: array('user_from', 'users.user_from', array('function1' => 'phpbb_set_encoding')), indvdum@0: array('user_rank', 'users.user_rank', 'intval'), indvdum@0: array('user_permissions', '', ''), indvdum@0: indvdum@0: array('user_avatar', 'users.user_avatar', 'phpbb_import_avatar'), indvdum@0: array('user_avatar_type', 'users.user_avatar_type', 'phpbb_avatar_type'), indvdum@0: array('user_avatar_width', 'users.user_avatar', 'phpbb_get_avatar_width'), indvdum@0: array('user_avatar_height', 'users.user_avatar', 'phpbb_get_avatar_height'), indvdum@0: indvdum@0: array('user_new_privmsg', 'users.user_new_privmsg', ''), indvdum@0: array('user_unread_privmsg', 0, ''), //'users.user_unread_privmsg' indvdum@0: array('user_last_privmsg', 'users.user_last_privmsg', 'intval'), indvdum@0: array('user_emailtime', 'users.user_emailtime', 'null_to_zero'), indvdum@0: array('user_notify', 'users.user_notify', 'intval'), indvdum@0: array('user_notify_pm', 'users.user_notify_pm', 'intval'), indvdum@0: array('user_notify_type', NOTIFY_EMAIL, ''), indvdum@0: array('user_allow_pm', 'users.user_allow_pm', 'intval'), indvdum@0: array('user_allow_viewonline', 'users.user_allow_viewonline', 'intval'), indvdum@0: array('user_allow_viewemail', 'users.user_viewemail', 'intval'), indvdum@0: array('user_actkey', 'users.user_actkey', ''), indvdum@0: array('user_newpasswd', '', ''), // Users need to re-request their password... indvdum@0: array('user_style', $config['default_style'], ''), indvdum@0: indvdum@0: array('user_options', '', 'set_user_options'), indvdum@0: array('', 'users.user_popup_pm AS popuppm', ''), indvdum@0: array('', 'users.user_allowhtml AS html', ''), indvdum@0: array('', 'users.user_allowbbcode AS bbcode', ''), indvdum@0: array('', 'users.user_allowsmile AS smile', ''), indvdum@0: array('', 'users.user_attachsig AS attachsig',''), indvdum@0: indvdum@0: array('user_sig_bbcode_uid', 'users.user_regdate', 'make_uid'), indvdum@0: array('user_sig', 'users.user_sig', 'phpbb_prepare_message'), indvdum@0: array('', 'users.user_sig_bbcode_uid AS old_bbcode_uid', ''), indvdum@0: array('user_sig_bbcode_bitfield', '', 'get_bbcode_bitfield'), indvdum@0: array('', 'users.user_regdate AS post_time', ''), indvdum@0: indvdum@0: 'where' => 'users.user_id <> -1', indvdum@0: ), indvdum@0: ), indvdum@0: ); indvdum@0: } indvdum@0: indvdum@0: ?>