⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 convert_phpbb20.php

📁 通过基于Windows的图形化界面
💻 PHP
📖 第 1 页 / 共 3 页
字号:
				array('post_edit_time',			'posts.post_edit_time',				array('typecast' => 'int')),				array('post_edit_count',		'posts.post_edit_count',			''),				array('post_edit_reason',		'',									''),				array('post_edit_user',			'',									'phpbb_post_edit_user'),				array('bbcode_uid',				'posts.post_time',					'make_uid'),				array('post_text',				'posts_text.post_text',				'phpbb_prepare_message'),				array('',						'posts_text.bbcode_uid AS old_bbcode_uid',			''),				array('bbcode_bitfield',		'',									'get_bbcode_bitfield'),				array('post_checksum',			'',									''),				// Commented out inline search indexing, this takes up a LOT of time. :D				// @todo We either need to enable this or call the rebuild search functionality post convert/*				array('',						'',									'search_indexing'),				array('',						'posts_text.post_text AS message',	''),				array('',						'posts_text.post_subject AS title',	''),*/				'where'			=>	'posts.post_id = posts_text.post_id'			),			array(				'target'		=> PRIVMSGS_TABLE,				'primary'		=> 'privmsgs.privmsgs_id',				'query_first'	=> array(					$convert->truncate_statement . PRIVMSGS_TABLE,					$convert->truncate_statement . PRIVMSGS_RULES_TABLE,				),				'execute_first'	=> '					$config["max_post_chars"] = 0;				',				array('msg_id',					'privmsgs.privmsgs_id',				''),				array('root_level',				0,									''),				array('author_id',				'privmsgs.privmsgs_from_userid AS poster_id',	'phpbb_user_id'),				array('icon_id',				0,									''),				array('author_ip',				'privmsgs.privmsgs_ip',				'decode_ip'),				array('message_time',			'privmsgs.privmsgs_date',			''),				array('enable_bbcode',			'privmsgs.privmsgs_enable_bbcode AS enable_bbcode',	''),				array('',						'privmsgs.privmsgs_enable_html AS enable_html',	''),				array('enable_smilies',			'privmsgs.privmsgs_enable_smilies AS enable_smilies',	''),				array('enable_magic_url',		1,									''),				array('enable_sig',				'privmsgs.privmsgs_attach_sig',		''),				array('message_subject',		'privmsgs.privmsgs_subject',		array('function1' => 'phpbb_set_encoding', 'function2' => 'utf8_htmlspecialchars')),				array('message_attachment',		((defined('MOD_ATTACHMENT')) ? 'privmsgs.privmsgs_attachment' : 0), ''),				array('message_edit_reason',	'',									''),				array('message_edit_user',		0,									''),				array('message_edit_time',		0,									''),				array('message_edit_count',		0,									''),				array('bbcode_uid',				'privmsgs.privmsgs_date AS post_time',	'make_uid'),				array('message_text',			'privmsgs_text.privmsgs_text',			'phpbb_prepare_message'),				array('',						'privmsgs_text.privmsgs_bbcode_uid AS old_bbcode_uid',			''),				array('bbcode_bitfield',		'',										'get_bbcode_bitfield'),				array('to_address',				'privmsgs.privmsgs_to_userid',			'phpbb_privmsgs_to_userid'),				'where'			=>	'privmsgs.privmsgs_id = privmsgs_text.privmsgs_text_id'			),			array(				'target'		=> PRIVMSGS_FOLDER_TABLE,				'primary'		=> 'users.user_id',				'query_first'	=> $convert->truncate_statement . PRIVMSGS_FOLDER_TABLE,				array('user_id',				'users.user_id',						'phpbb_user_id'),				array('folder_name',			$user->lang['CONV_SAVED_MESSAGES'],		''),				array('pm_count',				0,										''),							'where'			=> 'users.user_id <> -1',			),			// Inbox			array(				'target'		=> PRIVMSGS_TO_TABLE,				'primary'		=> 'privmsgs.privmsgs_id',				'query_first'	=> $convert->truncate_statement . PRIVMSGS_TO_TABLE,				array('msg_id',					'privmsgs.privmsgs_id',					''),				array('user_id',				'privmsgs.privmsgs_to_userid',			'phpbb_user_id'),				array('author_id',				'privmsgs.privmsgs_from_userid',		'phpbb_user_id'),				array('pm_deleted',				0,										''),				array('pm_new',					'privmsgs.privmsgs_type',				'phpbb_new_pm'),				array('pm_unread',				'privmsgs.privmsgs_type',				'phpbb_unread_pm'),				array('pm_replied',				0,										''),				array('pm_marked',				0,										''),				array('pm_forwarded',			0,										''),				array('folder_id',				PRIVMSGS_INBOX,							''),				'where'			=> 'privmsgs.privmsgs_type = 0 OR privmsgs.privmsgs_type = 1 OR privmsgs.privmsgs_type = 5',			),						// Outbox			array(				'target'		=> PRIVMSGS_TO_TABLE,				'primary'		=> 'privmsgs.privmsgs_id',				array('msg_id',					'privmsgs.privmsgs_id',					''),				array('user_id',				'privmsgs.privmsgs_from_userid',		'phpbb_user_id'),				array('author_id',				'privmsgs.privmsgs_from_userid',		'phpbb_user_id'),				array('pm_deleted',				0,										''),				array('pm_new',					'privmsgs.privmsgs_type',				'phpbb_new_pm'),				array('pm_unread',				'privmsgs.privmsgs_type',				'phpbb_unread_pm'),				array('pm_replied',				0,										''),				array('pm_marked',				0,										''),				array('pm_forwarded',			0,										''),				array('folder_id',				PRIVMSGS_OUTBOX,						''),				'where'			=> 'privmsgs.privmsgs_type = 1 OR privmsgs.privmsgs_type = 5',			),			// Sentbox			array(				'target'		=> PRIVMSGS_TO_TABLE,				'primary'		=> 'privmsgs.privmsgs_id',				array('msg_id',					'privmsgs.privmsgs_id',					''),				array('user_id',				'privmsgs.privmsgs_from_userid',		'phpbb_user_id'),				array('author_id',				'privmsgs.privmsgs_from_userid',		'phpbb_user_id'),				array('pm_deleted',				0,										''),				array('pm_new',					'privmsgs.privmsgs_type',				'phpbb_new_pm'),				array('pm_unread',				'privmsgs.privmsgs_type',				'phpbb_unread_pm'),				array('pm_replied',				0,										''),				array('pm_marked',				0,										''),				array('pm_forwarded',			0,										''),				array('folder_id',				PRIVMSGS_SENTBOX,						''),				'where'			=> 'privmsgs.privmsgs_type = 2',			),			// Savebox (SAVED IN)			array(				'target'		=> PRIVMSGS_TO_TABLE,				'primary'		=> 'privmsgs.privmsgs_id',				array('msg_id',					'privmsgs.privmsgs_id',					''),				array('user_id',				'privmsgs.privmsgs_to_userid',			'phpbb_user_id'),				array('author_id',				'privmsgs.privmsgs_from_userid',		'phpbb_user_id'),				array('pm_deleted',				0,										''),				array('pm_new',					'privmsgs.privmsgs_type',				'phpbb_new_pm'),				array('pm_unread',				'privmsgs.privmsgs_type',				'phpbb_unread_pm'),				array('pm_replied',				0,										''),				array('pm_marked',				0,										''),				array('pm_forwarded',			0,										''),				array('folder_id',				'privmsgs.privmsgs_to_userid',			'phpbb_get_savebox_id'),				'where'			=> 'privmsgs.privmsgs_type = 3',			),			// Savebox (SAVED OUT)			array(				'target'		=> PRIVMSGS_TO_TABLE,				'primary'		=> 'privmsgs.privmsgs_id',				array('msg_id',					'privmsgs.privmsgs_id',					''),				array('user_id',				'privmsgs.privmsgs_from_userid',		'phpbb_user_id'),				array('author_id',				'privmsgs.privmsgs_from_userid',		'phpbb_user_id'),				array('pm_deleted',				0,										''),				array('pm_new',					'privmsgs.privmsgs_type',				'phpbb_new_pm'),				array('pm_unread',				'privmsgs.privmsgs_type',				'phpbb_unread_pm'),				array('pm_replied',				0,										''),				array('pm_marked',				0,										''),				array('pm_forwarded',			0,										''),				array('folder_id',				'privmsgs.privmsgs_from_userid',		'phpbb_get_savebox_id'),				'where'			=> 'privmsgs.privmsgs_type = 4',			),			array(				'target'		=> GROUPS_TABLE,				'query_first'	=> $convert->truncate_statement . GROUPS_TABLE,				array('group_id',				'groups.group_id',					''),				array('group_type',				'groups.group_type',				'phpbb_convert_group_type'),				array('group_display',			0,									''),				array('group_name',				'groups.group_name',				'phpbb_convert_group_name'), // phpbb_set_encoding called in phpbb_convert_group_name				array('group_desc',				'groups.group_description',			'phpbb_set_encoding'),				'where'			=> 'groups.group_single_user = 0',			),			array(				'target'		=> USER_GROUP_TABLE,				'query_first'	=> $convert->truncate_statement . USER_GROUP_TABLE,				'execute_first'	=> '					add_default_groups();				',				array('group_id',		'groups.group_id',					''),				array('user_id',		'groups.group_moderator',			'phpbb_user_id'),				array('group_leader',	1,									''),				array('user_pending',	0,									''),				'where'			=> 'groups.group_single_user = 0 AND groups.group_moderator <> 0',			),			array(				'target'		=> USER_GROUP_TABLE,				array('group_id',		'user_group.group_id',				''),				array('user_id',		'user_group.user_id',				'phpbb_user_id'),				array('group_leader',	0,									''),				array('user_pending',	'user_group.user_pending',			''),				'where'			=> 'user_group.group_id = groups.group_id AND groups.group_single_user = 0 AND groups.group_moderator <> user_group.user_id',			),			array(				'target'		=> USERS_TABLE,				'primary'		=> 'users.user_id',				'query_first'	=> array(					'DELETE FROM ' . USERS_TABLE . ' WHERE user_id <> ' . ANONYMOUS,					$convert->truncate_statement . BOTS_TABLE				),								array('user_id',				'users.user_id',					'phpbb_user_id'),				array('',						'users.user_id AS poster_id',		'phpbb_user_id'),				array('user_type',				'users.user_active',				'set_user_type'),				array('group_id',				'users.user_level',					'phpbb_set_primary_group'),				array('user_regdate',			'users.user_regdate',				''),				array('username',				'users.username',					'phpbb_set_default_encoding'), // recode to utf8 with default lang				array('username_clean',			'users.username',					array('function1' => 'phpbb_set_default_encoding', 'function2' => 'utf8_clean_string')),				array('user_password',			'users.user_password',				''),				array('user_pass_convert',		1,									''),				array('user_posts',				'users.user_posts',					''),				array('user_email',				'users.user_email',					'strtolower'),				array('user_email_hash',		'users.user_email',					'gen_email_hash'),				array('user_birthday',			((defined('MOD_BIRTHDAY')) ? 'users.user_birthday' : ''),	'phpbb_get_birthday'),				array('user_lastvisit',			'users.user_lastvisit',				''),				array('user_lang',				$config['default_lang'],			''),				array('',						'users.user_lang',					''),				array('user_timezone',			'users.user_timezone',				''),				array('user_dateformat',		'users.user_dateformat',			''),				array('user_inactive_reason',	'',									'phpbb_inactive_reason'),				array('user_inactive_time',		'',									'phpbb_inactive_time'),				array('user_interests',			'users.user_interests',				array('function1' => 'phpbb_set_encoding', 'function2' => 'utf8_htmlspecialchars')),				array('user_occ',				'users.user_occ',					array('function1' => 'phpbb_set_encoding', 'function2' => 'utf8_htmlspecialchars')),				array('user_website',			'users.user_website',				'validate_website'),				array('user_jabber',			'',									''),				array('user_msnm',				'users.user_msnm',					''),				array('user_yim',				'users.user_yim',					''),				array('user_aim',				'users.user_aim',					''),				array('user_icq',				'users.user_icq',					''),				array('user_from',				'users.user_from',					array('function1' => 'phpbb_set_encoding', 'function2' => 'utf8_htmlspecialchars')),				array('user_rank',				'users.user_rank',					''),				array('user_permissions',		'',									''),				array('user_avatar',			'users.user_avatar',				'phpbb_import_avatar'),				array('user_avatar_type',		'users.user_avatar_type',			'phpbb_avatar_type'),				array('user_avatar_width',		'users.user_avatar',				'get_avatar_width'),				array('user_avatar_height',		'users.user_avatar',				'get_avatar_height'),				array('user_new_privmsg',		'users.user_new_privmsg',			''),				array('user_unread_privmsg',	0,									''), //'users.user_unread_privmsg'				array('user_last_privmsg',		'users.user_last_privmsg',			''),				array('user_emailtime',			'users.user_emailtime',				'null_to_zero'),				array('user_notify',			'users.user_notify',				''),				array('user_notify_pm',			'users.user_notify_pm',				''),				array('user_notify_type',		NOTIFY_EMAIL,						''),				array('user_allow_pm',			'users.user_allow_pm',				''),				array('user_allow_viewonline',	'users.user_allow_viewonline',		''),				array('user_allow_viewemail',	'users.user_viewemail',				''),				array('user_actkey',			'users.user_actkey',				''),				array('user_newpasswd',			'users.user_newpasswd',				''),				array('user_options',			'',									'set_user_options'),				array('',						'users.user_popup_pm AS popuppm',	''),				array('',						'users.user_allowhtml AS html',		''),				array('',						'users.user_allowbbcode AS bbcode',	''),				array('',						'users.user_allowsmile AS smile',	''),				array('',						'users.user_attachsig AS attachsig',''),				array('user_sig_bbcode_uid',		'users.user_regdate',							'make_uid'),				array('user_sig',					'users.user_sig',								'phpbb_prepare_message'),				array('',							'users.user_sig_bbcode_uid AS old_bbcode_uid',	''),				array('user_sig_bbcode_bitfield',	'',												'get_bbcode_bitfield'),				array('',							'users.user_regdate AS post_time',				''),				'where'			=> 'users.user_id <> -1',			),		),	);}?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -