mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-09 02:06:32 +02:00
Copy 3.0.x branch to trunk
git-svn-id: file:///svn/phpbb/trunk@10211 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
935
phpBB/install/convertors/convert_phpbb20.php
Normal file
935
phpBB/install/convertors/convert_phpbb20.php
Normal file
@@ -0,0 +1,935 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* @package install
|
||||
* @version $Id$
|
||||
* @copyright (c) 2006 phpBB Group
|
||||
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE to potential convertor authors. Please use this file to get
|
||||
* familiar with the structure since we added some bare explanations here.
|
||||
*
|
||||
* Since this file gets included more than once on one page you are not able to add functions to it.
|
||||
* Instead use a functions_ file.
|
||||
*
|
||||
* @ignore
|
||||
*/
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
include($phpbb_root_path . 'config.' . $phpEx);
|
||||
unset($dbpasswd);
|
||||
|
||||
/**
|
||||
* $convertor_data provides some basic information about this convertor which is
|
||||
* used on the initial list of convertors and to populate the default settings
|
||||
*/
|
||||
$convertor_data = array(
|
||||
'forum_name' => 'phpBB 2.0.x',
|
||||
'version' => '1.0.3',
|
||||
'phpbb_version' => '3.0.6',
|
||||
'author' => '<a href="http://www.phpbb.com/">phpBB Group</a>',
|
||||
'dbms' => $dbms,
|
||||
'dbhost' => $dbhost,
|
||||
'dbport' => $dbport,
|
||||
'dbuser' => $dbuser,
|
||||
'dbpasswd' => '',
|
||||
'dbname' => $dbname,
|
||||
'table_prefix' => 'phpbb_',
|
||||
'forum_path' => '../forums',
|
||||
'author_notes' => '',
|
||||
);
|
||||
|
||||
/**
|
||||
* $tables is a list of the tables (minus prefix) which we expect to find in the
|
||||
* source forum. It is used to guess the prefix if the specified prefix is incorrect
|
||||
*/
|
||||
$tables = array(
|
||||
'auth_access',
|
||||
'banlist',
|
||||
'categories',
|
||||
'disallow',
|
||||
'forum_prune',
|
||||
'forums',
|
||||
'groups',
|
||||
'posts',
|
||||
'posts_text',
|
||||
'privmsgs',
|
||||
'privmsgs_text',
|
||||
'ranks',
|
||||
'smilies',
|
||||
'topics',
|
||||
'topics_watch',
|
||||
'user_group',
|
||||
'users',
|
||||
'vote_desc',
|
||||
'vote_results',
|
||||
'vote_voters',
|
||||
'words'
|
||||
);
|
||||
|
||||
/**
|
||||
* $config_schema details how the board configuration information is stored in the source forum.
|
||||
*
|
||||
* 'table_format' can take the value 'file' to indicate a config file. In this case array_name
|
||||
* is set to indicate the name of the array the config values are stored in
|
||||
* 'table_format' can be an array if the values are stored in a table which is an assosciative array
|
||||
* (as per phpBB 2.0.x)
|
||||
* If left empty, values are assumed to be stored in a table where each config setting is
|
||||
* a column (as per phpBB 1.x)
|
||||
*
|
||||
* In either of the latter cases 'table_name' indicates the name of the table in the database
|
||||
*
|
||||
* 'settings' is an array which maps the name of the config directive in the source forum
|
||||
* to the config directive in phpBB3. It can either be a direct mapping or use a function.
|
||||
* Please note that the contents of the old config value are passed to the function, therefore
|
||||
* an in-built function requiring the variable passed by reference is not able to be used. Since
|
||||
* empty() is such a function we created the function is_empty() to be used instead.
|
||||
*/
|
||||
$config_schema = array(
|
||||
'table_name' => 'config',
|
||||
'table_format' => array('config_name' => 'config_value'),
|
||||
'settings' => array(
|
||||
'allow_bbcode' => 'allow_bbcode',
|
||||
'allow_smilies' => 'allow_smilies',
|
||||
'allow_sig' => 'allow_sig',
|
||||
'allow_namechange' => 'allow_namechange',
|
||||
'allow_avatar_local' => 'allow_avatar_local',
|
||||
'allow_avatar_remote' => 'allow_avatar_remote',
|
||||
'allow_avatar_upload' => 'allow_avatar_upload',
|
||||
'board_disable' => 'board_disable',
|
||||
'sitename' => 'phpbb_set_encoding(sitename)',
|
||||
'site_desc' => 'phpbb_set_encoding(site_desc)',
|
||||
'session_length' => 'session_length',
|
||||
'board_email_sig' => 'phpbb_set_encoding(board_email_sig)',
|
||||
'posts_per_page' => 'posts_per_page',
|
||||
'topics_per_page' => 'topics_per_page',
|
||||
'enable_confirm' => 'enable_confirm',
|
||||
'board_email_form' => 'board_email_form',
|
||||
'override_user_style' => 'override_user_style',
|
||||
'hot_threshold' => 'hot_threshold',
|
||||
'max_poll_options' => 'max_poll_options',
|
||||
'max_sig_chars' => 'max_sig_chars',
|
||||
'pm_max_msgs' => 'max_inbox_privmsgs',
|
||||
'smtp_delivery' => 'smtp_delivery',
|
||||
'smtp_host' => 'smtp_host',
|
||||
'smtp_username' => 'smtp_username',
|
||||
'smtp_password' => 'smtp_password',
|
||||
'require_activation' => 'require_activation',
|
||||
'flood_interval' => 'flood_interval',
|
||||
'avatar_filesize' => 'avatar_filesize',
|
||||
'avatar_max_width' => 'avatar_max_width',
|
||||
'avatar_max_height' => 'avatar_max_height',
|
||||
'default_dateformat' => 'default_dateformat',
|
||||
'board_timezone' => 'board_timezone',
|
||||
'allow_privmsg' => 'not(privmsg_disable)',
|
||||
'gzip_compress' => 'gzip_compress',
|
||||
'coppa_enable' => '!is_empty(coppa_mail)',
|
||||
'coppa_fax' => 'coppa_fax',
|
||||
'coppa_mail' => 'coppa_mail',
|
||||
'record_online_users' => 'record_online_users',
|
||||
'record_online_date' => 'record_online_date',
|
||||
'board_startdate' => 'board_startdate',
|
||||
)
|
||||
);
|
||||
|
||||
/**
|
||||
* $test_file is the name of a file which is present on the source
|
||||
* forum which can be used to check that the path specified by the
|
||||
* user was correct
|
||||
*/
|
||||
$test_file = 'modcp.php';
|
||||
|
||||
/**
|
||||
* If this is set then we are not generating the first page of information but getting the conversion information.
|
||||
*/
|
||||
if (!$get_info)
|
||||
{
|
||||
// Test to see if the birthday MOD is installed on the source forum
|
||||
// Niels' birthday mod
|
||||
if (get_config_value('birthday_required') !== false || get_config_value('bday_require') !== false)
|
||||
{
|
||||
define('MOD_BIRTHDAY', true);
|
||||
}
|
||||
|
||||
// TerraFrost's validated birthday mod
|
||||
if (get_config_value('bday_require') !== false)
|
||||
{
|
||||
define('MOD_BIRTHDAY_TERRA', true);
|
||||
}
|
||||
|
||||
// Test to see if the attachment MOD is installed on the source forum
|
||||
// If it is, we will convert this data as well
|
||||
$src_db->sql_return_on_error(true);
|
||||
|
||||
$sql = "SELECT config_value
|
||||
FROM {$convert->src_table_prefix}attachments_config
|
||||
WHERE config_name = 'upload_dir'";
|
||||
$result = $src_db->sql_query($sql);
|
||||
|
||||
if ($result && $row = $src_db->sql_fetchrow($result))
|
||||
{
|
||||
// Here the constant is defined
|
||||
define('MOD_ATTACHMENT', true);
|
||||
|
||||
// Here i add more tables to be checked in the old forum
|
||||
$tables += array(
|
||||
'attachments',
|
||||
'attachments_desc',
|
||||
'extensions',
|
||||
'extension_groups'
|
||||
);
|
||||
|
||||
$src_db->sql_freeresult($result);
|
||||
}
|
||||
else if ($result)
|
||||
{
|
||||
$src_db->sql_freeresult($result);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Tests for further MODs can be included here.
|
||||
* Please use constants for this, prefixing them with MOD_
|
||||
*/
|
||||
|
||||
$src_db->sql_return_on_error(false);
|
||||
|
||||
// Now let us set a temporary config variable for user id incrementing
|
||||
$sql = "SELECT user_id
|
||||
FROM {$convert->src_table_prefix}users
|
||||
WHERE user_id = 1";
|
||||
$result = $src_db->sql_query($sql);
|
||||
$user_id = (int) $src_db->sql_fetchfield('user_id');
|
||||
$src_db->sql_freeresult($result);
|
||||
|
||||
// If there is a user id 1, we need to increment user ids. :/
|
||||
if ($user_id === 1)
|
||||
{
|
||||
// Try to get the maximum user id possible...
|
||||
$sql = "SELECT MAX(user_id) AS max_user_id
|
||||
FROM {$convert->src_table_prefix}users";
|
||||
$result = $src_db->sql_query($sql);
|
||||
$user_id = (int) $src_db->sql_fetchfield('max_user_id');
|
||||
$src_db->sql_freeresult($result);
|
||||
|
||||
set_config('increment_user_id', ($user_id + 1), true);
|
||||
}
|
||||
else
|
||||
{
|
||||
set_config('increment_user_id', 0, true);
|
||||
}
|
||||
|
||||
// Overwrite maximum avatar width/height
|
||||
@define('DEFAULT_AVATAR_X_CUSTOM', get_config_value('avatar_max_width'));
|
||||
@define('DEFAULT_AVATAR_Y_CUSTOM', get_config_value('avatar_max_height'));
|
||||
|
||||
// additional table used only during conversion
|
||||
@define('USERCONV_TABLE', $table_prefix . 'userconv');
|
||||
|
||||
/**
|
||||
* Description on how to use the convertor framework.
|
||||
*
|
||||
* 'schema' Syntax Description
|
||||
* -> 'target' => Target Table. If not specified the next table will be handled
|
||||
* -> 'primary' => Primary Key. If this is specified then this table is processed in batches
|
||||
* -> 'query_first' => array('target' or 'src', Query to execute before beginning the process
|
||||
* (if more than one then specified as array))
|
||||
* -> 'function_first' => Function to execute before beginning the process (if more than one then specified as array)
|
||||
* (This is mostly useful if variables need to be given to the converting process)
|
||||
* -> 'test_file' => This is not used at the moment but should be filled with a file from the old installation
|
||||
*
|
||||
* // DB Functions
|
||||
* 'distinct' => Add DISTINCT to the select query
|
||||
* 'where' => Add WHERE to the select query
|
||||
* 'group_by' => Add GROUP BY to the select query
|
||||
* 'left_join' => Add LEFT JOIN to the select query (if more than one joins specified as array)
|
||||
* 'having' => Add HAVING to the select query
|
||||
*
|
||||
* // DB INSERT array
|
||||
* This one consist of three parameters
|
||||
* First Parameter:
|
||||
* The key need to be filled within the target table
|
||||
* If this is empty, the target table gets not assigned the source value
|
||||
* Second Parameter:
|
||||
* Source value. If the first parameter is specified, it will be assigned this value.
|
||||
* If the first parameter is empty, this only gets added to the select query
|
||||
* Third Parameter:
|
||||
* Custom Function. Function to execute while storing source value into target table.
|
||||
* The functions return value get stored.
|
||||
* The function parameter consist of the value of the second parameter.
|
||||
*
|
||||
* types:
|
||||
* - empty string == execute nothing
|
||||
* - string == function to execute
|
||||
* - array == complex execution instructions
|
||||
*
|
||||
* Complex execution instructions:
|
||||
* @todo test complex execution instructions - in theory they will work fine
|
||||
*
|
||||
* By defining an array as the third parameter you are able to define some statements to be executed. The key
|
||||
* is defining what to execute, numbers can be appended...
|
||||
*
|
||||
* 'function' => execute function
|
||||
* 'execute' => run code, whereby all occurrences of {VALUE} get replaced by the last returned value.
|
||||
* The result *must* be assigned/stored to {RESULT}.
|
||||
* 'typecast' => typecast value
|
||||
*
|
||||
* The returned variables will be made always available to the next function to continue to work with.
|
||||
*
|
||||
* example (variable inputted is an integer of 1):
|
||||
*
|
||||
* array(
|
||||
* 'function1' => 'increment_by_one', // returned variable is 2
|
||||
* 'typecast' => 'string', // typecast variable to be a string
|
||||
* 'execute' => '{RESULT} = {VALUE} . ' is good';', // returned variable is '2 is good'
|
||||
* 'function2' => 'replace_good_with_bad', // returned variable is '2 is bad'
|
||||
* ),
|
||||
*
|
||||
*/
|
||||
|
||||
$convertor = array(
|
||||
'test_file' => 'viewtopic.php',
|
||||
|
||||
'avatar_path' => get_config_value('avatar_path') . '/',
|
||||
'avatar_gallery_path' => get_config_value('avatar_gallery_path') . '/',
|
||||
'smilies_path' => get_config_value('smilies_path') . '/',
|
||||
'upload_path' => (defined('MOD_ATTACHMENT')) ? phpbb_get_files_dir() . '/' : '',
|
||||
'thumbnails' => (defined('MOD_ATTACHMENT')) ? array('thumbs/', 't_') : '',
|
||||
'ranks_path' => false, // phpBB 2.0.x had no config value for a ranks path
|
||||
|
||||
// We empty some tables to have clean data available
|
||||
'query_first' => array(
|
||||
array('target', $convert->truncate_statement . SEARCH_RESULTS_TABLE),
|
||||
array('target', $convert->truncate_statement . SEARCH_WORDLIST_TABLE),
|
||||
array('target', $convert->truncate_statement . SEARCH_WORDMATCH_TABLE),
|
||||
array('target', $convert->truncate_statement . LOG_TABLE),
|
||||
),
|
||||
|
||||
// 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.
|
||||
// Instead every file gets copied while processing the corresponding attachment entry.
|
||||
// if (defined("MOD_ATTACHMENT")) { import_attachment_files(); phpbb_copy_thumbnails(); }
|
||||
|
||||
// phpBB2 allowed some similar usernames to coexist which would have the same
|
||||
// username_clean in phpBB3 which is not possible, so we'll give the admin a list
|
||||
// of user ids and usernames and let him deicde what he wants to do with them
|
||||
'execute_first' => '
|
||||
phpbb_create_userconv_table();
|
||||
import_avatar_gallery();
|
||||
if (defined("MOD_ATTACHMENT")) phpbb_import_attach_config();
|
||||
phpbb_insert_forums();
|
||||
',
|
||||
|
||||
'execute_last' => array('
|
||||
add_bots();
|
||||
', '
|
||||
update_folder_pm_count();
|
||||
', '
|
||||
update_unread_count();
|
||||
', '
|
||||
phpbb_convert_authentication(\'start\');
|
||||
', '
|
||||
phpbb_convert_authentication(\'first\');
|
||||
', '
|
||||
phpbb_convert_authentication(\'second\');
|
||||
', '
|
||||
phpbb_convert_authentication(\'third\');
|
||||
'),
|
||||
|
||||
'schema' => array(
|
||||
array(
|
||||
'target' => USERCONV_TABLE,
|
||||
'query_first' => array('target', $convert->truncate_statement . USERCONV_TABLE),
|
||||
|
||||
|
||||
array('user_id', 'users.user_id', ''),
|
||||
array('username_clean', 'users.username', array('function1' => 'phpbb_set_encoding', 'function2' => 'utf8_clean_string')),
|
||||
),
|
||||
|
||||
array(
|
||||
'target' => (defined('MOD_ATTACHMENT')) ? ATTACHMENTS_TABLE : '',
|
||||
'primary' => 'attachments.attach_id',
|
||||
'query_first' => (defined('MOD_ATTACHMENT')) ? array('target', $convert->truncate_statement . ATTACHMENTS_TABLE) : '',
|
||||
'autoincrement' => 'attach_id',
|
||||
|
||||
array('attach_id', 'attachments.attach_id', ''),
|
||||
array('post_msg_id', 'attachments.post_id', ''),
|
||||
array('topic_id', 'posts.topic_id', ''),
|
||||
array('in_message', 0, ''),
|
||||
array('is_orphan', 0, ''),
|
||||
array('poster_id', 'attachments.user_id_1 AS poster_id', 'phpbb_user_id'),
|
||||
array('physical_filename', 'attachments_desc.physical_filename', 'import_attachment'),
|
||||
array('real_filename', 'attachments_desc.real_filename', 'phpbb_set_encoding'),
|
||||
array('download_count', 'attachments_desc.download_count', ''),
|
||||
array('attach_comment', 'attachments_desc.comment', array('function1' => 'phpbb_set_encoding', 'function2' => 'utf8_htmlspecialchars')),
|
||||
array('extension', 'attachments_desc.extension', ''),
|
||||
array('mimetype', 'attachments_desc.mimetype', ''),
|
||||
array('filesize', 'attachments_desc.filesize', ''),
|
||||
array('filetime', 'attachments_desc.filetime', ''),
|
||||
array('thumbnail', 'attachments_desc.thumbnail', ''),
|
||||
|
||||
'where' => 'attachments_desc.attach_id = attachments.attach_id AND attachments.privmsgs_id = 0 AND posts.post_id = attachments.post_id',
|
||||
'group_by' => 'attachments.attach_id'
|
||||
),
|
||||
|
||||
array(
|
||||
'target' => (defined('MOD_ATTACHMENT')) ? ATTACHMENTS_TABLE : '',
|
||||
'primary' => 'attachments.attach_id',
|
||||
'autoincrement' => 'attach_id',
|
||||
|
||||
array('attach_id', 'attachments.attach_id', ''),
|
||||
array('post_msg_id', 'attachments.privmsgs_id', ''),
|
||||
array('topic_id', 0, ''),
|
||||
array('in_message', 1, ''),
|
||||
array('is_orphan', 0, ''),
|
||||
array('poster_id', 'attachments.user_id_1 AS poster_id', 'phpbb_user_id'),
|
||||
array('physical_filename', 'attachments_desc.physical_filename', 'import_attachment'),
|
||||
array('real_filename', 'attachments_desc.real_filename', ''),
|
||||
array('download_count', 'attachments_desc.download_count', ''),
|
||||
array('attach_comment', 'attachments_desc.comment', array('function1' => 'phpbb_set_encoding', 'function2' => 'utf8_htmlspecialchars')),
|
||||
array('extension', 'attachments_desc.extension', ''),
|
||||
array('mimetype', 'attachments_desc.mimetype', ''),
|
||||
array('filesize', 'attachments_desc.filesize', ''),
|
||||
array('filetime', 'attachments_desc.filetime', ''),
|
||||
array('thumbnail', 'attachments_desc.thumbnail', ''),
|
||||
|
||||
'where' => 'attachments_desc.attach_id = attachments.attach_id AND attachments.post_id = 0',
|
||||
'group_by' => 'attachments.attach_id'
|
||||
),
|
||||
|
||||
array(
|
||||
'target' => (defined('MOD_ATTACHMENT')) ? EXTENSIONS_TABLE : '',
|
||||
'query_first' => (defined('MOD_ATTACHMENT')) ? array('target', $convert->truncate_statement . EXTENSIONS_TABLE) : '',
|
||||
'autoincrement' => 'extension_id',
|
||||
|
||||
array('extension_id', 'extensions.ext_id', ''),
|
||||
array('group_id', 'extensions.group_id', ''),
|
||||
array('extension', 'extensions.extension', ''),
|
||||
),
|
||||
|
||||
array(
|
||||
'target' => (defined('MOD_ATTACHMENT')) ? EXTENSION_GROUPS_TABLE : '',
|
||||
'query_first' => (defined('MOD_ATTACHMENT')) ? array('target', $convert->truncate_statement . EXTENSION_GROUPS_TABLE) : '',
|
||||
'autoincrement' => 'group_id',
|
||||
|
||||
array('group_id', 'extension_groups.group_id', ''),
|
||||
array('group_name', 'extension_groups.group_name', array('function1' => 'phpbb_set_encoding', 'function2' => 'utf8_htmlspecialchars')),
|
||||
array('cat_id', 'extension_groups.cat_id', 'phpbb_attachment_category'),
|
||||
array('allow_group', 'extension_groups.allow_group', ''),
|
||||
array('download_mode', 1, ''),
|
||||
array('upload_icon', '', ''),
|
||||
array('max_filesize', 'extension_groups.max_filesize', ''),
|
||||
array('allowed_forums', 'extension_groups.forum_permissions', 'phpbb_attachment_forum_perms'),
|
||||
array('allow_in_pm', 1, ''),
|
||||
),
|
||||
|
||||
array(
|
||||
'target' => BANLIST_TABLE,
|
||||
'execute_first' => 'phpbb_check_username_collisions();',
|
||||
'query_first' => array('target', $convert->truncate_statement . BANLIST_TABLE),
|
||||
|
||||
array('ban_ip', 'banlist.ban_ip', 'decode_ban_ip'),
|
||||
array('ban_userid', 'banlist.ban_userid', 'phpbb_user_id'),
|
||||
array('ban_email', 'banlist.ban_email', ''),
|
||||
array('ban_reason', '', ''),
|
||||
array('ban_give_reason', '', ''),
|
||||
|
||||
'where' => "banlist.ban_ip NOT LIKE '%.%'",
|
||||
),
|
||||
|
||||
array(
|
||||
'target' => BANLIST_TABLE,
|
||||
|
||||
array('ban_ip', 'banlist.ban_ip', ''),
|
||||
array('ban_userid', 0, ''),
|
||||
array('ban_email', '', ''),
|
||||
array('ban_reason', '', ''),
|
||||
array('ban_give_reason', '', ''),
|
||||
|
||||
'where' => "banlist.ban_ip LIKE '%.%'",
|
||||
),
|
||||
|
||||
array(
|
||||
'target' => DISALLOW_TABLE,
|
||||
'query_first' => array('target', $convert->truncate_statement . DISALLOW_TABLE),
|
||||
|
||||
array('disallow_username', 'disallow.disallow_username', 'phpbb_disallowed_username'),
|
||||
),
|
||||
|
||||
array(
|
||||
'target' => RANKS_TABLE,
|
||||
'query_first' => array('target', $convert->truncate_statement . RANKS_TABLE),
|
||||
'autoincrement' => 'rank_id',
|
||||
|
||||
array('rank_id', 'ranks.rank_id', ''),
|
||||
array('rank_title', 'ranks.rank_title', array('function1' => 'phpbb_set_default_encoding', 'function2' => 'utf8_htmlspecialchars')),
|
||||
array('rank_min', 'ranks.rank_min', array('typecast' => 'int', 'execute' => '{RESULT} = ({VALUE}[0] < 0) ? 0 : {VALUE}[0];')),
|
||||
array('rank_special', 'ranks.rank_special', ''),
|
||||
array('rank_image', 'ranks.rank_image', 'import_rank'),
|
||||
),
|
||||
|
||||
array(
|
||||
'target' => TOPICS_TABLE,
|
||||
'query_first' => array('target', $convert->truncate_statement . TOPICS_TABLE),
|
||||
'primary' => 'topics.topic_id',
|
||||
'autoincrement' => 'topic_id',
|
||||
|
||||
array('topic_id', 'topics.topic_id', ''),
|
||||
array('forum_id', 'topics.forum_id', ''),
|
||||
array('icon_id', 0, ''),
|
||||
array('topic_poster', 'topics.topic_poster AS poster_id', 'phpbb_user_id'),
|
||||
array('topic_attachment', ((defined('MOD_ATTACHMENT')) ? 'topics.topic_attachment' : 0), ''),
|
||||
array('topic_title', 'topics.topic_title', 'phpbb_set_encoding'),
|
||||
array('topic_time', 'topics.topic_time', ''),
|
||||
array('topic_views', 'topics.topic_views', ''),
|
||||
array('topic_replies', 'topics.topic_replies', ''),
|
||||
array('topic_replies_real', 'topics.topic_replies', ''),
|
||||
array('topic_last_post_id', 'topics.topic_last_post_id', ''),
|
||||
array('topic_status', 'topics.topic_status', 'is_topic_locked'),
|
||||
array('topic_moved_id', 0, ''),
|
||||
array('topic_type', 'topics.topic_type', 'phpbb_convert_topic_type'),
|
||||
array('topic_first_post_id', 'topics.topic_first_post_id', ''),
|
||||
array('topic_last_view_time', 'posts.post_time', 'intval'),
|
||||
array('poll_title', 'vote_desc.vote_text', array('function1' => 'null_to_str', 'function2' => 'phpbb_set_encoding', 'function3' => 'utf8_htmlspecialchars')),
|
||||
array('poll_start', 'vote_desc.vote_start', 'null_to_zero'),
|
||||
array('poll_length', 'vote_desc.vote_length', 'null_to_zero'),
|
||||
array('poll_max_options', 1, ''),
|
||||
array('poll_vote_change', 0, ''),
|
||||
|
||||
'left_join' => array ( 'topics LEFT JOIN vote_desc ON topics.topic_id = vote_desc.topic_id AND topics.topic_vote = 1',
|
||||
'topics LEFT JOIN posts ON topics.topic_last_post_id = posts.post_id',
|
||||
),
|
||||
'where' => 'topics.topic_moved_id = 0',
|
||||
),
|
||||
|
||||
array(
|
||||
'target' => TOPICS_TABLE,
|
||||
'primary' => 'topics.topic_id',
|
||||
'autoincrement' => 'topic_id',
|
||||
|
||||
array('topic_id', 'topics.topic_id', ''),
|
||||
array('forum_id', 'topics.forum_id', ''),
|
||||
array('icon_id', 0, ''),
|
||||
array('topic_poster', 'topics.topic_poster AS poster_id', 'phpbb_user_id'),
|
||||
array('topic_attachment', ((defined('MOD_ATTACHMENT')) ? 'topics.topic_attachment' : 0), ''),
|
||||
array('topic_title', 'topics.topic_title', 'phpbb_set_encoding'),
|
||||
array('topic_time', 'topics.topic_time', ''),
|
||||
array('topic_views', 'topics.topic_views', ''),
|
||||
array('topic_replies', 'topics.topic_replies', ''),
|
||||
array('topic_replies_real', 'topics.topic_replies', ''),
|
||||
array('topic_last_post_id', 'topics.topic_last_post_id', ''),
|
||||
array('topic_status', ITEM_MOVED, ''),
|
||||
array('topic_moved_id', 'topics.topic_moved_id', ''),
|
||||
array('topic_type', 'topics.topic_type', 'phpbb_convert_topic_type'),
|
||||
array('topic_first_post_id', 'topics.topic_first_post_id', ''),
|
||||
|
||||
array('poll_title', 'vote_desc.vote_text', array('function1' => 'null_to_str', 'function2' => 'phpbb_set_encoding', 'function3' => 'utf8_htmlspecialchars')),
|
||||
array('poll_start', 'vote_desc.vote_start', 'null_to_zero'),
|
||||
array('poll_length', 'vote_desc.vote_length', 'null_to_zero'),
|
||||
array('poll_max_options', 1, ''),
|
||||
array('poll_vote_change', 0, ''),
|
||||
|
||||
'left_join' => 'topics LEFT JOIN vote_desc ON topics.topic_id = vote_desc.topic_id AND topics.topic_vote = 1',
|
||||
'where' => 'topics.topic_moved_id <> 0',
|
||||
),
|
||||
|
||||
array(
|
||||
'target' => TOPICS_WATCH_TABLE,
|
||||
'primary' => 'topics_watch.topic_id',
|
||||
'query_first' => array('target', $convert->truncate_statement . TOPICS_WATCH_TABLE),
|
||||
|
||||
array('topic_id', 'topics_watch.topic_id', ''),
|
||||
array('user_id', 'topics_watch.user_id', 'phpbb_user_id'),
|
||||
array('notify_status', 'topics_watch.notify_status', ''),
|
||||
),
|
||||
|
||||
array(
|
||||
'target' => SMILIES_TABLE,
|
||||
'query_first' => array('target', $convert->truncate_statement . SMILIES_TABLE),
|
||||
'autoincrement' => 'smiley_id',
|
||||
|
||||
array('smiley_id', 'smilies.smilies_id', ''),
|
||||
array('code', 'smilies.code', array('function1' => 'phpbb_smilie_html_decode', 'function2' => 'phpbb_set_encoding', 'function3' => 'utf8_htmlspecialchars')),
|
||||
array('emotion', 'smilies.emoticon', 'phpbb_set_encoding'),
|
||||
array('smiley_url', 'smilies.smile_url', 'import_smiley'),
|
||||
array('smiley_width', 'smilies.smile_url', 'get_smiley_width'),
|
||||
array('smiley_height', 'smilies.smile_url', 'get_smiley_height'),
|
||||
array('smiley_order', 'smilies.smilies_id', ''),
|
||||
array('display_on_posting', 'smilies.smilies_id', 'get_smiley_display'),
|
||||
|
||||
'order_by' => 'smilies.smilies_id ASC',
|
||||
),
|
||||
|
||||
array(
|
||||
'target' => POLL_OPTIONS_TABLE,
|
||||
'primary' => 'vote_results.vote_option_id',
|
||||
'query_first' => array('target', $convert->truncate_statement . POLL_OPTIONS_TABLE),
|
||||
|
||||
array('poll_option_id', 'vote_results.vote_option_id', ''),
|
||||
array('topic_id', 'vote_desc.topic_id', ''),
|
||||
array('', 'topics.topic_poster AS poster_id', 'phpbb_user_id'),
|
||||
array('poll_option_text', 'vote_results.vote_option_text', array('function1' => 'phpbb_set_encoding', 'function2' => 'utf8_htmlspecialchars')),
|
||||
array('poll_option_total', 'vote_results.vote_result', ''),
|
||||
|
||||
'where' => 'vote_results.vote_id = vote_desc.vote_id',
|
||||
'left_join' => 'vote_desc LEFT JOIN topics ON topics.topic_id = vote_desc.topic_id',
|
||||
),
|
||||
|
||||
array(
|
||||
'target' => POLL_VOTES_TABLE,
|
||||
'primary' => 'vote_desc.topic_id',
|
||||
'query_first' => array('target', $convert->truncate_statement . POLL_VOTES_TABLE),
|
||||
|
||||
array('poll_option_id', VOTE_CONVERTED, ''),
|
||||
array('topic_id', 'vote_desc.topic_id', ''),
|
||||
array('vote_user_id', 'vote_voters.vote_user_id', 'phpbb_user_id'),
|
||||
array('vote_user_ip', 'vote_voters.vote_user_ip', 'decode_ip'),
|
||||
|
||||
'where' => 'vote_voters.vote_id = vote_desc.vote_id',
|
||||
),
|
||||
|
||||
array(
|
||||
'target' => WORDS_TABLE,
|
||||
'primary' => 'words.word_id',
|
||||
'query_first' => array('target', $convert->truncate_statement . WORDS_TABLE),
|
||||
'autoincrement' => 'word_id',
|
||||
|
||||
array('word_id', 'words.word_id', ''),
|
||||
array('word', 'words.word', 'phpbb_set_encoding'),
|
||||
array('replacement', 'words.replacement', 'phpbb_set_encoding'),
|
||||
),
|
||||
|
||||
array(
|
||||
'target' => POSTS_TABLE,
|
||||
'primary' => 'posts.post_id',
|
||||
'autoincrement' => 'post_id',
|
||||
'query_first' => array('target', $convert->truncate_statement . POSTS_TABLE),
|
||||
'execute_first' => '
|
||||
$config["max_post_chars"] = 0;
|
||||
$config["min_post_chars"] = 0;
|
||||
$config["max_quote_depth"] = 0;
|
||||
',
|
||||
|
||||
array('post_id', 'posts.post_id', ''),
|
||||
array('topic_id', 'posts.topic_id', ''),
|
||||
array('forum_id', 'posts.forum_id', ''),
|
||||
array('poster_id', 'posts.poster_id', 'phpbb_user_id'),
|
||||
array('icon_id', 0, ''),
|
||||
array('poster_ip', 'posts.poster_ip', 'decode_ip'),
|
||||
array('post_time', 'posts.post_time', ''),
|
||||
array('enable_bbcode', 'posts.enable_bbcode', ''),
|
||||
array('', 'posts.enable_html', ''),
|
||||
array('enable_smilies', 'posts.enable_smilies', ''),
|
||||
array('enable_sig', 'posts.enable_sig', ''),
|
||||
array('enable_magic_url', 1, ''),
|
||||
array('post_username', 'posts.post_username', 'phpbb_set_encoding'),
|
||||
array('post_subject', 'posts_text.post_subject', 'phpbb_set_encoding'),
|
||||
array('post_attachment', ((defined('MOD_ATTACHMENT')) ? 'posts.post_attachment' : 0), ''),
|
||||
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',
|
||||
'autoincrement' => 'msg_id',
|
||||
'query_first' => array(
|
||||
array('target', $convert->truncate_statement . PRIVMSGS_TABLE),
|
||||
array('target', $convert->truncate_statement . PRIVMSGS_RULES_TABLE),
|
||||
),
|
||||
|
||||
'execute_first' => '
|
||||
$config["max_post_chars"] = 0;
|
||||
$config["min_post_chars"] = 0;
|
||||
$config["max_quote_depth"] = 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', 'phpbb_set_encoding'), // Already specialchared in 2.0.x
|
||||
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'),
|
||||
array('bcc_address', '', ''),
|
||||
|
||||
'where' => 'privmsgs.privmsgs_id = privmsgs_text.privmsgs_text_id'
|
||||
),
|
||||
|
||||
array(
|
||||
'target' => PRIVMSGS_FOLDER_TABLE,
|
||||
'primary' => 'users.user_id',
|
||||
'query_first' => array('target', $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' => array('target', $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_id = privmsgs_text.privmsgs_text_id
|
||||
AND (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', 0, ''),
|
||||
array('pm_unread', 0, ''),
|
||||
array('pm_replied', 0, ''),
|
||||
array('pm_marked', 0, ''),
|
||||
array('pm_forwarded', 0, ''),
|
||||
array('folder_id', PRIVMSGS_OUTBOX, ''),
|
||||
|
||||
'where' => 'privmsgs.privmsgs_id = privmsgs_text.privmsgs_text_id
|
||||
AND (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_id = privmsgs_text.privmsgs_text_id
|
||||
AND 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_id = privmsgs_text.privmsgs_text_id
|
||||
AND 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_id = privmsgs_text.privmsgs_text_id
|
||||
AND privmsgs.privmsgs_type = 4',
|
||||
),
|
||||
|
||||
array(
|
||||
'target' => GROUPS_TABLE,
|
||||
'autoincrement' => 'group_id',
|
||||
'query_first' => array('target', $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_legend', 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' => array('target', $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',
|
||||
'autoincrement' => 'user_id',
|
||||
'query_first' => array(
|
||||
array('target', 'DELETE FROM ' . USERS_TABLE . ' WHERE user_id <> ' . ANONYMOUS),
|
||||
array('target', $convert->truncate_statement . BOTS_TABLE)
|
||||
),
|
||||
|
||||
'execute_last' => '
|
||||
remove_invalid_users();
|
||||
',
|
||||
|
||||
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', 'phpbb_hash'),
|
||||
array('user_pass_convert', 1, ''),
|
||||
array('user_posts', 'users.user_posts', 'intval'),
|
||||
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', 'intval'),
|
||||
array('user_lastmark', 'users.user_lastvisit', 'intval'),
|
||||
array('user_lang', $config['default_lang'], ''),
|
||||
array('', 'users.user_lang', ''),
|
||||
array('user_timezone', 'users.user_timezone', 'floatval'),
|
||||
array('user_dateformat', 'users.user_dateformat', array('function1' => 'phpbb_set_encoding', 'function2' => 'fill_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')),
|
||||
array('user_occ', 'users.user_occ', array('function1' => 'phpbb_set_encoding')),
|
||||
array('user_website', 'users.user_website', 'validate_website'),
|
||||
array('user_jabber', '', ''),
|
||||
array('user_msnm', 'users.user_msnm', array('function1' => 'phpbb_set_encoding')),
|
||||
array('user_yim', 'users.user_yim', array('function1' => 'phpbb_set_encoding')),
|
||||
array('user_aim', 'users.user_aim', array('function1' => 'phpbb_set_encoding')),
|
||||
array('user_icq', 'users.user_icq', array('function1' => 'phpbb_set_encoding')),
|
||||
array('user_from', 'users.user_from', array('function1' => 'phpbb_set_encoding')),
|
||||
array('user_rank', 'users.user_rank', 'intval'),
|
||||
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', 'phpbb_get_avatar_width'),
|
||||
array('user_avatar_height', 'users.user_avatar', 'phpbb_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', 'intval'),
|
||||
array('user_emailtime', 'users.user_emailtime', 'null_to_zero'),
|
||||
array('user_notify', 'users.user_notify', 'intval'),
|
||||
array('user_notify_pm', 'users.user_notify_pm', 'intval'),
|
||||
array('user_notify_type', NOTIFY_EMAIL, ''),
|
||||
array('user_allow_pm', 'users.user_allow_pm', 'intval'),
|
||||
array('user_allow_viewonline', 'users.user_allow_viewonline', 'intval'),
|
||||
array('user_allow_viewemail', 'users.user_viewemail', 'intval'),
|
||||
array('user_actkey', 'users.user_actkey', ''),
|
||||
array('user_newpasswd', '', ''), // Users need to re-request their password...
|
||||
array('user_style', $config['default_style'], ''),
|
||||
|
||||
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',
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
?>
|
1867
phpBB/install/convertors/functions_phpbb20.php
Normal file
1867
phpBB/install/convertors/functions_phpbb20.php
Normal file
File diff suppressed because it is too large
Load Diff
650
phpBB/install/data/confusables.php
Normal file
650
phpBB/install/data/confusables.php
Normal file
File diff suppressed because one or more lines are too long
196
phpBB/install/data/new_normalizer.php
Normal file
196
phpBB/install/data/new_normalizer.php
Normal file
@@ -0,0 +1,196 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* @package install
|
||||
* @version $Id$
|
||||
* @copyright (c) 2007 phpBB Group
|
||||
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* A wrapper function for the normalizer which takes care of including the class if required and modifies the passed strings
|
||||
* to be in NFC (Normalization Form Composition).
|
||||
*
|
||||
* @param mixed $strings a string or an array of strings to normalize
|
||||
* @return mixed the normalized content, preserving array keys if array given.
|
||||
*/
|
||||
function utf8_new_normalize_nfc($strings)
|
||||
{
|
||||
if (empty($strings))
|
||||
{
|
||||
return $strings;
|
||||
}
|
||||
|
||||
if (!is_array($strings))
|
||||
{
|
||||
utf_new_normalizer::nfc($strings);
|
||||
}
|
||||
else if (is_array($strings))
|
||||
{
|
||||
foreach ($strings as $key => $string)
|
||||
{
|
||||
if (is_array($string))
|
||||
{
|
||||
foreach ($string as $_key => $_string)
|
||||
{
|
||||
utf_new_normalizer::nfc($strings[$key][$_key]);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
utf_new_normalizer::nfc($strings[$key]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $strings;
|
||||
}
|
||||
|
||||
class utf_new_normalizer
|
||||
{
|
||||
/**
|
||||
* Validate, cleanup and normalize a string
|
||||
*
|
||||
* The ultimate convenience function! Clean up invalid UTF-8 sequences,
|
||||
* and convert to Normal Form C, canonical composition.
|
||||
*
|
||||
* @param string &$str The dirty string
|
||||
* @return string The same string, all shiny and cleaned-up
|
||||
*/
|
||||
function cleanup(&$str)
|
||||
{
|
||||
// The string below is the list of all autorized characters, sorted by frequency in latin text
|
||||
$pos = strspn($str, "\x20\x65\x69\x61\x73\x6E\x74\x72\x6F\x6C\x75\x64\x5D\x5B\x63\x6D\x70\x27\x0A\x67\x7C\x68\x76\x2E\x66\x62\x2C\x3A\x3D\x2D\x71\x31\x30\x43\x32\x2A\x79\x78\x29\x28\x4C\x39\x41\x53\x2F\x50\x22\x45\x6A\x4D\x49\x6B\x33\x3E\x35\x54\x3C\x44\x34\x7D\x42\x7B\x38\x46\x77\x52\x36\x37\x55\x47\x4E\x3B\x4A\x7A\x56\x23\x48\x4F\x57\x5F\x26\x21\x4B\x3F\x58\x51\x25\x59\x5C\x09\x5A\x2B\x7E\x5E\x24\x40\x60\x7F\x0D");
|
||||
$len = strlen($str);
|
||||
|
||||
if ($pos == $len)
|
||||
{
|
||||
// ASCII strings with no special chars return immediately
|
||||
return;
|
||||
}
|
||||
|
||||
// Note: we do not check for $GLOBALS['utf_canonical_decomp']. It is assumed they are always loaded together
|
||||
if (!isset($GLOBALS['utf_nfc_qc']))
|
||||
{
|
||||
global $phpbb_root_path, $phpEx;
|
||||
include($phpbb_root_path . 'includes/utf/data/utf_nfc_qc.' . $phpEx);
|
||||
}
|
||||
|
||||
if (!isset($GLOBALS['utf_canonical_decomp']))
|
||||
{
|
||||
global $phpbb_root_path, $phpEx;
|
||||
include($phpbb_root_path . 'includes/utf/data/utf_canonical_decomp.' . $phpEx);
|
||||
}
|
||||
|
||||
// Replace any byte in the range 0x00..0x1F, except for \r, \n and \t
|
||||
// We replace those characters with a 0xFF byte, which is illegal in UTF-8 and will in turn be replaced with a UTF replacement char
|
||||
$str = strtr(
|
||||
$str,
|
||||
"\x00\x01\x02\x03\x04\x05\x06\x07\x08\x0B\x0C\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F",
|
||||
"\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
|
||||
);
|
||||
|
||||
$str = utf_new_normalizer::recompose($str, $pos, $len, $GLOBALS['utf_nfc_qc'], $GLOBALS['utf_canonical_decomp']);
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate and normalize a UTF string to NFC
|
||||
*
|
||||
* @param string &$str Unchecked UTF string
|
||||
* @return string The string, validated and in normal form
|
||||
*/
|
||||
function nfc(&$str)
|
||||
{
|
||||
$pos = strspn($str, UTF8_ASCII_RANGE);
|
||||
$len = strlen($str);
|
||||
|
||||
if ($pos == $len)
|
||||
{
|
||||
// ASCII strings return immediately
|
||||
return;
|
||||
}
|
||||
|
||||
if (!isset($GLOBALS['utf_nfc_qc']))
|
||||
{
|
||||
global $phpbb_root_path, $phpEx;
|
||||
include($phpbb_root_path . 'includes/utf/data/utf_nfc_qc.' . $phpEx);
|
||||
}
|
||||
|
||||
if (!isset($GLOBALS['utf_canonical_decomp']))
|
||||
{
|
||||
global $phpbb_root_path, $phpEx;
|
||||
include($phpbb_root_path . 'includes/utf/data/utf_canonical_decomp.' . $phpEx);
|
||||
}
|
||||
|
||||
$str = utf_new_normalizer::recompose($str, $pos, $len, $GLOBALS['utf_nfc_qc'], $GLOBALS['utf_canonical_decomp']);
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate and normalize a UTF string to NFKC
|
||||
*
|
||||
* @param string &$str Unchecked UTF string
|
||||
* @return string The string, validated and in normal form
|
||||
*/
|
||||
function nfkc(&$str)
|
||||
{
|
||||
$pos = strspn($str, UTF8_ASCII_RANGE);
|
||||
$len = strlen($str);
|
||||
|
||||
if ($pos == $len)
|
||||
{
|
||||
// ASCII strings return immediately
|
||||
return;
|
||||
}
|
||||
|
||||
if (!isset($GLOBALS['utf_nfkc_qc']))
|
||||
{
|
||||
global $phpbb_root_path, $phpEx;
|
||||
include($phpbb_root_path . 'includes/utf/data/utf_nfkc_qc.' . $phpEx);
|
||||
}
|
||||
|
||||
if (!isset($GLOBALS['utf_compatibility_decomp']))
|
||||
{
|
||||
global $phpbb_root_path, $phpEx;
|
||||
include($phpbb_root_path . 'includes/utf/data/utf_compatibility_decomp.' . $phpEx);
|
||||
}
|
||||
|
||||
$str = utf_new_normalizer::recompose($str, $pos, $len, $GLOBALS['utf_nfkc_qc'], $GLOBALS['utf_compatibility_decomp']);
|
||||
}
|
||||
|
||||
/**
|
||||
* Recompose a UTF string
|
||||
*
|
||||
* @param string $str Unchecked UTF string
|
||||
* @param integer $pos Position of the first UTF char (in bytes)
|
||||
* @param integer $len Length of the string (in bytes)
|
||||
* @param array &$qc Quick-check array, passed by reference but never modified
|
||||
* @param array &$decomp_map Decomposition mapping, passed by reference but never modified
|
||||
* @return string The string, validated and recomposed
|
||||
*
|
||||
* @access private
|
||||
*/
|
||||
function recompose($str, $pos, $len, &$qc, &$decomp_map)
|
||||
{
|
||||
global $utf_canonical_comp;
|
||||
|
||||
// Load the canonical composition table
|
||||
if (!isset($utf_canonical_comp))
|
||||
{
|
||||
global $phpbb_root_path, $phpEx;
|
||||
include($phpbb_root_path . 'includes/utf/data/utf_canonical_comp.' . $phpEx);
|
||||
}
|
||||
|
||||
return utf_normalizer::recompose($str, $pos, $len, $qc, $decomp_map);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
3387
phpBB/install/database_update.php
Normal file
3387
phpBB/install/database_update.php
Normal file
File diff suppressed because it is too large
Load Diff
808
phpBB/install/index.php
Normal file
808
phpBB/install/index.php
Normal file
@@ -0,0 +1,808 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* @package install
|
||||
* @version $Id$
|
||||
* @copyright (c) 2005 phpBB Group
|
||||
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||
*
|
||||
*/
|
||||
|
||||
/**#@+
|
||||
* @ignore
|
||||
*/
|
||||
define('IN_PHPBB', true);
|
||||
define('IN_INSTALL', true);
|
||||
/**#@-*/
|
||||
|
||||
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './../';
|
||||
$phpEx = substr(strrchr(__FILE__, '.'), 1);
|
||||
|
||||
// Report all errors, except notices
|
||||
error_reporting(E_ALL ^ E_NOTICE);
|
||||
|
||||
// @todo Review this test and see if we can find out what it is which prevents PHP 4.2.x from even displaying the page with requirements on it
|
||||
if (version_compare(PHP_VERSION, '4.3.3') < 0)
|
||||
{
|
||||
die('You are running an unsupported PHP version. Please upgrade to PHP 4.3.3 or higher before trying to install phpBB 3.0');
|
||||
}
|
||||
|
||||
/*
|
||||
* Remove variables created by register_globals from the global scope
|
||||
* Thanks to Matt Kavanagh
|
||||
*/
|
||||
function deregister_globals()
|
||||
{
|
||||
$not_unset = array(
|
||||
'GLOBALS' => true,
|
||||
'_GET' => true,
|
||||
'_POST' => true,
|
||||
'_COOKIE' => true,
|
||||
'_REQUEST' => true,
|
||||
'_SERVER' => true,
|
||||
'_SESSION' => true,
|
||||
'_ENV' => true,
|
||||
'_FILES' => true,
|
||||
'phpEx' => true,
|
||||
'phpbb_root_path' => true
|
||||
);
|
||||
|
||||
// Not only will array_merge and array_keys give a warning if
|
||||
// a parameter is not an array, array_merge will actually fail.
|
||||
// So we check if _SESSION has been initialised.
|
||||
if (!isset($_SESSION) || !is_array($_SESSION))
|
||||
{
|
||||
$_SESSION = array();
|
||||
}
|
||||
|
||||
// Merge all into one extremely huge array; unset this later
|
||||
$input = array_merge(
|
||||
array_keys($_GET),
|
||||
array_keys($_POST),
|
||||
array_keys($_COOKIE),
|
||||
array_keys($_SERVER),
|
||||
array_keys($_SESSION),
|
||||
array_keys($_ENV),
|
||||
array_keys($_FILES)
|
||||
);
|
||||
|
||||
foreach ($input as $varname)
|
||||
{
|
||||
if (isset($not_unset[$varname]))
|
||||
{
|
||||
// Hacking attempt. No point in continuing unless it's a COOKIE
|
||||
if ($varname !== 'GLOBALS' || isset($_GET['GLOBALS']) || isset($_POST['GLOBALS']) || isset($_SERVER['GLOBALS']) || isset($_SESSION['GLOBALS']) || isset($_ENV['GLOBALS']) || isset($_FILES['GLOBALS']))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
$cookie = &$_COOKIE;
|
||||
while (isset($cookie['GLOBALS']))
|
||||
{
|
||||
foreach ($cookie['GLOBALS'] as $registered_var => $value)
|
||||
{
|
||||
if (!isset($not_unset[$registered_var]))
|
||||
{
|
||||
unset($GLOBALS[$registered_var]);
|
||||
}
|
||||
}
|
||||
$cookie = &$cookie['GLOBALS'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
unset($GLOBALS[$varname]);
|
||||
}
|
||||
|
||||
unset($input);
|
||||
}
|
||||
|
||||
// If we are on PHP >= 6.0.0 we do not need some code
|
||||
if (version_compare(PHP_VERSION, '6.0.0-dev', '>='))
|
||||
{
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
define('STRIP', false);
|
||||
}
|
||||
else
|
||||
{
|
||||
@set_magic_quotes_runtime(0);
|
||||
|
||||
// Be paranoid with passed vars
|
||||
if (@ini_get('register_globals') == '1' || strtolower(@ini_get('register_globals')) == 'on')
|
||||
{
|
||||
deregister_globals();
|
||||
}
|
||||
|
||||
define('STRIP', (get_magic_quotes_gpc()) ? true : false);
|
||||
}
|
||||
|
||||
// Try to override some limits - maybe it helps some...
|
||||
@set_time_limit(0);
|
||||
$mem_limit = @ini_get('memory_limit');
|
||||
if (!empty($mem_limit))
|
||||
{
|
||||
$unit = strtolower(substr($mem_limit, -1, 1));
|
||||
$mem_limit = (int) $mem_limit;
|
||||
|
||||
if ($unit == 'k')
|
||||
{
|
||||
$mem_limit = floor($mem_limit / 1024);
|
||||
}
|
||||
else if ($unit == 'g')
|
||||
{
|
||||
$mem_limit *= 1024;
|
||||
}
|
||||
else if (is_numeric($unit))
|
||||
{
|
||||
$mem_limit = floor((int) ($mem_limit . $unit) / 1048576);
|
||||
}
|
||||
$mem_limit = max(128, $mem_limit) . 'M';
|
||||
}
|
||||
else
|
||||
{
|
||||
$mem_limit = '128M';
|
||||
}
|
||||
@ini_set('memory_limit', $mem_limit);
|
||||
|
||||
// Include essential scripts
|
||||
require($phpbb_root_path . 'includes/functions.' . $phpEx);
|
||||
|
||||
if (file_exists($phpbb_root_path . 'includes/functions_content.' . $phpEx))
|
||||
{
|
||||
require($phpbb_root_path . 'includes/functions_content.' . $phpEx);
|
||||
}
|
||||
|
||||
include($phpbb_root_path . 'includes/auth.' . $phpEx);
|
||||
include($phpbb_root_path . 'includes/session.' . $phpEx);
|
||||
include($phpbb_root_path . 'includes/template.' . $phpEx);
|
||||
include($phpbb_root_path . 'includes/acm/acm_file.' . $phpEx);
|
||||
include($phpbb_root_path . 'includes/cache.' . $phpEx);
|
||||
include($phpbb_root_path . 'includes/functions_admin.' . $phpEx);
|
||||
include($phpbb_root_path . 'includes/utf/utf_tools.' . $phpEx);
|
||||
require($phpbb_root_path . 'includes/functions_install.' . $phpEx);
|
||||
|
||||
// Try and load an appropriate language if required
|
||||
$language = basename(request_var('language', ''));
|
||||
|
||||
if (!empty($_SERVER['HTTP_ACCEPT_LANGUAGE']) && !$language)
|
||||
{
|
||||
$accept_lang_ary = explode(',', strtolower($_SERVER['HTTP_ACCEPT_LANGUAGE']));
|
||||
foreach ($accept_lang_ary as $accept_lang)
|
||||
{
|
||||
// Set correct format ... guess full xx_yy form
|
||||
$accept_lang = substr($accept_lang, 0, 2) . '_' . substr($accept_lang, 3, 2);
|
||||
|
||||
if (file_exists($phpbb_root_path . 'language/' . $accept_lang) && is_dir($phpbb_root_path . 'language/' . $accept_lang))
|
||||
{
|
||||
$language = $accept_lang;
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
// No match on xx_yy so try xx
|
||||
$accept_lang = substr($accept_lang, 0, 2);
|
||||
if (file_exists($phpbb_root_path . 'language/' . $accept_lang) && is_dir($phpbb_root_path . 'language/' . $accept_lang))
|
||||
{
|
||||
$language = $accept_lang;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// No appropriate language found ... so let's use the first one in the language
|
||||
// dir, this may or may not be English
|
||||
if (!$language)
|
||||
{
|
||||
$dir = @opendir($phpbb_root_path . 'language');
|
||||
|
||||
if (!$dir)
|
||||
{
|
||||
die('Unable to access the language directory');
|
||||
exit;
|
||||
}
|
||||
|
||||
while (($file = readdir($dir)) !== false)
|
||||
{
|
||||
$path = $phpbb_root_path . 'language/' . $file;
|
||||
|
||||
if (!is_file($path) && !is_link($path) && file_exists($path . '/iso.txt'))
|
||||
{
|
||||
$language = $file;
|
||||
break;
|
||||
}
|
||||
}
|
||||
closedir($dir);
|
||||
}
|
||||
|
||||
if (!file_exists($phpbb_root_path . 'language/' . $language) || !is_dir($phpbb_root_path . 'language/' . $language))
|
||||
{
|
||||
die('No language found!');
|
||||
}
|
||||
|
||||
// And finally, load the relevant language files
|
||||
include($phpbb_root_path . 'language/' . $language . '/common.' . $phpEx);
|
||||
include($phpbb_root_path . 'language/' . $language . '/acp/common.' . $phpEx);
|
||||
include($phpbb_root_path . 'language/' . $language . '/acp/board.' . $phpEx);
|
||||
include($phpbb_root_path . 'language/' . $language . '/install.' . $phpEx);
|
||||
include($phpbb_root_path . 'language/' . $language . '/posting.' . $phpEx);
|
||||
|
||||
// usually we would need every single constant here - and it would be consistent. For 3.0.x, use a dirty hack... :(
|
||||
|
||||
// Define needed constants
|
||||
define('CHMOD_ALL', 7);
|
||||
define('CHMOD_READ', 4);
|
||||
define('CHMOD_WRITE', 2);
|
||||
define('CHMOD_EXECUTE', 1);
|
||||
|
||||
$mode = request_var('mode', 'overview');
|
||||
$sub = request_var('sub', '');
|
||||
|
||||
// Set PHP error handler to ours
|
||||
set_error_handler(defined('PHPBB_MSG_HANDLER') ? PHPBB_MSG_HANDLER : 'msg_handler');
|
||||
|
||||
$user = new user();
|
||||
$auth = new auth();
|
||||
$cache = new cache();
|
||||
$template = new template();
|
||||
|
||||
// Add own hook handler, if present. :o
|
||||
if (file_exists($phpbb_root_path . 'includes/hooks/index.' . $phpEx))
|
||||
{
|
||||
require($phpbb_root_path . 'includes/hooks/index.' . $phpEx);
|
||||
$phpbb_hook = new phpbb_hook(array('exit_handler', 'phpbb_user_session_handler', 'append_sid', array('template', 'display')));
|
||||
|
||||
foreach ($cache->obtain_hooks() as $hook)
|
||||
{
|
||||
@include($phpbb_root_path . 'includes/hooks/' . $hook . '.' . $phpEx);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$phpbb_hook = false;
|
||||
}
|
||||
|
||||
// Set some standard variables we want to force
|
||||
$config = array(
|
||||
'load_tplcompile' => '1'
|
||||
);
|
||||
|
||||
$template->set_custom_template('../adm/style', 'admin');
|
||||
$template->assign_var('T_TEMPLATE_PATH', '../adm/style');
|
||||
|
||||
// the acp template is never stored in the database
|
||||
$user->theme['template_storedb'] = false;
|
||||
|
||||
$install = new module();
|
||||
|
||||
$install->create('install', "index.$phpEx", $mode, $sub);
|
||||
$install->load();
|
||||
|
||||
// Generate the page
|
||||
$install->page_header();
|
||||
$install->generate_navigation();
|
||||
|
||||
$template->set_filenames(array(
|
||||
'body' => $install->get_tpl_name())
|
||||
);
|
||||
|
||||
$install->page_footer();
|
||||
|
||||
/**
|
||||
* @package install
|
||||
*/
|
||||
class module
|
||||
{
|
||||
var $id = 0;
|
||||
var $type = 'install';
|
||||
var $module_ary = array();
|
||||
var $filename;
|
||||
var $module_url = '';
|
||||
var $tpl_name = '';
|
||||
var $mode;
|
||||
var $sub;
|
||||
|
||||
/**
|
||||
* Private methods, should not be overwritten
|
||||
*/
|
||||
function create($module_type, $module_url, $selected_mod = false, $selected_submod = false)
|
||||
{
|
||||
global $db, $config, $phpEx, $phpbb_root_path;
|
||||
|
||||
$module = array();
|
||||
|
||||
// Grab module information using Bart's "neat-o-module" system (tm)
|
||||
$dir = @opendir('.');
|
||||
|
||||
if (!$dir)
|
||||
{
|
||||
$this->error('Unable to access the installation directory', __LINE__, __FILE__);
|
||||
}
|
||||
|
||||
$setmodules = 1;
|
||||
while (($file = readdir($dir)) !== false)
|
||||
{
|
||||
if (preg_match('#^install_(.*?)\.' . $phpEx . '$#', $file))
|
||||
{
|
||||
include($file);
|
||||
}
|
||||
}
|
||||
closedir($dir);
|
||||
|
||||
unset($setmodules);
|
||||
|
||||
if (!sizeof($module))
|
||||
{
|
||||
$this->error('No installation modules found', __LINE__, __FILE__);
|
||||
}
|
||||
|
||||
// Order to use and count further if modules get assigned to the same position or not having an order
|
||||
$max_module_order = 1000;
|
||||
|
||||
foreach ($module as $row)
|
||||
{
|
||||
// Module order not specified or module already assigned at this position?
|
||||
if (!isset($row['module_order']) || isset($this->module_ary[$row['module_order']]))
|
||||
{
|
||||
$row['module_order'] = $max_module_order;
|
||||
$max_module_order++;
|
||||
}
|
||||
|
||||
$this->module_ary[$row['module_order']]['name'] = $row['module_title'];
|
||||
$this->module_ary[$row['module_order']]['filename'] = $row['module_filename'];
|
||||
$this->module_ary[$row['module_order']]['subs'] = $row['module_subs'];
|
||||
$this->module_ary[$row['module_order']]['stages'] = $row['module_stages'];
|
||||
|
||||
if (strtolower($selected_mod) == strtolower($row['module_title']))
|
||||
{
|
||||
$this->id = (int) $row['module_order'];
|
||||
$this->filename = (string) $row['module_filename'];
|
||||
$this->module_url = (string) $module_url;
|
||||
$this->mode = (string) $selected_mod;
|
||||
// Check that the sub-mode specified is valid or set a default if not
|
||||
if (is_array($row['module_subs']))
|
||||
{
|
||||
$this->sub = strtolower((in_array(strtoupper($selected_submod), $row['module_subs'])) ? $selected_submod : $row['module_subs'][0]);
|
||||
}
|
||||
else if (is_array($row['module_stages']))
|
||||
{
|
||||
$this->sub = strtolower((in_array(strtoupper($selected_submod), $row['module_stages'])) ? $selected_submod : $row['module_stages'][0]);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->sub = '';
|
||||
}
|
||||
}
|
||||
} // END foreach
|
||||
} // END create
|
||||
|
||||
/**
|
||||
* Load and run the relevant module if applicable
|
||||
*/
|
||||
function load($mode = false, $run = true)
|
||||
{
|
||||
global $phpbb_root_path, $phpEx;
|
||||
|
||||
if ($run)
|
||||
{
|
||||
if (!empty($mode))
|
||||
{
|
||||
$this->mode = $mode;
|
||||
}
|
||||
|
||||
$module = $this->filename;
|
||||
if (!class_exists($module))
|
||||
{
|
||||
$this->error('Module "' . htmlspecialchars($module) . '" not accessible.', __LINE__, __FILE__);
|
||||
}
|
||||
$this->module = new $module($this);
|
||||
|
||||
if (method_exists($this->module, 'main'))
|
||||
{
|
||||
$this->module->main($this->mode, $this->sub);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Output the standard page header
|
||||
*/
|
||||
function page_header()
|
||||
{
|
||||
if (defined('HEADER_INC'))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
define('HEADER_INC', true);
|
||||
global $template, $lang, $stage, $phpbb_root_path;
|
||||
|
||||
$template->assign_vars(array(
|
||||
'L_CHANGE' => $lang['CHANGE'],
|
||||
'L_INSTALL_PANEL' => $lang['INSTALL_PANEL'],
|
||||
'L_SELECT_LANG' => $lang['SELECT_LANG'],
|
||||
'L_SKIP' => $lang['SKIP'],
|
||||
'PAGE_TITLE' => $this->get_page_title(),
|
||||
'T_IMAGE_PATH' => $phpbb_root_path . 'adm/images/',
|
||||
|
||||
'S_CONTENT_DIRECTION' => $lang['DIRECTION'],
|
||||
'S_CONTENT_FLOW_BEGIN' => ($lang['DIRECTION'] == 'ltr') ? 'left' : 'right',
|
||||
'S_CONTENT_FLOW_END' => ($lang['DIRECTION'] == 'ltr') ? 'right' : 'left',
|
||||
'S_CONTENT_ENCODING' => 'UTF-8',
|
||||
|
||||
'S_USER_LANG' => $lang['USER_LANG'],
|
||||
)
|
||||
);
|
||||
|
||||
header('Content-type: text/html; charset=UTF-8');
|
||||
header('Cache-Control: private, no-cache="set-cookie"');
|
||||
header('Expires: 0');
|
||||
header('Pragma: no-cache');
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Output the standard page footer
|
||||
*/
|
||||
function page_footer()
|
||||
{
|
||||
global $db, $template;
|
||||
|
||||
$template->display('body');
|
||||
|
||||
// Close our DB connection.
|
||||
if (!empty($db) && is_object($db))
|
||||
{
|
||||
$db->sql_close();
|
||||
}
|
||||
|
||||
if (function_exists('exit_handler'))
|
||||
{
|
||||
exit_handler();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns desired template name
|
||||
*/
|
||||
function get_tpl_name()
|
||||
{
|
||||
return $this->module->tpl_name . '.html';
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the desired page title
|
||||
*/
|
||||
function get_page_title()
|
||||
{
|
||||
global $lang;
|
||||
|
||||
if (!isset($this->module->page_title))
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
return (isset($lang[$this->module->page_title])) ? $lang[$this->module->page_title] : $this->module->page_title;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate an HTTP/1.1 header to redirect the user to another page
|
||||
* This is used during the installation when we do not have a database available to call the normal redirect function
|
||||
* @param string $page The page to redirect to relative to the installer root path
|
||||
*/
|
||||
function redirect($page)
|
||||
{
|
||||
// HTTP_HOST is having the correct browser url in most cases...
|
||||
$server_name = (!empty($_SERVER['HTTP_HOST'])) ? strtolower($_SERVER['HTTP_HOST']) : ((!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : getenv('SERVER_NAME'));
|
||||
$server_port = (!empty($_SERVER['SERVER_PORT'])) ? (int) $_SERVER['SERVER_PORT'] : (int) getenv('SERVER_PORT');
|
||||
$secure = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 1 : 0;
|
||||
|
||||
$script_name = (!empty($_SERVER['PHP_SELF'])) ? $_SERVER['PHP_SELF'] : getenv('PHP_SELF');
|
||||
if (!$script_name)
|
||||
{
|
||||
$script_name = (!empty($_SERVER['REQUEST_URI'])) ? $_SERVER['REQUEST_URI'] : getenv('REQUEST_URI');
|
||||
}
|
||||
|
||||
// Replace backslashes and doubled slashes (could happen on some proxy setups)
|
||||
$script_name = str_replace(array('\\', '//'), '/', $script_name);
|
||||
$script_path = trim(dirname($script_name));
|
||||
|
||||
$url = (($secure) ? 'https://' : 'http://') . $server_name;
|
||||
|
||||
if ($server_port && (($secure && $server_port <> 443) || (!$secure && $server_port <> 80)))
|
||||
{
|
||||
// HTTP HOST can carry a port number...
|
||||
if (strpos($server_name, ':') === false)
|
||||
{
|
||||
$url .= ':' . $server_port;
|
||||
}
|
||||
}
|
||||
|
||||
$url .= $script_path . '/' . $page;
|
||||
header('Location: ' . $url);
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate the navigation tabs
|
||||
*/
|
||||
function generate_navigation()
|
||||
{
|
||||
global $lang, $template, $phpEx, $language;
|
||||
|
||||
if (is_array($this->module_ary))
|
||||
{
|
||||
@ksort($this->module_ary);
|
||||
foreach ($this->module_ary as $cat_ary)
|
||||
{
|
||||
$cat = $cat_ary['name'];
|
||||
$l_cat = (!empty($lang['CAT_' . $cat])) ? $lang['CAT_' . $cat] : preg_replace('#_#', ' ', $cat);
|
||||
$cat = strtolower($cat);
|
||||
$url = $this->module_url . "?mode=$cat&language=$language";
|
||||
|
||||
if ($this->mode == $cat)
|
||||
{
|
||||
$template->assign_block_vars('t_block1', array(
|
||||
'L_TITLE' => $l_cat,
|
||||
'S_SELECTED' => true,
|
||||
'U_TITLE' => $url,
|
||||
));
|
||||
|
||||
if (is_array($this->module_ary[$this->id]['subs']))
|
||||
{
|
||||
$subs = $this->module_ary[$this->id]['subs'];
|
||||
foreach ($subs as $option)
|
||||
{
|
||||
$l_option = (!empty($lang['SUB_' . $option])) ? $lang['SUB_' . $option] : preg_replace('#_#', ' ', $option);
|
||||
$option = strtolower($option);
|
||||
$url = $this->module_url . '?mode=' . $this->mode . "&sub=$option&language=$language";
|
||||
|
||||
$template->assign_block_vars('l_block1', array(
|
||||
'L_TITLE' => $l_option,
|
||||
'S_SELECTED' => ($this->sub == $option),
|
||||
'U_TITLE' => $url,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
if (is_array($this->module_ary[$this->id]['stages']))
|
||||
{
|
||||
$subs = $this->module_ary[$this->id]['stages'];
|
||||
$matched = false;
|
||||
foreach ($subs as $option)
|
||||
{
|
||||
$l_option = (!empty($lang['STAGE_' . $option])) ? $lang['STAGE_' . $option] : preg_replace('#_#', ' ', $option);
|
||||
$option = strtolower($option);
|
||||
$matched = ($this->sub == $option) ? true : $matched;
|
||||
|
||||
$template->assign_block_vars('l_block2', array(
|
||||
'L_TITLE' => $l_option,
|
||||
'S_SELECTED' => ($this->sub == $option),
|
||||
'S_COMPLETE' => !$matched,
|
||||
));
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$template->assign_block_vars('t_block1', array(
|
||||
'L_TITLE' => $l_cat,
|
||||
'S_SELECTED' => false,
|
||||
'U_TITLE' => $url,
|
||||
));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Output an error message
|
||||
* If skip is true, return and continue execution, else exit
|
||||
*/
|
||||
function error($error, $line, $file, $skip = false)
|
||||
{
|
||||
global $lang, $db, $template;
|
||||
|
||||
if ($skip)
|
||||
{
|
||||
$template->assign_block_vars('checks', array(
|
||||
'S_LEGEND' => true,
|
||||
'LEGEND' => $lang['INST_ERR'],
|
||||
));
|
||||
|
||||
$template->assign_block_vars('checks', array(
|
||||
'TITLE' => basename($file) . ' [ ' . $line . ' ]',
|
||||
'RESULT' => '<b style="color:red">' . $error . '</b>',
|
||||
));
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">';
|
||||
echo '<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">';
|
||||
echo '<head>';
|
||||
echo '<meta http-equiv="content-type" content="text/html; charset=utf-8" />';
|
||||
echo '<title>' . $lang['INST_ERR_FATAL'] . '</title>';
|
||||
echo '<link href="../adm/style/admin.css" rel="stylesheet" type="text/css" media="screen" />';
|
||||
echo '</head>';
|
||||
echo '<body id="errorpage">';
|
||||
echo '<div id="wrap">';
|
||||
echo ' <div id="page-header">';
|
||||
echo ' </div>';
|
||||
echo ' <div id="page-body">';
|
||||
echo ' <div id="acp">';
|
||||
echo ' <div class="panel">';
|
||||
echo ' <span class="corners-top"><span></span></span>';
|
||||
echo ' <div id="content">';
|
||||
echo ' <h1>' . $lang['INST_ERR_FATAL'] . '</h1>';
|
||||
echo ' <p>' . $lang['INST_ERR_FATAL'] . "</p>\n";
|
||||
echo ' <p>' . basename($file) . ' [ ' . $line . " ]</p>\n";
|
||||
echo ' <p><b>' . $error . "</b></p>\n";
|
||||
echo ' </div>';
|
||||
echo ' <span class="corners-bottom"><span></span></span>';
|
||||
echo ' </div>';
|
||||
echo ' </div>';
|
||||
echo ' </div>';
|
||||
echo ' <div id="page-footer">';
|
||||
echo ' Powered by phpBB © 2000, 2002, 2005, 2007 <a href="http://www.phpbb.com/">phpBB Group</a>';
|
||||
echo ' </div>';
|
||||
echo '</div>';
|
||||
echo '</body>';
|
||||
echo '</html>';
|
||||
|
||||
if (!empty($db) && is_object($db))
|
||||
{
|
||||
$db->sql_close();
|
||||
}
|
||||
|
||||
exit_handler();
|
||||
}
|
||||
|
||||
/**
|
||||
* Output an error message for a database related problem
|
||||
* If skip is true, return and continue execution, else exit
|
||||
*/
|
||||
function db_error($error, $sql, $line, $file, $skip = false)
|
||||
{
|
||||
global $lang, $db, $template;
|
||||
|
||||
if ($skip)
|
||||
{
|
||||
$template->assign_block_vars('checks', array(
|
||||
'S_LEGEND' => true,
|
||||
'LEGEND' => $lang['INST_ERR_FATAL'],
|
||||
));
|
||||
|
||||
$template->assign_block_vars('checks', array(
|
||||
'TITLE' => basename($file) . ' [ ' . $line . ' ]',
|
||||
'RESULT' => '<b style="color:red">' . $error . '</b><br />» SQL:' . $sql,
|
||||
));
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
$template->set_filenames(array(
|
||||
'body' => 'install_error.html')
|
||||
);
|
||||
$this->page_header();
|
||||
$this->generate_navigation();
|
||||
|
||||
$template->assign_vars(array(
|
||||
'MESSAGE_TITLE' => $lang['INST_ERR_FATAL_DB'],
|
||||
'MESSAGE_TEXT' => '<p>' . basename($file) . ' [ ' . $line . ' ]</p><p>SQL : ' . $sql . '</p><p><b>' . $error . '</b></p>',
|
||||
));
|
||||
|
||||
// Rollback if in transaction
|
||||
if ($db->transaction)
|
||||
{
|
||||
$db->sql_transaction('rollback');
|
||||
}
|
||||
|
||||
$this->page_footer();
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate the relevant HTML for an input field and the associated label and explanatory text
|
||||
*/
|
||||
function input_field($name, $type, $value='', $options='')
|
||||
{
|
||||
global $lang;
|
||||
$tpl_type = explode(':', $type);
|
||||
$tpl = '';
|
||||
|
||||
switch ($tpl_type[0])
|
||||
{
|
||||
case 'text':
|
||||
case 'password':
|
||||
$size = (int) $tpl_type[1];
|
||||
$maxlength = (int) $tpl_type[2];
|
||||
|
||||
$tpl = '<input id="' . $name . '" type="' . $tpl_type[0] . '"' . (($size) ? ' size="' . $size . '"' : '') . ' maxlength="' . (($maxlength) ? $maxlength : 255) . '" name="' . $name . '" value="' . $value . '" />';
|
||||
break;
|
||||
|
||||
case 'textarea':
|
||||
$rows = (int) $tpl_type[1];
|
||||
$cols = (int) $tpl_type[2];
|
||||
|
||||
$tpl = '<textarea id="' . $name . '" name="' . $name . '" rows="' . $rows . '" cols="' . $cols . '">' . $value . '</textarea>';
|
||||
break;
|
||||
|
||||
case 'radio':
|
||||
$key_yes = ($value) ? ' checked="checked" id="' . $name . '"' : '';
|
||||
$key_no = (!$value) ? ' checked="checked" id="' . $name . '"' : '';
|
||||
|
||||
$tpl_type_cond = explode('_', $tpl_type[1]);
|
||||
$type_no = ($tpl_type_cond[0] == 'disabled' || $tpl_type_cond[0] == 'enabled') ? false : true;
|
||||
|
||||
$tpl_no = '<label><input type="radio" name="' . $name . '" value="0"' . $key_no . ' class="radio" /> ' . (($type_no) ? $lang['NO'] : $lang['DISABLED']) . '</label>';
|
||||
$tpl_yes = '<label><input type="radio" name="' . $name . '" value="1"' . $key_yes . ' class="radio" /> ' . (($type_no) ? $lang['YES'] : $lang['ENABLED']) . '</label>';
|
||||
|
||||
$tpl = ($tpl_type_cond[0] == 'yes' || $tpl_type_cond[0] == 'enabled') ? $tpl_yes . ' ' . $tpl_no : $tpl_no . ' ' . $tpl_yes;
|
||||
break;
|
||||
|
||||
case 'select':
|
||||
eval('$s_options = ' . str_replace('{VALUE}', $value, $options) . ';');
|
||||
$tpl = '<select id="' . $name . '" name="' . $name . '">' . $s_options . '</select>';
|
||||
break;
|
||||
|
||||
case 'custom':
|
||||
eval('$tpl = ' . str_replace('{VALUE}', $value, $options) . ';');
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
return $tpl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate the drop down of available language packs
|
||||
*/
|
||||
function inst_language_select($default = '')
|
||||
{
|
||||
global $phpbb_root_path, $phpEx;
|
||||
|
||||
$dir = @opendir($phpbb_root_path . 'language');
|
||||
|
||||
if (!$dir)
|
||||
{
|
||||
$this->error('Unable to access the language directory', __LINE__, __FILE__);
|
||||
}
|
||||
|
||||
while ($file = readdir($dir))
|
||||
{
|
||||
$path = $phpbb_root_path . 'language/' . $file;
|
||||
|
||||
if ($file == '.' || $file == '..' || is_link($path) || is_file($path) || $file == 'CVS')
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (file_exists($path . '/iso.txt'))
|
||||
{
|
||||
list($displayname, $localname) = @file($path . '/iso.txt');
|
||||
$lang[$localname] = $file;
|
||||
}
|
||||
}
|
||||
closedir($dir);
|
||||
|
||||
@asort($lang);
|
||||
@reset($lang);
|
||||
|
||||
$user_select = '';
|
||||
foreach ($lang as $displayname => $filename)
|
||||
{
|
||||
$selected = (strtolower($default) == strtolower($filename)) ? ' selected="selected"' : '';
|
||||
$user_select .= '<option value="' . $filename . '"' . $selected . '>' . ucwords($displayname) . '</option>';
|
||||
}
|
||||
|
||||
return $user_select;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
2114
phpBB/install/install_convert.php
Normal file
2114
phpBB/install/install_convert.php
Normal file
File diff suppressed because it is too large
Load Diff
2243
phpBB/install/install_install.php
Normal file
2243
phpBB/install/install_install.php
Normal file
File diff suppressed because it is too large
Load Diff
78
phpBB/install/install_main.php
Normal file
78
phpBB/install/install_main.php
Normal file
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* @package install
|
||||
* @version $Id$
|
||||
* @copyright (c) 2005 phpBB Group
|
||||
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
*/
|
||||
|
||||
if ( !defined('IN_INSTALL') )
|
||||
{
|
||||
// Someone has tried to access the file direct. This is not a good idea, so exit
|
||||
exit;
|
||||
}
|
||||
|
||||
if (!empty($setmodules))
|
||||
{
|
||||
$module[] = array(
|
||||
'module_type' => 'install',
|
||||
'module_title' => 'OVERVIEW',
|
||||
'module_filename' => substr(basename(__FILE__), 0, -strlen($phpEx)-1),
|
||||
'module_order' => 0,
|
||||
'module_subs' => array('INTRO', 'LICENSE', 'SUPPORT'),
|
||||
'module_stages' => '',
|
||||
'module_reqs' => ''
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Main Tab - Installation
|
||||
* @package install
|
||||
*/
|
||||
class install_main extends module
|
||||
{
|
||||
function install_main(&$p_master)
|
||||
{
|
||||
$this->p_master = &$p_master;
|
||||
}
|
||||
|
||||
function main($mode, $sub)
|
||||
{
|
||||
global $lang, $template, $language;
|
||||
|
||||
switch ($sub)
|
||||
{
|
||||
case 'intro' :
|
||||
$title = $lang['SUB_INTRO'];
|
||||
$body = $lang['OVERVIEW_BODY'];
|
||||
break;
|
||||
|
||||
case 'license' :
|
||||
$title = $lang['GPL'];
|
||||
$body = implode("<br/>\n", file('../docs/COPYING'));
|
||||
break;
|
||||
|
||||
case 'support' :
|
||||
$title = $lang['SUB_SUPPORT'];
|
||||
$body = $lang['SUPPORT_BODY'];
|
||||
break;
|
||||
}
|
||||
|
||||
$this->tpl_name = 'install_main';
|
||||
$this->page_title = $title;
|
||||
|
||||
$template->assign_vars(array(
|
||||
'TITLE' => $title,
|
||||
'BODY' => $body,
|
||||
|
||||
'S_LANG_SELECT' => '<select id="language" name="language">' . $this->p_master->inst_language_select($language) . '</select>',
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
1705
phpBB/install/install_update.php
Normal file
1705
phpBB/install/install_update.php
Normal file
File diff suppressed because it is too large
Load Diff
5
phpBB/install/phpinfo.php
Normal file
5
phpBB/install/phpinfo.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
phpinfo();
|
||||
|
||||
?>
|
1453
phpBB/install/schemas/firebird_schema.sql
Normal file
1453
phpBB/install/schemas/firebird_schema.sql
Normal file
File diff suppressed because it is too large
Load Diff
10
phpBB/install/schemas/index.htm
Normal file
10
phpBB/install/schemas/index.htm
Normal file
@@ -0,0 +1,10 @@
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
</head>
|
||||
|
||||
<body bgcolor="#FFFFFF" text="#000000">
|
||||
|
||||
</body>
|
||||
</html>
|
1740
phpBB/install/schemas/mssql_schema.sql
Normal file
1740
phpBB/install/schemas/mssql_schema.sql
Normal file
File diff suppressed because it is too large
Load Diff
1016
phpBB/install/schemas/mysql_40_schema.sql
Normal file
1016
phpBB/install/schemas/mysql_40_schema.sql
Normal file
File diff suppressed because it is too large
Load Diff
1016
phpBB/install/schemas/mysql_41_schema.sql
Normal file
1016
phpBB/install/schemas/mysql_41_schema.sql
Normal file
File diff suppressed because it is too large
Load Diff
1898
phpBB/install/schemas/oracle_schema.sql
Normal file
1898
phpBB/install/schemas/oracle_schema.sql
Normal file
File diff suppressed because it is too large
Load Diff
1291
phpBB/install/schemas/postgres_schema.sql
Normal file
1291
phpBB/install/schemas/postgres_schema.sql
Normal file
File diff suppressed because it is too large
Load Diff
829
phpBB/install/schemas/schema_data.sql
Normal file
829
phpBB/install/schemas/schema_data.sql
Normal file
@@ -0,0 +1,829 @@
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
|
||||
# POSTGRES BEGIN #
|
||||
|
||||
# -- Config
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('active_sessions', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_attachments', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_autologin', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_avatar', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_avatar_local', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_avatar_remote', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_avatar_upload', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_avatar_remote_upload', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_bbcode', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_birthdays', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_bookmarks', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_emailreuse', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_forum_notify', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_mass_pm', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_name_chars', 'USERNAME_CHARS_ANY');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_namechange', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_nocensors', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_pm_attach', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_pm_report', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_post_flash', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_post_links', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_privmsg', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_quick_reply', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_sig', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_sig_bbcode', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_sig_flash', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_sig_img', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_sig_links', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_sig_pm', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_sig_smilies', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_smilies', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_topic_notify', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('attachment_quota', '52428800');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('auth_bbcode_pm', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('auth_flash_pm', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('auth_img_pm', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('auth_method', 'db');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('auth_smilies_pm', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('avatar_filesize', '6144');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('avatar_gallery_path', 'images/avatars/gallery');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('avatar_max_height', '90');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('avatar_max_width', '90');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('avatar_min_height', '20');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('avatar_min_width', '20');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('avatar_path', 'images/avatars/upload');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('avatar_salt', 'phpbb_avatar');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('board_contact', 'contact@yourdomain.tld');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('board_disable', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('board_disable_msg', '');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('board_dst', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('board_email', 'address@yourdomain.tld');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('board_email_form', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('board_email_sig', '{L_CONFIG_BOARD_EMAIL_SIG}');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('board_hide_emails', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('board_timezone', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('browser_check', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('bump_interval', '10');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('bump_type', 'd');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('cache_gc', '7200');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('captcha_plugin', 'phpbb_captcha_nogd');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('captcha_gd', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('captcha_gd_foreground_noise', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('captcha_gd_x_grid', '25');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('captcha_gd_y_grid', '25');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('captcha_gd_wave', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('captcha_gd_3d_noise', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('captcha_gd_fonts', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('confirm_refresh', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('check_attachment_content', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('check_dnsbl', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('chg_passforce', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('cookie_domain', '');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('cookie_name', 'phpbb3');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('cookie_path', '/');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('cookie_secure', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('coppa_enable', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('coppa_fax', '');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('coppa_mail', '');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('database_gc', '604800');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('dbms_version', '');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('default_dateformat', 'D M d, Y g:i a');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('default_style', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('display_last_edited', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('display_order', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('edit_time', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('delete_time', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('email_check_mx', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('email_enable', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('email_function_name', 'mail');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('email_package_size', '50');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('enable_confirm', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('enable_pm_icons', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('enable_post_confirm', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('feed_enable', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('feed_limit', '10');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('feed_overall_forums', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('feed_overall_forums_limit', '15');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('feed_overall_topics', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('feed_overall_topics_limit', '15');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('feed_forum', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('feed_topic', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('feed_item_statistics', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('flood_interval', '15');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('force_server_vars', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('form_token_lifetime', '7200');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('form_token_mintime', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('form_token_sid_guests', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('forward_pm', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('forwarded_for_check', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('full_folder_action', '2');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('fulltext_mysql_max_word_len', '254');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('fulltext_mysql_min_word_len', '4');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('fulltext_native_common_thres', '5');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('fulltext_native_load_upd', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('fulltext_native_max_chars', '14');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('fulltext_native_min_chars', '3');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('gzip_compress', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('hot_threshold', '25');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('icons_path', 'images/icons');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('img_create_thumbnail', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('img_display_inlined', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('img_imagick', '');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('img_link_height', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('img_link_width', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('img_max_height', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('img_max_thumb_width', '400');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('img_max_width', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('img_min_thumb_filesize', '12000');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('ip_check', '3');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('jab_enable', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('jab_host', '');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('jab_password', '');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('jab_package_size', '20');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('jab_port', '5222');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('jab_use_ssl', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('jab_username', '');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('ldap_base_dn', '');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('ldap_email', '');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('ldap_password', '');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('ldap_port', '');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('ldap_server', '');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('ldap_uid', '');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('ldap_user', '');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('ldap_user_filter', '');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('limit_load', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('limit_search_load', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('load_anon_lastread', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('load_birthdays', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('load_cpf_memberlist', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('load_cpf_viewprofile', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('load_cpf_viewtopic', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('load_db_lastread', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('load_db_track', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('load_jumpbox', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('load_moderators', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('load_online', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('load_online_guests', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('load_online_time', '5');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('load_onlinetrack', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('load_search', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('load_tplcompile', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('load_user_activity', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_attachments', '3');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_attachments_pm', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_autologin_time', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_filesize', '262144');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_filesize_pm', '262144');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_login_attempts', '3');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_name_chars', '20');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_num_search_keywords', '10');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_pass_chars', '100');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_poll_options', '10');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_post_chars', '60000');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_post_font_size', '200');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_post_img_height', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_post_img_width', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_post_smilies', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_post_urls', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_quote_depth', '3');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_reg_attempts', '5');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_sig_chars', '255');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_sig_font_size', '200');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_sig_img_height', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_sig_img_width', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_sig_smilies', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_sig_urls', '5');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('min_name_chars', '3');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('min_pass_chars', '6');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('min_post_chars', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('min_search_author_chars', '3');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('mime_triggers', 'body|head|html|img|plaintext|a href|pre|script|table|title');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('new_member_post_limit', '3');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('new_member_group_default', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('override_user_style', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('pass_complex', 'PASS_TYPE_ANY');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('pm_edit_time', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('pm_max_boxes', '4');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('pm_max_msgs', '50');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('pm_max_recipients', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('posts_per_page', '10');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('print_pm', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('queue_interval', '600');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('ranks_path', 'images/ranks');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('require_activation', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('referer_validation', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('script_path', '');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('search_block_size', '250');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('search_gc', '7200');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('search_interval', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('search_anonymous_interval', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('search_type', 'fulltext_native');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('search_store_results', '1800');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('secure_allow_deny', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('secure_allow_empty_referer', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('secure_downloads', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('server_name', '');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('server_port', '');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('server_protocol', '');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('session_gc', '3600');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('session_length', '3600');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('site_desc', '{L_CONFIG_SITE_DESC}');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sitename', '{L_CONFIG_SITENAME}');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('smilies_path', 'images/smilies');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('smilies_per_page', '50');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('smtp_auth_method', 'PLAIN');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('smtp_delivery', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('smtp_host', '');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('smtp_password', '');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('smtp_port', '25');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('smtp_username', '');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('topics_per_page', '25');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('tpl_allow_php', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('upload_icons_path', 'images/upload_icons');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('upload_path', 'files');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('version', '3.0.6-RC2');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('warnings_expire_days', '90');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('warnings_gc', '14400');
|
||||
|
||||
INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('cache_last_gc', '0', 1);
|
||||
INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('cron_lock', '0', 1);
|
||||
INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('database_last_gc', '0', 1);
|
||||
INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('last_queue_run', '0', 1);
|
||||
INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('newest_user_colour', 'AA0000', 1);
|
||||
INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('newest_user_id', '2', 1);
|
||||
INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('newest_username', '', 1);
|
||||
INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('num_files', '0', 1);
|
||||
INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('num_posts', '1', 1);
|
||||
INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('num_topics', '1', 1);
|
||||
INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('num_users', '1', 1);
|
||||
INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('rand_seed', '0', 1);
|
||||
INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('rand_seed_last_update', '0', 1);
|
||||
INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('record_online_date', '0', 1);
|
||||
INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('record_online_users', '0', 1);
|
||||
INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('search_indexing_state', '', 1);
|
||||
INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('search_last_gc', '0', 1);
|
||||
INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('session_last_gc', '0', 1);
|
||||
INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('upload_dir_size', '0', 1);
|
||||
INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('warnings_last_gc', '0', 1);
|
||||
|
||||
# -- Forum related auth options
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_announce', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_attach', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_bbcode', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_bump', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_delete', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_download', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_edit', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_email', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_flash', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_icons', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_ignoreflood', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_img', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_list', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_noapprove', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_poll', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_post', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_postcount', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_print', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_read', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_reply', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_report', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_search', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_sigs', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_smilies', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_sticky', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_subscribe', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_user_lock', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_vote', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_votechg', 1);
|
||||
|
||||
# -- Moderator related auth options
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local, is_global) VALUES ('m_', 1, 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local, is_global) VALUES ('m_approve', 1, 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local, is_global) VALUES ('m_chgposter', 1, 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local, is_global) VALUES ('m_delete', 1, 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local, is_global) VALUES ('m_edit', 1, 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local, is_global) VALUES ('m_info', 1, 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local, is_global) VALUES ('m_lock', 1, 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local, is_global) VALUES ('m_merge', 1, 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local, is_global) VALUES ('m_move', 1, 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local, is_global) VALUES ('m_report', 1, 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local, is_global) VALUES ('m_split', 1, 1);
|
||||
|
||||
# -- Global moderator auth option (not a local option)
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local, is_global) VALUES ('m_ban', 0, 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local, is_global) VALUES ('m_warn', 0, 1);
|
||||
|
||||
# -- Admin related auth options
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_aauth', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_attach', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_authgroups', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_authusers', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_backup', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_ban', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_bbcode', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_board', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_bots', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_clearlogs', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_email', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_fauth', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_forum', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_forumadd', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_forumdel', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_group', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_groupadd', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_groupdel', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_icons', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_jabber', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_language', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_mauth', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_modules', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_names', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_phpinfo', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_profile', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_prune', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_ranks', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_reasons', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_roles', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_search', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_server', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_styles', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_switchperm', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_uauth', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_user', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_userdel', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_viewauth', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_viewlogs', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_words', 1);
|
||||
|
||||
# -- User related auth options
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_attach', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_chgavatar', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_chgcensors', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_chgemail', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_chggrp', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_chgname', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_chgpasswd', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_download', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_hideonline', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_ignoreflood', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_masspm', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_masspm_group', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_pm_attach', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_pm_bbcode', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_pm_delete', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_pm_download', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_pm_edit', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_pm_emailpm', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_pm_flash', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_pm_forward', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_pm_img', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_pm_printpm', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_pm_smilies', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_readpm', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_savedrafts', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_search', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_sendemail', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_sendim', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_sendpm', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_sig', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_viewonline', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_viewprofile', 1);
|
||||
|
||||
|
||||
# -- standard auth roles
|
||||
INSERT INTO phpbb_acl_roles (role_name, role_description, role_type, role_order) VALUES ('ROLE_ADMIN_STANDARD', 'ROLE_DESCRIPTION_ADMIN_STANDARD', 'a_', 1);
|
||||
INSERT INTO phpbb_acl_roles (role_name, role_description, role_type, role_order) VALUES ('ROLE_ADMIN_FORUM', 'ROLE_DESCRIPTION_ADMIN_FORUM', 'a_', 3);
|
||||
INSERT INTO phpbb_acl_roles (role_name, role_description, role_type, role_order) VALUES ('ROLE_ADMIN_USERGROUP', 'ROLE_DESCRIPTION_ADMIN_USERGROUP', 'a_', 4);
|
||||
INSERT INTO phpbb_acl_roles (role_name, role_description, role_type, role_order) VALUES ('ROLE_ADMIN_FULL', 'ROLE_DESCRIPTION_ADMIN_FULL', 'a_', 2);
|
||||
INSERT INTO phpbb_acl_roles (role_name, role_description, role_type, role_order) VALUES ('ROLE_USER_FULL', 'ROLE_DESCRIPTION_USER_FULL', 'u_', 3);
|
||||
INSERT INTO phpbb_acl_roles (role_name, role_description, role_type, role_order) VALUES ('ROLE_USER_STANDARD', 'ROLE_DESCRIPTION_USER_STANDARD', 'u_', 1);
|
||||
INSERT INTO phpbb_acl_roles (role_name, role_description, role_type, role_order) VALUES ('ROLE_USER_LIMITED', 'ROLE_DESCRIPTION_USER_LIMITED', 'u_', 2);
|
||||
INSERT INTO phpbb_acl_roles (role_name, role_description, role_type, role_order) VALUES ('ROLE_USER_NOPM', 'ROLE_DESCRIPTION_USER_NOPM', 'u_', 4);
|
||||
INSERT INTO phpbb_acl_roles (role_name, role_description, role_type, role_order) VALUES ('ROLE_USER_NOAVATAR', 'ROLE_DESCRIPTION_USER_NOAVATAR', 'u_', 5);
|
||||
INSERT INTO phpbb_acl_roles (role_name, role_description, role_type, role_order) VALUES ('ROLE_MOD_FULL', 'ROLE_DESCRIPTION_MOD_FULL', 'm_', 3);
|
||||
INSERT INTO phpbb_acl_roles (role_name, role_description, role_type, role_order) VALUES ('ROLE_MOD_STANDARD', 'ROLE_DESCRIPTION_MOD_STANDARD', 'm_', 1);
|
||||
INSERT INTO phpbb_acl_roles (role_name, role_description, role_type, role_order) VALUES ('ROLE_MOD_SIMPLE', 'ROLE_DESCRIPTION_MOD_SIMPLE', 'm_', 2);
|
||||
INSERT INTO phpbb_acl_roles (role_name, role_description, role_type, role_order) VALUES ('ROLE_MOD_QUEUE', 'ROLE_DESCRIPTION_MOD_QUEUE', 'm_', 4);
|
||||
INSERT INTO phpbb_acl_roles (role_name, role_description, role_type, role_order) VALUES ('ROLE_FORUM_FULL', 'ROLE_DESCRIPTION_FORUM_FULL', 'f_', 7);
|
||||
INSERT INTO phpbb_acl_roles (role_name, role_description, role_type, role_order) VALUES ('ROLE_FORUM_STANDARD', 'ROLE_DESCRIPTION_FORUM_STANDARD', 'f_', 5);
|
||||
INSERT INTO phpbb_acl_roles (role_name, role_description, role_type, role_order) VALUES ('ROLE_FORUM_NOACCESS', 'ROLE_DESCRIPTION_FORUM_NOACCESS', 'f_', 1);
|
||||
INSERT INTO phpbb_acl_roles (role_name, role_description, role_type, role_order) VALUES ('ROLE_FORUM_READONLY', 'ROLE_DESCRIPTION_FORUM_READONLY', 'f_', 2);
|
||||
INSERT INTO phpbb_acl_roles (role_name, role_description, role_type, role_order) VALUES ('ROLE_FORUM_LIMITED', 'ROLE_DESCRIPTION_FORUM_LIMITED', 'f_', 3);
|
||||
INSERT INTO phpbb_acl_roles (role_name, role_description, role_type, role_order) VALUES ('ROLE_FORUM_BOT', 'ROLE_DESCRIPTION_FORUM_BOT', 'f_', 9);
|
||||
INSERT INTO phpbb_acl_roles (role_name, role_description, role_type, role_order) VALUES ('ROLE_FORUM_ONQUEUE', 'ROLE_DESCRIPTION_FORUM_ONQUEUE', 'f_', 8);
|
||||
INSERT INTO phpbb_acl_roles (role_name, role_description, role_type, role_order) VALUES ('ROLE_FORUM_POLLS', 'ROLE_DESCRIPTION_FORUM_POLLS', 'f_', 6);
|
||||
INSERT INTO phpbb_acl_roles (role_name, role_description, role_type, role_order) VALUES ('ROLE_FORUM_LIMITED_POLLS', 'ROLE_DESCRIPTION_FORUM_LIMITED_POLLS', 'f_', 4);
|
||||
|
||||
# 23
|
||||
INSERT INTO phpbb_acl_roles (role_name, role_description, role_type, role_order) VALUES ('ROLE_USER_NEW_MEMBER', 'ROLE_DESCRIPTION_USER_NEW_MEMBER', 'u_', 6);
|
||||
|
||||
# 24
|
||||
INSERT INTO phpbb_acl_roles (role_name, role_description, role_type, role_order) VALUES ('ROLE_FORUM_NEW_MEMBER', 'ROLE_DESCRIPTION_FORUM_NEW_MEMBER', 'f_', 10);
|
||||
|
||||
# -- phpbb_styles
|
||||
INSERT INTO phpbb_styles (style_name, style_copyright, style_active, template_id, theme_id, imageset_id) VALUES ('prosilver', '© phpBB Group', 1, 1, 1, 1);
|
||||
|
||||
# -- phpbb_styles_imageset
|
||||
INSERT INTO phpbb_styles_imageset (imageset_name, imageset_copyright, imageset_path) VALUES ('prosilver', '© phpBB Group', 'prosilver');
|
||||
|
||||
# -- phpbb_styles_imageset_data
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('site_logo', 'site_logo.gif', '', 52, 139, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('forum_link', 'forum_link.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('forum_read', 'forum_read.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('forum_read_locked', 'forum_read_locked.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('forum_read_subforum', 'forum_read_subforum.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('forum_unread', 'forum_unread.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('forum_unread_locked', 'forum_unread_locked.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('forum_unread_subforum', 'forum_unread_subforum.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('topic_moved', 'topic_moved.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('topic_read', 'topic_read.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('topic_read_mine', 'topic_read_mine.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('topic_read_hot', 'topic_read_hot.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('topic_read_hot_mine', 'topic_read_hot_mine.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('topic_read_locked', 'topic_read_locked.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('topic_read_locked_mine', 'topic_read_locked_mine.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('topic_unread', 'topic_unread.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('topic_unread_mine', 'topic_unread_mine.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('topic_unread_hot', 'topic_unread_hot.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('topic_unread_hot_mine', 'topic_unread_hot_mine.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('topic_unread_locked', 'topic_unread_locked.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('topic_unread_locked_mine', 'topic_unread_locked_mine.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('sticky_read', 'sticky_read.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('sticky_read_mine', 'sticky_read_mine.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('sticky_read_locked', 'sticky_read_locked.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('sticky_read_locked_mine', 'sticky_read_locked_mine.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('sticky_unread', 'sticky_unread.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('sticky_unread_mine', 'sticky_unread_mine.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('sticky_unread_locked', 'sticky_unread_locked.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('sticky_unread_locked_mine', 'sticky_unread_locked_mine.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('announce_read', 'announce_read.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('announce_read_mine', 'announce_read_mine.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('announce_read_locked', 'announce_read_locked.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('announce_read_locked_mine', 'announce_read_locked_mine.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('announce_unread', 'announce_unread.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('announce_unread_mine', 'announce_unread_mine.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('announce_unread_locked', 'announce_unread_locked.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('announce_unread_locked_mine', 'announce_unread_locked_mine.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('global_read', 'announce_read.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('global_read_mine', 'announce_read_mine.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('global_read_locked', 'announce_read_locked.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('global_read_locked_mine', 'announce_read_locked_mine.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('global_unread', 'announce_unread.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('global_unread_mine', 'announce_unread_mine.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('global_unread_locked', 'announce_unread_locked.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('global_unread_locked_mine', 'announce_unread_locked_mine.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('pm_read', 'topic_read.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('pm_unread', 'topic_unread.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('icon_back_top', 'icon_back_top.gif', '', 11, 11, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('icon_contact_aim', 'icon_contact_aim.gif', '', 20, 20, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('icon_contact_email', 'icon_contact_email.gif', '', 20, 20, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('icon_contact_icq', 'icon_contact_icq.gif', '', 20, 20, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('icon_contact_jabber', 'icon_contact_jabber.gif', '', 20, 20, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('icon_contact_msnm', 'icon_contact_msnm.gif', '', 20, 20, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('icon_contact_www', 'icon_contact_www.gif', '', 20, 20, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('icon_contact_yahoo', 'icon_contact_yahoo.gif', '', 20, 20, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('icon_post_delete', 'icon_post_delete.gif', '', 20, 20, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('icon_post_info', 'icon_post_info.gif', '', 20, 20, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('icon_post_report', 'icon_post_report.gif', '', 20, 20, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('icon_post_target', 'icon_post_target.gif', '', 9, 11, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('icon_post_target_unread', 'icon_post_target_unread.gif', '', 9, 11, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('icon_topic_attach', 'icon_topic_attach.gif', '', 10, 7, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('icon_topic_latest', 'icon_topic_latest.gif', '', 9, 11, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('icon_topic_newest', 'icon_topic_newest.gif', '', 9, 11, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('icon_topic_reported', 'icon_topic_reported.gif', '', 14, 16, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('icon_topic_unapproved', 'icon_topic_unapproved.gif', '', 14, 16, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('icon_user_warn', 'icon_user_warn.gif', '', 20, 20, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('subforum_read', 'subforum_read.gif', '', 9, 11, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('subforum_unread', 'subforum_unread.gif', '', 9, 11, 1);
|
||||
|
||||
# -- phpbb_styles_template
|
||||
INSERT INTO phpbb_styles_template (template_name, template_copyright, template_path, bbcode_bitfield, template_storedb) VALUES ('prosilver', '© phpBB Group', 'prosilver', 'lNg=', 0);
|
||||
|
||||
# -- phpbb_styles_theme
|
||||
INSERT INTO phpbb_styles_theme (theme_name, theme_copyright, theme_path, theme_storedb, theme_data) VALUES ('prosilver', '© phpBB Group', 'prosilver', 1, '');
|
||||
|
||||
# -- Forums
|
||||
INSERT INTO phpbb_forums (forum_name, forum_desc, left_id, right_id, parent_id, forum_type, forum_posts, forum_topics, forum_topics_real, forum_last_post_id, forum_last_poster_id, forum_last_poster_name, forum_last_poster_colour, forum_last_post_time, forum_link, forum_password, forum_image, forum_rules, forum_rules_link, forum_rules_uid, forum_desc_uid, prune_days, prune_viewed, forum_parents) VALUES ('{L_FORUMS_FIRST_CATEGORY}', '', 1, 4, 0, 0, 1, 1, 1, 1, 2, 'Admin', 'AA0000', 972086460, '', '', '', '', '', '', '', 0, 0, '');
|
||||
|
||||
INSERT INTO phpbb_forums (forum_name, forum_desc, left_id, right_id, parent_id, forum_type, forum_posts, forum_topics, forum_topics_real, forum_last_post_id, forum_last_poster_id, forum_last_poster_name, forum_last_poster_colour, forum_last_post_subject, forum_last_post_time, forum_link, forum_password, forum_image, forum_rules, forum_rules_link, forum_rules_uid, forum_desc_uid, prune_days, prune_viewed, forum_parents) VALUES ('{L_FORUMS_TEST_FORUM_TITLE}', '{L_FORUMS_TEST_FORUM_DESC}', 2, 3, 1, 1, 1, 1, 1, 1, 2, 'Admin', 'AA0000', '{L_TOPICS_TOPIC_TITLE}', 972086460, '', '', '', '', '', '', '', 0, 0, '');
|
||||
|
||||
# -- Users / Anonymous user
|
||||
INSERT INTO phpbb_users (user_type, group_id, username, username_clean, user_regdate, user_password, user_email, user_lang, user_style, user_rank, user_colour, user_posts, user_permissions, user_ip, user_birthday, user_lastpage, user_last_confirm_key, user_post_sortby_type, user_post_sortby_dir, user_topic_sortby_type, user_topic_sortby_dir, user_avatar, user_sig, user_sig_bbcode_uid, user_from, user_icq, user_aim, user_yim, user_msnm, user_jabber, user_website, user_occ, user_interests, user_actkey, user_newpasswd, user_allow_massemail) VALUES (2, 1, 'Anonymous', 'anonymous', 0, '', '', 'en', 1, 0, '', 0, '', '', '', '', '', 't', 'a', 't', 'd', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0);
|
||||
|
||||
# -- username: Admin password: admin (change this or remove it once everything is working!)
|
||||
INSERT INTO phpbb_users (user_type, group_id, username, username_clean, user_regdate, user_password, user_email, user_lang, user_style, user_rank, user_colour, user_posts, user_permissions, user_ip, user_birthday, user_lastpage, user_last_confirm_key, user_post_sortby_type, user_post_sortby_dir, user_topic_sortby_type, user_topic_sortby_dir, user_avatar, user_sig, user_sig_bbcode_uid, user_from, user_icq, user_aim, user_yim, user_msnm, user_jabber, user_website, user_occ, user_interests, user_actkey, user_newpasswd) VALUES (3, 5, 'Admin', 'admin', 0, '21232f297a57a5a743894a0e4a801fc3', 'admin@yourdomain.com', 'en', 1, 1, 'AA0000', 1, '', '', '', '', '', 't', 'a', 't', 'd', '', '', '', '', '', '', '', '', '', '', '', '', '', '');
|
||||
|
||||
# -- Groups
|
||||
INSERT INTO phpbb_groups (group_name, group_type, group_founder_manage, group_colour, group_legend, group_avatar, group_desc, group_desc_uid, group_max_recipients) VALUES ('GUESTS', 3, 0, '', 0, '', '', '', 5);
|
||||
INSERT INTO phpbb_groups (group_name, group_type, group_founder_manage, group_colour, group_legend, group_avatar, group_desc, group_desc_uid, group_max_recipients) VALUES ('REGISTERED', 3, 0, '', 0, '', '', '', 5);
|
||||
INSERT INTO phpbb_groups (group_name, group_type, group_founder_manage, group_colour, group_legend, group_avatar, group_desc, group_desc_uid, group_max_recipients) VALUES ('REGISTERED_COPPA', 3, 0, '', 0, '', '', '', 5);
|
||||
INSERT INTO phpbb_groups (group_name, group_type, group_founder_manage, group_colour, group_legend, group_avatar, group_desc, group_desc_uid, group_max_recipients) VALUES ('GLOBAL_MODERATORS', 3, 0, '00AA00', 1, '', '', '', 0);
|
||||
INSERT INTO phpbb_groups (group_name, group_type, group_founder_manage, group_colour, group_legend, group_avatar, group_desc, group_desc_uid, group_max_recipients) VALUES ('ADMINISTRATORS', 3, 1, 'AA0000', 1, '', '', '', 0);
|
||||
INSERT INTO phpbb_groups (group_name, group_type, group_founder_manage, group_colour, group_legend, group_avatar, group_desc, group_desc_uid, group_max_recipients) VALUES ('BOTS', 3, 0, '9E8DA7', 0, '', '', '', 5);
|
||||
INSERT INTO phpbb_groups (group_name, group_type, group_founder_manage, group_colour, group_legend, group_avatar, group_desc, group_desc_uid, group_max_recipients) VALUES ('NEWLY_REGISTERED', 3, 0, '', 0, '', '', '', 5);
|
||||
|
||||
# -- User -> Group
|
||||
INSERT INTO phpbb_user_group (group_id, user_id, user_pending, group_leader) VALUES (1, 1, 0, 0);
|
||||
INSERT INTO phpbb_user_group (group_id, user_id, user_pending, group_leader) VALUES (2, 2, 0, 0);
|
||||
INSERT INTO phpbb_user_group (group_id, user_id, user_pending, group_leader) VALUES (4, 2, 0, 0);
|
||||
INSERT INTO phpbb_user_group (group_id, user_id, user_pending, group_leader) VALUES (5, 2, 0, 1);
|
||||
|
||||
# -- Ranks
|
||||
INSERT INTO phpbb_ranks (rank_title, rank_min, rank_special, rank_image) VALUES ('{L_RANKS_SITE_ADMIN_TITLE}', 0, 1, '');
|
||||
|
||||
# -- Roles data
|
||||
|
||||
# Standard Admin (a_)
|
||||
INSERT INTO phpbb_acl_roles_data (role_id, auth_option_id, auth_setting) SELECT 1, auth_option_id, 1 FROM phpbb_acl_options WHERE auth_option LIKE 'a_%' AND auth_option NOT IN ('a_switchperm', 'a_jabber', 'a_phpinfo', 'a_server', 'a_backup', 'a_styles', 'a_clearlogs', 'a_modules', 'a_language', 'a_email', 'a_bots', 'a_search', 'a_aauth', 'a_roles');
|
||||
|
||||
# Forum admin (a_)
|
||||
INSERT INTO phpbb_acl_roles_data (role_id, auth_option_id, auth_setting) SELECT 2, auth_option_id, 1 FROM phpbb_acl_options WHERE auth_option LIKE 'a_%' AND auth_option IN ('a_', 'a_authgroups', 'a_authusers', 'a_fauth', 'a_forum', 'a_forumadd', 'a_forumdel', 'a_mauth', 'a_prune', 'a_uauth', 'a_viewauth', 'a_viewlogs');
|
||||
|
||||
# User and Groups Admin (a_)
|
||||
INSERT INTO phpbb_acl_roles_data (role_id, auth_option_id, auth_setting) SELECT 3, auth_option_id, 1 FROM phpbb_acl_options WHERE auth_option LIKE 'a_%' AND auth_option IN ('a_', 'a_authgroups', 'a_authusers', 'a_ban', 'a_group', 'a_groupadd', 'a_groupdel', 'a_ranks', 'a_uauth', 'a_user', 'a_viewauth', 'a_viewlogs');
|
||||
|
||||
# Full Admin (a_)
|
||||
INSERT INTO phpbb_acl_roles_data (role_id, auth_option_id, auth_setting) SELECT 4, auth_option_id, 1 FROM phpbb_acl_options WHERE auth_option LIKE 'a_%';
|
||||
|
||||
# All Features (u_)
|
||||
INSERT INTO phpbb_acl_roles_data (role_id, auth_option_id, auth_setting) SELECT 5, auth_option_id, 1 FROM phpbb_acl_options WHERE auth_option LIKE 'u_%';
|
||||
|
||||
# Standard Features (u_)
|
||||
INSERT INTO phpbb_acl_roles_data (role_id, auth_option_id, auth_setting) SELECT 6, auth_option_id, 1 FROM phpbb_acl_options WHERE auth_option LIKE 'u_%' AND auth_option NOT IN ('u_viewonline', 'u_chggrp', 'u_chgname', 'u_ignoreflood', 'u_pm_flash', 'u_pm_forward');
|
||||
|
||||
# Limited Features (u_)
|
||||
INSERT INTO phpbb_acl_roles_data (role_id, auth_option_id, auth_setting) SELECT 7, auth_option_id, 1 FROM phpbb_acl_options WHERE auth_option LIKE 'u_%' AND auth_option NOT IN ('u_attach', 'u_viewonline', 'u_chggrp', 'u_chgname', 'u_ignoreflood', 'u_pm_attach', 'u_pm_emailpm', 'u_pm_flash', 'u_savedrafts', 'u_search', 'u_sendemail', 'u_sendim', 'u_masspm', 'u_masspm_group');
|
||||
|
||||
# No Private Messages (u_)
|
||||
INSERT INTO phpbb_acl_roles_data (role_id, auth_option_id, auth_setting) SELECT 8, auth_option_id, 1 FROM phpbb_acl_options WHERE auth_option LIKE 'u_%' AND auth_option IN ('u_', 'u_chgavatar', 'u_chgcensors', 'u_chgemail', 'u_chgpasswd', 'u_download', 'u_hideonline', 'u_sig', 'u_viewprofile');
|
||||
INSERT INTO phpbb_acl_roles_data (role_id, auth_option_id, auth_setting) SELECT 8, auth_option_id, 0 FROM phpbb_acl_options WHERE auth_option LIKE 'u_%' AND auth_option IN ('u_readpm', 'u_sendpm', 'u_masspm', 'u_masspm_group');
|
||||
|
||||
# No Avatar (u_)
|
||||
INSERT INTO phpbb_acl_roles_data (role_id, auth_option_id, auth_setting) SELECT 9, auth_option_id, 1 FROM phpbb_acl_options WHERE auth_option LIKE 'u_%' AND auth_option NOT IN ('u_attach', 'u_chgavatar', 'u_viewonline', 'u_chggrp', 'u_chgname', 'u_ignoreflood', 'u_pm_attach', 'u_pm_emailpm', 'u_pm_flash', 'u_savedrafts', 'u_search', 'u_sendemail', 'u_sendim', 'u_masspm', 'u_masspm_group');
|
||||
INSERT INTO phpbb_acl_roles_data (role_id, auth_option_id, auth_setting) SELECT 9, auth_option_id, 0 FROM phpbb_acl_options WHERE auth_option LIKE 'u_%' AND auth_option IN ('u_chgavatar', 'u_masspm', 'u_masspm_group');
|
||||
|
||||
# Full Moderator (m_)
|
||||
INSERT INTO phpbb_acl_roles_data (role_id, auth_option_id, auth_setting) SELECT 10, auth_option_id, 1 FROM phpbb_acl_options WHERE auth_option LIKE 'm_%';
|
||||
|
||||
# Standard Moderator (m_)
|
||||
INSERT INTO phpbb_acl_roles_data (role_id, auth_option_id, auth_setting) SELECT 11, auth_option_id, 1 FROM phpbb_acl_options WHERE auth_option LIKE 'm_%' AND auth_option NOT IN ('m_ban', 'm_chgposter');
|
||||
|
||||
# Simple Moderator (m_)
|
||||
INSERT INTO phpbb_acl_roles_data (role_id, auth_option_id, auth_setting) SELECT 12, auth_option_id, 1 FROM phpbb_acl_options WHERE auth_option LIKE 'm_%' AND auth_option IN ('m_', 'm_delete', 'm_edit', 'm_info', 'm_report');
|
||||
|
||||
# Queue Moderator (m_)
|
||||
INSERT INTO phpbb_acl_roles_data (role_id, auth_option_id, auth_setting) SELECT 13, auth_option_id, 1 FROM phpbb_acl_options WHERE auth_option LIKE 'm_%' AND auth_option IN ('m_', 'm_approve', 'm_edit');
|
||||
|
||||
# Full Access (f_)
|
||||
INSERT INTO phpbb_acl_roles_data (role_id, auth_option_id, auth_setting) SELECT 14, auth_option_id, 1 FROM phpbb_acl_options WHERE auth_option LIKE 'f_%';
|
||||
|
||||
# Standard Access (f_)
|
||||
INSERT INTO phpbb_acl_roles_data (role_id, auth_option_id, auth_setting) SELECT 15, auth_option_id, 1 FROM phpbb_acl_options WHERE auth_option LIKE 'f_%' AND auth_option NOT IN ('f_announce', 'f_flash', 'f_ignoreflood', 'f_poll', 'f_sticky', 'f_user_lock');
|
||||
|
||||
# No Access (f_)
|
||||
INSERT INTO phpbb_acl_roles_data (role_id, auth_option_id, auth_setting) SELECT 16, auth_option_id, 0 FROM phpbb_acl_options WHERE auth_option = 'f_';
|
||||
|
||||
# Read Only Access (f_)
|
||||
INSERT INTO phpbb_acl_roles_data (role_id, auth_option_id, auth_setting) SELECT 17, auth_option_id, 1 FROM phpbb_acl_options WHERE auth_option LIKE 'f_%' AND auth_option IN ('f_', 'f_download', 'f_list', 'f_read', 'f_search', 'f_subscribe', 'f_print');
|
||||
|
||||
# Limited Access (f_)
|
||||
INSERT INTO phpbb_acl_roles_data (role_id, auth_option_id, auth_setting) SELECT 18, auth_option_id, 1 FROM phpbb_acl_options WHERE auth_option LIKE 'f_%' AND auth_option NOT IN ('f_announce', 'f_attach', 'f_bump', 'f_delete', 'f_flash', 'f_icons', 'f_ignoreflood', 'f_poll', 'f_sticky', 'f_user_lock', 'f_votechg');
|
||||
|
||||
# Bot Access (f_)
|
||||
INSERT INTO phpbb_acl_roles_data (role_id, auth_option_id, auth_setting) SELECT 19, auth_option_id, 1 FROM phpbb_acl_options WHERE auth_option LIKE 'f_%' AND auth_option IN ('f_', 'f_download', 'f_list', 'f_read', 'f_print');
|
||||
|
||||
# On Moderation Queue (f_)
|
||||
INSERT INTO phpbb_acl_roles_data (role_id, auth_option_id, auth_setting) SELECT 20, auth_option_id, 1 FROM phpbb_acl_options WHERE auth_option LIKE 'f_%' AND auth_option NOT IN ('f_announce', 'f_bump', 'f_delete', 'f_flash', 'f_icons', 'f_ignoreflood', 'f_poll', 'f_sticky', 'f_user_lock', 'f_votechg', 'f_noapprove');
|
||||
INSERT INTO phpbb_acl_roles_data (role_id, auth_option_id, auth_setting) SELECT 20, auth_option_id, 0 FROM phpbb_acl_options WHERE auth_option LIKE 'f_%' AND auth_option IN ('f_noapprove');
|
||||
|
||||
# Standard Access + Polls (f_)
|
||||
INSERT INTO phpbb_acl_roles_data (role_id, auth_option_id, auth_setting) SELECT 21, auth_option_id, 1 FROM phpbb_acl_options WHERE auth_option LIKE 'f_%' AND auth_option NOT IN ('f_announce', 'f_flash', 'f_ignoreflood', 'f_sticky', 'f_user_lock');
|
||||
|
||||
# Limited Access + Polls (f_)
|
||||
INSERT INTO phpbb_acl_roles_data (role_id, auth_option_id, auth_setting) SELECT 22, auth_option_id, 1 FROM phpbb_acl_options WHERE auth_option LIKE 'f_%' AND auth_option NOT IN ('f_announce', 'f_attach', 'f_bump', 'f_delete', 'f_flash', 'f_icons', 'f_ignoreflood', 'f_sticky', 'f_user_lock', 'f_votechg');
|
||||
|
||||
# New Member (u_)
|
||||
INSERT INTO phpbb_acl_roles_data (role_id, auth_option_id, auth_setting) SELECT 23, auth_option_id, 0 FROM phpbb_acl_options WHERE auth_option LIKE 'u_%' AND auth_option IN ('u_sendpm', 'u_masspm', 'u_masspm_group');
|
||||
|
||||
# New Member (f_)
|
||||
INSERT INTO phpbb_acl_roles_data (role_id, auth_option_id, auth_setting) SELECT 24, auth_option_id, 0 FROM phpbb_acl_options WHERE auth_option LIKE 'f_%' AND auth_option IN ('f_noapprove');
|
||||
|
||||
|
||||
# Permissions
|
||||
|
||||
# GUESTS - u_download and u_search ability
|
||||
INSERT INTO phpbb_acl_groups (group_id, forum_id, auth_option_id, auth_role_id, auth_setting) SELECT 1, 0, auth_option_id, 0, 1 FROM phpbb_acl_options WHERE auth_option IN ('u_', 'u_download', 'u_search');
|
||||
|
||||
# Admin user - full user features
|
||||
INSERT INTO phpbb_acl_users (user_id, forum_id, auth_option_id, auth_role_id, auth_setting) VALUES (2, 0, 0, 5, 0);
|
||||
|
||||
# ADMINISTRATOR Group - full user features
|
||||
INSERT INTO phpbb_acl_groups (group_id, forum_id, auth_option_id, auth_role_id, auth_setting) VALUES (5, 0, 0, 5, 0);
|
||||
|
||||
# ADMINISTRATOR Group - standard admin
|
||||
INSERT INTO phpbb_acl_groups (group_id, forum_id, auth_option_id, auth_role_id, auth_setting) VALUES (5, 0, 0, 1, 0);
|
||||
|
||||
# REGISTERED and REGISTERED_COPPA having standard user features
|
||||
INSERT INTO phpbb_acl_groups (group_id, forum_id, auth_option_id, auth_role_id, auth_setting) VALUES (2, 0, 0, 6, 0);
|
||||
INSERT INTO phpbb_acl_groups (group_id, forum_id, auth_option_id, auth_role_id, auth_setting) VALUES (3, 0, 0, 6, 0);
|
||||
|
||||
# GLOBAL_MODERATORS having full user features
|
||||
INSERT INTO phpbb_acl_groups (group_id, forum_id, auth_option_id, auth_role_id, auth_setting) VALUES (4, 0, 0, 5, 0);
|
||||
|
||||
# GLOBAL_MODERATORS having full global moderator access
|
||||
INSERT INTO phpbb_acl_groups (group_id, forum_id, auth_option_id, auth_role_id, auth_setting) VALUES (4, 0, 0, 10, 0);
|
||||
|
||||
# Giving all groups read only access to the first category
|
||||
# since administrators and moderators are already within the registered users group we do not need to set them here
|
||||
INSERT INTO phpbb_acl_groups (group_id, forum_id, auth_option_id, auth_role_id, auth_setting) VALUES (1, 1, 0, 17, 0);
|
||||
INSERT INTO phpbb_acl_groups (group_id, forum_id, auth_option_id, auth_role_id, auth_setting) VALUES (2, 1, 0, 17, 0);
|
||||
INSERT INTO phpbb_acl_groups (group_id, forum_id, auth_option_id, auth_role_id, auth_setting) VALUES (3, 1, 0, 17, 0);
|
||||
INSERT INTO phpbb_acl_groups (group_id, forum_id, auth_option_id, auth_role_id, auth_setting) VALUES (6, 1, 0, 17, 0);
|
||||
|
||||
# Giving access to the first forum
|
||||
|
||||
# guests having read only access
|
||||
INSERT INTO phpbb_acl_groups (group_id, forum_id, auth_option_id, auth_role_id, auth_setting) VALUES (1, 2, 0, 17, 0);
|
||||
|
||||
# registered and registered_coppa having standard access
|
||||
INSERT INTO phpbb_acl_groups (group_id, forum_id, auth_option_id, auth_role_id, auth_setting) VALUES (2, 2, 0, 15, 0);
|
||||
INSERT INTO phpbb_acl_groups (group_id, forum_id, auth_option_id, auth_role_id, auth_setting) VALUES (3, 2, 0, 15, 0);
|
||||
|
||||
# global moderators having standard access + polls
|
||||
INSERT INTO phpbb_acl_groups (group_id, forum_id, auth_option_id, auth_role_id, auth_setting) VALUES (4, 2, 0, 21, 0);
|
||||
|
||||
# administrators having full forum and full moderator access
|
||||
INSERT INTO phpbb_acl_groups (group_id, forum_id, auth_option_id, auth_role_id, auth_setting) VALUES (5, 2, 0, 14, 0);
|
||||
INSERT INTO phpbb_acl_groups (group_id, forum_id, auth_option_id, auth_role_id, auth_setting) VALUES (5, 2, 0, 10, 0);
|
||||
|
||||
# Bots having bot access
|
||||
INSERT INTO phpbb_acl_groups (group_id, forum_id, auth_option_id, auth_role_id, auth_setting) VALUES (6, 2, 0, 19, 0);
|
||||
|
||||
# NEW MEMBERS aren't allowed to PM
|
||||
INSERT INTO phpbb_acl_groups (group_id, forum_id, auth_option_id, auth_role_id, auth_setting) VALUES (7, 0, 0, 23, 0);
|
||||
|
||||
# NEW MEMBERS on the queue
|
||||
INSERT INTO phpbb_acl_groups (group_id, forum_id, auth_option_id, auth_role_id, auth_setting) VALUES (7, 2, 0, 24, 0);
|
||||
|
||||
|
||||
# -- Demo Topic
|
||||
INSERT INTO phpbb_topics (topic_title, topic_poster, topic_time, topic_views, topic_replies, topic_replies_real, forum_id, topic_status, topic_type, topic_first_post_id, topic_first_poster_name, topic_first_poster_colour, topic_last_post_id, topic_last_poster_id, topic_last_poster_name, topic_last_poster_colour, topic_last_post_subject, topic_last_post_time, topic_last_view_time, poll_title) VALUES ('{L_TOPICS_TOPIC_TITLE}', 2, 972086460, 0, 0, 0, 2, 0, 0, 1, 'Admin', 'AA0000', 1, 2, 'Admin', 'AA0000', '{L_TOPICS_TOPIC_TITLE}', 972086460, 972086460, '');
|
||||
|
||||
# -- Demo Post
|
||||
INSERT INTO phpbb_posts (topic_id, forum_id, poster_id, icon_id, post_time, post_username, poster_ip, post_subject, post_text, post_checksum, bbcode_uid) VALUES (1, 2, 2, 0, 972086460, '', '127.0.0.1', '{L_TOPICS_TOPIC_TITLE}', '{L_DEFAULT_INSTALL_POST}', '5dd683b17f641daf84c040bfefc58ce9', '');
|
||||
|
||||
# -- Admin posted to the demo topic
|
||||
INSERT INTO phpbb_topics_posted (user_id, topic_id, topic_posted) VALUES (2, 1, 1);
|
||||
|
||||
# -- Smilies
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES (':D', 'icon_e_biggrin.gif', '{L_SMILIES_VERY_HAPPY}', 15, 17, 1);
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES (':-D', 'icon_e_biggrin.gif', '{L_SMILIES_VERY_HAPPY}', 15, 17, 2);
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES (':grin:', 'icon_e_biggrin.gif', '{L_SMILIES_VERY_HAPPY}', 15, 17, 3);
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES (':)', 'icon_e_smile.gif', '{L_SMILIES_SMILE}', 15, 17, 4);
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES (':-)', 'icon_e_smile.gif', '{L_SMILIES_SMILE}', 15, 17, 5);
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES (':smile:', 'icon_e_smile.gif', '{L_SMILIES_SMILE}', 15, 17, 6);
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES (';)', 'icon_e_wink.gif', '{L_SMILIES_WINK}', 15, 17, 7);
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES (';-)', 'icon_e_wink.gif', '{L_SMILIES_WINK}', 15, 17, 8);
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES (':wink:', 'icon_e_wink.gif', '{L_SMILIES_WINK}', 15, 17, 9);
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES (':(', 'icon_e_sad.gif', '{L_SMILIES_SAD}', 15, 17, 10);
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES (':-(', 'icon_e_sad.gif', '{L_SMILIES_SAD}', 15, 17, 11);
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES (':sad:', 'icon_e_sad.gif', '{L_SMILIES_SAD}', 15, 17, 12);
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES (':o', 'icon_e_surprised.gif', '{L_SMILIES_SURPRISED}', 15, 17, 13);
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES (':-o', 'icon_e_surprised.gif', '{L_SMILIES_SURPRISED}', 15, 17, 14);
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES (':eek:', 'icon_e_surprised.gif', '{L_SMILIES_SURPRISED}', 15, 17, 15);
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES (':shock:', 'icon_eek.gif', '{L_SMILIES_SHOCKED}', 15, 17, 16);
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES (':?', 'icon_e_confused.gif', '{L_SMILIES_CONFUSED}', 15, 17, 17);
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES (':-?', 'icon_e_confused.gif', '{L_SMILIES_CONFUSED}', 15, 17, 18);
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES (':???:', 'icon_e_confused.gif', '{L_SMILIES_CONFUSED}', 15, 17, 19);
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES ('8-)', 'icon_cool.gif', '{L_SMILIES_COOL}', 15, 17, 20);
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES (':cool:', 'icon_cool.gif', '{L_SMILIES_COOL}', 15, 17, 21);
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES (':lol:', 'icon_lol.gif', '{L_SMILIES_LAUGHING}', 15, 17, 22);
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES (':x', 'icon_mad.gif', '{L_SMILIES_MAD}', 15, 17, 23);
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES (':-x', 'icon_mad.gif', '{L_SMILIES_MAD}', 15, 17, 24);
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES (':mad:', 'icon_mad.gif', '{L_SMILIES_MAD}', 15, 17, 25);
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES (':P', 'icon_razz.gif', '{L_SMILIES_RAZZ}', 15, 17, 26);
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES (':-P', 'icon_razz.gif', '{L_SMILIES_RAZZ}', 15, 17, 27);
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES (':razz:', 'icon_razz.gif', '{L_SMILIES_RAZZ}', 15, 17, 28);
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES (':oops:', 'icon_redface.gif', '{L_SMILIES_EMARRASSED}', 15, 17, 29);
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES (':cry:', 'icon_cry.gif', '{L_SMILIES_CRYING}', 15, 17, 30);
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES (':evil:', 'icon_evil.gif', '{L_SMILIES_EVIL}', 15, 17, 31);
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES (':twisted:', 'icon_twisted.gif', '{L_SMILIES_TWISTED_EVIL}', 15, 17, 32);
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES (':roll:', 'icon_rolleyes.gif', '{L_SMILIES_ROLLING_EYES}', 15, 17, 33);
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES (':!:', 'icon_exclaim.gif', '{L_SMILIES_EXCLAMATION}', 15, 17, 34);
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES (':?:', 'icon_question.gif', '{L_SMILIES_QUESTION}', 15, 17, 35);
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES (':idea:', 'icon_idea.gif', '{L_SMILIES_IDEA}', 15, 17, 36);
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES (':arrow:', 'icon_arrow.gif', '{L_SMILIES_ARROW}', 15, 17, 37);
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES (':|', 'icon_neutral.gif', '{L_SMILIES_NEUTRAL}', 15, 17, 38);
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES (':-|', 'icon_neutral.gif', '{L_SMILIES_NEUTRAL}', 15, 17, 39);
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES (':mrgreen:', 'icon_mrgreen.gif', '{L_SMILIES_MR_GREEN}', 15, 17, 40);
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES (':geek:', 'icon_e_geek.gif', '{L_SMILIES_GEEK}', 17, 17, 41);
|
||||
INSERT INTO phpbb_smilies (code, smiley_url, emotion, smiley_width, smiley_height, smiley_order) VALUES (':ugeek:', 'icon_e_ugeek.gif', '{L_SMILIES_UBER_GEEK}', 17, 18, 42);
|
||||
|
||||
# -- icons
|
||||
INSERT INTO phpbb_icons (icons_url, icons_width, icons_height, icons_order, display_on_posting) VALUES ('misc/fire.gif', 16, 16, 1, 1);
|
||||
INSERT INTO phpbb_icons (icons_url, icons_width, icons_height, icons_order, display_on_posting) VALUES ('smile/redface.gif', 16, 16, 9, 1);
|
||||
INSERT INTO phpbb_icons (icons_url, icons_width, icons_height, icons_order, display_on_posting) VALUES ('smile/mrgreen.gif', 16, 16, 10, 1);
|
||||
INSERT INTO phpbb_icons (icons_url, icons_width, icons_height, icons_order, display_on_posting) VALUES ('misc/heart.gif', 16, 16, 4, 1);
|
||||
INSERT INTO phpbb_icons (icons_url, icons_width, icons_height, icons_order, display_on_posting) VALUES ('misc/star.gif', 16, 16, 2, 1);
|
||||
INSERT INTO phpbb_icons (icons_url, icons_width, icons_height, icons_order, display_on_posting) VALUES ('misc/radioactive.gif', 16, 16, 3, 1);
|
||||
INSERT INTO phpbb_icons (icons_url, icons_width, icons_height, icons_order, display_on_posting) VALUES ('misc/thinking.gif', 16, 16, 5, 1);
|
||||
INSERT INTO phpbb_icons (icons_url, icons_width, icons_height, icons_order, display_on_posting) VALUES ('smile/info.gif', 16, 16, 8, 1);
|
||||
INSERT INTO phpbb_icons (icons_url, icons_width, icons_height, icons_order, display_on_posting) VALUES ('smile/question.gif', 16, 16, 6, 1);
|
||||
INSERT INTO phpbb_icons (icons_url, icons_width, icons_height, icons_order, display_on_posting) VALUES ('smile/alert.gif', 16, 16, 7, 1);
|
||||
|
||||
# -- reasons
|
||||
INSERT INTO phpbb_reports_reasons (reason_title, reason_description, reason_order) VALUES ('warez', '{L_REPORT_WAREZ}', 1);
|
||||
INSERT INTO phpbb_reports_reasons (reason_title, reason_description, reason_order) VALUES ('spam', '{L_REPORT_SPAM}', 2);
|
||||
INSERT INTO phpbb_reports_reasons (reason_title, reason_description, reason_order) VALUES ('off_topic', '{L_REPORT_OFF_TOPIC}', 3);
|
||||
INSERT INTO phpbb_reports_reasons (reason_title, reason_description, reason_order) VALUES ('other', '{L_REPORT_OTHER}', 4);
|
||||
|
||||
# -- extension_groups
|
||||
INSERT INTO phpbb_extension_groups (group_name, cat_id, allow_group, download_mode, upload_icon, max_filesize, allowed_forums) VALUES ('{L_EXT_GROUP_IMAGES}', 1, 1, 1, '', 0, '');
|
||||
INSERT INTO phpbb_extension_groups (group_name, cat_id, allow_group, download_mode, upload_icon, max_filesize, allowed_forums) VALUES ('{L_EXT_GROUP_ARCHIVES}', 0, 1, 1, '', 0, '');
|
||||
INSERT INTO phpbb_extension_groups (group_name, cat_id, allow_group, download_mode, upload_icon, max_filesize, allowed_forums) VALUES ('{L_EXT_GROUP_PLAIN_TEXT}', 0, 0, 1, '', 0, '');
|
||||
INSERT INTO phpbb_extension_groups (group_name, cat_id, allow_group, download_mode, upload_icon, max_filesize, allowed_forums) VALUES ('{L_EXT_GROUP_DOCUMENTS}', 0, 0, 1, '', 0, '');
|
||||
INSERT INTO phpbb_extension_groups (group_name, cat_id, allow_group, download_mode, upload_icon, max_filesize, allowed_forums) VALUES ('{L_EXT_GROUP_REAL_MEDIA}', 3, 0, 1, '', 0, '');
|
||||
INSERT INTO phpbb_extension_groups (group_name, cat_id, allow_group, download_mode, upload_icon, max_filesize, allowed_forums) VALUES ('{L_EXT_GROUP_WINDOWS_MEDIA}', 2, 0, 1, '', 0, '');
|
||||
INSERT INTO phpbb_extension_groups (group_name, cat_id, allow_group, download_mode, upload_icon, max_filesize, allowed_forums) VALUES ('{L_EXT_GROUP_FLASH_FILES}', 5, 0, 1, '', 0, '');
|
||||
INSERT INTO phpbb_extension_groups (group_name, cat_id, allow_group, download_mode, upload_icon, max_filesize, allowed_forums) VALUES ('{L_EXT_GROUP_QUICKTIME_MEDIA}', 6, 0, 1, '', 0, '');
|
||||
INSERT INTO phpbb_extension_groups (group_name, cat_id, allow_group, download_mode, upload_icon, max_filesize, allowed_forums) VALUES ('{L_EXT_GROUP_DOWNLOADABLE_FILES}', 0, 0, 1, '', 0, '');
|
||||
|
||||
# -- extensions
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (1, 'gif');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (1, 'png');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (1, 'jpeg');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (1, 'jpg');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (1, 'tif');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (1, 'tiff');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (1, 'tga');
|
||||
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (2, 'gtar');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (2, 'gz');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (2, 'tar');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (2, 'zip');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (2, 'rar');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (2, 'ace');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (2, 'torrent');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (2, 'tgz');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (2, 'bz2');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (2, '7z');
|
||||
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (3, 'txt');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (3, 'c');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (3, 'h');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (3, 'cpp');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (3, 'hpp');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (3, 'diz');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (3, 'csv');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (3, 'ini');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (3, 'log');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (3, 'js');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (3, 'xml');
|
||||
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (4, 'xls');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (4, 'xlsx');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (4, 'xlsm');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (4, 'xlsb');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (4, 'doc');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (4, 'docx');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (4, 'docm');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (4, 'dot');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (4, 'dotx');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (4, 'dotm');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (4, 'pdf');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (4, 'ai');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (4, 'ps');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (4, 'ppt');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (4, 'pptx');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (4, 'pptm');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (4, 'odg');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (4, 'odp');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (4, 'ods');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (4, 'odt');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (4, 'rtf');
|
||||
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (5, 'rm');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (5, 'ram');
|
||||
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (6, 'wma');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (6, 'wmv');
|
||||
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (7, 'swf');
|
||||
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (8, 'mov');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (8, 'm4v');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (8, 'm4a');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (8, 'mp4');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (8, '3gp');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (8, '3g2');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (8, 'qt');
|
||||
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (9, 'mpeg');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (9, 'mpg');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (9, 'mp3');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (9, 'ogg');
|
||||
INSERT INTO phpbb_extensions (group_id, extension) VALUES (9, 'ogm');
|
||||
|
||||
# POSTGRES COMMIT #
|
985
phpBB/install/schemas/sqlite_schema.sql
Normal file
985
phpBB/install/schemas/sqlite_schema.sql
Normal file
@@ -0,0 +1,985 @@
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
|
||||
BEGIN TRANSACTION;
|
||||
|
||||
# Table: 'phpbb_attachments'
|
||||
CREATE TABLE phpbb_attachments (
|
||||
attach_id INTEGER PRIMARY KEY NOT NULL ,
|
||||
post_msg_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
topic_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
in_message INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
poster_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
is_orphan INTEGER UNSIGNED NOT NULL DEFAULT '1',
|
||||
physical_filename varchar(255) NOT NULL DEFAULT '',
|
||||
real_filename varchar(255) NOT NULL DEFAULT '',
|
||||
download_count INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
attach_comment text(65535) NOT NULL DEFAULT '',
|
||||
extension varchar(100) NOT NULL DEFAULT '',
|
||||
mimetype varchar(100) NOT NULL DEFAULT '',
|
||||
filesize INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
filetime INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
thumbnail INTEGER UNSIGNED NOT NULL DEFAULT '0'
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_attachments_filetime ON phpbb_attachments (filetime);
|
||||
CREATE INDEX phpbb_attachments_post_msg_id ON phpbb_attachments (post_msg_id);
|
||||
CREATE INDEX phpbb_attachments_topic_id ON phpbb_attachments (topic_id);
|
||||
CREATE INDEX phpbb_attachments_poster_id ON phpbb_attachments (poster_id);
|
||||
CREATE INDEX phpbb_attachments_is_orphan ON phpbb_attachments (is_orphan);
|
||||
|
||||
# Table: 'phpbb_acl_groups'
|
||||
CREATE TABLE phpbb_acl_groups (
|
||||
group_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
forum_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
auth_option_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
auth_role_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
auth_setting tinyint(2) NOT NULL DEFAULT '0'
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_acl_groups_group_id ON phpbb_acl_groups (group_id);
|
||||
CREATE INDEX phpbb_acl_groups_auth_opt_id ON phpbb_acl_groups (auth_option_id);
|
||||
CREATE INDEX phpbb_acl_groups_auth_role_id ON phpbb_acl_groups (auth_role_id);
|
||||
|
||||
# Table: 'phpbb_acl_options'
|
||||
CREATE TABLE phpbb_acl_options (
|
||||
auth_option_id INTEGER PRIMARY KEY NOT NULL ,
|
||||
auth_option varchar(50) NOT NULL DEFAULT '',
|
||||
is_global INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
is_local INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
founder_only INTEGER UNSIGNED NOT NULL DEFAULT '0'
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX phpbb_acl_options_auth_option ON phpbb_acl_options (auth_option);
|
||||
|
||||
# Table: 'phpbb_acl_roles'
|
||||
CREATE TABLE phpbb_acl_roles (
|
||||
role_id INTEGER PRIMARY KEY NOT NULL ,
|
||||
role_name varchar(255) NOT NULL DEFAULT '',
|
||||
role_description text(65535) NOT NULL DEFAULT '',
|
||||
role_type varchar(10) NOT NULL DEFAULT '',
|
||||
role_order INTEGER UNSIGNED NOT NULL DEFAULT '0'
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_acl_roles_role_type ON phpbb_acl_roles (role_type);
|
||||
CREATE INDEX phpbb_acl_roles_role_order ON phpbb_acl_roles (role_order);
|
||||
|
||||
# Table: 'phpbb_acl_roles_data'
|
||||
CREATE TABLE phpbb_acl_roles_data (
|
||||
role_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
auth_option_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
auth_setting tinyint(2) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (role_id, auth_option_id)
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_acl_roles_data_ath_op_id ON phpbb_acl_roles_data (auth_option_id);
|
||||
|
||||
# Table: 'phpbb_acl_users'
|
||||
CREATE TABLE phpbb_acl_users (
|
||||
user_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
forum_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
auth_option_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
auth_role_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
auth_setting tinyint(2) NOT NULL DEFAULT '0'
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_acl_users_user_id ON phpbb_acl_users (user_id);
|
||||
CREATE INDEX phpbb_acl_users_auth_option_id ON phpbb_acl_users (auth_option_id);
|
||||
CREATE INDEX phpbb_acl_users_auth_role_id ON phpbb_acl_users (auth_role_id);
|
||||
|
||||
# Table: 'phpbb_banlist'
|
||||
CREATE TABLE phpbb_banlist (
|
||||
ban_id INTEGER PRIMARY KEY NOT NULL ,
|
||||
ban_userid INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
ban_ip varchar(40) NOT NULL DEFAULT '',
|
||||
ban_email varchar(100) NOT NULL DEFAULT '',
|
||||
ban_start INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
ban_end INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
ban_exclude INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
ban_reason varchar(255) NOT NULL DEFAULT '',
|
||||
ban_give_reason varchar(255) NOT NULL DEFAULT ''
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_banlist_ban_end ON phpbb_banlist (ban_end);
|
||||
CREATE INDEX phpbb_banlist_ban_user ON phpbb_banlist (ban_userid, ban_exclude);
|
||||
CREATE INDEX phpbb_banlist_ban_email ON phpbb_banlist (ban_email, ban_exclude);
|
||||
CREATE INDEX phpbb_banlist_ban_ip ON phpbb_banlist (ban_ip, ban_exclude);
|
||||
|
||||
# Table: 'phpbb_bbcodes'
|
||||
CREATE TABLE phpbb_bbcodes (
|
||||
bbcode_id tinyint(3) NOT NULL DEFAULT '0',
|
||||
bbcode_tag varchar(16) NOT NULL DEFAULT '',
|
||||
bbcode_helpline varchar(255) NOT NULL DEFAULT '',
|
||||
display_on_posting INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
bbcode_match text(65535) NOT NULL DEFAULT '',
|
||||
bbcode_tpl mediumtext(16777215) NOT NULL DEFAULT '',
|
||||
first_pass_match mediumtext(16777215) NOT NULL DEFAULT '',
|
||||
first_pass_replace mediumtext(16777215) NOT NULL DEFAULT '',
|
||||
second_pass_match mediumtext(16777215) NOT NULL DEFAULT '',
|
||||
second_pass_replace mediumtext(16777215) NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (bbcode_id)
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_bbcodes_display_on_post ON phpbb_bbcodes (display_on_posting);
|
||||
|
||||
# Table: 'phpbb_bookmarks'
|
||||
CREATE TABLE phpbb_bookmarks (
|
||||
topic_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
user_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (topic_id, user_id)
|
||||
);
|
||||
|
||||
|
||||
# Table: 'phpbb_bots'
|
||||
CREATE TABLE phpbb_bots (
|
||||
bot_id INTEGER PRIMARY KEY NOT NULL ,
|
||||
bot_active INTEGER UNSIGNED NOT NULL DEFAULT '1',
|
||||
bot_name text(65535) NOT NULL DEFAULT '',
|
||||
user_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
bot_agent varchar(255) NOT NULL DEFAULT '',
|
||||
bot_ip varchar(255) NOT NULL DEFAULT ''
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_bots_bot_active ON phpbb_bots (bot_active);
|
||||
|
||||
# Table: 'phpbb_config'
|
||||
CREATE TABLE phpbb_config (
|
||||
config_name varchar(255) NOT NULL DEFAULT '',
|
||||
config_value varchar(255) NOT NULL DEFAULT '',
|
||||
is_dynamic INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (config_name)
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_config_is_dynamic ON phpbb_config (is_dynamic);
|
||||
|
||||
# Table: 'phpbb_confirm'
|
||||
CREATE TABLE phpbb_confirm (
|
||||
confirm_id char(32) NOT NULL DEFAULT '',
|
||||
session_id char(32) NOT NULL DEFAULT '',
|
||||
confirm_type tinyint(3) NOT NULL DEFAULT '0',
|
||||
code varchar(8) NOT NULL DEFAULT '',
|
||||
seed INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
attempts INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (session_id, confirm_id)
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_confirm_confirm_type ON phpbb_confirm (confirm_type);
|
||||
|
||||
# Table: 'phpbb_disallow'
|
||||
CREATE TABLE phpbb_disallow (
|
||||
disallow_id INTEGER PRIMARY KEY NOT NULL ,
|
||||
disallow_username varchar(255) NOT NULL DEFAULT ''
|
||||
);
|
||||
|
||||
|
||||
# Table: 'phpbb_drafts'
|
||||
CREATE TABLE phpbb_drafts (
|
||||
draft_id INTEGER PRIMARY KEY NOT NULL ,
|
||||
user_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
topic_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
forum_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
save_time INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
draft_subject text(65535) NOT NULL DEFAULT '',
|
||||
draft_message mediumtext(16777215) NOT NULL DEFAULT ''
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_drafts_save_time ON phpbb_drafts (save_time);
|
||||
|
||||
# Table: 'phpbb_extensions'
|
||||
CREATE TABLE phpbb_extensions (
|
||||
extension_id INTEGER PRIMARY KEY NOT NULL ,
|
||||
group_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
extension varchar(100) NOT NULL DEFAULT ''
|
||||
);
|
||||
|
||||
|
||||
# Table: 'phpbb_extension_groups'
|
||||
CREATE TABLE phpbb_extension_groups (
|
||||
group_id INTEGER PRIMARY KEY NOT NULL ,
|
||||
group_name varchar(255) NOT NULL DEFAULT '',
|
||||
cat_id tinyint(2) NOT NULL DEFAULT '0',
|
||||
allow_group INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
download_mode INTEGER UNSIGNED NOT NULL DEFAULT '1',
|
||||
upload_icon varchar(255) NOT NULL DEFAULT '',
|
||||
max_filesize INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
allowed_forums text(65535) NOT NULL DEFAULT '',
|
||||
allow_in_pm INTEGER UNSIGNED NOT NULL DEFAULT '0'
|
||||
);
|
||||
|
||||
|
||||
# Table: 'phpbb_forums'
|
||||
CREATE TABLE phpbb_forums (
|
||||
forum_id INTEGER PRIMARY KEY NOT NULL ,
|
||||
parent_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
left_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
right_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
forum_parents mediumtext(16777215) NOT NULL DEFAULT '',
|
||||
forum_name text(65535) NOT NULL DEFAULT '',
|
||||
forum_desc text(65535) NOT NULL DEFAULT '',
|
||||
forum_desc_bitfield varchar(255) NOT NULL DEFAULT '',
|
||||
forum_desc_options INTEGER UNSIGNED NOT NULL DEFAULT '7',
|
||||
forum_desc_uid varchar(8) NOT NULL DEFAULT '',
|
||||
forum_link varchar(255) NOT NULL DEFAULT '',
|
||||
forum_password varchar(40) NOT NULL DEFAULT '',
|
||||
forum_style INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
forum_image varchar(255) NOT NULL DEFAULT '',
|
||||
forum_rules text(65535) NOT NULL DEFAULT '',
|
||||
forum_rules_link varchar(255) NOT NULL DEFAULT '',
|
||||
forum_rules_bitfield varchar(255) NOT NULL DEFAULT '',
|
||||
forum_rules_options INTEGER UNSIGNED NOT NULL DEFAULT '7',
|
||||
forum_rules_uid varchar(8) NOT NULL DEFAULT '',
|
||||
forum_topics_per_page tinyint(4) NOT NULL DEFAULT '0',
|
||||
forum_type tinyint(4) NOT NULL DEFAULT '0',
|
||||
forum_status tinyint(4) NOT NULL DEFAULT '0',
|
||||
forum_posts INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
forum_topics INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
forum_topics_real INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
forum_last_post_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
forum_last_poster_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
forum_last_post_subject text(65535) NOT NULL DEFAULT '',
|
||||
forum_last_post_time INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
forum_last_poster_name varchar(255) NOT NULL DEFAULT '',
|
||||
forum_last_poster_colour varchar(6) NOT NULL DEFAULT '',
|
||||
forum_flags tinyint(4) NOT NULL DEFAULT '32',
|
||||
forum_options INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
display_subforum_list INTEGER UNSIGNED NOT NULL DEFAULT '1',
|
||||
display_on_index INTEGER UNSIGNED NOT NULL DEFAULT '1',
|
||||
enable_indexing INTEGER UNSIGNED NOT NULL DEFAULT '1',
|
||||
enable_icons INTEGER UNSIGNED NOT NULL DEFAULT '1',
|
||||
enable_prune INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
prune_next INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
prune_days INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
prune_viewed INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
prune_freq INTEGER UNSIGNED NOT NULL DEFAULT '0'
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_forums_left_right_id ON phpbb_forums (left_id, right_id);
|
||||
CREATE INDEX phpbb_forums_forum_lastpost_id ON phpbb_forums (forum_last_post_id);
|
||||
|
||||
# Table: 'phpbb_forums_access'
|
||||
CREATE TABLE phpbb_forums_access (
|
||||
forum_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
user_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
session_id char(32) NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (forum_id, user_id, session_id)
|
||||
);
|
||||
|
||||
|
||||
# Table: 'phpbb_forums_track'
|
||||
CREATE TABLE phpbb_forums_track (
|
||||
user_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
forum_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
mark_time INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (user_id, forum_id)
|
||||
);
|
||||
|
||||
|
||||
# Table: 'phpbb_forums_watch'
|
||||
CREATE TABLE phpbb_forums_watch (
|
||||
forum_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
user_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
notify_status INTEGER UNSIGNED NOT NULL DEFAULT '0'
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_forums_watch_forum_id ON phpbb_forums_watch (forum_id);
|
||||
CREATE INDEX phpbb_forums_watch_user_id ON phpbb_forums_watch (user_id);
|
||||
CREATE INDEX phpbb_forums_watch_notify_stat ON phpbb_forums_watch (notify_status);
|
||||
|
||||
# Table: 'phpbb_groups'
|
||||
CREATE TABLE phpbb_groups (
|
||||
group_id INTEGER PRIMARY KEY NOT NULL ,
|
||||
group_type tinyint(4) NOT NULL DEFAULT '1',
|
||||
group_founder_manage INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
group_skip_auth INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
group_name varchar(255) NOT NULL DEFAULT '',
|
||||
group_desc text(65535) NOT NULL DEFAULT '',
|
||||
group_desc_bitfield varchar(255) NOT NULL DEFAULT '',
|
||||
group_desc_options INTEGER UNSIGNED NOT NULL DEFAULT '7',
|
||||
group_desc_uid varchar(8) NOT NULL DEFAULT '',
|
||||
group_display INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
group_avatar varchar(255) NOT NULL DEFAULT '',
|
||||
group_avatar_type tinyint(2) NOT NULL DEFAULT '0',
|
||||
group_avatar_width INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
group_avatar_height INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
group_rank INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
group_colour varchar(6) NOT NULL DEFAULT '',
|
||||
group_sig_chars INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
group_receive_pm INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
group_message_limit INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
group_max_recipients INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
group_legend INTEGER UNSIGNED NOT NULL DEFAULT '1'
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_groups_group_legend_name ON phpbb_groups (group_legend, group_name);
|
||||
|
||||
# Table: 'phpbb_icons'
|
||||
CREATE TABLE phpbb_icons (
|
||||
icons_id INTEGER PRIMARY KEY NOT NULL ,
|
||||
icons_url varchar(255) NOT NULL DEFAULT '',
|
||||
icons_width tinyint(4) NOT NULL DEFAULT '0',
|
||||
icons_height tinyint(4) NOT NULL DEFAULT '0',
|
||||
icons_order INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
display_on_posting INTEGER UNSIGNED NOT NULL DEFAULT '1'
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_icons_display_on_posting ON phpbb_icons (display_on_posting);
|
||||
|
||||
# Table: 'phpbb_lang'
|
||||
CREATE TABLE phpbb_lang (
|
||||
lang_id INTEGER PRIMARY KEY NOT NULL ,
|
||||
lang_iso varchar(30) NOT NULL DEFAULT '',
|
||||
lang_dir varchar(30) NOT NULL DEFAULT '',
|
||||
lang_english_name varchar(100) NOT NULL DEFAULT '',
|
||||
lang_local_name varchar(255) NOT NULL DEFAULT '',
|
||||
lang_author varchar(255) NOT NULL DEFAULT ''
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_lang_lang_iso ON phpbb_lang (lang_iso);
|
||||
|
||||
# Table: 'phpbb_log'
|
||||
CREATE TABLE phpbb_log (
|
||||
log_id INTEGER PRIMARY KEY NOT NULL ,
|
||||
log_type tinyint(4) NOT NULL DEFAULT '0',
|
||||
user_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
forum_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
topic_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
reportee_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
log_ip varchar(40) NOT NULL DEFAULT '',
|
||||
log_time INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
log_operation text(65535) NOT NULL DEFAULT '',
|
||||
log_data mediumtext(16777215) NOT NULL DEFAULT ''
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_log_log_type ON phpbb_log (log_type);
|
||||
CREATE INDEX phpbb_log_log_time ON phpbb_log (log_time);
|
||||
CREATE INDEX phpbb_log_forum_id ON phpbb_log (forum_id);
|
||||
CREATE INDEX phpbb_log_topic_id ON phpbb_log (topic_id);
|
||||
CREATE INDEX phpbb_log_reportee_id ON phpbb_log (reportee_id);
|
||||
CREATE INDEX phpbb_log_user_id ON phpbb_log (user_id);
|
||||
|
||||
# Table: 'phpbb_moderator_cache'
|
||||
CREATE TABLE phpbb_moderator_cache (
|
||||
forum_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
user_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
username varchar(255) NOT NULL DEFAULT '',
|
||||
group_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
group_name varchar(255) NOT NULL DEFAULT '',
|
||||
display_on_index INTEGER UNSIGNED NOT NULL DEFAULT '1'
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_moderator_cache_disp_idx ON phpbb_moderator_cache (display_on_index);
|
||||
CREATE INDEX phpbb_moderator_cache_forum_id ON phpbb_moderator_cache (forum_id);
|
||||
|
||||
# Table: 'phpbb_modules'
|
||||
CREATE TABLE phpbb_modules (
|
||||
module_id INTEGER PRIMARY KEY NOT NULL ,
|
||||
module_enabled INTEGER UNSIGNED NOT NULL DEFAULT '1',
|
||||
module_display INTEGER UNSIGNED NOT NULL DEFAULT '1',
|
||||
module_basename varchar(255) NOT NULL DEFAULT '',
|
||||
module_class varchar(10) NOT NULL DEFAULT '',
|
||||
parent_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
left_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
right_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
module_langname varchar(255) NOT NULL DEFAULT '',
|
||||
module_mode varchar(255) NOT NULL DEFAULT '',
|
||||
module_auth varchar(255) NOT NULL DEFAULT ''
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_modules_left_right_id ON phpbb_modules (left_id, right_id);
|
||||
CREATE INDEX phpbb_modules_module_enabled ON phpbb_modules (module_enabled);
|
||||
CREATE INDEX phpbb_modules_class_left_id ON phpbb_modules (module_class, left_id);
|
||||
|
||||
# Table: 'phpbb_poll_options'
|
||||
CREATE TABLE phpbb_poll_options (
|
||||
poll_option_id tinyint(4) NOT NULL DEFAULT '0',
|
||||
topic_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
poll_option_text text(65535) NOT NULL DEFAULT '',
|
||||
poll_option_total INTEGER UNSIGNED NOT NULL DEFAULT '0'
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_poll_options_poll_opt_id ON phpbb_poll_options (poll_option_id);
|
||||
CREATE INDEX phpbb_poll_options_topic_id ON phpbb_poll_options (topic_id);
|
||||
|
||||
# Table: 'phpbb_poll_votes'
|
||||
CREATE TABLE phpbb_poll_votes (
|
||||
topic_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
poll_option_id tinyint(4) NOT NULL DEFAULT '0',
|
||||
vote_user_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
vote_user_ip varchar(40) NOT NULL DEFAULT ''
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_poll_votes_topic_id ON phpbb_poll_votes (topic_id);
|
||||
CREATE INDEX phpbb_poll_votes_vote_user_id ON phpbb_poll_votes (vote_user_id);
|
||||
CREATE INDEX phpbb_poll_votes_vote_user_ip ON phpbb_poll_votes (vote_user_ip);
|
||||
|
||||
# Table: 'phpbb_posts'
|
||||
CREATE TABLE phpbb_posts (
|
||||
post_id INTEGER PRIMARY KEY NOT NULL ,
|
||||
topic_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
forum_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
poster_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
icon_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
poster_ip varchar(40) NOT NULL DEFAULT '',
|
||||
post_time INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
post_approved INTEGER UNSIGNED NOT NULL DEFAULT '1',
|
||||
post_reported INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
enable_bbcode INTEGER UNSIGNED NOT NULL DEFAULT '1',
|
||||
enable_smilies INTEGER UNSIGNED NOT NULL DEFAULT '1',
|
||||
enable_magic_url INTEGER UNSIGNED NOT NULL DEFAULT '1',
|
||||
enable_sig INTEGER UNSIGNED NOT NULL DEFAULT '1',
|
||||
post_username varchar(255) NOT NULL DEFAULT '',
|
||||
post_subject text(65535) NOT NULL DEFAULT '',
|
||||
post_text mediumtext(16777215) NOT NULL DEFAULT '',
|
||||
post_checksum varchar(32) NOT NULL DEFAULT '',
|
||||
post_attachment INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
bbcode_bitfield varchar(255) NOT NULL DEFAULT '',
|
||||
bbcode_uid varchar(8) NOT NULL DEFAULT '',
|
||||
post_postcount INTEGER UNSIGNED NOT NULL DEFAULT '1',
|
||||
post_edit_time INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
post_edit_reason text(65535) NOT NULL DEFAULT '',
|
||||
post_edit_user INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
post_edit_count INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
post_edit_locked INTEGER UNSIGNED NOT NULL DEFAULT '0'
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_posts_forum_id ON phpbb_posts (forum_id);
|
||||
CREATE INDEX phpbb_posts_topic_id ON phpbb_posts (topic_id);
|
||||
CREATE INDEX phpbb_posts_poster_ip ON phpbb_posts (poster_ip);
|
||||
CREATE INDEX phpbb_posts_poster_id ON phpbb_posts (poster_id);
|
||||
CREATE INDEX phpbb_posts_post_approved ON phpbb_posts (post_approved);
|
||||
CREATE INDEX phpbb_posts_post_username ON phpbb_posts (post_username);
|
||||
CREATE INDEX phpbb_posts_tid_post_time ON phpbb_posts (topic_id, post_time);
|
||||
|
||||
# Table: 'phpbb_privmsgs'
|
||||
CREATE TABLE phpbb_privmsgs (
|
||||
msg_id INTEGER PRIMARY KEY NOT NULL ,
|
||||
root_level INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
author_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
icon_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
author_ip varchar(40) NOT NULL DEFAULT '',
|
||||
message_time INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
enable_bbcode INTEGER UNSIGNED NOT NULL DEFAULT '1',
|
||||
enable_smilies INTEGER UNSIGNED NOT NULL DEFAULT '1',
|
||||
enable_magic_url INTEGER UNSIGNED NOT NULL DEFAULT '1',
|
||||
enable_sig INTEGER UNSIGNED NOT NULL DEFAULT '1',
|
||||
message_subject text(65535) NOT NULL DEFAULT '',
|
||||
message_text mediumtext(16777215) NOT NULL DEFAULT '',
|
||||
message_edit_reason text(65535) NOT NULL DEFAULT '',
|
||||
message_edit_user INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
message_attachment INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
bbcode_bitfield varchar(255) NOT NULL DEFAULT '',
|
||||
bbcode_uid varchar(8) NOT NULL DEFAULT '',
|
||||
message_edit_time INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
message_edit_count INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
to_address text(65535) NOT NULL DEFAULT '',
|
||||
bcc_address text(65535) NOT NULL DEFAULT '',
|
||||
message_reported INTEGER UNSIGNED NOT NULL DEFAULT '0'
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_privmsgs_author_ip ON phpbb_privmsgs (author_ip);
|
||||
CREATE INDEX phpbb_privmsgs_message_time ON phpbb_privmsgs (message_time);
|
||||
CREATE INDEX phpbb_privmsgs_author_id ON phpbb_privmsgs (author_id);
|
||||
CREATE INDEX phpbb_privmsgs_root_level ON phpbb_privmsgs (root_level);
|
||||
|
||||
# Table: 'phpbb_privmsgs_folder'
|
||||
CREATE TABLE phpbb_privmsgs_folder (
|
||||
folder_id INTEGER PRIMARY KEY NOT NULL ,
|
||||
user_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
folder_name varchar(255) NOT NULL DEFAULT '',
|
||||
pm_count INTEGER UNSIGNED NOT NULL DEFAULT '0'
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_privmsgs_folder_user_id ON phpbb_privmsgs_folder (user_id);
|
||||
|
||||
# Table: 'phpbb_privmsgs_rules'
|
||||
CREATE TABLE phpbb_privmsgs_rules (
|
||||
rule_id INTEGER PRIMARY KEY NOT NULL ,
|
||||
user_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
rule_check INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
rule_connection INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
rule_string varchar(255) NOT NULL DEFAULT '',
|
||||
rule_user_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
rule_group_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
rule_action INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
rule_folder_id int(11) NOT NULL DEFAULT '0'
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_privmsgs_rules_user_id ON phpbb_privmsgs_rules (user_id);
|
||||
|
||||
# Table: 'phpbb_privmsgs_to'
|
||||
CREATE TABLE phpbb_privmsgs_to (
|
||||
msg_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
user_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
author_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
pm_deleted INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
pm_new INTEGER UNSIGNED NOT NULL DEFAULT '1',
|
||||
pm_unread INTEGER UNSIGNED NOT NULL DEFAULT '1',
|
||||
pm_replied INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
pm_marked INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
pm_forwarded INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
folder_id int(11) NOT NULL DEFAULT '0'
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_privmsgs_to_msg_id ON phpbb_privmsgs_to (msg_id);
|
||||
CREATE INDEX phpbb_privmsgs_to_author_id ON phpbb_privmsgs_to (author_id);
|
||||
CREATE INDEX phpbb_privmsgs_to_usr_flder_id ON phpbb_privmsgs_to (user_id, folder_id);
|
||||
|
||||
# Table: 'phpbb_profile_fields'
|
||||
CREATE TABLE phpbb_profile_fields (
|
||||
field_id INTEGER PRIMARY KEY NOT NULL ,
|
||||
field_name varchar(255) NOT NULL DEFAULT '',
|
||||
field_type tinyint(4) NOT NULL DEFAULT '0',
|
||||
field_ident varchar(20) NOT NULL DEFAULT '',
|
||||
field_length varchar(20) NOT NULL DEFAULT '',
|
||||
field_minlen varchar(255) NOT NULL DEFAULT '',
|
||||
field_maxlen varchar(255) NOT NULL DEFAULT '',
|
||||
field_novalue varchar(255) NOT NULL DEFAULT '',
|
||||
field_default_value varchar(255) NOT NULL DEFAULT '',
|
||||
field_validation varchar(20) NOT NULL DEFAULT '',
|
||||
field_required INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
field_show_on_reg INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
field_show_on_vt INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
field_show_profile INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
field_hide INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
field_no_view INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
field_active INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
field_order INTEGER UNSIGNED NOT NULL DEFAULT '0'
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_profile_fields_fld_type ON phpbb_profile_fields (field_type);
|
||||
CREATE INDEX phpbb_profile_fields_fld_ordr ON phpbb_profile_fields (field_order);
|
||||
|
||||
# Table: 'phpbb_profile_fields_data'
|
||||
CREATE TABLE phpbb_profile_fields_data (
|
||||
user_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (user_id)
|
||||
);
|
||||
|
||||
|
||||
# Table: 'phpbb_profile_fields_lang'
|
||||
CREATE TABLE phpbb_profile_fields_lang (
|
||||
field_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
lang_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
option_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
field_type tinyint(4) NOT NULL DEFAULT '0',
|
||||
lang_value varchar(255) NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (field_id, lang_id, option_id)
|
||||
);
|
||||
|
||||
|
||||
# Table: 'phpbb_profile_lang'
|
||||
CREATE TABLE phpbb_profile_lang (
|
||||
field_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
lang_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
lang_name varchar(255) NOT NULL DEFAULT '',
|
||||
lang_explain text(65535) NOT NULL DEFAULT '',
|
||||
lang_default_value varchar(255) NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (field_id, lang_id)
|
||||
);
|
||||
|
||||
|
||||
# Table: 'phpbb_ranks'
|
||||
CREATE TABLE phpbb_ranks (
|
||||
rank_id INTEGER PRIMARY KEY NOT NULL ,
|
||||
rank_title varchar(255) NOT NULL DEFAULT '',
|
||||
rank_min INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
rank_special INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
rank_image varchar(255) NOT NULL DEFAULT ''
|
||||
);
|
||||
|
||||
|
||||
# Table: 'phpbb_reports'
|
||||
CREATE TABLE phpbb_reports (
|
||||
report_id INTEGER PRIMARY KEY NOT NULL ,
|
||||
reason_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
post_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
pm_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
user_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
user_notify INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
report_closed INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
report_time INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
report_text mediumtext(16777215) NOT NULL DEFAULT ''
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_reports_post_id ON phpbb_reports (post_id);
|
||||
CREATE INDEX phpbb_reports_pm_id ON phpbb_reports (pm_id);
|
||||
|
||||
# Table: 'phpbb_reports_reasons'
|
||||
CREATE TABLE phpbb_reports_reasons (
|
||||
reason_id INTEGER PRIMARY KEY NOT NULL ,
|
||||
reason_title varchar(255) NOT NULL DEFAULT '',
|
||||
reason_description mediumtext(16777215) NOT NULL DEFAULT '',
|
||||
reason_order INTEGER UNSIGNED NOT NULL DEFAULT '0'
|
||||
);
|
||||
|
||||
|
||||
# Table: 'phpbb_search_results'
|
||||
CREATE TABLE phpbb_search_results (
|
||||
search_key varchar(32) NOT NULL DEFAULT '',
|
||||
search_time INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
search_keywords mediumtext(16777215) NOT NULL DEFAULT '',
|
||||
search_authors mediumtext(16777215) NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (search_key)
|
||||
);
|
||||
|
||||
|
||||
# Table: 'phpbb_search_wordlist'
|
||||
CREATE TABLE phpbb_search_wordlist (
|
||||
word_id INTEGER PRIMARY KEY NOT NULL ,
|
||||
word_text varchar(255) NOT NULL DEFAULT '',
|
||||
word_common INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
word_count INTEGER UNSIGNED NOT NULL DEFAULT '0'
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX phpbb_search_wordlist_wrd_txt ON phpbb_search_wordlist (word_text);
|
||||
CREATE INDEX phpbb_search_wordlist_wrd_cnt ON phpbb_search_wordlist (word_count);
|
||||
|
||||
# Table: 'phpbb_search_wordmatch'
|
||||
CREATE TABLE phpbb_search_wordmatch (
|
||||
post_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
word_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
title_match INTEGER UNSIGNED NOT NULL DEFAULT '0'
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX phpbb_search_wordmatch_unq_mtch ON phpbb_search_wordmatch (word_id, post_id, title_match);
|
||||
CREATE INDEX phpbb_search_wordmatch_word_id ON phpbb_search_wordmatch (word_id);
|
||||
CREATE INDEX phpbb_search_wordmatch_post_id ON phpbb_search_wordmatch (post_id);
|
||||
|
||||
# Table: 'phpbb_sessions'
|
||||
CREATE TABLE phpbb_sessions (
|
||||
session_id char(32) NOT NULL DEFAULT '',
|
||||
session_user_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
session_forum_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
session_last_visit INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
session_start INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
session_time INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
session_ip varchar(40) NOT NULL DEFAULT '',
|
||||
session_browser varchar(150) NOT NULL DEFAULT '',
|
||||
session_forwarded_for varchar(255) NOT NULL DEFAULT '',
|
||||
session_page varchar(255) NOT NULL DEFAULT '',
|
||||
session_viewonline INTEGER UNSIGNED NOT NULL DEFAULT '1',
|
||||
session_autologin INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
session_admin INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (session_id)
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_sessions_session_time ON phpbb_sessions (session_time);
|
||||
CREATE INDEX phpbb_sessions_session_user_id ON phpbb_sessions (session_user_id);
|
||||
CREATE INDEX phpbb_sessions_session_fid ON phpbb_sessions (session_forum_id);
|
||||
|
||||
# Table: 'phpbb_sessions_keys'
|
||||
CREATE TABLE phpbb_sessions_keys (
|
||||
key_id char(32) NOT NULL DEFAULT '',
|
||||
user_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
last_ip varchar(40) NOT NULL DEFAULT '',
|
||||
last_login INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (key_id, user_id)
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_sessions_keys_last_login ON phpbb_sessions_keys (last_login);
|
||||
|
||||
# Table: 'phpbb_sitelist'
|
||||
CREATE TABLE phpbb_sitelist (
|
||||
site_id INTEGER PRIMARY KEY NOT NULL ,
|
||||
site_ip varchar(40) NOT NULL DEFAULT '',
|
||||
site_hostname varchar(255) NOT NULL DEFAULT '',
|
||||
ip_exclude INTEGER UNSIGNED NOT NULL DEFAULT '0'
|
||||
);
|
||||
|
||||
|
||||
# Table: 'phpbb_smilies'
|
||||
CREATE TABLE phpbb_smilies (
|
||||
smiley_id INTEGER PRIMARY KEY NOT NULL ,
|
||||
code varchar(50) NOT NULL DEFAULT '',
|
||||
emotion varchar(50) NOT NULL DEFAULT '',
|
||||
smiley_url varchar(50) NOT NULL DEFAULT '',
|
||||
smiley_width INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
smiley_height INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
smiley_order INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
display_on_posting INTEGER UNSIGNED NOT NULL DEFAULT '1'
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_smilies_display_on_post ON phpbb_smilies (display_on_posting);
|
||||
|
||||
# Table: 'phpbb_styles'
|
||||
CREATE TABLE phpbb_styles (
|
||||
style_id INTEGER PRIMARY KEY NOT NULL ,
|
||||
style_name varchar(255) NOT NULL DEFAULT '',
|
||||
style_copyright varchar(255) NOT NULL DEFAULT '',
|
||||
style_active INTEGER UNSIGNED NOT NULL DEFAULT '1',
|
||||
template_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
theme_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
imageset_id INTEGER UNSIGNED NOT NULL DEFAULT '0'
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX phpbb_styles_style_name ON phpbb_styles (style_name);
|
||||
CREATE INDEX phpbb_styles_template_id ON phpbb_styles (template_id);
|
||||
CREATE INDEX phpbb_styles_theme_id ON phpbb_styles (theme_id);
|
||||
CREATE INDEX phpbb_styles_imageset_id ON phpbb_styles (imageset_id);
|
||||
|
||||
# Table: 'phpbb_styles_template'
|
||||
CREATE TABLE phpbb_styles_template (
|
||||
template_id INTEGER PRIMARY KEY NOT NULL ,
|
||||
template_name varchar(255) NOT NULL DEFAULT '',
|
||||
template_copyright varchar(255) NOT NULL DEFAULT '',
|
||||
template_path varchar(100) NOT NULL DEFAULT '',
|
||||
bbcode_bitfield varchar(255) NOT NULL DEFAULT 'kNg=',
|
||||
template_storedb INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
template_inherits_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
template_inherit_path varchar(255) NOT NULL DEFAULT ''
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX phpbb_styles_template_tmplte_nm ON phpbb_styles_template (template_name);
|
||||
|
||||
# Table: 'phpbb_styles_template_data'
|
||||
CREATE TABLE phpbb_styles_template_data (
|
||||
template_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
template_filename varchar(100) NOT NULL DEFAULT '',
|
||||
template_included text(65535) NOT NULL DEFAULT '',
|
||||
template_mtime INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
template_data mediumtext(16777215) NOT NULL DEFAULT ''
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_styles_template_data_tid ON phpbb_styles_template_data (template_id);
|
||||
CREATE INDEX phpbb_styles_template_data_tfn ON phpbb_styles_template_data (template_filename);
|
||||
|
||||
# Table: 'phpbb_styles_theme'
|
||||
CREATE TABLE phpbb_styles_theme (
|
||||
theme_id INTEGER PRIMARY KEY NOT NULL ,
|
||||
theme_name varchar(255) NOT NULL DEFAULT '',
|
||||
theme_copyright varchar(255) NOT NULL DEFAULT '',
|
||||
theme_path varchar(100) NOT NULL DEFAULT '',
|
||||
theme_storedb INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
theme_mtime INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
theme_data mediumtext(16777215) NOT NULL DEFAULT ''
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX phpbb_styles_theme_theme_name ON phpbb_styles_theme (theme_name);
|
||||
|
||||
# Table: 'phpbb_styles_imageset'
|
||||
CREATE TABLE phpbb_styles_imageset (
|
||||
imageset_id INTEGER PRIMARY KEY NOT NULL ,
|
||||
imageset_name varchar(255) NOT NULL DEFAULT '',
|
||||
imageset_copyright varchar(255) NOT NULL DEFAULT '',
|
||||
imageset_path varchar(100) NOT NULL DEFAULT ''
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX phpbb_styles_imageset_imgset_nm ON phpbb_styles_imageset (imageset_name);
|
||||
|
||||
# Table: 'phpbb_styles_imageset_data'
|
||||
CREATE TABLE phpbb_styles_imageset_data (
|
||||
image_id INTEGER PRIMARY KEY NOT NULL ,
|
||||
image_name varchar(200) NOT NULL DEFAULT '',
|
||||
image_filename varchar(200) NOT NULL DEFAULT '',
|
||||
image_lang varchar(30) NOT NULL DEFAULT '',
|
||||
image_height INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
image_width INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
imageset_id INTEGER UNSIGNED NOT NULL DEFAULT '0'
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_styles_imageset_data_i_d ON phpbb_styles_imageset_data (imageset_id);
|
||||
|
||||
# Table: 'phpbb_topics'
|
||||
CREATE TABLE phpbb_topics (
|
||||
topic_id INTEGER PRIMARY KEY NOT NULL ,
|
||||
forum_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
icon_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
topic_attachment INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
topic_approved INTEGER UNSIGNED NOT NULL DEFAULT '1',
|
||||
topic_reported INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
topic_title text(65535) NOT NULL DEFAULT '',
|
||||
topic_poster INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
topic_time INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
topic_time_limit INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
topic_views INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
topic_replies INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
topic_replies_real INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
topic_status tinyint(3) NOT NULL DEFAULT '0',
|
||||
topic_type tinyint(3) NOT NULL DEFAULT '0',
|
||||
topic_first_post_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
topic_first_poster_name varchar(255) NOT NULL DEFAULT '',
|
||||
topic_first_poster_colour varchar(6) NOT NULL DEFAULT '',
|
||||
topic_last_post_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
topic_last_poster_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
topic_last_poster_name varchar(255) NOT NULL DEFAULT '',
|
||||
topic_last_poster_colour varchar(6) NOT NULL DEFAULT '',
|
||||
topic_last_post_subject text(65535) NOT NULL DEFAULT '',
|
||||
topic_last_post_time INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
topic_last_view_time INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
topic_moved_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
topic_bumped INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
topic_bumper INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
poll_title text(65535) NOT NULL DEFAULT '',
|
||||
poll_start INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
poll_length INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
poll_max_options tinyint(4) NOT NULL DEFAULT '1',
|
||||
poll_last_vote INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
poll_vote_change INTEGER UNSIGNED NOT NULL DEFAULT '0'
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_topics_forum_id ON phpbb_topics (forum_id);
|
||||
CREATE INDEX phpbb_topics_forum_id_type ON phpbb_topics (forum_id, topic_type);
|
||||
CREATE INDEX phpbb_topics_last_post_time ON phpbb_topics (topic_last_post_time);
|
||||
CREATE INDEX phpbb_topics_topic_approved ON phpbb_topics (topic_approved);
|
||||
CREATE INDEX phpbb_topics_forum_appr_last ON phpbb_topics (forum_id, topic_approved, topic_last_post_id);
|
||||
CREATE INDEX phpbb_topics_fid_time_moved ON phpbb_topics (forum_id, topic_last_post_time, topic_moved_id);
|
||||
|
||||
# Table: 'phpbb_topics_track'
|
||||
CREATE TABLE phpbb_topics_track (
|
||||
user_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
topic_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
forum_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
mark_time INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (user_id, topic_id)
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_topics_track_forum_id ON phpbb_topics_track (forum_id);
|
||||
|
||||
# Table: 'phpbb_topics_posted'
|
||||
CREATE TABLE phpbb_topics_posted (
|
||||
user_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
topic_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
topic_posted INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (user_id, topic_id)
|
||||
);
|
||||
|
||||
|
||||
# Table: 'phpbb_topics_watch'
|
||||
CREATE TABLE phpbb_topics_watch (
|
||||
topic_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
user_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
notify_status INTEGER UNSIGNED NOT NULL DEFAULT '0'
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_topics_watch_topic_id ON phpbb_topics_watch (topic_id);
|
||||
CREATE INDEX phpbb_topics_watch_user_id ON phpbb_topics_watch (user_id);
|
||||
CREATE INDEX phpbb_topics_watch_notify_stat ON phpbb_topics_watch (notify_status);
|
||||
|
||||
# Table: 'phpbb_user_group'
|
||||
CREATE TABLE phpbb_user_group (
|
||||
group_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
user_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
group_leader INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
user_pending INTEGER UNSIGNED NOT NULL DEFAULT '1'
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_user_group_group_id ON phpbb_user_group (group_id);
|
||||
CREATE INDEX phpbb_user_group_user_id ON phpbb_user_group (user_id);
|
||||
CREATE INDEX phpbb_user_group_group_leader ON phpbb_user_group (group_leader);
|
||||
|
||||
# Table: 'phpbb_users'
|
||||
CREATE TABLE phpbb_users (
|
||||
user_id INTEGER PRIMARY KEY NOT NULL ,
|
||||
user_type tinyint(2) NOT NULL DEFAULT '0',
|
||||
group_id INTEGER UNSIGNED NOT NULL DEFAULT '3',
|
||||
user_permissions mediumtext(16777215) NOT NULL DEFAULT '',
|
||||
user_perm_from INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
user_ip varchar(40) NOT NULL DEFAULT '',
|
||||
user_regdate INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
username varchar(255) NOT NULL DEFAULT '',
|
||||
username_clean varchar(255) NOT NULL DEFAULT '',
|
||||
user_password varchar(40) NOT NULL DEFAULT '',
|
||||
user_passchg INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
user_pass_convert INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
user_email varchar(100) NOT NULL DEFAULT '',
|
||||
user_email_hash bigint(20) NOT NULL DEFAULT '0',
|
||||
user_birthday varchar(10) NOT NULL DEFAULT '',
|
||||
user_lastvisit INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
user_lastmark INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
user_lastpost_time INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
user_lastpage varchar(200) NOT NULL DEFAULT '',
|
||||
user_last_confirm_key varchar(10) NOT NULL DEFAULT '',
|
||||
user_last_search INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
user_warnings tinyint(4) NOT NULL DEFAULT '0',
|
||||
user_last_warning INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
user_login_attempts tinyint(4) NOT NULL DEFAULT '0',
|
||||
user_inactive_reason tinyint(2) NOT NULL DEFAULT '0',
|
||||
user_inactive_time INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
user_posts INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
user_lang varchar(30) NOT NULL DEFAULT '',
|
||||
user_timezone decimal(5,2) NOT NULL DEFAULT '0',
|
||||
user_dst INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
user_dateformat varchar(30) NOT NULL DEFAULT 'd M Y H:i',
|
||||
user_style INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
user_rank INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
user_colour varchar(6) NOT NULL DEFAULT '',
|
||||
user_new_privmsg int(4) NOT NULL DEFAULT '0',
|
||||
user_unread_privmsg int(4) NOT NULL DEFAULT '0',
|
||||
user_last_privmsg INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
user_message_rules INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
user_full_folder int(11) NOT NULL DEFAULT '-3',
|
||||
user_emailtime INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
user_topic_show_days INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
user_topic_sortby_type varchar(1) NOT NULL DEFAULT 't',
|
||||
user_topic_sortby_dir varchar(1) NOT NULL DEFAULT 'd',
|
||||
user_post_show_days INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
user_post_sortby_type varchar(1) NOT NULL DEFAULT 't',
|
||||
user_post_sortby_dir varchar(1) NOT NULL DEFAULT 'a',
|
||||
user_notify INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
user_notify_pm INTEGER UNSIGNED NOT NULL DEFAULT '1',
|
||||
user_notify_type tinyint(4) NOT NULL DEFAULT '0',
|
||||
user_allow_pm INTEGER UNSIGNED NOT NULL DEFAULT '1',
|
||||
user_allow_viewonline INTEGER UNSIGNED NOT NULL DEFAULT '1',
|
||||
user_allow_viewemail INTEGER UNSIGNED NOT NULL DEFAULT '1',
|
||||
user_allow_massemail INTEGER UNSIGNED NOT NULL DEFAULT '1',
|
||||
user_options INTEGER UNSIGNED NOT NULL DEFAULT '230271',
|
||||
user_avatar varchar(255) NOT NULL DEFAULT '',
|
||||
user_avatar_type tinyint(2) NOT NULL DEFAULT '0',
|
||||
user_avatar_width INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
user_avatar_height INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
user_sig mediumtext(16777215) NOT NULL DEFAULT '',
|
||||
user_sig_bbcode_uid varchar(8) NOT NULL DEFAULT '',
|
||||
user_sig_bbcode_bitfield varchar(255) NOT NULL DEFAULT '',
|
||||
user_from varchar(100) NOT NULL DEFAULT '',
|
||||
user_icq varchar(15) NOT NULL DEFAULT '',
|
||||
user_aim varchar(255) NOT NULL DEFAULT '',
|
||||
user_yim varchar(255) NOT NULL DEFAULT '',
|
||||
user_msnm varchar(255) NOT NULL DEFAULT '',
|
||||
user_jabber varchar(255) NOT NULL DEFAULT '',
|
||||
user_website varchar(200) NOT NULL DEFAULT '',
|
||||
user_occ text(65535) NOT NULL DEFAULT '',
|
||||
user_interests text(65535) NOT NULL DEFAULT '',
|
||||
user_actkey varchar(32) NOT NULL DEFAULT '',
|
||||
user_newpasswd varchar(40) NOT NULL DEFAULT '',
|
||||
user_form_salt varchar(32) NOT NULL DEFAULT '',
|
||||
user_new INTEGER UNSIGNED NOT NULL DEFAULT '1',
|
||||
user_reminded tinyint(4) NOT NULL DEFAULT '0',
|
||||
user_reminded_time INTEGER UNSIGNED NOT NULL DEFAULT '0'
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_users_user_birthday ON phpbb_users (user_birthday);
|
||||
CREATE INDEX phpbb_users_user_email_hash ON phpbb_users (user_email_hash);
|
||||
CREATE INDEX phpbb_users_user_type ON phpbb_users (user_type);
|
||||
CREATE UNIQUE INDEX phpbb_users_username_clean ON phpbb_users (username_clean);
|
||||
|
||||
# Table: 'phpbb_warnings'
|
||||
CREATE TABLE phpbb_warnings (
|
||||
warning_id INTEGER PRIMARY KEY NOT NULL ,
|
||||
user_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
post_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
log_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
warning_time INTEGER UNSIGNED NOT NULL DEFAULT '0'
|
||||
);
|
||||
|
||||
|
||||
# Table: 'phpbb_words'
|
||||
CREATE TABLE phpbb_words (
|
||||
word_id INTEGER PRIMARY KEY NOT NULL ,
|
||||
word varchar(255) NOT NULL DEFAULT '',
|
||||
replacement varchar(255) NOT NULL DEFAULT ''
|
||||
);
|
||||
|
||||
|
||||
# Table: 'phpbb_zebra'
|
||||
CREATE TABLE phpbb_zebra (
|
||||
user_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
zebra_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
friend INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
foe INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (user_id, zebra_id)
|
||||
);
|
||||
|
||||
|
||||
|
||||
COMMIT;
|
Reference in New Issue
Block a user