- fixed some bugs

- made sql schemas consistent
- added correct sequences and generators to sql schemas
- extended some rows to hold more data. This solves issues with multibyte characters and too short topic titles, names, etc.
- allow multibyte characters in usernames


git-svn-id: file:///svn/phpbb/trunk@5784 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2006-04-15 14:48:36 +00:00
parent 0562395c27
commit 84738055a2
38 changed files with 3527 additions and 3450 deletions

View file

@ -112,15 +112,15 @@
<tr> <tr>
<!-- BEGIN auth --> <!-- BEGIN auth -->
<!-- IF auth.S_YES --> <!-- IF auth.S_YES -->
<td class="preset_yes"> <td class="preset preset_yes">
<!-- ELSEIF auth.S_NO --> <!-- ELSEIF auth.S_NO -->
<td class="preset_no"> <td class="preset preset_no">
<!-- ELSEIF auth.S_UNSET --> <!-- ELSEIF auth.S_UNSET -->
<td class="preset_unset"> <td class="preset preset_unset">
<!-- ELSE --> <!-- ELSE -->
<td class="preset_custom"> <td class="preset preset_custom">
<!-- ENDIF --> <!-- ENDIF -->
<a href="javascript:swap_options('options{auth.S_ROW_COUNT}');"><span>&nbsp;</span></a></td> <a href="javascript:swap_options('options{auth.S_ROW_COUNT}');"><span></span></a></td>
<!-- END auth --> <!-- END auth -->
</tr> </tr>
<tr class="row3"> <tr class="row3">

View file

@ -524,7 +524,7 @@ class acp_forums
$s_show_display_on_index = false; $s_show_display_on_index = false;
if ($action == 'edit' && $forum_data['parent_id'] > 0) if ($forum_data['parent_id'] > 0)
{ {
// if this forum is a subforum put the "display on index" checkbox // if this forum is a subforum put the "display on index" checkbox
if ($parent_info = $this->get_forum_info($forum_data['parent_id'])) if ($parent_info = $this->get_forum_info($forum_data['parent_id']))

View file

@ -40,8 +40,8 @@ class acp_permissions
$subforum_id = request_var('subforum_id', 0); $subforum_id = request_var('subforum_id', 0);
$forum_id = request_var('forum_id', array(0)); $forum_id = request_var('forum_id', array(0));
$username = request_var('username', array('')); $username = request_var('username', array(''), true);
$usernames = request_var('usernames', ''); $usernames = request_var('usernames', '', true);
$user_id = request_var('user_id', array(0)); $user_id = request_var('user_id', array(0));
$group_id = request_var('group_id', array(0)); $group_id = request_var('group_id', array(0));

View file

@ -214,7 +214,7 @@ class acp_prune
} }
else else
{ {
$username = request_var('username', ''); $username = request_var('username', '', true);
$email = request_var('email', ''); $email = request_var('email', '');
$joined_select = request_var('joined_select', 'lt'); $joined_select = request_var('joined_select', 'lt');
@ -315,7 +315,7 @@ class acp_prune
'prune' => 1, 'prune' => 1,
'users' => request_var('users', ''), 'users' => request_var('users', ''),
'username' => request_var('username', ''), 'username' => request_var('username', '', true),
'email' => request_var('email', ''), 'email' => request_var('email', ''),
'joined_select' => request_var('joined_select', ''), 'joined_select' => request_var('joined_select', ''),
'joined' => request_var('joined', ''), 'joined' => request_var('joined', ''),

View file

@ -28,7 +28,7 @@ class acp_users
include($phpbb_root_path . 'includes/functions_profile_fields.' . $phpEx); include($phpbb_root_path . 'includes/functions_profile_fields.' . $phpEx);
$error = array(); $error = array();
$username = request_var('username', ''); $username = request_var('username', '', true);
$user_id = request_var('u', 0); $user_id = request_var('u', 0);
$action = request_var('action', ''); $action = request_var('action', '');

View file

@ -311,7 +311,7 @@ class dbal_oracle extends dbal
{ {
if (preg_match('#^INSERT[\t\n ]+INTO[\t\n ]+([a-z0-9\_\-]+)#is', $this->last_query_text, $tablename)) if (preg_match('#^INSERT[\t\n ]+INTO[\t\n ]+([a-z0-9\_\-]+)#is', $this->last_query_text, $tablename))
{ {
$query = 'SELECT ' . $tablename[1] . '_id_seq.currval FROM DUAL'; $query = 'SELECT ' . $tablename[1] . '_seq.currval FROM DUAL';
$stmt = @ociparse($this->db_connect_id, $query); $stmt = @ociparse($this->db_connect_id, $query);
@ociexecute($stmt, OCI_DEFAULT ); @ociexecute($stmt, OCI_DEFAULT );

View file

@ -295,7 +295,7 @@ class dbal_postgres extends dbal
{ {
if (preg_match("/^INSERT[\t\n ]+INTO[\t\n ]+([a-z0-9\_\-]+)/is", $this->last_query_text, $tablename)) if (preg_match("/^INSERT[\t\n ]+INTO[\t\n ]+([a-z0-9\_\-]+)/is", $this->last_query_text, $tablename))
{ {
$query = "SELECT currval('" . $tablename[1] . "_id_seq') AS last_value"; $query = "SELECT currval('" . $tablename[1] . "_seq') AS last_value";
$temp_q_id = @pg_query($this->db_connect_id, $query); $temp_q_id = @pg_query($this->db_connect_id, $query);
if (!$temp_q_id) if (!$temp_q_id)
{ {

View file

@ -24,10 +24,13 @@ function set_var(&$result, $var, $type, $multibyte = false)
if ($type == 'string') if ($type == 'string')
{ {
$result = trim(htmlspecialchars(str_replace(array("\r\n", "\r", "\xFF"), array("\n", "\n", ' '), $result))); $result = trim(htmlspecialchars(str_replace(array("\r\n", "\r"), array("\n", "\n"), $result)));
$result = (STRIP) ? stripslashes($result) : $result; $result = (STRIP) ? stripslashes($result) : $result;
if ($multibyte)
// Check for possible multibyte characters to save a preg_replace call if nothing is in there...
if ($multibyte && strpos($result, '&amp;#') !== false)
{ {
echo "HERE";
$result = preg_replace('#&amp;(\#[0-9]+;)#', '&\1', $result); $result = preg_replace('#&amp;(\#[0-9]+;)#', '&\1', $result);
} }
} }
@ -1387,7 +1390,7 @@ function login_box($redirect = '', $l_explain = '', $l_success = '', $admin = fa
if (isset($_POST['login'])) if (isset($_POST['login']))
{ {
$username = request_var('username', ''); $username = request_var('username', '', true);
$password = request_var('password', ''); $password = request_var('password', '');
$autologin = (!empty($_POST['autologin'])) ? true : false; $autologin = (!empty($_POST['autologin'])) ? true : false;
$viewonline = (!empty($_POST['viewonline'])) ? 0 : 1; $viewonline = (!empty($_POST['viewonline'])) ? 0 : 1;
@ -2510,7 +2513,7 @@ function page_header($page_title = '')
'L_INDEX' => $user->lang['FORUM_INDEX'], 'L_INDEX' => $user->lang['FORUM_INDEX'],
'L_ONLINE_EXPLAIN' => $l_online_time, 'L_ONLINE_EXPLAIN' => $l_online_time,
'U_PRIVATEMSGS' => "{$phpbb_root_path}ucp.$phpEx$SID&amp;i=pm&amp;mode=" . (($user->data['user_new_privmsg'] || $l_privmsgs_text_unread) ? 'unread' : 'view'), 'U_PRIVATEMSGS' => "{$phpbb_root_path}ucp.$phpEx$SID&amp;i=pm&amp;folder=inbox",
'U_RETURN_INBOX' => "{$phpbb_root_path}ucp.$phpEx$SID&amp;i=pm&amp;folder=inbox", 'U_RETURN_INBOX' => "{$phpbb_root_path}ucp.$phpEx$SID&amp;i=pm&amp;folder=inbox",
'U_JS_RETURN_INBOX' => "{$phpbb_root_path}ucp.$phpEx$SID&i=pm&folder=inbox", 'U_JS_RETURN_INBOX' => "{$phpbb_root_path}ucp.$phpEx$SID&i=pm&folder=inbox",
'U_POPUP_PM' => "{$phpbb_root_path}ucp.$phpEx$SID&amp;i=pm&amp;mode=popup", 'U_POPUP_PM' => "{$phpbb_root_path}ucp.$phpEx$SID&amp;i=pm&amp;mode=popup",

View file

@ -1845,7 +1845,7 @@ function cache_moderators()
'user_id' => $user_id, 'user_id' => $user_id,
'username' => $usernames_ary[$user_id], 'username' => $usernames_ary[$user_id],
'group_id' => 0, 'group_id' => 0,
'groupname' => '' 'group_name' => ''
); );
} }
} }
@ -1886,7 +1886,7 @@ function cache_moderators()
'user_id' => 0, 'user_id' => 0,
'username' => '', 'username' => '',
'group_id' => $group_id, 'group_id' => $group_id,
'groupname' => $groupnames_ary[$group_id] 'group_name' => $groupnames_ary[$group_id]
); );
} }
} }

View file

@ -563,7 +563,7 @@ function get_moderators(&$forum_moderators, $forum_id = false)
while ($row = $db->sql_fetchrow($result)) while ($row = $db->sql_fetchrow($result))
{ {
$forum_moderators[$row['forum_id']][] = (!empty($row['user_id'])) ? '<a href="' . $phpbb_root_path . "memberlist.$phpEx$SID&amp;mode=viewprofile&amp;u=" . $row['user_id'] . '">' . $row['username'] . '</a>' : '<a href="' . $phpbb_root_path . "memberlist.$phpEx$SID&amp;mode=group&amp;g=" . $row['group_id'] . '">' . $row['groupname'] . '</a>'; $forum_moderators[$row['forum_id']][] = (!empty($row['user_id'])) ? '<a href="' . $phpbb_root_path . "memberlist.$phpEx$SID&amp;mode=viewprofile&amp;u=" . $row['user_id'] . '">' . $row['username'] . '</a>' : '<a href="' . $phpbb_root_path . "memberlist.$phpEx$SID&amp;mode=group&amp;g=" . $row['group_id'] . '">' . $row['group_name'] . '</a>';
} }
$db->sql_freeresult($result); $db->sql_freeresult($result);

View file

@ -145,7 +145,7 @@ class messenger
// assign variables // assign variables
function assign_vars($vars) function assign_vars($vars)
{ {
$this->vars = (empty($this->vars)) ? $vars : $this->vars . $vars; $this->vars = (empty($this->vars)) ? $vars : $this->vars + $vars;
} }
// Send the mail out to the recipients set previously in var $this->address // Send the mail out to the recipients set previously in var $this->address
@ -209,14 +209,16 @@ class messenger
{ {
case NOTIFY_EMAIL: case NOTIFY_EMAIL:
$result = $this->msg_email(); $result = $this->msg_email();
break; break;
case NOTIFY_IM: case NOTIFY_IM:
$result = $this->msg_jabber(); $result = $this->msg_jabber();
break; break;
case NOTIFY_BOTH: case NOTIFY_BOTH:
$result = $this->msg_email(); $result = $this->msg_email();
$this->msg_jabber(); $this->msg_jabber();
break; break;
} }
$this->reset(); $this->reset();
@ -394,7 +396,7 @@ class messenger
foreach ($addresses as $address) foreach ($addresses as $address)
{ {
$this->jabber->send_message($address, 'normal', NULL, array('body' => $this->msg)); $this->jabber->send_message($address, 'normal', NULL, array('body' => htmlentities($this->msg)));
} }
sleep(1); sleep(1);
@ -490,7 +492,7 @@ class queue
unset($this->queue_data['email']); unset($this->queue_data['email']);
continue 2; continue 2;
} }
break; break;
case 'jabber': case 'jabber':
if (!$config['jab_enable']) if (!$config['jab_enable'])
@ -520,7 +522,8 @@ class queue
continue 2; continue 2;
} }
$this->jabber->send_presence(NULL, NULL, 'online'); $this->jabber->send_presence(NULL, NULL, 'online');
break;
break;
default: default:
return; return;
@ -547,14 +550,14 @@ class queue
messenger::error('EMAIL', $message); messenger::error('EMAIL', $message);
continue 3; continue 3;
} }
break; break;
case 'jabber': case 'jabber':
foreach ($addresses as $address) foreach ($addresses as $address)
{ {
$this->jabber->send_message($address, 'normal', NULL, array('body' => $msg)); $this->jabber->send_message($address, 'normal', NULL, array('body' => $msg));
} }
break; break;
} }
} }
@ -572,7 +575,7 @@ class queue
// handled, then disconnect // handled, then disconnect
sleep(1); sleep(1);
$this->jabber->disconnect(); $this->jabber->disconnect();
break; break;
} }
} }

View file

@ -116,7 +116,7 @@ class mcp_logs
'TOTAL_LOGS' => ($log_count == 1) ? $user->lang['TOTAL_LOG'] : sprintf($user->lang['TOTAL_LOGS'], $log_count), 'TOTAL_LOGS' => ($log_count == 1) ? $user->lang['TOTAL_LOG'] : sprintf($user->lang['TOTAL_LOGS'], $log_count),
'PAGINATION' => generate_pagination($this->u_action . "&amp;$u_sort_param", $log_count, $config['topics_per_page'], $start, true), 'PAGINATION' => generate_pagination($this->u_action . "&amp;$u_sort_param", $log_count, $config['topics_per_page'], $start, true),
'U_POST_ACTION' => "mcp.$phpEx$SID&amp;i=$id&amp;mode=$mode&amp;u=$user_id", 'U_POST_ACTION' => $this->u_action,
'S_CLEAR_ALLOWED' => ($auth->acl_get('a_clearlogs')) ? true : false, 'S_CLEAR_ALLOWED' => ($auth->acl_get('a_clearlogs')) ? true : false,
'S_SELECT_SORT_DIR' => $s_sort_dir, 'S_SELECT_SORT_DIR' => $s_sort_dir,
'S_SELECT_SORT_KEY' => $s_sort_key, 'S_SELECT_SORT_KEY' => $s_sort_key,

View file

@ -64,7 +64,7 @@ function mcp_notes_user_view($id, $mode, $action)
global $template, $db, $user, $auth; global $template, $db, $user, $auth;
$user_id = request_var('u', 0); $user_id = request_var('u', 0);
$username = request_var('username', ''); $username = request_var('username', '', true);
$start = request_var('start', 0); $start = request_var('start', 0);
$st = request_var('st', 0); $st = request_var('st', 0);
$sk = request_var('sk', 'b'); $sk = request_var('sk', 'b');

View file

@ -52,7 +52,7 @@ function mcp_post_details($id, $mode, $action)
case 'chgposter': case 'chgposter':
$username = request_var('username', ''); $username = request_var('username', '', true);
$sql = 'SELECT user_id $sql = 'SELECT user_id
FROM ' . USERS_TABLE . ' FROM ' . USERS_TABLE . '

View file

@ -300,7 +300,7 @@ function mcp_warn_user_view($id, $mode, $action)
global $template, $db, $user, $auth; global $template, $db, $user, $auth;
$user_id = request_var('u', 0); $user_id = request_var('u', 0);
$username = request_var('username', ''); $username = request_var('username', '', true);
$notify = (isset($_REQUEST['notify_user'])) ? true : false; $notify = (isset($_REQUEST['notify_user'])) ? true : false;
$warning = request_var('warning', '', true); $warning = request_var('warning', '', true);

View file

@ -846,8 +846,8 @@ function handle_message_list_actions(&$address_list, $remove_u, $remove_g, $add_
$user_id_ary = array(); $user_id_ary = array();
// Build usernames to add // Build usernames to add
$usernames = (isset($_REQUEST['username'])) ? array(request_var('username', '')) : array(); $usernames = (isset($_REQUEST['username'])) ? array(request_var('username', '', true)) : array();
$username_list = request_var('username_list', ''); $username_list = request_var('username_list', '', true);
if ($username_list) if ($username_list)
{ {
$usernames = array_merge($usernames, explode("\n", $username_list)); $usernames = array_merge($usernames, explode("\n", $username_list));

View file

@ -151,7 +151,7 @@ function view_folder($id, $mode, $folder_id, $folder)
// Generate all URIs ... // Generate all URIs ...
$message_author = "<a href=\"{$phpbb_root_path}memberlist.$phpEx$SID&amp;mode=viewprofile&amp;u=" . $row['author_id'] . '">' . $row['username'] . '</a>'; $message_author = "<a href=\"{$phpbb_root_path}memberlist.$phpEx$SID&amp;mode=viewprofile&amp;u=" . $row['author_id'] . '">' . $row['username'] . '</a>';
$view_message_url = "$url&amp;i=$id&amp;mode=view&amp;f=$folder_id&amp;p=$message_id"; $view_message_url = "$url&amp;i=$id&amp;mode=view&amp;f=$folder_id&amp;p=$message_id";
$remove_message_url = "$url&amp;i=compose&amp;action=delete&amp;p=$message_id"; $remove_message_url = "$url&amp;i=$id&amp;mode=compose&amp;action=delete&amp;p=$message_id";
$row_indicator = ''; $row_indicator = '';
foreach ($color_rows as $var) foreach ($color_rows as $var)

View file

@ -201,10 +201,14 @@ function view_message($id, $mode, $folder_id, $msg_id, $folder, $message_row)
'S_DISPLAY_NOTICE' => $display_notice && $message_row['message_attachment'], 'S_DISPLAY_NOTICE' => $display_notice && $message_row['message_attachment'],
'U_PRINT_PM' => ($config['print_pm'] && $auth->acl_get('u_pm_printpm')) ? "$url&amp;f=$folder_id&amp;p=" . $message_row['msg_id'] . "&amp;view=print" : '', 'U_PRINT_PM' => ($config['print_pm'] && $auth->acl_get('u_pm_printpm')) ? "$url&amp;f=$folder_id&amp;p=" . $message_row['msg_id'] . "&amp;view=print" : '',
'U_EMAIL_PM' => ($config['email_pm'] && $config['email_enable'] && $auth->acl_get('u_pm_emailpm')) ? 'Email' : '', 'U_EMAIL_PM' => ($config['email_pm'] && $config['email_enable'] && $auth->acl_get('u_pm_emailpm')) ? '' : '',
'U_FORWARD_PM' => ($config['forward_pm'] && $auth->acl_get('u_pm_forward')) ? "$url&amp;mode=compose&amp;action=forward&amp;f=$folder_id&amp;p=" . $message_row['msg_id'] : '') 'U_FORWARD_PM' => ($config['forward_pm'] && $auth->acl_get('u_pm_forward')) ? "$url&amp;mode=compose&amp;action=forward&amp;f=$folder_id&amp;p=" . $message_row['msg_id'] : '')
); );
/**
* @todo U_EMAIL_PM add ability to send PM's by email
*/
// Display not already displayed Attachments for this post, we already parsed them. ;) // Display not already displayed Attachments for this post, we already parsed them. ;)
if (isset($attachments) && sizeof($attachments)) if (isset($attachments) && sizeof($attachments))
{ {

View file

@ -341,7 +341,9 @@ class ucp_profile
$error = preg_replace('#^([A-Z_]+)$#e', "(!empty(\$user->lang['\\1'])) ? \$user->lang['\\1'] : '\\1'", $error); $error = preg_replace('#^([A-Z_]+)$#e', "(!empty(\$user->lang['\\1'])) ? \$user->lang['\\1'] : '\\1'", $error);
} }
if (!isset($bday_day)) $bday_day = $bday_month = $bday_year = 0;
if ($user->data['user_birthday'])
{ {
list($bday_day, $bday_month, $bday_year) = explode('-', $user->data['user_birthday']); list($bday_day, $bday_month, $bday_year) = explode('-', $user->data['user_birthday']);
} }
@ -476,7 +478,27 @@ class ucp_profile
'S_BBCODE_ALLOWED' => $config['allow_sig_bbcode'], 'S_BBCODE_ALLOWED' => $config['allow_sig_bbcode'],
'S_SMILIES_ALLOWED' => $config['allow_sig_smilies'],) 'S_SMILIES_ALLOWED' => $config['allow_sig_smilies'],)
); );
break;
// Build custom bbcodes array
$sql = 'SELECT bbcode_id, bbcode_tag
FROM ' . BBCODES_TABLE . '
WHERE display_on_posting = 1';
$result = $db->sql_query($sql);
$i = 0;
while ($row = $db->sql_fetchrow($result))
{
$template->assign_block_vars('custom_tags', array(
'BBCODE_NAME' => "'[{$row['bbcode_tag']}]', '[/" . str_replace('=', '', $row['bbcode_tag']) . "]'",
'BBCODE_ID' => 22 + ($i * 2),
'BBCODE_TAG' => $row['bbcode_tag'])
);
$i++;
}
$db->sql_freeresult($result);
break;
case 'avatar': case 'avatar':

View file

@ -99,7 +99,7 @@ class ucp_register
{ {
foreach ($var_ary as $var => $default) foreach ($var_ary as $var => $default)
{ {
$$var = request_var($var, $default); $$var = request_var($var, $default, true);
} }
} }
@ -108,7 +108,7 @@ class ucp_register
{ {
foreach ($var_ary as $var => $default) foreach ($var_ary as $var => $default)
{ {
$data[$var] = request_var($var, $default); $data[$var] = request_var($var, $default, true);
} }
$var_ary = array( $var_ary = array(

View file

@ -23,7 +23,7 @@ class ucp_remind
if ($submit) if ($submit)
{ {
$username = request_var('username', ''); $username = request_var('username', '', true);
$email = request_var('email', ''); $email = request_var('email', '');
$sql = 'SELECT user_id, username, user_email, user_jabber, user_notify_type, user_type, user_lang $sql = 'SELECT user_id, username, user_email, user_jabber, user_notify_type, user_type, user_lang

View file

@ -23,7 +23,7 @@ class ucp_resend
if ($submit) if ($submit)
{ {
$username = request_var('username', ''); $username = request_var('username', '', true);
$email = request_var('email', ''); $email = request_var('email', '');
$sql = 'SELECT user_id, username, user_email, user_type, user_lang, user_actkey $sql = 'SELECT user_id, username, user_email, user_type, user_lang, user_actkey

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -14,7 +14,7 @@ CREATE TABLE phpbb_attachments (
physical_filename varchar(255) NOT NULL, physical_filename varchar(255) NOT NULL,
real_filename varchar(255) NOT NULL, real_filename varchar(255) NOT NULL,
download_count mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, download_count mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
comment varchar(255), comment text,
extension varchar(100), extension varchar(100),
mimetype varchar(100), mimetype varchar(100),
filesize int(20) UNSIGNED NOT NULL, filesize int(20) UNSIGNED NOT NULL,
@ -43,7 +43,7 @@ CREATE TABLE phpbb_auth_groups (
# Table: 'phpbb_auth_options' # Table: 'phpbb_auth_options'
CREATE TABLE phpbb_auth_options ( CREATE TABLE phpbb_auth_options (
auth_option_id mediumint(8) UNSIGNED NOT NULL auto_increment, auth_option_id mediumint(8) UNSIGNED NOT NULL auto_increment,
auth_option char(20) NOT NULL, auth_option varchar(20) NOT NULL,
is_global tinyint(1) DEFAULT '0' NOT NULL, is_global tinyint(1) DEFAULT '0' NOT NULL,
is_local tinyint(1) DEFAULT '0' NOT NULL, is_local tinyint(1) DEFAULT '0' NOT NULL,
founder_only tinyint(1) DEFAULT '0' NOT NULL, founder_only tinyint(1) DEFAULT '0' NOT NULL,
@ -54,7 +54,7 @@ CREATE TABLE phpbb_auth_options (
# Table: 'phpbb_auth_roles' # Table: 'phpbb_auth_roles'
CREATE TABLE phpbb_auth_roles ( CREATE TABLE phpbb_auth_roles (
role_id mediumint(8) UNSIGNED NOT NULL auto_increment, role_id mediumint(8) UNSIGNED NOT NULL auto_increment,
role_name varchar(50) DEFAULT '' NOT NULL, role_name varchar(255) DEFAULT '' NOT NULL,
role_type varchar(10) DEFAULT '' NOT NULL, role_type varchar(10) DEFAULT '' NOT NULL,
role_group_ids varchar(255) DEFAULT '' NOT NULL, role_group_ids varchar(255) DEFAULT '' NOT NULL,
PRIMARY KEY (role_id), PRIMARY KEY (role_id),
@ -85,12 +85,12 @@ CREATE TABLE phpbb_banlist (
ban_id mediumint(8) UNSIGNED NOT NULL auto_increment, ban_id mediumint(8) UNSIGNED NOT NULL auto_increment,
ban_userid mediumint(8) UNSIGNED DEFAULT 0 NOT NULL, ban_userid mediumint(8) UNSIGNED DEFAULT 0 NOT NULL,
ban_ip varchar(40) DEFAULT '' NOT NULL, ban_ip varchar(40) DEFAULT '' NOT NULL,
ban_email varchar(50) DEFAULT '' NOT NULL, ban_email varchar(100) DEFAULT '' NOT NULL,
ban_start int(11) DEFAULT '0' NOT NULL, ban_start int(11) DEFAULT '0' NOT NULL,
ban_end int(11) DEFAULT '0' NOT NULL, ban_end int(11) DEFAULT '0' NOT NULL,
ban_exclude tinyint(1) DEFAULT '0' NOT NULL, ban_exclude tinyint(1) DEFAULT '0' NOT NULL,
ban_reason varchar(255) DEFAULT '' NOT NULL, ban_reason text,
ban_give_reason varchar(255) DEFAULT '' NOT NULL, ban_give_reason text,
PRIMARY KEY (ban_id) PRIMARY KEY (ban_id)
); );
@ -100,11 +100,11 @@ CREATE TABLE phpbb_bbcodes (
bbcode_tag varchar(16) DEFAULT '' NOT NULL, bbcode_tag varchar(16) DEFAULT '' NOT NULL,
display_on_posting tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, display_on_posting tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
bbcode_match varchar(255) DEFAULT '' NOT NULL, bbcode_match varchar(255) DEFAULT '' NOT NULL,
bbcode_tpl text DEFAULT '' NOT NULL, bbcode_tpl text,
first_pass_match varchar(255) DEFAULT '' NOT NULL, first_pass_match varchar(255) DEFAULT '' NOT NULL,
first_pass_replace varchar(255) DEFAULT '' NOT NULL, first_pass_replace varchar(255) DEFAULT '' NOT NULL,
second_pass_match varchar(255) DEFAULT '' NOT NULL, second_pass_match varchar(255) DEFAULT '' NOT NULL,
second_pass_replace text DEFAULT '' NOT NULL, second_pass_replace text,
PRIMARY KEY (bbcode_id), PRIMARY KEY (bbcode_id),
KEY display_in_posting (display_on_posting) KEY display_in_posting (display_on_posting)
); );
@ -122,11 +122,11 @@ CREATE TABLE phpbb_bookmarks (
CREATE TABLE phpbb_bots ( CREATE TABLE phpbb_bots (
bot_id tinyint(3) UNSIGNED NOT NULL auto_increment, bot_id tinyint(3) UNSIGNED NOT NULL auto_increment,
bot_active tinyint(1) DEFAULT '1' NOT NULL, bot_active tinyint(1) DEFAULT '1' NOT NULL,
bot_name varchar(255) DEFAULT '' NOT NULL, bot_name text,
user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
bot_agent varchar(255) DEFAULT '' NOT NULL, bot_agent varchar(255) DEFAULT '' NOT NULL,
bot_ip varchar(255) DEFAULT '' NOT NULL, bot_ip varchar(255) DEFAULT '' NOT NULL,
PRIMARY KEY (bot_id), PRIMARY KEY (bot_id),
KEY bot_active (bot_active) KEY bot_active (bot_active)
); );
@ -134,7 +134,7 @@ CREATE TABLE phpbb_bots (
CREATE TABLE phpbb_cache ( CREATE TABLE phpbb_cache (
var_name varchar(255) DEFAULT '' NOT NULL, var_name varchar(255) DEFAULT '' NOT NULL,
var_expires int(10) UNSIGNED DEFAULT '0' NOT NULL, var_expires int(10) UNSIGNED DEFAULT '0' NOT NULL,
var_data mediumtext NOT NULL, var_data mediumtext,
PRIMARY KEY (var_name) PRIMARY KEY (var_name)
); );
@ -152,14 +152,14 @@ CREATE TABLE phpbb_confirm (
confirm_id char(32) DEFAULT '' NOT NULL, confirm_id char(32) DEFAULT '' NOT NULL,
session_id char(32) DEFAULT '' NOT NULL, session_id char(32) DEFAULT '' NOT NULL,
confirm_type tinyint(3) DEFAULT '0' NOT NULL, confirm_type tinyint(3) DEFAULT '0' NOT NULL,
code char(8) DEFAULT '' NOT NULL, code varchar(8) DEFAULT '' NOT NULL,
PRIMARY KEY (session_id,confirm_id) PRIMARY KEY (session_id,confirm_id)
); );
# Table: 'phpbb_disallow' # Table: 'phpbb_disallow'
CREATE TABLE phpbb_disallow ( CREATE TABLE phpbb_disallow (
disallow_id mediumint(8) UNSIGNED NOT NULL auto_increment, disallow_id mediumint(8) UNSIGNED NOT NULL auto_increment,
disallow_username varchar(30) DEFAULT '' NOT NULL, disallow_username varchar(255) DEFAULT '' NOT NULL,
PRIMARY KEY (disallow_id) PRIMARY KEY (disallow_id)
); );
@ -170,8 +170,8 @@ CREATE TABLE phpbb_drafts (
topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
save_time int(11) UNSIGNED DEFAULT '0' NOT NULL, save_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
draft_subject varchar(60), draft_subject text,
draft_message mediumtext DEFAULT '' NOT NULL, draft_message mediumtext,
PRIMARY KEY (draft_id), PRIMARY KEY (draft_id),
KEY save_time (save_time) KEY save_time (save_time)
); );
@ -187,13 +187,13 @@ CREATE TABLE phpbb_extensions (
# Table: 'phpbb_extension_groups' # Table: 'phpbb_extension_groups'
CREATE TABLE phpbb_extension_groups ( CREATE TABLE phpbb_extension_groups (
group_id mediumint(8) NOT NULL auto_increment, group_id mediumint(8) NOT NULL auto_increment,
group_name char(20) NOT NULL, group_name varchar(255) NOT NULL,
cat_id tinyint(2) DEFAULT '0' NOT NULL, cat_id tinyint(2) DEFAULT '0' NOT NULL,
allow_group tinyint(1) DEFAULT '0' NOT NULL, allow_group tinyint(1) DEFAULT '0' NOT NULL,
download_mode tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, download_mode tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
upload_icon varchar(100) DEFAULT '' NOT NULL, upload_icon varchar(255) DEFAULT '' NOT NULL,
max_filesize int(20) DEFAULT '0' NOT NULL, max_filesize int(20) DEFAULT '0' NOT NULL,
allowed_forums text NOT NULL, allowed_forums text,
allow_in_pm tinyint(1) DEFAULT '0' NOT NULL, allow_in_pm tinyint(1) DEFAULT '0' NOT NULL,
PRIMARY KEY (group_id) PRIMARY KEY (group_id)
); );
@ -205,16 +205,16 @@ CREATE TABLE phpbb_forums (
left_id smallint(5) UNSIGNED NOT NULL, left_id smallint(5) UNSIGNED NOT NULL,
right_id smallint(5) UNSIGNED NOT NULL, right_id smallint(5) UNSIGNED NOT NULL,
forum_parents text, forum_parents text,
forum_name varchar(150) NOT NULL, forum_name text,
forum_desc text, forum_desc text,
forum_desc_bitfield int(11) UNSIGNED DEFAULT '0' NOT NULL, forum_desc_bitfield int(11) UNSIGNED DEFAULT '0' NOT NULL,
forum_desc_uid varchar(5) DEFAULT '' NOT NULL, forum_desc_uid varchar(5) DEFAULT '' NOT NULL,
forum_link varchar(200) DEFAULT '' NOT NULL, forum_link varchar(255) DEFAULT '' NOT NULL,
forum_password varchar(32) DEFAULT '' NOT NULL, forum_password varchar(40) DEFAULT '' NOT NULL,
forum_style tinyint(4) UNSIGNED, forum_style tinyint(4) UNSIGNED,
forum_image varchar(50) DEFAULT '' NOT NULL, forum_image varchar(255) DEFAULT '' NOT NULL,
forum_rules text DEFAULT '' NOT NULL, forum_rules text,
forum_rules_link varchar(200) DEFAULT '' NOT NULL, forum_rules_link varchar(255) DEFAULT '' NOT NULL,
forum_rules_bitfield int(11) UNSIGNED DEFAULT '0' NOT NULL, forum_rules_bitfield int(11) UNSIGNED DEFAULT '0' NOT NULL,
forum_rules_uid varchar(5) DEFAULT '' NOT NULL, forum_rules_uid varchar(5) DEFAULT '' NOT NULL,
forum_topics_per_page tinyint(4) UNSIGNED DEFAULT '0' NOT NULL, forum_topics_per_page tinyint(4) UNSIGNED DEFAULT '0' NOT NULL,
@ -226,7 +226,7 @@ CREATE TABLE phpbb_forums (
forum_last_post_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, forum_last_post_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
forum_last_poster_id mediumint(8) DEFAULT '0' NOT NULL, forum_last_poster_id mediumint(8) DEFAULT '0' NOT NULL,
forum_last_post_time int(11) DEFAULT '0' NOT NULL, forum_last_post_time int(11) DEFAULT '0' NOT NULL,
forum_last_poster_name varchar(30), forum_last_poster_name varchar(255),
forum_flags tinyint(4) DEFAULT '0' NOT NULL, forum_flags tinyint(4) DEFAULT '0' NOT NULL,
display_on_index tinyint(1) DEFAULT '1' NOT NULL, display_on_index tinyint(1) DEFAULT '1' NOT NULL,
enable_indexing tinyint(1) DEFAULT '1' NOT NULL, enable_indexing tinyint(1) DEFAULT '1' NOT NULL,
@ -245,7 +245,7 @@ CREATE TABLE phpbb_forums (
CREATE TABLE phpbb_forum_access ( CREATE TABLE phpbb_forum_access (
forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
session_id char(32) DEFAULT '' NOT NULL, session_id varchar(32) DEFAULT '' NOT NULL,
PRIMARY KEY (forum_id,user_id,session_id) PRIMARY KEY (forum_id,user_id,session_id)
); );
@ -271,12 +271,12 @@ CREATE TABLE phpbb_forums_watch (
CREATE TABLE phpbb_groups ( CREATE TABLE phpbb_groups (
group_id mediumint(8) NOT NULL auto_increment, group_id mediumint(8) NOT NULL auto_increment,
group_type tinyint(4) DEFAULT '1' NOT NULL, group_type tinyint(4) DEFAULT '1' NOT NULL,
group_name varchar(40) DEFAULT '' NOT NULL, group_name varchar(255) DEFAULT '' NOT NULL,
group_desc text, group_desc text,
group_desc_bitfield int(11) UNSIGNED DEFAULT '0' NOT NULL, group_desc_bitfield int(11) UNSIGNED DEFAULT '0' NOT NULL,
group_desc_uid varchar(5) DEFAULT '' NOT NULL, group_desc_uid varchar(5) DEFAULT '' NOT NULL,
group_display tinyint(1) DEFAULT '0' NOT NULL, group_display tinyint(1) DEFAULT '0' NOT NULL,
group_avatar varchar(100) DEFAULT '' NOT NULL, group_avatar varchar(255) DEFAULT '' NOT NULL,
group_avatar_type tinyint(4) DEFAULT '0' NOT NULL, group_avatar_type tinyint(4) DEFAULT '0' NOT NULL,
group_avatar_width tinyint(4) UNSIGNED DEFAULT '0' NOT NULL, group_avatar_width tinyint(4) UNSIGNED DEFAULT '0' NOT NULL,
group_avatar_height tinyint(4) UNSIGNED DEFAULT '0' NOT NULL, group_avatar_height tinyint(4) UNSIGNED DEFAULT '0' NOT NULL,
@ -294,7 +294,7 @@ CREATE TABLE phpbb_groups (
# Table: 'phpbb_icons' # Table: 'phpbb_icons'
CREATE TABLE phpbb_icons ( CREATE TABLE phpbb_icons (
icons_id tinyint(4) UNSIGNED NOT NULL auto_increment, icons_id tinyint(4) UNSIGNED NOT NULL auto_increment,
icons_url varchar(50), icons_url varchar(255),
icons_width tinyint(4) UNSIGNED NOT NULL, icons_width tinyint(4) UNSIGNED NOT NULL,
icons_height tinyint(4) UNSIGNED NOT NULL, icons_height tinyint(4) UNSIGNED NOT NULL,
icons_order tinyint(4) UNSIGNED NOT NULL, icons_order tinyint(4) UNSIGNED NOT NULL,
@ -307,9 +307,9 @@ CREATE TABLE phpbb_lang (
lang_id tinyint(4) UNSIGNED NOT NULL auto_increment, lang_id tinyint(4) UNSIGNED NOT NULL auto_increment,
lang_iso varchar(5) NOT NULL, lang_iso varchar(5) NOT NULL,
lang_dir varchar(30) NOT NULL, lang_dir varchar(30) NOT NULL,
lang_english_name varchar(30), lang_english_name varchar(100),
lang_local_name varchar(100), lang_local_name varchar(255),
lang_author varchar(100), lang_author varchar(255),
PRIMARY KEY (lang_id) PRIMARY KEY (lang_id)
); );
@ -337,9 +337,9 @@ CREATE TABLE phpbb_log (
CREATE TABLE phpbb_moderator_cache ( CREATE TABLE phpbb_moderator_cache (
forum_id mediumint(8) UNSIGNED NOT NULL, forum_id mediumint(8) UNSIGNED NOT NULL,
user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
username char(30) DEFAULT '' NOT NULL, username varchar(255) DEFAULT '' NOT NULL,
group_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, group_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
groupname char(30) DEFAULT '' NOT NULL, group_name varchar(255) DEFAULT '' NOT NULL,
display_on_index tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, display_on_index tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
KEY display_on_index (display_on_index), KEY display_on_index (display_on_index),
KEY forum_id (forum_id) KEY forum_id (forum_id)
@ -347,19 +347,19 @@ CREATE TABLE phpbb_moderator_cache (
# Table: 'phpbb_modules' # Table: 'phpbb_modules'
CREATE TABLE phpbb_modules ( CREATE TABLE phpbb_modules (
module_id smallint(5) unsigned NOT NULL auto_increment, module_id mediumint(8) UNSIGNED NOT NULL auto_increment,
module_enabled tinyint(1) NOT NULL default '1', module_enabled tinyint(1) NOT NULL default '1',
module_display tinyint(1) NOT NULL default '1', module_display tinyint(1) NOT NULL default '1',
module_name varchar(20) NOT NULL default '', module_name varchar(255) NOT NULL default '',
module_class varchar(4) NOT NULL default '', module_class varchar(10) NOT NULL default '',
parent_id smallint(5) unsigned NOT NULL default '0', parent_id mediumint(8) unsigned NOT NULL default '0',
left_id smallint(5) unsigned NOT NULL default '0', left_id mediumint(8) unsigned NOT NULL default '0',
right_id smallint(5) unsigned NOT NULL default '0', right_id mediumint(8) unsigned NOT NULL default '0',
module_langname varchar(50) NOT NULL default '', module_langname varchar(255) NOT NULL default '',
module_mode varchar(255) NOT NULL default '', module_mode varchar(255) NOT NULL default '',
module_auth varchar(255) NOT NULL default '', module_auth varchar(255) NOT NULL default '',
PRIMARY KEY (module_id), PRIMARY KEY (module_id),
KEY left_id (left_id), KEY left_right_id (left_id, right_id),
KEY module_enabled (module_enabled) KEY module_enabled (module_enabled)
); );
@ -367,7 +367,7 @@ CREATE TABLE phpbb_modules (
CREATE TABLE phpbb_poll_results ( CREATE TABLE phpbb_poll_results (
poll_option_id tinyint(4) UNSIGNED DEFAULT '0' NOT NULL, poll_option_id tinyint(4) UNSIGNED DEFAULT '0' NOT NULL,
topic_id mediumint(8) UNSIGNED NOT NULL, topic_id mediumint(8) UNSIGNED NOT NULL,
poll_option_text varchar(255) NOT NULL, poll_option_text text,
poll_option_total mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, poll_option_total mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
KEY poll_option_id (poll_option_id), KEY poll_option_id (poll_option_id),
KEY topic_id (topic_id) KEY topic_id (topic_id)
@ -399,8 +399,8 @@ CREATE TABLE phpbb_posts (
enable_smilies tinyint(1) DEFAULT '1' NOT NULL, enable_smilies tinyint(1) DEFAULT '1' NOT NULL,
enable_magic_url tinyint(1) DEFAULT '1' NOT NULL, enable_magic_url tinyint(1) DEFAULT '1' NOT NULL,
enable_sig tinyint(1) DEFAULT '1' NOT NULL, enable_sig tinyint(1) DEFAULT '1' NOT NULL,
post_username varchar(30), post_username varchar(255),
post_subject varchar(60), post_subject text,
post_text mediumtext, post_text mediumtext,
post_checksum varchar(32) NOT NULL, post_checksum varchar(32) NOT NULL,
post_encoding varchar(20) DEFAULT 'iso-8859-1' NOT NULL, post_encoding varchar(20) DEFAULT 'iso-8859-1' NOT NULL,
@ -408,7 +408,7 @@ CREATE TABLE phpbb_posts (
bbcode_bitfield int(11) UNSIGNED DEFAULT '0' NOT NULL, bbcode_bitfield int(11) UNSIGNED DEFAULT '0' NOT NULL,
bbcode_uid varchar(5) DEFAULT '' NOT NULL, bbcode_uid varchar(5) DEFAULT '' NOT NULL,
post_edit_time int(11) UNSIGNED DEFAULT '0' NOT NULL, post_edit_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
post_edit_reason varchar(100), post_edit_reason text,
post_edit_user mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, post_edit_user mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
post_edit_count smallint(5) UNSIGNED DEFAULT '0' NOT NULL, post_edit_count smallint(5) UNSIGNED DEFAULT '0' NOT NULL,
post_edit_locked tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, post_edit_locked tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
@ -433,9 +433,9 @@ CREATE TABLE phpbb_privmsgs (
enable_smilies tinyint(1) DEFAULT '1' NOT NULL, enable_smilies tinyint(1) DEFAULT '1' NOT NULL,
enable_magic_url tinyint(1) DEFAULT '1' NOT NULL, enable_magic_url tinyint(1) DEFAULT '1' NOT NULL,
enable_sig tinyint(1) DEFAULT '1' NOT NULL, enable_sig tinyint(1) DEFAULT '1' NOT NULL,
message_subject varchar(60), message_subject text,
message_text mediumtext, message_text mediumtext,
message_edit_reason varchar(100), message_edit_reason text,
message_edit_user mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, message_edit_user mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
message_encoding varchar(20) DEFAULT 'iso-8859-1' NOT NULL, message_encoding varchar(20) DEFAULT 'iso-8859-1' NOT NULL,
message_attachment tinyint(1) DEFAULT '0' NOT NULL, message_attachment tinyint(1) DEFAULT '0' NOT NULL,
@ -456,7 +456,7 @@ CREATE TABLE phpbb_privmsgs (
CREATE TABLE phpbb_privmsgs_folder ( CREATE TABLE phpbb_privmsgs_folder (
folder_id mediumint(8) UNSIGNED NOT NULL auto_increment, folder_id mediumint(8) UNSIGNED NOT NULL auto_increment,
user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
folder_name varchar(40) DEFAULT '' NOT NULL, folder_name varchar(255) DEFAULT '' NOT NULL,
pm_count mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, pm_count mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
PRIMARY KEY (folder_id), PRIMARY KEY (folder_id),
KEY user_id (user_id) KEY user_id (user_id)
@ -495,8 +495,8 @@ CREATE TABLE phpbb_privmsgs_to (
# Table: 'phpbb_profile_fields' # Table: 'phpbb_profile_fields'
CREATE TABLE phpbb_profile_fields ( CREATE TABLE phpbb_profile_fields (
field_id mediumint(8) UNSIGNED NOT NULL auto_increment, field_id mediumint(8) UNSIGNED NOT NULL auto_increment,
field_name varchar(50) DEFAULT '' NOT NULL, field_name varchar(255) DEFAULT '' NOT NULL,
field_desc varchar(255) DEFAULT '' NOT NULL, field_desc text,
field_type mediumint(8) UNSIGNED NOT NULL, field_type mediumint(8) UNSIGNED NOT NULL,
field_ident varchar(20) DEFAULT '' NOT NULL, field_ident varchar(20) DEFAULT '' NOT NULL,
field_length varchar(20) DEFAULT '' NOT NULL, field_length varchar(20) DEFAULT '' NOT NULL,
@ -537,7 +537,7 @@ CREATE TABLE phpbb_profile_lang (
field_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, field_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
lang_id tinyint(4) UNSIGNED DEFAULT '0' NOT NULL, lang_id tinyint(4) UNSIGNED DEFAULT '0' NOT NULL,
lang_name varchar(255) DEFAULT '' NOT NULL, lang_name varchar(255) DEFAULT '' NOT NULL,
lang_explain text NOT NULL, lang_explain text,
lang_default_value varchar(255) DEFAULT '' NOT NULL, lang_default_value varchar(255) DEFAULT '' NOT NULL,
PRIMARY KEY (field_id, lang_id) PRIMARY KEY (field_id, lang_id)
); );
@ -545,10 +545,10 @@ CREATE TABLE phpbb_profile_lang (
# Table: 'phpbb_ranks' # Table: 'phpbb_ranks'
CREATE TABLE phpbb_ranks ( CREATE TABLE phpbb_ranks (
rank_id smallint(5) UNSIGNED NOT NULL auto_increment, rank_id smallint(5) UNSIGNED NOT NULL auto_increment,
rank_title varchar(50) NOT NULL, rank_title varchar(255) NOT NULL,
rank_min mediumint(8) DEFAULT '0' NOT NULL, rank_min mediumint(8) DEFAULT '0' NOT NULL,
rank_special tinyint(1) DEFAULT '0', rank_special tinyint(1) DEFAULT '0',
rank_image varchar(100), rank_image varchar(255),
PRIMARY KEY (rank_id) PRIMARY KEY (rank_id)
); );
@ -561,7 +561,7 @@ CREATE TABLE phpbb_reports (
user_notify tinyint(1) DEFAULT '0' NOT NULL, user_notify tinyint(1) DEFAULT '0' NOT NULL,
report_closed tinyint(1) DEFAULT '0' NOT NULL, report_closed tinyint(1) DEFAULT '0' NOT NULL,
report_time int(11) UNSIGNED DEFAULT '0' NOT NULL, report_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
report_text text NOT NULL, report_text mediumtext,
PRIMARY KEY (report_id) PRIMARY KEY (report_id)
); );
@ -569,7 +569,7 @@ CREATE TABLE phpbb_reports (
CREATE TABLE phpbb_reports_reasons ( CREATE TABLE phpbb_reports_reasons (
reason_id smallint(6) NOT NULL auto_increment, reason_id smallint(6) NOT NULL auto_increment,
reason_title varchar(255) DEFAULT '' NOT NULL, reason_title varchar(255) DEFAULT '' NOT NULL,
reason_description text NOT NULL, reason_description text,
reason_order tinyint(4) DEFAULT '0' NOT NULL, reason_order tinyint(4) DEFAULT '0' NOT NULL,
PRIMARY KEY (reason_id) PRIMARY KEY (reason_id)
); );
@ -578,8 +578,8 @@ CREATE TABLE phpbb_reports_reasons (
CREATE TABLE phpbb_search_results ( CREATE TABLE phpbb_search_results (
search_key varchar(32) DEFAULT '' NOT NULL, search_key varchar(32) DEFAULT '' NOT NULL,
search_time int(11) DEFAULT '0' NOT NULL, search_time int(11) DEFAULT '0' NOT NULL,
search_keywords mediumtext NOT NULL, search_keywords mediumtext,
search_authors mediumtext NOT NULL, search_authors mediumtext,
PRIMARY KEY (search_key) PRIMARY KEY (search_key)
); );
@ -640,9 +640,9 @@ CREATE TABLE phpbb_sitelist (
# Table: 'phpbb_smilies' # Table: 'phpbb_smilies'
CREATE TABLE phpbb_smilies ( CREATE TABLE phpbb_smilies (
smiley_id tinyint(4) UNSIGNED NOT NULL auto_increment, smiley_id tinyint(4) UNSIGNED NOT NULL auto_increment,
code char(10), code varchar(10),
emotion char(50), emotion varchar(50),
smiley_url char(50), smiley_url varchar(50),
smiley_width tinyint(4) UNSIGNED NOT NULL, smiley_width tinyint(4) UNSIGNED NOT NULL,
smiley_height tinyint(4) UNSIGNED NOT NULL, smiley_height tinyint(4) UNSIGNED NOT NULL,
smiley_order tinyint(4) UNSIGNED NOT NULL, smiley_order tinyint(4) UNSIGNED NOT NULL,
@ -653,8 +653,8 @@ CREATE TABLE phpbb_smilies (
# Table: 'phpbb_styles' # Table: 'phpbb_styles'
CREATE TABLE phpbb_styles ( CREATE TABLE phpbb_styles (
style_id tinyint(4) UNSIGNED NOT NULL auto_increment, style_id tinyint(4) UNSIGNED NOT NULL auto_increment,
style_name varchar(30) DEFAULT '' NOT NULL, style_name varchar(255) DEFAULT '' NOT NULL,
style_copyright varchar(50) DEFAULT '' NOT NULL, style_copyright varchar(255) DEFAULT '' NOT NULL,
style_active tinyint(1) DEFAULT '1' NOT NULL, style_active tinyint(1) DEFAULT '1' NOT NULL,
template_id tinyint(4) UNSIGNED NOT NULL, template_id tinyint(4) UNSIGNED NOT NULL,
theme_id tinyint(4) UNSIGNED NOT NULL, theme_id tinyint(4) UNSIGNED NOT NULL,
@ -669,9 +669,9 @@ CREATE TABLE phpbb_styles (
# Table: 'phpbb_styles_template' # Table: 'phpbb_styles_template'
CREATE TABLE phpbb_styles_template ( CREATE TABLE phpbb_styles_template (
template_id tinyint(4) UNSIGNED NOT NULL auto_increment, template_id tinyint(4) UNSIGNED NOT NULL auto_increment,
template_name varchar(30) NOT NULL, template_name varchar(255) NOT NULL,
template_copyright varchar(50) NOT NULL, template_copyright varchar(255) NOT NULL,
template_path varchar(30) NOT NULL, template_path varchar(100) NOT NULL,
bbcode_bitfield int(11) UNSIGNED DEFAULT '0' NOT NULL, bbcode_bitfield int(11) UNSIGNED DEFAULT '0' NOT NULL,
template_storedb tinyint(1) DEFAULT '0' NOT NULL, template_storedb tinyint(1) DEFAULT '0' NOT NULL,
PRIMARY KEY (template_id), PRIMARY KEY (template_id),
@ -681,8 +681,8 @@ CREATE TABLE phpbb_styles_template (
# Table: 'phpbb_styles_template_data' # Table: 'phpbb_styles_template_data'
CREATE TABLE phpbb_styles_template_data ( CREATE TABLE phpbb_styles_template_data (
template_id tinyint(4) UNSIGNED NOT NULL, template_id tinyint(4) UNSIGNED NOT NULL,
template_filename varchar(50) DEFAULT '' NOT NULL, template_filename varchar(100) DEFAULT '' NOT NULL,
template_included text NOT NULL, template_included text,
template_mtime int(11) DEFAULT '0' NOT NULL, template_mtime int(11) DEFAULT '0' NOT NULL,
template_data mediumtext, template_data mediumtext,
KEY (template_id), KEY (template_id),
@ -692,12 +692,12 @@ CREATE TABLE phpbb_styles_template_data (
# Table: 'phpbb_styles_theme' # Table: 'phpbb_styles_theme'
CREATE TABLE phpbb_styles_theme ( CREATE TABLE phpbb_styles_theme (
theme_id tinyint(4) UNSIGNED NOT NULL auto_increment, theme_id tinyint(4) UNSIGNED NOT NULL auto_increment,
theme_name varchar(30) DEFAULT '' NOT NULL, theme_name varchar(255) DEFAULT '' NOT NULL,
theme_copyright varchar(50) DEFAULT '' NOT NULL, theme_copyright varchar(255) DEFAULT '' NOT NULL,
theme_path varchar(30) DEFAULT '' NOT NULL, theme_path varchar(100) DEFAULT '' NOT NULL,
theme_storedb tinyint(1) DEFAULT '0' NOT NULL, theme_storedb tinyint(1) DEFAULT '0' NOT NULL,
theme_mtime int(11) DEFAULT '0' NOT NULL, theme_mtime int(11) DEFAULT '0' NOT NULL,
theme_data mediumtext DEFAULT '' NOT NULL, theme_data mediumtext,
PRIMARY KEY (theme_id), PRIMARY KEY (theme_id),
UNIQUE theme_name (theme_name) UNIQUE theme_name (theme_name)
); );
@ -705,9 +705,9 @@ CREATE TABLE phpbb_styles_theme (
# Table: 'phpbb_styles_imageset' # Table: 'phpbb_styles_imageset'
CREATE TABLE phpbb_styles_imageset ( CREATE TABLE phpbb_styles_imageset (
imageset_id tinyint(4) UNSIGNED NOT NULL auto_increment, imageset_id tinyint(4) UNSIGNED NOT NULL auto_increment,
imageset_name varchar(30) DEFAULT '' NOT NULL, imageset_name varchar(255) DEFAULT '' NOT NULL,
imageset_copyright varchar(50) DEFAULT '' NOT NULL, imageset_copyright varchar(255) DEFAULT '' NOT NULL,
imageset_path varchar(30) DEFAULT '' NOT NULL, imageset_path varchar(100) DEFAULT '' NOT NULL,
site_logo varchar(200) DEFAULT '' NOT NULL, site_logo varchar(200) DEFAULT '' NOT NULL,
btn_post varchar(200) DEFAULT '' NOT NULL, btn_post varchar(200) DEFAULT '' NOT NULL,
btn_post_pm varchar(200) DEFAULT '' NOT NULL, btn_post_pm varchar(200) DEFAULT '' NOT NULL,
@ -792,12 +792,12 @@ CREATE TABLE phpbb_styles_imageset (
# Table: 'phpbb_topics' # Table: 'phpbb_topics'
CREATE TABLE phpbb_topics ( CREATE TABLE phpbb_topics (
topic_id mediumint(8) UNSIGNED NOT NULL auto_increment, topic_id mediumint(8) UNSIGNED NOT NULL auto_increment,
forum_id smallint(8) UNSIGNED DEFAULT '0' NOT NULL, forum_id smallint(5) UNSIGNED DEFAULT '0' NOT NULL,
icon_id tinyint(4) UNSIGNED DEFAULT '1' NOT NULL, icon_id tinyint(4) UNSIGNED DEFAULT '1' NOT NULL,
topic_attachment tinyint(1) DEFAULT '0' NOT NULL, topic_attachment tinyint(1) DEFAULT '0' NOT NULL,
topic_approved tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, topic_approved tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
topic_reported tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, topic_reported tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
topic_title varchar(60) NOT NULL, topic_title text,
topic_poster mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, topic_poster mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
topic_time int(11) DEFAULT '0' NOT NULL, topic_time int(11) DEFAULT '0' NOT NULL,
topic_time_limit int(11) DEFAULT '0' NOT NULL, topic_time_limit int(11) DEFAULT '0' NOT NULL,
@ -807,16 +807,16 @@ CREATE TABLE phpbb_topics (
topic_status tinyint(3) DEFAULT '0' NOT NULL, topic_status tinyint(3) DEFAULT '0' NOT NULL,
topic_type tinyint(3) DEFAULT '0' NOT NULL, topic_type tinyint(3) DEFAULT '0' NOT NULL,
topic_first_post_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, topic_first_post_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
topic_first_poster_name varchar(30), topic_first_poster_name varchar(255),
topic_last_post_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, topic_last_post_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
topic_last_poster_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, topic_last_poster_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
topic_last_poster_name varchar(30), topic_last_poster_name varchar(255),
topic_last_post_time int(11) UNSIGNED DEFAULT '0' NOT NULL, topic_last_post_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
topic_last_view_time int(11) UNSIGNED DEFAULT '0' NOT NULL, topic_last_view_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
topic_moved_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, topic_moved_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
topic_bumped tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, topic_bumped tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
topic_bumper mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, topic_bumper mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
poll_title varchar(255) DEFAULT '' NOT NULL, poll_title text,
poll_start int(11) DEFAULT '0' NOT NULL, poll_start int(11) DEFAULT '0' NOT NULL,
poll_length int(11) DEFAULT '0' NOT NULL, poll_length int(11) DEFAULT '0' NOT NULL,
poll_max_options tinyint(4) UNSIGNED DEFAULT '1' NOT NULL, poll_max_options tinyint(4) UNSIGNED DEFAULT '1' NOT NULL,
@ -872,13 +872,13 @@ CREATE TABLE phpbb_users (
user_id mediumint(8) UNSIGNED NOT NULL auto_increment, user_id mediumint(8) UNSIGNED NOT NULL auto_increment,
user_type tinyint(1) DEFAULT '0' NOT NULL, user_type tinyint(1) DEFAULT '0' NOT NULL,
group_id mediumint(8) DEFAULT '3' NOT NULL, group_id mediumint(8) DEFAULT '3' NOT NULL,
user_permissions text DEFAULT '' NOT NULL, user_permissions text,
user_ip varchar(40) DEFAULT '' NOT NULL, user_ip varchar(40) DEFAULT '' NOT NULL,
user_regdate int(11) DEFAULT '0' NOT NULL, user_regdate int(11) DEFAULT '0' NOT NULL,
username varchar(30) DEFAULT '' NOT NULL, username varchar(255) DEFAULT '' NOT NULL,
user_password varchar(32) DEFAULT '' NOT NULL, user_password varchar(40) DEFAULT '' NOT NULL,
user_passchg int(11) DEFAULT '0' NOT NULL, user_passchg int(11) DEFAULT '0' NOT NULL,
user_email varchar(60) DEFAULT '' NOT NULL, user_email varchar(100) DEFAULT '' NOT NULL,
user_email_hash bigint(20) DEFAULT '0' NOT NULL, user_email_hash bigint(20) DEFAULT '0' NOT NULL,
user_birthday varchar(10) DEFAULT '' NOT NULL, user_birthday varchar(10) DEFAULT '' NOT NULL,
user_lastvisit int(11) DEFAULT '0' NOT NULL, user_lastvisit int(11) DEFAULT '0' NOT NULL,
@ -918,11 +918,11 @@ CREATE TABLE phpbb_users (
user_allow_viewemail tinyint(1) DEFAULT '1' NOT NULL, user_allow_viewemail tinyint(1) DEFAULT '1' NOT NULL,
user_allow_massemail tinyint(1) DEFAULT '1' NOT NULL, user_allow_massemail tinyint(1) DEFAULT '1' NOT NULL,
user_options int(11) DEFAULT '893' NOT NULL, user_options int(11) DEFAULT '893' NOT NULL,
user_avatar varchar(100) DEFAULT '' NOT NULL, user_avatar varchar(255) DEFAULT '' NOT NULL,
user_avatar_type tinyint(2) DEFAULT '0' NOT NULL, user_avatar_type tinyint(2) DEFAULT '0' NOT NULL,
user_avatar_width tinyint(4) UNSIGNED DEFAULT '0' NOT NULL, user_avatar_width tinyint(4) UNSIGNED DEFAULT '0' NOT NULL,
user_avatar_height tinyint(4) UNSIGNED DEFAULT '0' NOT NULL, user_avatar_height tinyint(4) UNSIGNED DEFAULT '0' NOT NULL,
user_sig text DEFAULT '' NOT NULL, user_sig text,
user_sig_bbcode_uid varchar(5) DEFAULT '' NOT NULL, user_sig_bbcode_uid varchar(5) DEFAULT '' NOT NULL,
user_sig_bbcode_bitfield int(11) DEFAULT '0' NOT NULL, user_sig_bbcode_bitfield int(11) DEFAULT '0' NOT NULL,
user_from varchar(100) DEFAULT '' NOT NULL, user_from varchar(100) DEFAULT '' NOT NULL,
@ -931,7 +931,7 @@ CREATE TABLE phpbb_users (
user_yim varchar(255) DEFAULT '' NOT NULL, user_yim varchar(255) DEFAULT '' NOT NULL,
user_msnm varchar(255) DEFAULT '' NOT NULL, user_msnm varchar(255) DEFAULT '' NOT NULL,
user_jabber varchar(255) DEFAULT '' NOT NULL, user_jabber varchar(255) DEFAULT '' NOT NULL,
user_website varchar(100) DEFAULT '' NOT NULL, user_website varchar(200) DEFAULT '' NOT NULL,
user_occ varchar(255) DEFAULT '' NOT NULL, user_occ varchar(255) DEFAULT '' NOT NULL,
user_interests varchar(255) DEFAULT '' NOT NULL, user_interests varchar(255) DEFAULT '' NOT NULL,
user_actkey varchar(32) DEFAULT '' NOT NULL, user_actkey varchar(32) DEFAULT '' NOT NULL,
@ -956,8 +956,8 @@ CREATE TABLE phpbb_warnings (
# Table: 'phpbb_words' # Table: 'phpbb_words'
CREATE TABLE phpbb_words ( CREATE TABLE phpbb_words (
word_id mediumint(8) UNSIGNED NOT NULL auto_increment, word_id mediumint(8) UNSIGNED NOT NULL auto_increment,
word char(100) NOT NULL, word varchar(255) NOT NULL,
replacement char(100) NOT NULL, replacement varchar(255) NOT NULL,
PRIMARY KEY (word_id) PRIMARY KEY (word_id)
); );
@ -969,4 +969,4 @@ CREATE TABLE phpbb_zebra (
foe tinyint(1) DEFAULT '0' NOT NULL, foe tinyint(1) DEFAULT '0' NOT NULL,
KEY user_id (user_id), KEY user_id (user_id),
KEY zebra_id (zebra_id) KEY zebra_id (zebra_id)
); );

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -678,7 +678,7 @@ INSERT INTO phpbb_auth_groups (group_id, forum_id, auth_option_id, auth_setting)
# -- Moderator cache # -- Moderator cache
INSERT INTO phpbb_moderator_cache (user_id, forum_id, username, groupname) VALUES (2, 2, 'Admin', 'Administrators'); INSERT INTO phpbb_moderator_cache (user_id, forum_id, username, group_name) VALUES (2, 2, 'Admin', 'Administrators');
# MSSQL IDENTITY phpbb_topics ON # # MSSQL IDENTITY phpbb_topics ON #

View file

@ -16,7 +16,7 @@ CREATE TABLE phpbb_attachments (
physical_filename varchar(255) NOT NULL, physical_filename varchar(255) NOT NULL,
real_filename varchar(255) NOT NULL, real_filename varchar(255) NOT NULL,
download_count mediumint(8) NOT NULL DEFAULT '0', download_count mediumint(8) NOT NULL DEFAULT '0',
comment varchar(255), comment text(65535),
extension varchar(100), extension varchar(100),
mimetype varchar(100), mimetype varchar(100),
filesize int(20) NOT NULL, filesize int(20) NOT NULL,
@ -24,12 +24,13 @@ CREATE TABLE phpbb_attachments (
thumbnail tinyint(1) NOT NULL DEFAULT '0' thumbnail tinyint(1) NOT NULL DEFAULT '0'
); );
CREATE INDEX filetime_phpbb_attachments on phpbb_attachments (filetime); CREATE INDEX phpbb_attachments_filetime on phpbb_attachments (filetime);
CREATE INDEX post_msg_id_phpbb_attachments on phpbb_attachments (post_msg_id); CREATE INDEX phpbb_attachments_post_msg_id on phpbb_attachments (post_msg_id);
CREATE INDEX topic_id_phpbb_attachments on phpbb_attachments (topic_id); CREATE INDEX phpbb_attachments_topic_id on phpbb_attachments (topic_id);
CREATE INDEX poster_id_phpbb_attachments on phpbb_attachments (poster_id); CREATE INDEX phpbb_attachments_poster_id on phpbb_attachments (poster_id);
CREATE INDEX physical_filename_phpbb_attach on phpbb_attachments (physical_filename); CREATE INDEX phpbb_attachments_physical_filename on phpbb_attachments (physical_filename);
CREATE INDEX filesize_phpbb_attachments on phpbb_attachments (filesize); CREATE INDEX phpbb_attachments_filesize on phpbb_attachments (filesize);
# Table: phpbb_auth_groups # Table: phpbb_auth_groups
CREATE TABLE phpbb_auth_groups ( CREATE TABLE phpbb_auth_groups (
@ -40,19 +41,21 @@ CREATE TABLE phpbb_auth_groups (
auth_setting tinyint(4) NOT NULL DEFAULT '0' auth_setting tinyint(4) NOT NULL DEFAULT '0'
); );
CREATE INDEX group_id_phpbb_auth_groups on phpbb_auth_groups (group_id); CREATE INDEX phpbb_auth_groups_group_id on phpbb_auth_groups (group_id);
CREATE INDEX auth_option_id_phpbb_auth_grou on phpbb_auth_groups (auth_option_id); CREATE INDEX phpbb_auth_groups_auth_option_id on phpbb_auth_groups (auth_option_id);
# Table: phpbb_auth_options # Table: phpbb_auth_options
CREATE TABLE phpbb_auth_options ( CREATE TABLE phpbb_auth_options (
auth_option_id INTEGER PRIMARY KEY NOT NULL, auth_option_id INTEGER PRIMARY KEY NOT NULL,
auth_option char(20) NOT NULL, auth_option varchar(20) NOT NULL,
is_global tinyint(1) NOT NULL DEFAULT '0', is_global tinyint(1) NOT NULL DEFAULT '0',
is_local tinyint(1) NOT NULL DEFAULT '0', is_local tinyint(1) NOT NULL DEFAULT '0',
founder_only tinyint(1) NOT NULL DEFAULT '0' founder_only tinyint(1) NOT NULL DEFAULT '0'
); );
CREATE INDEX auth_option_phpbb_auth_options on phpbb_auth_options (auth_option); CREATE INDEX phpbb_auth_options_auth_option on phpbb_auth_options (auth_option);
# Table: phpbb_auth_roles # Table: phpbb_auth_roles
CREATE TABLE phpbb_auth_roles ( CREATE TABLE phpbb_auth_roles (
@ -62,7 +65,8 @@ CREATE TABLE phpbb_auth_roles (
role_group_ids varchar(255) NOT NULL DEFAULT '' role_group_ids varchar(255) NOT NULL DEFAULT ''
); );
CREATE INDEX role_type_phpbb_auth_roles on phpbb_auth_roles (role_type); CREATE INDEX phpbb_auth_roles_role_type on phpbb_auth_roles (role_type);
# Table: phpbb_auth_roles_data # Table: phpbb_auth_roles_data
CREATE TABLE phpbb_auth_roles_data ( CREATE TABLE phpbb_auth_roles_data (
@ -72,6 +76,7 @@ CREATE TABLE phpbb_auth_roles_data (
PRIMARY KEY (role_id, auth_option_id) PRIMARY KEY (role_id, auth_option_id)
); );
# Table: phpbb_auth_users # Table: phpbb_auth_users
CREATE TABLE phpbb_auth_users ( CREATE TABLE phpbb_auth_users (
user_id mediumint(8) NOT NULL DEFAULT '0', user_id mediumint(8) NOT NULL DEFAULT '0',
@ -81,36 +86,39 @@ CREATE TABLE phpbb_auth_users (
auth_setting tinyint(4) NOT NULL DEFAULT '0' auth_setting tinyint(4) NOT NULL DEFAULT '0'
); );
CREATE INDEX user_id_phpbb_auth_users on phpbb_auth_users (user_id); CREATE INDEX phpbb_auth_users_user_id on phpbb_auth_users (user_id);
CREATE INDEX auth_option_id_phpbb_auth_user on phpbb_auth_users (auth_option_id); CREATE INDEX phpbb_auth_users_auth_option_id on phpbb_auth_users (auth_option_id);
# Table: phpbb_banlist # Table: phpbb_banlist
CREATE TABLE phpbb_banlist ( CREATE TABLE phpbb_banlist (
ban_id INTEGER PRIMARY KEY NOT NULL, ban_id INTEGER PRIMARY KEY NOT NULL,
ban_userid mediumint(8) NOT NULL DEFAULT '0', ban_userid mediumint(8) NOT NULL DEFAULT '0',
ban_ip varchar(40) NOT NULL DEFAULT '', ban_ip varchar(40) NOT NULL DEFAULT '',
ban_email varchar(50) NOT NULL DEFAULT '', ban_email varchar(100) NOT NULL DEFAULT '',
ban_start int(11) NOT NULL DEFAULT '0', ban_start int(11) NOT NULL DEFAULT '0',
ban_end int(11) NOT NULL DEFAULT '0', ban_end int(11) NOT NULL DEFAULT '0',
ban_exclude tinyint(1) NOT NULL DEFAULT '0', ban_exclude tinyint(1) NOT NULL DEFAULT '0',
ban_reason varchar(255) NOT NULL DEFAULT '', ban_reason text(65535),
ban_give_reason varchar(255) NOT NULL DEFAULT '' ban_give_reason text(65535)
); );
# Table: phpbb_bbcodes # Table: phpbb_bbcodes
CREATE TABLE phpbb_bbcodes ( CREATE TABLE phpbb_bbcodes (
bbcode_id INTEGER PRIMARY KEY NOT NULL DEFAULT '0', bbcode_id INTEGER PRIMARY KEY NOT NULL DEFAULT '0',
bbcode_tag varchar(16) NOT NULL DEFAULT '', bbcode_tag varchar(16) NOT NULL DEFAULT '',
display_on_posting tinyint(1) NOT NULL DEFAULT '0', display_on_posting tinyint(1) NOT NULL DEFAULT '0',
bbcode_match varchar(255) NOT NULL DEFAULT '', bbcode_match varchar(255) NOT NULL DEFAULT '',
bbcode_tpl text(65535) NOT NULL DEFAULT '', bbcode_tpl text(65535),
first_pass_match varchar(255) NOT NULL DEFAULT '', first_pass_match varchar(255) NOT NULL DEFAULT '',
first_pass_replace varchar(255) NOT NULL DEFAULT '', first_pass_replace varchar(255) NOT NULL DEFAULT '',
second_pass_match varchar(255) NOT NULL DEFAULT '', second_pass_match varchar(255) NOT NULL DEFAULT '',
second_pass_replace text(65535) NOT NULL DEFAULT '' second_pass_replace text(65535)
); );
CREATE INDEX display_on_posting_phpbb_bbcodes on phpbb_bbcodes (display_on_posting); CREATE INDEX phpbb_bbcodes_display_on_posting on phpbb_bbcodes (display_on_posting);
# Table: phpbb_bookmarks # Table: phpbb_bookmarks
CREATE TABLE phpbb_bookmarks ( CREATE TABLE phpbb_bookmarks (
@ -119,29 +127,32 @@ CREATE TABLE phpbb_bookmarks (
order_id mediumint(8) NOT NULL DEFAULT '0' order_id mediumint(8) NOT NULL DEFAULT '0'
); );
CREATE INDEX order_id_phpbb_bookmarks on phpbb_bookmarks (order_id); CREATE INDEX phpbb_bookmarks_order_id on phpbb_bookmarks (order_id);
CREATE INDEX topic_user_id_phpbb_bookmarks on phpbb_bookmarks (topic_id, user_id); CREATE INDEX phpbb_bookmarks_topic_user_id on phpbb_bookmarks (topic_id, user_id);
# Table: phpbb_bots # Table: phpbb_bots
CREATE TABLE phpbb_bots ( CREATE TABLE phpbb_bots (
bot_id INTEGER PRIMARY KEY NOT NULL, bot_id INTEGER PRIMARY KEY NOT NULL,
bot_active tinyint(1) NOT NULL DEFAULT '1', bot_active tinyint(1) NOT NULL DEFAULT '1',
bot_name varchar(255) NOT NULL DEFAULT '', bot_name text(65535),
user_id mediumint(8) NOT NULL DEFAULT '0', user_id mediumint(8) NOT NULL DEFAULT '0',
bot_agent varchar(255) NOT NULL DEFAULT '', bot_agent varchar(255) NOT NULL DEFAULT '',
bot_ip varchar(255) NOT NULL DEFAULT '' bot_ip varchar(255) NOT NULL DEFAULT ''
); );
CREATE INDEX bot_active_phpbb_bots on phpbb_bots (bot_active); CREATE INDEX phpbb_bots_bot_active on phpbb_bots (bot_active);
# Table: phpbb_cache # Table: phpbb_cache
CREATE TABLE phpbb_cache ( CREATE TABLE phpbb_cache (
var_name varchar(255) NOT NULL DEFAULT '', var_name varchar(255) NOT NULL DEFAULT '',
var_expires int(10) NOT NULL DEFAULT '0', var_expires int(10) NOT NULL DEFAULT '0',
var_data mediumtext(16777215) NOT NULL, var_data mediumtext(16777215),
PRIMARY KEY (var_name) PRIMARY KEY (var_name)
); );
# Table: phpbb_config # Table: phpbb_config
CREATE TABLE phpbb_config ( CREATE TABLE phpbb_config (
config_name varchar(255) NOT NULL, config_name varchar(255) NOT NULL,
@ -150,23 +161,26 @@ CREATE TABLE phpbb_config (
PRIMARY KEY (config_name) PRIMARY KEY (config_name)
); );
CREATE INDEX is_dynamic_phpbb_config on phpbb_config (is_dynamic); CREATE INDEX phpbb_config_is_dynamic on phpbb_config (is_dynamic);
# Table: phpbb_confirm # Table: phpbb_confirm
CREATE TABLE phpbb_confirm ( CREATE TABLE phpbb_confirm (
confirm_id char(32) NOT NULL DEFAULT '', confirm_id char(32) NOT NULL DEFAULT '',
session_id char(32) NOT NULL DEFAULT '', session_id char(32) NOT NULL DEFAULT '',
confirm_type INTEGER NOT NULL DEFAULT '0', confirm_type INTEGER NOT NULL DEFAULT '0',
code char(8) NOT NULL DEFAULT '', code varchar(8) NOT NULL DEFAULT '',
PRIMARY KEY (session_id, confirm_id) PRIMARY KEY (session_id, confirm_id)
); );
# Table: phpbb_disallow # Table: phpbb_disallow
CREATE TABLE phpbb_disallow ( CREATE TABLE phpbb_disallow (
disallow_id INTEGER PRIMARY KEY NOT NULL, disallow_id INTEGER PRIMARY KEY NOT NULL,
disallow_username varchar(30) NOT NULL DEFAULT '' disallow_username varchar(255) NOT NULL DEFAULT ''
); );
# Table: phpbb_drafts # Table: phpbb_drafts
CREATE TABLE phpbb_drafts ( CREATE TABLE phpbb_drafts (
draft_id INTEGER PRIMARY KEY NOT NULL, draft_id INTEGER PRIMARY KEY NOT NULL,
@ -174,11 +188,12 @@ CREATE TABLE phpbb_drafts (
topic_id mediumint(8) NOT NULL DEFAULT '0', topic_id mediumint(8) NOT NULL DEFAULT '0',
forum_id mediumint(8) NOT NULL DEFAULT '0', forum_id mediumint(8) NOT NULL DEFAULT '0',
save_time int(11) NOT NULL DEFAULT '0', save_time int(11) NOT NULL DEFAULT '0',
draft_subject varchar(60), draft_subject text(65535),
draft_message mediumtext(16777215) NOT NULL DEFAULT '' draft_message mediumtext(16777215)
); );
CREATE INDEX save_time_phpbb_drafts on phpbb_drafts (save_time); CREATE INDEX phpbb_drafts_save_time on phpbb_drafts (save_time);
# Table: phpbb_extensions # Table: phpbb_extensions
CREATE TABLE phpbb_extensions ( CREATE TABLE phpbb_extensions (
@ -187,19 +202,21 @@ CREATE TABLE phpbb_extensions (
extension varchar(100) NOT NULL DEFAULT '' extension varchar(100) NOT NULL DEFAULT ''
); );
# Table: phpbb_extension_groups # Table: phpbb_extension_groups
CREATE TABLE phpbb_extension_groups ( CREATE TABLE phpbb_extension_groups (
group_id INTEGER PRIMARY KEY NOT NULL, group_id INTEGER PRIMARY KEY NOT NULL,
group_name char(20) NOT NULL, group_name varchar(255) NOT NULL,
cat_id tinyint(2) NOT NULL DEFAULT '0', cat_id tinyint(2) NOT NULL DEFAULT '0',
allow_group tinyint(1) NOT NULL DEFAULT '0', allow_group tinyint(1) NOT NULL DEFAULT '0',
download_mode tinyint(1) NOT NULL DEFAULT '1', download_mode tinyint(1) NOT NULL DEFAULT '1',
upload_icon varchar(100) NOT NULL DEFAULT '', upload_icon varchar(255) NOT NULL DEFAULT '',
max_filesize int(20) NOT NULL DEFAULT '0', max_filesize int(20) NOT NULL DEFAULT '0',
allowed_forums text(65535) NOT NULL, allowed_forums text(65535),
allow_in_pm tinyint(1) NOT NULL DEFAULT '0' allow_in_pm tinyint(1) NOT NULL DEFAULT '0'
); );
# Table: phpbb_forums # Table: phpbb_forums
CREATE TABLE phpbb_forums ( CREATE TABLE phpbb_forums (
forum_id INTEGER PRIMARY KEY NOT NULL, forum_id INTEGER PRIMARY KEY NOT NULL,
@ -207,16 +224,16 @@ CREATE TABLE phpbb_forums (
left_id smallint(5) NOT NULL, left_id smallint(5) NOT NULL,
right_id smallint(5) NOT NULL, right_id smallint(5) NOT NULL,
forum_parents text(65535), forum_parents text(65535),
forum_name varchar(150) NOT NULL, forum_name text(65535),
forum_desc text(65535), forum_desc text(65535),
forum_desc_bitfield int(11) NOT NULL DEFAULT '0', forum_desc_bitfield int(11) NOT NULL DEFAULT '0',
forum_desc_uid varchar(5) NOT NULL DEFAULT '', forum_desc_uid varchar(5) NOT NULL DEFAULT '',
forum_link varchar(200) NOT NULL DEFAULT '', forum_link varchar(255) NOT NULL DEFAULT '',
forum_password varchar(32) NOT NULL DEFAULT '', forum_password varchar(40) NOT NULL DEFAULT '',
forum_style tinyint(4), forum_style tinyint(4),
forum_image varchar(50) NOT NULL DEFAULT '', forum_image varchar(255) NOT NULL DEFAULT '',
forum_rules text(65535) NOT NULL DEFAULT '', forum_rules text(65535),
forum_rules_link varchar(200) NOT NULL DEFAULT '', forum_rules_link varchar(255) NOT NULL DEFAULT '',
forum_rules_bitfield int(11) NOT NULL DEFAULT '0', forum_rules_bitfield int(11) NOT NULL DEFAULT '0',
forum_rules_uid varchar(5) NOT NULL DEFAULT '', forum_rules_uid varchar(5) NOT NULL DEFAULT '',
forum_topics_per_page tinyint(4) NOT NULL DEFAULT '0', forum_topics_per_page tinyint(4) NOT NULL DEFAULT '0',
@ -228,7 +245,7 @@ CREATE TABLE phpbb_forums (
forum_last_post_id mediumint(8) NOT NULL DEFAULT '0', forum_last_post_id mediumint(8) NOT NULL DEFAULT '0',
forum_last_poster_id mediumint(8) NOT NULL DEFAULT '0', forum_last_poster_id mediumint(8) NOT NULL DEFAULT '0',
forum_last_post_time int(11) NOT NULL DEFAULT '0', forum_last_post_time int(11) NOT NULL DEFAULT '0',
forum_last_poster_name varchar(30), forum_last_poster_name varchar(255),
forum_flags tinyint(4) NOT NULL DEFAULT '0', forum_flags tinyint(4) NOT NULL DEFAULT '0',
display_on_index tinyint(1) NOT NULL DEFAULT '1', display_on_index tinyint(1) NOT NULL DEFAULT '1',
enable_indexing tinyint(1) NOT NULL DEFAULT '1', enable_indexing tinyint(1) NOT NULL DEFAULT '1',
@ -240,17 +257,19 @@ CREATE TABLE phpbb_forums (
prune_freq tinyint(4) NOT NULL DEFAULT '0' prune_freq tinyint(4) NOT NULL DEFAULT '0'
); );
CREATE INDEX left_right_id_phpbb_forums on phpbb_forums (left_id, right_id); CREATE INDEX phpbb_forums_left_right_id on phpbb_forums (left_id, right_id);
CREATE INDEX forum_last_post_id_phpbb_forum on phpbb_forums (forum_last_post_id); CREATE INDEX phpbb_forums_forum_last_post_id on phpbb_forums (forum_last_post_id);
# Table: phpbb_forum_access # Table: phpbb_forum_access
CREATE TABLE phpbb_forum_access ( CREATE TABLE phpbb_forum_access (
forum_id mediumint(8) NOT NULL DEFAULT '0', forum_id mediumint(8) NOT NULL DEFAULT '0',
user_id mediumint(8) NOT NULL DEFAULT '0', user_id mediumint(8) NOT NULL DEFAULT '0',
session_id char(32) NOT NULL DEFAULT '', session_id varchar(32) NOT NULL DEFAULT '',
PRIMARY KEY (forum_id, user_id, session_id) PRIMARY KEY (forum_id, user_id, session_id)
); );
# Table: phpbb_forums_marking # Table: phpbb_forums_marking
CREATE TABLE phpbb_forums_marking ( CREATE TABLE phpbb_forums_marking (
user_id mediumint(9) NOT NULL DEFAULT '0', user_id mediumint(9) NOT NULL DEFAULT '0',
@ -259,6 +278,7 @@ CREATE TABLE phpbb_forums_marking (
PRIMARY KEY (user_id, forum_id) PRIMARY KEY (user_id, forum_id)
); );
# Table: phpbb_forums_watch # Table: phpbb_forums_watch
CREATE TABLE phpbb_forums_watch ( CREATE TABLE phpbb_forums_watch (
forum_id smallint(5) NOT NULL DEFAULT '0', forum_id smallint(5) NOT NULL DEFAULT '0',
@ -266,20 +286,21 @@ CREATE TABLE phpbb_forums_watch (
notify_status tinyint(1) NOT NULL DEFAULT '0' notify_status tinyint(1) NOT NULL DEFAULT '0'
); );
CREATE INDEX forum_id_phpbb_forums_watch on phpbb_forums_watch (forum_id); CREATE INDEX phpbb_forums_watch_forum_id on phpbb_forums_watch (forum_id);
CREATE INDEX user_id_phpbb_forums_watch on phpbb_forums_watch (user_id); CREATE INDEX phpbb_forums_watch_user_id on phpbb_forums_watch (user_id);
CREATE INDEX notify_status_phpbb_forums_wat on phpbb_forums_watch (notify_status); CREATE INDEX phpbb_forums_watch_notify_status on phpbb_forums_watch (notify_status);
# Table: phpbb_groups # Table: phpbb_groups
CREATE TABLE phpbb_groups ( CREATE TABLE phpbb_groups (
group_id INTEGER PRIMARY KEY NOT NULL, group_id INTEGER PRIMARY KEY NOT NULL,
group_type tinyint(4) NOT NULL DEFAULT '1', group_type tinyint(4) NOT NULL DEFAULT '1',
group_name varchar(40) NOT NULL DEFAULT '', group_name varchar(255) NOT NULL,
group_desc text(65535), group_desc text(65535),
group_desc_bitfield int(11) NOT NULL DEFAULT '0', group_desc_bitfield int(11) NOT NULL DEFAULT '0',
group_desc_uid varchar(5) NOT NULL DEFAULT '', group_desc_uid varchar(5) NOT NULL DEFAULT '',
group_display tinyint(1) NOT NULL DEFAULT '0', group_display tinyint(1) NOT NULL DEFAULT '0',
group_avatar varchar(100) NOT NULL DEFAULT '', group_avatar varchar(255) NOT NULL DEFAULT '',
group_avatar_type tinyint(4) NOT NULL DEFAULT '0', group_avatar_type tinyint(4) NOT NULL DEFAULT '0',
group_avatar_width tinyint(4) NOT NULL DEFAULT '0', group_avatar_width tinyint(4) NOT NULL DEFAULT '0',
group_avatar_height tinyint(4) NOT NULL DEFAULT '0', group_avatar_height tinyint(4) NOT NULL DEFAULT '0',
@ -292,28 +313,31 @@ CREATE TABLE phpbb_groups (
group_legend tinyint(1) NOT NULL DEFAULT '1' group_legend tinyint(1) NOT NULL DEFAULT '1'
); );
CREATE INDEX group_legend_phpbb_groups on phpbb_groups (group_legend); CREATE INDEX phpbb_groups_group_legend on phpbb_groups (group_legend);
# Table: phpbb_icons # Table: phpbb_icons
CREATE TABLE phpbb_icons ( CREATE TABLE phpbb_icons (
icons_id INTEGER PRIMARY KEY NOT NULL, icons_id INTEGER PRIMARY KEY NOT NULL,
icons_url varchar(50), icons_url varchar(255),
icons_width tinyint(4) NOT NULL, icons_width tinyint(4) NOT NULL,
icons_height tinyint(4) NOT NULL, icons_height tinyint(4) NOT NULL,
icons_order tinyint(4) NOT NULL, icons_order tinyint(4) NOT NULL,
display_on_posting tinyint(1) NOT NULL DEFAULT '1' display_on_posting tinyint(1) NOT NULL DEFAULT '1'
); );
# Table: phpbb_lang # Table: phpbb_lang
CREATE TABLE phpbb_lang ( CREATE TABLE phpbb_lang (
lang_id INTEGER PRIMARY KEY NOT NULL, lang_id INTEGER PRIMARY KEY NOT NULL,
lang_iso varchar(5) NOT NULL, lang_iso varchar(5) NOT NULL,
lang_dir varchar(30) NOT NULL, lang_dir varchar(30) NOT NULL,
lang_english_name varchar(30), lang_english_name varchar(100),
lang_local_name varchar(100), lang_local_name varchar(255),
lang_author varchar(100) lang_author varchar(255)
); );
# Table: phpbb_log # Table: phpbb_log
CREATE TABLE phpbb_log ( CREATE TABLE phpbb_log (
log_id INTEGER PRIMARY KEY NOT NULL, log_id INTEGER PRIMARY KEY NOT NULL,
@ -328,53 +352,57 @@ CREATE TABLE phpbb_log (
log_data text(65535) log_data text(65535)
); );
CREATE INDEX log_type_phpbb_log on phpbb_log (log_type); CREATE INDEX phpbb_log_log_type on phpbb_log (log_type);
CREATE INDEX forum_id_phpbb_log on phpbb_log (forum_id); CREATE INDEX phpbb_log_forum_id on phpbb_log (forum_id);
CREATE INDEX topic_id_phpbb_log on phpbb_log (topic_id); CREATE INDEX phpbb_log_topic_id on phpbb_log (topic_id);
CREATE INDEX reportee_id_phpbb_log on phpbb_log (reportee_id); CREATE INDEX phpbb_log_reportee_id on phpbb_log (reportee_id);
CREATE INDEX user_id_phpbb_log on phpbb_log (user_id); CREATE INDEX phpbb_log_user_id on phpbb_log (user_id);
# Table: phpbb_moderator_cache # Table: phpbb_moderator_cache
CREATE TABLE phpbb_moderator_cache ( CREATE TABLE phpbb_moderator_cache (
forum_id mediumint(8) NOT NULL, forum_id mediumint(8) NOT NULL,
user_id mediumint(8) NOT NULL DEFAULT '0', user_id mediumint(8) NOT NULL DEFAULT '0',
username char(30) NOT NULL DEFAULT '', username varchar(255) NOT NULL DEFAULT '',
group_id mediumint(8) NOT NULL DEFAULT '0', group_id mediumint(8) NOT NULL DEFAULT '0',
groupname char(30) NOT NULL DEFAULT '', group_name varchar(255) NOT NULL DEFAULT '',
display_on_index tinyint(1) NOT NULL DEFAULT '1' display_on_index tinyint(1) NOT NULL DEFAULT '1'
); );
CREATE INDEX display_on_index_phpbb_moderat on phpbb_moderator_cache (display_on_index); CREATE INDEX phpbb_moderator_cache_display_on_index on phpbb_moderator_cache (display_on_index);
CREATE INDEX forum_id_phpbb_moderator_cache on phpbb_moderator_cache (forum_id); CREATE INDEX phpbb_moderator_cache_forum_id on phpbb_moderator_cache (forum_id);
# Table: phpbb_modules # Table: phpbb_modules
CREATE TABLE phpbb_modules ( CREATE TABLE phpbb_modules (
module_id INTEGER PRIMARY KEY NOT NULL, module_id INTEGER PRIMARY KEY NOT NULL,
module_enabled tinyint(1) NOT NULL DEFAULT '1', module_enabled tinyint(1) NOT NULL DEFAULT '1',
module_display tinyint(1) NOT NULL DEFAULT '1', module_display tinyint(1) NOT NULL DEFAULT '1',
module_name varchar(20) NOT NULL DEFAULT '', module_name varchar(255) NOT NULL DEFAULT '',
module_class varchar(4) NOT NULL DEFAULT '', module_class varchar(10) NOT NULL DEFAULT '',
parent_id smallint(5) NOT NULL DEFAULT '0', parent_id mediumint(8) NOT NULL DEFAULT '0',
left_id smallint(5) NOT NULL DEFAULT '0', left_id mediumint(8) NOT NULL DEFAULT '0',
right_id smallint(5) NOT NULL DEFAULT '0', right_id mediumint(8) NOT NULL DEFAULT '0',
module_langname varchar(50) NOT NULL DEFAULT '', module_langname varchar(255) NOT NULL DEFAULT '',
module_mode varchar(255) NOT NULL DEFAULT '', module_mode varchar(255) NOT NULL DEFAULT '',
module_auth varchar(255) NOT NULL DEFAULT '' module_auth varchar(255) NOT NULL DEFAULT ''
); );
CREATE INDEX module_enabled_phpbb_modules on phpbb_modules (module_enabled); CREATE INDEX phpbb_modules_module_enabled on phpbb_modules (module_enabled);
CREATE INDEX left_id_phpbb_modules on phpbb_modules (left_id); CREATE INDEX phpbb_modules_left_right_id on phpbb_modules (left_id, right_id);
# Table: phpbb_poll_results # Table: phpbb_poll_results
CREATE TABLE phpbb_poll_results ( CREATE TABLE phpbb_poll_results (
poll_option_id tinyint(4) NOT NULL DEFAULT '0', poll_option_id tinyint(4) NOT NULL DEFAULT '0',
topic_id mediumint(8) NOT NULL, topic_id mediumint(8) NOT NULL,
poll_option_text varchar(255) NOT NULL, poll_option_text text(65535),
poll_option_total mediumint(8) NOT NULL DEFAULT '0' poll_option_total mediumint(8) NOT NULL DEFAULT '0'
); );
CREATE INDEX poll_option_id_phpbb_poll_resu on phpbb_poll_results (poll_option_id); CREATE INDEX phpbb_poll_results_poll_option_id on phpbb_poll_results (poll_option_id);
CREATE INDEX topic_id_phpbb_poll_results on phpbb_poll_results (topic_id); CREATE INDEX phpbb_poll_results_topic_id on phpbb_poll_results (topic_id);
# Table: phpbb_poll_voters # Table: phpbb_poll_voters
CREATE TABLE phpbb_poll_voters ( CREATE TABLE phpbb_poll_voters (
@ -384,9 +412,10 @@ CREATE TABLE phpbb_poll_voters (
vote_user_ip varchar(40) NOT NULL vote_user_ip varchar(40) NOT NULL
); );
CREATE INDEX topic_id_phpbb_poll_voters on phpbb_poll_voters (topic_id); CREATE INDEX phpbb_poll_voters_topic_id on phpbb_poll_voters (topic_id);
CREATE INDEX vote_user_id_phpbb_poll_voters on phpbb_poll_voters (vote_user_id); CREATE INDEX phpbb_poll_voters_vote_user_id on phpbb_poll_voters (vote_user_id);
CREATE INDEX vote_user_ip_phpbb_poll_voters on phpbb_poll_voters (vote_user_ip); CREATE INDEX phpbb_poll_voters_vote_user_ip on phpbb_poll_voters (vote_user_ip);
# Table: phpbb_posts # Table: phpbb_posts
CREATE TABLE phpbb_posts ( CREATE TABLE phpbb_posts (
@ -403,8 +432,8 @@ CREATE TABLE phpbb_posts (
enable_smilies tinyint(1) NOT NULL DEFAULT '1', enable_smilies tinyint(1) NOT NULL DEFAULT '1',
enable_magic_url tinyint(1) NOT NULL DEFAULT '1', enable_magic_url tinyint(1) NOT NULL DEFAULT '1',
enable_sig tinyint(1) NOT NULL DEFAULT '1', enable_sig tinyint(1) NOT NULL DEFAULT '1',
post_username varchar(30), post_username varchar(255),
post_subject varchar(60), post_subject text(65535),
post_text mediumtext(16777215), post_text mediumtext(16777215),
post_checksum varchar(32) NOT NULL, post_checksum varchar(32) NOT NULL,
post_encoding varchar(20) NOT NULL DEFAULT 'iso-8859-1', post_encoding varchar(20) NOT NULL DEFAULT 'iso-8859-1',
@ -412,18 +441,19 @@ CREATE TABLE phpbb_posts (
bbcode_bitfield int(11) NOT NULL DEFAULT '0', bbcode_bitfield int(11) NOT NULL DEFAULT '0',
bbcode_uid varchar(5) NOT NULL DEFAULT '', bbcode_uid varchar(5) NOT NULL DEFAULT '',
post_edit_time int(11) NOT NULL DEFAULT '0', post_edit_time int(11) NOT NULL DEFAULT '0',
post_edit_reason varchar(100), post_edit_reason text(65535),
post_edit_user mediumint(8) NOT NULL DEFAULT '0', post_edit_user mediumint(8) NOT NULL DEFAULT '0',
post_edit_count smallint(5) NOT NULL DEFAULT '0', post_edit_count smallint(5) NOT NULL DEFAULT '0',
post_edit_locked tinyint(1) NOT NULL DEFAULT '0' post_edit_locked tinyint(1) NOT NULL DEFAULT '0'
); );
CREATE INDEX forum_id_phpbb_posts on phpbb_posts (forum_id); CREATE INDEX phpbb_posts_forum_id on phpbb_posts (forum_id);
CREATE INDEX topic_id_phpbb_posts on phpbb_posts (topic_id); CREATE INDEX phpbb_posts_topic_id on phpbb_posts (topic_id);
CREATE INDEX poster_ip_phpbb_posts on phpbb_posts (poster_ip); CREATE INDEX phpbb_posts_poster_ip on phpbb_posts (poster_ip);
CREATE INDEX poster_id_phpbb_posts on phpbb_posts (poster_id); CREATE INDEX phpbb_posts_poster_id on phpbb_posts (poster_id);
CREATE INDEX post_approved_phpbb_posts on phpbb_posts (post_approved); CREATE INDEX phpbb_posts_post_approved on phpbb_posts (post_approved);
CREATE INDEX post_time_phpbb_posts on phpbb_posts (post_time); CREATE INDEX phpbb_posts_post_time on phpbb_posts (post_time);
# Table: phpbb_privmsgs # Table: phpbb_privmsgs
CREATE TABLE phpbb_privmsgs ( CREATE TABLE phpbb_privmsgs (
@ -437,9 +467,9 @@ CREATE TABLE phpbb_privmsgs (
enable_smilies tinyint(1) NOT NULL DEFAULT '1', enable_smilies tinyint(1) NOT NULL DEFAULT '1',
enable_magic_url tinyint(1) NOT NULL DEFAULT '1', enable_magic_url tinyint(1) NOT NULL DEFAULT '1',
enable_sig tinyint(1) NOT NULL DEFAULT '1', enable_sig tinyint(1) NOT NULL DEFAULT '1',
message_subject varchar(60), message_subject text(65535),
message_text mediumtext(16777215), message_text mediumtext(16777215),
message_edit_reason varchar(100), message_edit_reason text(65535),
message_edit_user mediumint(8) NOT NULL DEFAULT '0', message_edit_user mediumint(8) NOT NULL DEFAULT '0',
message_encoding varchar(20) NOT NULL DEFAULT 'iso-8859-1', message_encoding varchar(20) NOT NULL DEFAULT 'iso-8859-1',
message_attachment tinyint(1) NOT NULL DEFAULT '0', message_attachment tinyint(1) NOT NULL DEFAULT '0',
@ -451,20 +481,22 @@ CREATE TABLE phpbb_privmsgs (
bcc_address text(65535) bcc_address text(65535)
); );
CREATE INDEX author_ip_phpbb_privmsgs on phpbb_privmsgs (author_ip); CREATE INDEX phpbb_privmsgs_author_ip on phpbb_privmsgs (author_ip);
CREATE INDEX message_time_phpbb_privmsgs on phpbb_privmsgs (message_time); CREATE INDEX phpbb_privmsgs_message_time on phpbb_privmsgs (message_time);
CREATE INDEX author_id_phpbb_privmsgs on phpbb_privmsgs (author_id); CREATE INDEX phpbb_privmsgs_author_id on phpbb_privmsgs (author_id);
CREATE INDEX root_level_phpbb_privmsgs on phpbb_privmsgs (root_level); CREATE INDEX phpbb_privmsgs_root_level on phpbb_privmsgs (root_level);
# Table: phpbb_privmsgs_folder # Table: phpbb_privmsgs_folder
CREATE TABLE phpbb_privmsgs_folder ( CREATE TABLE phpbb_privmsgs_folder (
folder_id INTEGER PRIMARY KEY NOT NULL, folder_id INTEGER PRIMARY KEY NOT NULL,
user_id mediumint(8) NOT NULL DEFAULT '0', user_id mediumint(8) NOT NULL DEFAULT '0',
folder_name varchar(40) NOT NULL DEFAULT '', folder_name varchar(255) NOT NULL DEFAULT '',
pm_count mediumint(8) NOT NULL DEFAULT '0' pm_count mediumint(8) NOT NULL DEFAULT '0'
); );
CREATE INDEX user_id_phpbb_privmsgs_folder on phpbb_privmsgs_folder (user_id); CREATE INDEX phpbb_privmsgs_folder_user_id on phpbb_privmsgs_folder (user_id);
# Table: phpbb_privmsgs_rules # Table: phpbb_privmsgs_rules
CREATE TABLE phpbb_privmsgs_rules ( CREATE TABLE phpbb_privmsgs_rules (
@ -479,6 +511,7 @@ CREATE TABLE phpbb_privmsgs_rules (
rule_folder_id mediumint(8) NOT NULL DEFAULT '0' rule_folder_id mediumint(8) NOT NULL DEFAULT '0'
); );
# Table: phpbb_privmsgs_to # Table: phpbb_privmsgs_to
CREATE TABLE phpbb_privmsgs_to ( CREATE TABLE phpbb_privmsgs_to (
msg_id mediumint(8) NOT NULL DEFAULT '0', msg_id mediumint(8) NOT NULL DEFAULT '0',
@ -493,14 +526,15 @@ CREATE TABLE phpbb_privmsgs_to (
folder_id int(10) NOT NULL DEFAULT '0' folder_id int(10) NOT NULL DEFAULT '0'
); );
CREATE INDEX msg_id_phpbb_privmsgs_to on phpbb_privmsgs_to (msg_id); CREATE INDEX phpbb_privmsgs_to_msg_id on phpbb_privmsgs_to (msg_id);
CREATE INDEX user_id_phpbb_privmsgs_to on phpbb_privmsgs_to (user_id, folder_id); CREATE INDEX phpbb_privmsgs_to_user_id on phpbb_privmsgs_to (user_id, folder_id);
# Table: phpbb_profile_fields # Table: phpbb_profile_fields
CREATE TABLE phpbb_profile_fields ( CREATE TABLE phpbb_profile_fields (
field_id INTEGER PRIMARY KEY NOT NULL, field_id INTEGER PRIMARY KEY NOT NULL,
field_name varchar(50) NOT NULL DEFAULT '', field_name varchar(255) NOT NULL DEFAULT '',
field_desc varchar(255) NOT NULL DEFAULT '', field_desc text(65535),
field_type mediumint(8) NOT NULL, field_type mediumint(8) NOT NULL,
field_ident varchar(20) NOT NULL DEFAULT '', field_ident varchar(20) NOT NULL DEFAULT '',
field_length varchar(20) NOT NULL DEFAULT '', field_length varchar(20) NOT NULL DEFAULT '',
@ -517,14 +551,16 @@ CREATE TABLE phpbb_profile_fields (
field_order tinyint(4) NOT NULL DEFAULT '0' field_order tinyint(4) NOT NULL DEFAULT '0'
); );
CREATE INDEX field_type_phpbb_profile_field on phpbb_profile_fields (field_type); CREATE INDEX phpbb_profile_fields_field_type on phpbb_profile_fields (field_type);
CREATE INDEX field_order_phpbb_profile_fiel on phpbb_profile_fields (field_order); CREATE INDEX phpbb_profile_fields_field_order on phpbb_profile_fields (field_order);
# Table: phpbb_profile_fields_data # Table: phpbb_profile_fields_data
CREATE TABLE phpbb_profile_fields_data ( CREATE TABLE phpbb_profile_fields_data (
user_id INTEGER PRIMARY KEY NOT NULL DEFAULT '0' user_id INTEGER PRIMARY KEY NOT NULL DEFAULT '0'
); );
# Table: phpbb_profile_fields_lang # Table: phpbb_profile_fields_lang
CREATE TABLE phpbb_profile_fields_lang ( CREATE TABLE phpbb_profile_fields_lang (
field_id mediumint(8) NOT NULL DEFAULT '0', field_id mediumint(8) NOT NULL DEFAULT '0',
@ -535,33 +571,37 @@ CREATE TABLE phpbb_profile_fields_lang (
PRIMARY KEY (field_id, lang_id, option_id) PRIMARY KEY (field_id, lang_id, option_id)
); );
# Table: phpbb_profile_lang # Table: phpbb_profile_lang
CREATE TABLE phpbb_profile_lang ( CREATE TABLE phpbb_profile_lang (
field_id mediumint(8) NOT NULL DEFAULT '0', field_id mediumint(8) NOT NULL DEFAULT '0',
lang_id tinyint(4) NOT NULL DEFAULT '0', lang_id tinyint(4) NOT NULL DEFAULT '0',
lang_name varchar(255) NOT NULL DEFAULT '', lang_name varchar(255) NOT NULL DEFAULT '',
lang_explain text(65535) NOT NULL, lang_explain text(65535),
lang_default_value varchar(255) NOT NULL DEFAULT '', lang_default_value varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (field_id, lang_id) PRIMARY KEY (field_id, lang_id)
); );
# Table: phpbb_ranks # Table: phpbb_ranks
CREATE TABLE phpbb_ranks ( CREATE TABLE phpbb_ranks (
rank_id INTEGER PRIMARY KEY NOT NULL, rank_id INTEGER PRIMARY KEY NOT NULL,
rank_title varchar(50) NOT NULL, rank_title varchar(255) NOT NULL,
rank_min mediumint(8) NOT NULL DEFAULT '0', rank_min mediumint(8) NOT NULL DEFAULT '0',
rank_special tinyint(1) DEFAULT '0', rank_special tinyint(1) DEFAULT '0',
rank_image varchar(100) rank_image varchar(255)
); );
# Table: phpbb_reports_reasons # Table: phpbb_reports_reasons
CREATE TABLE phpbb_reports_reasons ( CREATE TABLE phpbb_reports_reasons (
reason_id INTEGER PRIMARY KEY NOT NULL, reason_id INTEGER PRIMARY KEY NOT NULL,
reason_title varchar(255) NOT NULL DEFAULT '', reason_title varchar(255) NOT NULL DEFAULT '',
reason_description text(65535) NOT NULL, reason_description text(65535),
reason_order tinyint(4) NOT NULL DEFAULT '0' reason_order tinyint(4) NOT NULL DEFAULT '0'
); );
# Table: phpbb_reports # Table: phpbb_reports
CREATE TABLE phpbb_reports ( CREATE TABLE phpbb_reports (
report_id INTEGER PRIMARY KEY NOT NULL, report_id INTEGER PRIMARY KEY NOT NULL,
@ -571,18 +611,20 @@ CREATE TABLE phpbb_reports (
user_notify tinyint(1) NOT NULL DEFAULT '0', user_notify tinyint(1) NOT NULL DEFAULT '0',
report_closed tinyint(1) NOT NULL DEFAULT '0', report_closed tinyint(1) NOT NULL DEFAULT '0',
report_time int(10) NOT NULL DEFAULT '0', report_time int(10) NOT NULL DEFAULT '0',
report_text text(65535) NOT NULL report_text mediumtext(16777215)
); );
# Table: phpbb_search_results # Table: phpbb_search_results
CREATE TABLE phpbb_search_results ( CREATE TABLE phpbb_search_results (
search_key varchar(32) NOT NULL DEFAULT '', search_key varchar(32) NOT NULL DEFAULT '',
search_time int(11) NOT NULL DEFAULT '0', search_time int(11) NOT NULL DEFAULT '0',
search_keywords mediumtext(16777215) NOT NULL, search_keywords mediumtext(16777215),
search_authors mediumtext(16777215) NOT NULL, search_authors mediumtext(16777215),
PRIMARY KEY (search_key) PRIMARY KEY (search_key)
); );
# Table: phpbb_search_wordlist # Table: phpbb_search_wordlist
CREATE TABLE phpbb_search_wordlist ( CREATE TABLE phpbb_search_wordlist (
word_text varchar(50) NOT NULL DEFAULT '', word_text varchar(50) NOT NULL DEFAULT '',
@ -591,7 +633,8 @@ CREATE TABLE phpbb_search_wordlist (
PRIMARY KEY (word_text) PRIMARY KEY (word_text)
); );
CREATE INDEX word_id_phpbb_search_wordlist on phpbb_search_wordlist (word_id); CREATE INDEX phpbb_search_wordlist_word_id on phpbb_search_wordlist (word_id);
# Table: phpbb_search_wordmatch # Table: phpbb_search_wordmatch
CREATE TABLE phpbb_search_wordmatch ( CREATE TABLE phpbb_search_wordmatch (
@ -600,7 +643,8 @@ CREATE TABLE phpbb_search_wordmatch (
title_match tinyint(1) NOT NULL DEFAULT '0' title_match tinyint(1) NOT NULL DEFAULT '0'
); );
CREATE INDEX word_id_phpbb_search_wordmatch on phpbb_search_wordmatch (word_id); CREATE INDEX phpbb_search_wordmatch_word_id on phpbb_search_wordmatch (word_id);
# Table: phpbb_sessions # Table: phpbb_sessions
CREATE TABLE phpbb_sessions ( CREATE TABLE phpbb_sessions (
@ -618,8 +662,9 @@ CREATE TABLE phpbb_sessions (
PRIMARY KEY (session_id) PRIMARY KEY (session_id)
); );
CREATE INDEX session_time_phpbb_sessions on phpbb_sessions (session_time); CREATE INDEX phpbb_sessions_session_time on phpbb_sessions (session_time);
CREATE INDEX session_user_id_phpbb_sessions on phpbb_sessions (session_user_id); CREATE INDEX phpbb_sessions_session_user_id on phpbb_sessions (session_user_id);
# Table: phpbb_sessions_keys # Table: phpbb_sessions_keys
CREATE TABLE phpbb_sessions_keys ( CREATE TABLE phpbb_sessions_keys (
@ -630,7 +675,8 @@ CREATE TABLE phpbb_sessions_keys (
PRIMARY KEY (key_id,user_id) PRIMARY KEY (key_id,user_id)
); );
CREATE INDEX last_login_phpbb_sessions_keys on phpbb_sessions_keys (last_login); CREATE INDEX phpbb_sessions_keys_last_login on phpbb_sessions_keys (last_login);
# Table: phpbb_sitelist # Table: phpbb_sitelist
CREATE TABLE phpbb_sitelist ( CREATE TABLE phpbb_sitelist (
@ -640,77 +686,83 @@ CREATE TABLE phpbb_sitelist (
ip_exclude tinyint(1) NOT NULL DEFAULT '0' ip_exclude tinyint(1) NOT NULL DEFAULT '0'
); );
# Table: phpbb_smilies # Table: phpbb_smilies
CREATE TABLE phpbb_smilies ( CREATE TABLE phpbb_smilies (
smiley_id INTEGER PRIMARY KEY NOT NULL, smiley_id INTEGER PRIMARY KEY NOT NULL,
code char(10), code varchar(10),
emotion char(50), emotion varchar(50),
smiley_url char(50), smiley_url varchar(50),
smiley_width tinyint(4) NOT NULL, smiley_width tinyint(4) NOT NULL,
smiley_height tinyint(4) NOT NULL, smiley_height tinyint(4) NOT NULL,
smiley_order tinyint(4) NOT NULL, smiley_order tinyint(4) NOT NULL,
display_on_posting tinyint(1) NOT NULL DEFAULT '1' display_on_posting tinyint(1) NOT NULL DEFAULT '1'
); );
# Table: phpbb_styles # Table: phpbb_styles
CREATE TABLE phpbb_styles ( CREATE TABLE phpbb_styles (
style_id INTEGER PRIMARY KEY NOT NULL, style_id INTEGER PRIMARY KEY NOT NULL,
style_name varchar(30) NOT NULL DEFAULT '', style_name varchar(255) NOT NULL DEFAULT '',
style_copyright varchar(50) NOT NULL DEFAULT '', style_copyright varchar(255) NOT NULL DEFAULT '',
style_active tinyint(1) NOT NULL DEFAULT '1', style_active tinyint(1) NOT NULL DEFAULT '1',
template_id tinyint(4) NOT NULL, template_id tinyint(4) NOT NULL,
theme_id tinyint(4) NOT NULL, theme_id tinyint(4) NOT NULL,
imageset_id tinyint(4) NOT NULL imageset_id tinyint(4) NOT NULL
); );
CREATE INDEX B_phpbb_styles on phpbb_styles (template_id); CREATE INDEX phpbb_styles_template_id on phpbb_styles (template_id);
CREATE INDEX C_phpbb_styles on phpbb_styles (theme_id); CREATE INDEX phpbb_styles_theme_id on phpbb_styles (theme_id);
CREATE INDEX D_phpbb_styles on phpbb_styles (imageset_id); CREATE INDEX phpbb_styles_imageset_id on phpbb_styles (imageset_id);
CREATE UNIQUE INDEX style_name_phpbb_styles on phpbb_styles (style_name); CREATE UNIQUE INDEX phpbb_styles_style_name on phpbb_styles (style_name);
# Table: phpbb_styles_template # Table: phpbb_styles_template
CREATE TABLE phpbb_styles_template ( CREATE TABLE phpbb_styles_template (
template_id INTEGER PRIMARY KEY NOT NULL, template_id INTEGER PRIMARY KEY NOT NULL,
template_name varchar(30) NOT NULL, template_name varchar(255) NOT NULL,
template_copyright varchar(50) NOT NULL, template_copyright varchar(255) NOT NULL,
template_path varchar(30) NOT NULL, template_path varchar(100) NOT NULL,
bbcode_bitfield int(11) NOT NULL DEFAULT '0', bbcode_bitfield int(11) NOT NULL DEFAULT '0',
template_storedb tinyint(1) NOT NULL DEFAULT '0' template_storedb tinyint(1) NOT NULL DEFAULT '0'
); );
CREATE UNIQUE INDEX template_name_phpbb_styles_tem on phpbb_styles_template (template_name); CREATE UNIQUE INDEX phpbb_styles_template_template_name on phpbb_styles_template (template_name);
# Table: phpbb_styles_template_data # Table: phpbb_styles_template_data
CREATE TABLE phpbb_styles_template_data ( CREATE TABLE phpbb_styles_template_data (
template_id tinyint(4) NOT NULL, template_id tinyint(4) NOT NULL,
template_filename varchar(50) NOT NULL DEFAULT '', template_filename varchar(100) NOT NULL DEFAULT '',
template_included text(65535) NOT NULL, template_included text(65535),
template_mtime int(11) NOT NULL DEFAULT '0', template_mtime int(11) NOT NULL DEFAULT '0',
template_data mediumtext(16777215) template_data mediumtext(16777215)
); );
CREATE INDEX B_phpbb_styles_template_data on phpbb_styles_template_data (template_id); CREATE INDEX phpbb_styles_template_data_template_id on phpbb_styles_template_data (template_id);
CREATE INDEX C_phpbb_styles_template_data on phpbb_styles_template_data (template_filename); CREATE INDEX phpbb_styles_template_data_template_filename on phpbb_styles_template_data (template_filename);
# Table: phpbb_styles_theme # Table: phpbb_styles_theme
CREATE TABLE phpbb_styles_theme ( CREATE TABLE phpbb_styles_theme (
theme_id INTEGER PRIMARY KEY NOT NULL, theme_id INTEGER PRIMARY KEY NOT NULL,
theme_name varchar(30) NOT NULL DEFAULT '', theme_name varchar(255) NOT NULL DEFAULT '',
theme_copyright varchar(50) NOT NULL DEFAULT '', theme_copyright varchar(255) NOT NULL DEFAULT '',
theme_path varchar(30) NOT NULL DEFAULT '', theme_path varchar(100) NOT NULL DEFAULT '',
theme_storedb tinyint(1) NOT NULL DEFAULT '0', theme_storedb tinyint(1) NOT NULL DEFAULT '0',
theme_mtime int(11) NOT NULL DEFAULT '0', theme_mtime int(11) NOT NULL DEFAULT '0',
theme_data mediumtext(16777215) NOT NULL DEFAULT '' theme_data mediumtext(16777215)
); );
CREATE UNIQUE INDEX theme_name_phpbb_styles_theme on phpbb_styles_theme (theme_name); CREATE UNIQUE INDEX phpbb_styles_theme_theme_name on phpbb_styles_theme (theme_name);
# Table: phpbb_styles_imageset # Table: phpbb_styles_imageset
CREATE TABLE phpbb_styles_imageset ( CREATE TABLE phpbb_styles_imageset (
imageset_id INTEGER PRIMARY KEY NOT NULL, imageset_id INTEGER PRIMARY KEY NOT NULL,
imageset_name varchar(30) NOT NULL DEFAULT '', imageset_name varchar(255) NOT NULL DEFAULT '',
imageset_copyright varchar(50) NOT NULL DEFAULT '', imageset_copyright varchar(255) NOT NULL DEFAULT '',
imageset_path varchar(30) NOT NULL DEFAULT '', imageset_path varchar(100) NOT NULL DEFAULT '',
site_logo varchar(200) NOT NULL DEFAULT '', site_logo varchar(200) NOT NULL DEFAULT '',
btn_post varchar(200) NOT NULL DEFAULT '', btn_post varchar(200) NOT NULL DEFAULT '',
btn_post_pm varchar(200) NOT NULL DEFAULT '', btn_post_pm varchar(200) NOT NULL DEFAULT '',
@ -790,17 +842,18 @@ CREATE TABLE phpbb_styles_imageset (
user_icon10 varchar(200) NOT NULL DEFAULT '' user_icon10 varchar(200) NOT NULL DEFAULT ''
); );
CREATE UNIQUE INDEX imageset_name_phpbb_styles_ima on phpbb_styles_imageset (imageset_name); CREATE UNIQUE INDEX phpbb_styles_imageset_imageset_name on phpbb_styles_imageset (imageset_name);
# Table: phpbb_topics # Table: phpbb_topics
CREATE TABLE phpbb_topics ( CREATE TABLE phpbb_topics (
topic_id INTEGER PRIMARY KEY NOT NULL, topic_id INTEGER PRIMARY KEY NOT NULL,
forum_id smallint(8) NOT NULL DEFAULT '0', forum_id smallint(5) NOT NULL DEFAULT '0',
icon_id tinyint(4) NOT NULL DEFAULT '1', icon_id tinyint(4) NOT NULL DEFAULT '1',
topic_attachment tinyint(1) NOT NULL DEFAULT '0', topic_attachment tinyint(1) NOT NULL DEFAULT '0',
topic_approved tinyint(1) NOT NULL DEFAULT '1', topic_approved tinyint(1) NOT NULL DEFAULT '1',
topic_reported tinyint(1) NOT NULL DEFAULT '0', topic_reported tinyint(1) NOT NULL DEFAULT '0',
topic_title varchar(60) NOT NULL, topic_title text(65535),
topic_poster mediumint(8) NOT NULL DEFAULT '0', topic_poster mediumint(8) NOT NULL DEFAULT '0',
topic_time int(11) NOT NULL DEFAULT '0', topic_time int(11) NOT NULL DEFAULT '0',
topic_time_limit int(11) NOT NULL DEFAULT '0', topic_time_limit int(11) NOT NULL DEFAULT '0',
@ -810,16 +863,16 @@ CREATE TABLE phpbb_topics (
topic_status tinyint(3) NOT NULL DEFAULT '0', topic_status tinyint(3) NOT NULL DEFAULT '0',
topic_type tinyint(3) NOT NULL DEFAULT '0', topic_type tinyint(3) NOT NULL DEFAULT '0',
topic_first_post_id mediumint(8) NOT NULL DEFAULT '0', topic_first_post_id mediumint(8) NOT NULL DEFAULT '0',
topic_first_poster_name varchar(30), topic_first_poster_name varchar(255),
topic_last_post_id mediumint(8) NOT NULL DEFAULT '0', topic_last_post_id mediumint(8) NOT NULL DEFAULT '0',
topic_last_poster_id mediumint(8) NOT NULL DEFAULT '0', topic_last_poster_id mediumint(8) NOT NULL DEFAULT '0',
topic_last_poster_name varchar(30), topic_last_poster_name varchar(255),
topic_last_post_time int(11) NOT NULL DEFAULT '0', topic_last_post_time int(11) NOT NULL DEFAULT '0',
topic_last_view_time int(11) NOT NULL DEFAULT '0', topic_last_view_time int(11) NOT NULL DEFAULT '0',
topic_moved_id mediumint(8) NOT NULL DEFAULT '0', topic_moved_id mediumint(8) NOT NULL DEFAULT '0',
topic_bumped tinyint(1) NOT NULL DEFAULT '0', topic_bumped tinyint(1) NOT NULL DEFAULT '0',
topic_bumper mediumint(8) NOT NULL DEFAULT '0', topic_bumper mediumint(8) NOT NULL DEFAULT '0',
poll_title varchar(255) NOT NULL DEFAULT '', poll_title text(65535),
poll_start int(11) NOT NULL DEFAULT '0', poll_start int(11) NOT NULL DEFAULT '0',
poll_length int(11) NOT NULL DEFAULT '0', poll_length int(11) NOT NULL DEFAULT '0',
poll_max_options tinyint(4) NOT NULL DEFAULT '1', poll_max_options tinyint(4) NOT NULL DEFAULT '1',
@ -827,9 +880,10 @@ CREATE TABLE phpbb_topics (
poll_vote_change tinyint(1) NOT NULL DEFAULT '0' poll_vote_change tinyint(1) NOT NULL DEFAULT '0'
); );
CREATE INDEX forum_id_phpbb_topics on phpbb_topics (forum_id); CREATE INDEX phpbb_topics_forum_id on phpbb_topics (forum_id);
CREATE INDEX forum_id_type_phpbb_topics on phpbb_topics (forum_id, topic_type); CREATE INDEX phpbb_topics_forum_topic_type on phpbb_topics (forum_id, topic_type);
CREATE INDEX topic_last_post_time_phpbb_top on phpbb_topics (topic_last_post_time); CREATE INDEX phpbb_topics_topic_last_post_time on phpbb_topics (topic_last_post_time);
# Table: phpbb_topics_marking # Table: phpbb_topics_marking
CREATE TABLE phpbb_topics_marking ( CREATE TABLE phpbb_topics_marking (
@ -840,6 +894,7 @@ CREATE TABLE phpbb_topics_marking (
PRIMARY KEY (user_id, topic_id) PRIMARY KEY (user_id, topic_id)
); );
# Table: phpbb_topics_posted # Table: phpbb_topics_posted
CREATE TABLE phpbb_topics_posted ( CREATE TABLE phpbb_topics_posted (
user_id mediumint(8) NOT NULL DEFAULT '0', user_id mediumint(8) NOT NULL DEFAULT '0',
@ -848,6 +903,7 @@ CREATE TABLE phpbb_topics_posted (
PRIMARY KEY (user_id, topic_id) PRIMARY KEY (user_id, topic_id)
); );
# Table: phpbb_topics_watch # Table: phpbb_topics_watch
CREATE TABLE phpbb_topics_watch ( CREATE TABLE phpbb_topics_watch (
topic_id mediumint(8) NOT NULL DEFAULT '0', topic_id mediumint(8) NOT NULL DEFAULT '0',
@ -855,9 +911,10 @@ CREATE TABLE phpbb_topics_watch (
notify_status tinyint(1) NOT NULL DEFAULT '0' notify_status tinyint(1) NOT NULL DEFAULT '0'
); );
CREATE INDEX topic_id_phpbb_topics_watch on phpbb_topics_watch (topic_id); CREATE INDEX phpbb_topics_watch_topic_id on phpbb_topics_watch (topic_id);
CREATE INDEX user_id_phpbb_topics_watch on phpbb_topics_watch (user_id); CREATE INDEX phpbb_topics_watch_user_id on phpbb_topics_watch (user_id);
CREATE INDEX notify_status_phpbb_topics_wat on phpbb_topics_watch (notify_status); CREATE INDEX phpbb_topics_watch_notify_status on phpbb_topics_watch (notify_status);
# Table: phpbb_user_group # Table: phpbb_user_group
CREATE TABLE phpbb_user_group ( CREATE TABLE phpbb_user_group (
@ -867,22 +924,23 @@ CREATE TABLE phpbb_user_group (
user_pending tinyint(1) user_pending tinyint(1)
); );
CREATE INDEX group_id_phpbb_user_group on phpbb_user_group (group_id); CREATE INDEX phpbb_user_group_group_id on phpbb_user_group (group_id);
CREATE INDEX user_id_phpbb_user_group on phpbb_user_group (user_id); CREATE INDEX phpbb_user_group_user_id on phpbb_user_group (user_id);
CREATE INDEX group_leader_phpbb_user_group on phpbb_user_group (group_leader); CREATE INDEX phpbb_user_group_group_leader on phpbb_user_group (group_leader);
# Table: phpbb_users # Table: phpbb_users
CREATE TABLE phpbb_users ( CREATE TABLE phpbb_users (
user_id INTEGER PRIMARY KEY NOT NULL, user_id INTEGER PRIMARY KEY NOT NULL,
user_type tinyint(1) NOT NULL DEFAULT '0', user_type tinyint(1) NOT NULL DEFAULT '0',
group_id mediumint(8) NOT NULL DEFAULT '3', group_id mediumint(8) NOT NULL DEFAULT '3',
user_permissions text(65535) NOT NULL DEFAULT '', user_permissions text(65535),
user_ip varchar(40) NOT NULL DEFAULT '', user_ip varchar(40) NOT NULL DEFAULT '',
user_regdate int(11) NOT NULL DEFAULT '0', user_regdate int(11) NOT NULL DEFAULT '0',
username varchar(30) NOT NULL DEFAULT '', username varchar(255) NOT NULL DEFAULT '',
user_password varchar(32) NOT NULL DEFAULT '', user_password varchar(40) NOT NULL DEFAULT '',
user_passchg int(11) NOT NULL DEFAULT '0', user_passchg int(11) NOT NULL DEFAULT '0',
user_email varchar(60) NOT NULL DEFAULT '', user_email varchar(100) NOT NULL DEFAULT '',
user_email_hash bigint(20) NOT NULL DEFAULT '0', user_email_hash bigint(20) NOT NULL DEFAULT '0',
user_birthday varchar(10) NOT NULL DEFAULT '', user_birthday varchar(10) NOT NULL DEFAULT '',
user_lastvisit int(11) NOT NULL DEFAULT '0', user_lastvisit int(11) NOT NULL DEFAULT '0',
@ -922,11 +980,11 @@ CREATE TABLE phpbb_users (
user_allow_viewemail tinyint(1) NOT NULL DEFAULT '1', user_allow_viewemail tinyint(1) NOT NULL DEFAULT '1',
user_allow_massemail tinyint(1) NOT NULL DEFAULT '1', user_allow_massemail tinyint(1) NOT NULL DEFAULT '1',
user_options int(11) NOT NULL DEFAULT '893', user_options int(11) NOT NULL DEFAULT '893',
user_avatar varchar(100) NOT NULL DEFAULT '', user_avatar varchar(255) NOT NULL DEFAULT '',
user_avatar_type tinyint(2) NOT NULL DEFAULT '0', user_avatar_type tinyint(2) NOT NULL DEFAULT '0',
user_avatar_width tinyint(4) NOT NULL DEFAULT '0', user_avatar_width tinyint(4) NOT NULL DEFAULT '0',
user_avatar_height tinyint(4) NOT NULL DEFAULT '0', user_avatar_height tinyint(4) NOT NULL DEFAULT '0',
user_sig text(65535) NOT NULL DEFAULT '', user_sig text(65535),
user_sig_bbcode_uid varchar(5) NOT NULL DEFAULT '', user_sig_bbcode_uid varchar(5) NOT NULL DEFAULT '',
user_sig_bbcode_bitfield int(11) NOT NULL DEFAULT '0', user_sig_bbcode_bitfield int(11) NOT NULL DEFAULT '0',
user_from varchar(100) NOT NULL DEFAULT '', user_from varchar(100) NOT NULL DEFAULT '',
@ -935,16 +993,17 @@ CREATE TABLE phpbb_users (
user_yim varchar(255) NOT NULL DEFAULT '', user_yim varchar(255) NOT NULL DEFAULT '',
user_msnm varchar(255) NOT NULL DEFAULT '', user_msnm varchar(255) NOT NULL DEFAULT '',
user_jabber varchar(255) NOT NULL DEFAULT '', user_jabber varchar(255) NOT NULL DEFAULT '',
user_website varchar(100) NOT NULL DEFAULT '', user_website varchar(200) NOT NULL DEFAULT '',
user_occ varchar(255) NOT NULL DEFAULT '', user_occ varchar(255) NOT NULL DEFAULT '',
user_interests varchar(255) NOT NULL DEFAULT '', user_interests varchar(255) NOT NULL DEFAULT '',
user_actkey varchar(32) NOT NULL DEFAULT '', user_actkey varchar(32) NOT NULL DEFAULT '',
user_newpasswd varchar(32) NOT NULL DEFAULT '' user_newpasswd varchar(32) NOT NULL DEFAULT ''
); );
CREATE INDEX user_birthday_phpbb_users on phpbb_users (user_birthday); CREATE INDEX phpbb_users_user_birthday on phpbb_users (user_birthday);
CREATE INDEX user_email_hash_phpbb_users on phpbb_users (user_email_hash); CREATE INDEX phpbb_users_user_email_hash on phpbb_users (user_email_hash);
CREATE INDEX username_phpbb_users on phpbb_users (username); CREATE INDEX phpbb_users_username on phpbb_users (username);
# Table: phpbb_warnings # Table: phpbb_warnings
CREATE TABLE phpbb_warnings ( CREATE TABLE phpbb_warnings (
@ -955,6 +1014,7 @@ CREATE TABLE phpbb_warnings (
warning_time int(11) NOT NULL DEFAULT '0' warning_time int(11) NOT NULL DEFAULT '0'
); );
# Table: phpbb_words # Table: phpbb_words
CREATE TABLE phpbb_words ( CREATE TABLE phpbb_words (
word_id INTEGER PRIMARY KEY NOT NULL, word_id INTEGER PRIMARY KEY NOT NULL,
@ -962,6 +1022,7 @@ CREATE TABLE phpbb_words (
replacement char(100) NOT NULL replacement char(100) NOT NULL
); );
# Table: phpbb_zebra # Table: phpbb_zebra
CREATE TABLE phpbb_zebra ( CREATE TABLE phpbb_zebra (
user_id mediumint(8) NOT NULL DEFAULT '0', user_id mediumint(8) NOT NULL DEFAULT '0',
@ -970,7 +1031,7 @@ CREATE TABLE phpbb_zebra (
foe tinyint(1) NOT NULL DEFAULT '0' foe tinyint(1) NOT NULL DEFAULT '0'
); );
CREATE INDEX user_id_phpbb_zebra on phpbb_zebra (user_id); CREATE INDEX phpbb_zebra_user_id on phpbb_zebra (user_id);
CREATE INDEX zebra_id_phpbb_zebra on phpbb_zebra (zebra_id); CREATE INDEX phpbb_zebra_zebra_id on phpbb_zebra (zebra_id);
COMMIT; COMMIT;

View file

@ -11,7 +11,7 @@ You can find it at:
{U_TOPIC} {U_TOPIC}
A message from {USERNAME} may also be included below. Please note that this message has not been seen or approved by the board administrators. If you wish to complain about having received this email please contact the board administrator {CONTACT_EMAIL}. Please quote the the message headers when contacting this address. A message from {FROM_USERNAME} may also be included below. Please note that this message has not been seen or approved by the board administrators. If you wish to complain about having received this email please contact the board administrator at {BOARD_EMAIL}. Please quote the the message headers when contacting this address.
---------- ----------

View file

@ -7,7 +7,7 @@ You are receiving this email because you are watching the forum, "{FORUM_NAME}"
{U_NEWEST_POST} {U_NEWEST_POST}
If you no longer wish to watch this forum you can either click the "Stop watching this forum link" found at the bottom of the forum above, or by clicking the following link: If you no longer wish to watch this forum you can either click the "Unsubscribe forum link" found in the forum above, or by clicking the following link:
{U_STOP_WATCHING_FORUM} {U_STOP_WATCHING_FORUM}

View file

@ -7,7 +7,7 @@ You are receiving this email because you are watching the forum, "{FORUM_NAME}"
{U_FORUM} {U_FORUM}
If you no longer wish to watch this forum you can either click the "Stop watching this forum link" found at the bottom of the forum above, or by clicking the following link: If you no longer wish to watch this forum you can either click the "Unsubscribe forum link" found in the forum above, or by clicking the following link:
{U_STOP_WATCHING_FORUM} {U_STOP_WATCHING_FORUM}

View file

@ -72,7 +72,7 @@ $post_id = request_var('p', 0);
$topic_id = request_var('t', 0); $topic_id = request_var('t', 0);
$forum_id = request_var('f', 0); $forum_id = request_var('f', 0);
$user_id = request_var('u', 0); $user_id = request_var('u', 0);
$username = request_var('username', ''); $username = request_var('username', '', true);
if ($post_id) if ($post_id)
{ {

View file

@ -421,6 +421,7 @@ switch ($mode)
break; break;
case 'email': case 'email':
// Send an email // Send an email
$page_title = $user->lang['SEND_EMAIL']; $page_title = $user->lang['SEND_EMAIL'];
$template_html = 'memberlist_email.html'; $template_html = 'memberlist_email.html';
@ -430,11 +431,6 @@ switch ($mode)
trigger_error('EMAIL_DISABLED'); trigger_error('EMAIL_DISABLED');
} }
if (($user_id == ANONYMOUS || !$config['board_email_form']) && !$topic_id)
{
trigger_error('NO_EMAIL');
}
if (!$auth->acl_get('u_sendemail')) if (!$auth->acl_get('u_sendemail'))
{ {
trigger_error('NO_EMAIL'); trigger_error('NO_EMAIL');
@ -446,29 +442,31 @@ switch ($mode)
trigger_error('FLOOD_EMAIL_LIMIT'); trigger_error('FLOOD_EMAIL_LIMIT');
} }
$name = request_var('name', ''); // Determine action...
$email = request_var('email', ''); $user_id = request_var('u', 0);
$email_lang = request_var('lang', ''); $topic_id = request_var('t', 0);
$subject = request_var('subject', '');
$message = request_var('message', '');
$cc = (!empty($_POST['cc_email'])) ? true : false;
// Are we sending an email to a user on this board? Or are we sending a // Send email to user...
// topic heads-up message? if ($user_id)
if (!$topic_id)
{ {
if ($user_id == ANONYMOUS || !$config['board_email_form'])
{
trigger_error('NO_EMAIL');
}
// Get the appropriate username, etc. // Get the appropriate username, etc.
$sql = 'SELECT username, user_email, user_allow_viewemail, user_lang, user_jabber, user_notify_type $sql = 'SELECT username, user_email, user_allow_viewemail, user_lang, user_jabber, user_notify_type
FROM ' . USERS_TABLE . " FROM ' . USERS_TABLE . "
WHERE user_id = $user_id WHERE user_id = $user_id
AND user_type IN (" . USER_NORMAL . ', ' . USER_FOUNDER . ')'; AND user_type IN (" . USER_NORMAL . ', ' . USER_FOUNDER . ')';
$result = $db->sql_query($sql); $result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
if (!($row = $db->sql_fetchrow($result))) if (!$row)
{ {
trigger_error('NO_USER'); trigger_error('NO_USER');
} }
$db->sql_freeresult($result);
// Can we send email to this user? // Can we send email to this user?
if (!$row['user_allow_viewemail'] && !$auth->acl_get('a_user')) if (!$row['user_allow_viewemail'] && !$auth->acl_get('a_user'))
@ -476,18 +474,20 @@ switch ($mode)
trigger_error('NO_EMAIL'); trigger_error('NO_EMAIL');
} }
} }
else else if ($topic_id)
{ {
// Send topic heads-up to email address
$sql = 'SELECT forum_id, topic_title $sql = 'SELECT forum_id, topic_title
FROM ' . TOPICS_TABLE . " FROM ' . TOPICS_TABLE . "
WHERE topic_id = $topic_id"; WHERE topic_id = $topic_id";
$result = $db->sql_query($sql); $result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
if (!($row = $db->sql_fetchrow($result))) if (!$row)
{ {
trigger_error('NO_TOPIC'); trigger_error('NO_TOPIC');
} }
$db->sql_freeresult($result);
if (!$auth->acl_get('f_read', $row['forum_id'])) if (!$auth->acl_get('f_read', $row['forum_id']))
{ {
@ -499,12 +499,24 @@ switch ($mode)
trigger_error('NO_EMAIL'); trigger_error('NO_EMAIL');
} }
} }
else
{
trigger_error('NO_EMAIL');
}
// User has submitted a message, handle it
$error = array(); $error = array();
$name = request_var('name', '');
$email = request_var('email', '');
$email_lang = request_var('lang', $config['default_lang']);
$subject = request_var('subject', '');
$message = request_var('message', '');
$cc = (isset($_POST['cc_email'])) ? true : false;
$submit = (isset($_POST['submit'])) ? true : false;
if ($submit) if ($submit)
{ {
if (!$topic_id) if ($user_id)
{ {
if (!$subject) if (!$subject)
{ {
@ -515,6 +527,10 @@ switch ($mode)
{ {
$error[] = $user->lang['EMPTY_MESSAGE_EMAIL']; $error[] = $user->lang['EMPTY_MESSAGE_EMAIL'];
} }
$name = $row['username'];
$email_lang = $row['user_lang'];
$email = $row['user_email'];
} }
else else
{ {
@ -537,22 +553,24 @@ switch ($mode)
$result = $db->sql_query($sql); $result = $db->sql_query($sql);
include_once($phpbb_root_path . 'includes/functions_messenger.'.$phpEx); include_once($phpbb_root_path . 'includes/functions_messenger.'.$phpEx);
$messenger = new messenger(false);
$email_tpl = (!$topic_id) ? 'profile_send_email' : 'email_notify'; $email_tpl = ($user_id) ? 'profile_send_email' : 'email_notify';
$email_lang = (!$topic_id) ? $row['user_lang'] : $email_lang;
$email = (!$topic_id) ? $row['user_email'] : $email;
$messenger = new messenger();
$messenger->template($email_tpl, $email_lang); $messenger->template($email_tpl, $email_lang);
$messenger->subject($subject);
$messenger->replyto($user->data['user_email']); $messenger->replyto($user->data['user_email']);
$messenger->to($email, $row['username']); $messenger->to($email, $name);
if (!$topic_id) if ($user_id)
{ {
$messenger->subject($subject);
$messenger->im($row['user_jabber'], $row['username']); $messenger->im($row['user_jabber'], $row['username']);
$notify_type = $row['user_notify_type'];
}
else
{
$notify_type = NOTIFY_EMAIL;
} }
if ($cc) if ($cc)
@ -568,46 +586,55 @@ switch ($mode)
$messenger->assign_vars(array( $messenger->assign_vars(array(
'SITENAME' => $config['sitename'], 'SITENAME' => $config['sitename'],
'BOARD_EMAIL' => $config['board_contact'], 'BOARD_EMAIL' => $config['board_contact'],
'FROM_USERNAME' => stripslashes($user->data['username']), 'TO_USERNAME' => html_entity_decode($name),
'TO_USERNAME' => ($topic_id) ? stripslashes($name) : stripslashes($row['username']), 'FROM_USERNAME' => html_entity_decode($user->data['username']),
'MESSAGE' => $message, 'MESSAGE' => html_entity_decode($message))
'TOPIC_NAME' => ($topic_id) ? html_entity_decode($row['topic_title']) : '',
'U_TOPIC' => ($topic_id) ? generate_board_url() . "/viewtopic.$phpEx?f=" . $row['forum_id'] . "&t=$topic_id" : '')
); );
$messenger->send($row['user_notify_type']); if ($topic_id)
{
$messenger->assign_vars(array(
'TOPIC_NAME' => html_entity_decode($row['topic_title']),
'U_TOPIC' => generate_board_url() . "/viewtopic.$phpEx?f=" . $row['forum_id'] . "&t=$topic_id")
);
}
$messenger->send($notify_type);
$messenger->save_queue(); $messenger->save_queue();
meta_refresh(3, "index.$phpEx$SID"); meta_refresh(3, "index.$phpEx$SID");
$message = (!$topic_id) ? sprintf($user->lang['RETURN_INDEX'], '<a href="' . "index.$phpEx$SID" . '">', '</a>') : sprintf($user->lang['RETURN_TOPIC'], "<a href=\"viewtopic.$phpEx$SID&amp;f=$forum_id&amp;t=" . $row['topic_id'] . '">', '</a>'); $message = ($user_id) ? sprintf($user->lang['RETURN_INDEX'], '<a href="' . "index.$phpEx$SID" . '">', '</a>') : sprintf($user->lang['RETURN_TOPIC'], '<a href="' . $phpbb_root_path . "viewtopic.$phpEx$SID&amp;f={$row['forum_id']}&amp;t=$topic_id" . '">', '</a>');
trigger_error($user->lang['EMAIL_SENT'] . '<br /><br />' . $message); trigger_error($user->lang['EMAIL_SENT'] . '<br /><br />' . $message);
} }
} }
if ($topic_id) if ($user_id)
{ {
$template->assign_vars(array( $template->assign_vars(array(
'EMAIL' => htmlspecialchars($email), 'S_SEND_USER' => true,
'NAME' => htmlspecialchars($name), 'USERNAME' => $row['username'],
'TOPIC_TITLE' => $row['topic_title'],
'L_EMAIL_BODY_EXPLAIN' => $user->lang['EMAIL_BODY_EXPLAIN'],
'S_POST_ACTION' => "{$phpbb_root_path}memberlist.$phpEx$SID&amp;mode=email&amp;u=$user_id")
);
}
else
{
$template->assign_vars(array(
'EMAIL' => $email,
'NAME' => $name,
'S_LANG_OPTIONS' => language_select($email_lang),
'U_TOPIC' => "{$phpbb_root_path}viewtopic.$phpEx$SID&amp;f={$row['forum_id']}&amp;t=$topic_id", 'L_EMAIL_BODY_EXPLAIN' => $user->lang['EMAIL_TOPIC_EXPLAIN'],
'S_POST_ACTION' => "{$phpbb_root_path}memberlist.$phpEx$SID&amp;mode=email&amp;t=$topic_id")
'S_LANG_OPTIONS'=> ($topic_id) ? language_select($email_lang) : '')
); );
} }
$template->assign_vars(array( $template->assign_vars(array(
'USERNAME' => (!$topic_id) ? addslashes($row['username']) : '', 'ERROR_MESSAGE' => (sizeof($error)) ? implode('<br />', $error) : '')
'ERROR_MESSAGE' => (sizeof($error)) ? implode('<br />', $error) : '',
'L_EMAIL_BODY_EXPLAIN' => (!$topic_id) ? $user->lang['EMAIL_BODY_EXPLAIN'] : $user->lang['EMAIL_TOPIC_EXPLAIN'],
'S_POST_ACTION' => (!$topic_id) ? "{$phpbb_root_path}memberlist.$phpEx$SID&amp;mode=email&amp;u=$user_id" : "{$phpbb_root_path}memberlist.$phpEx$SID&amp;mode=email&amp;f=$forum_id&amp;t=$topic_id",
'S_SEND_USER' => (!$topic_id) ? true : false)
); );
break;
break;
case 'group': case 'group':
default: default:
@ -644,7 +671,7 @@ switch ($mode)
if ($mode == 'searchuser' && ($config['load_search'] || $auth->acl_get('a_'))) if ($mode == 'searchuser' && ($config['load_search'] || $auth->acl_get('a_')))
{ {
$username = request_var('username', ''); $username = request_var('username', '', true);
$email = request_var('email', ''); $email = request_var('email', '');
$icq = request_var('icq', ''); $icq = request_var('icq', '');
$aim = request_var('aim', ''); $aim = request_var('aim', '');

View file

@ -528,7 +528,7 @@ if ($submit || $preview || $refresh)
$message_parser->message = request_var('message', '', true); $message_parser->message = request_var('message', '', true);
$username = (isset($_POST['username'])) ? request_var('username', '') : $username; $username = (isset($_POST['username'])) ? request_var('username', '', true) : $username;
$post_edit_reason = (isset($_POST['edit_reason']) && !empty($_POST['edit_reason']) && $mode == 'edit' && $user->data['user_id'] != $poster_id) ? request_var('edit_reason', '', true) : ''; $post_edit_reason = (isset($_POST['edit_reason']) && !empty($_POST['edit_reason']) && $mode == 'edit' && $user->data['user_id'] != $poster_id) ? request_var('edit_reason', '', true) : '';
$topic_type = (isset($_POST['topic_type'])) ? (int) $_POST['topic_type'] : (($mode != 'post') ? $topic_type : POST_NORMAL); $topic_type = (isset($_POST['topic_type'])) ? (int) $_POST['topic_type'] : (($mode != 'post') ? $topic_type : POST_NORMAL);

View file

@ -45,7 +45,7 @@ function checkForm(formObj) {
<td class="row2"><input class="post" type="text" name="subject" size="50" maxlength="100" tabindex="2" value="{SUBJECT}" /></td> <td class="row2"><input class="post" type="text" name="subject" size="50" maxlength="100" tabindex="2" value="{SUBJECT}" /></td>
</tr> </tr>
<!-- ELSE ---> <!-- ELSE --->
<tr> <tr>
<td class="row1" width="35%"><b class="genmed">{L_EMAIL_ADDRESS}</b></td> <td class="row1" width="35%"><b class="genmed">{L_EMAIL_ADDRESS}</b></td>
<td class="row2"><input class="post" type="text" name="email" size="50" maxlength="100" value="{EMAIL}" /></td> <td class="row2"><input class="post" type="text" name="email" size="50" maxlength="100" value="{EMAIL}" /></td>
</tr> </tr>

View file

@ -43,7 +43,7 @@ function checkForm()
//--> //-->
</script> </script>
<script language="javascript" type="text/javascript" src="styles/subSilver/template/editor.js"></script> <script language="javascript" type="text/javascript" src="{T_TEMPLATE_PATH}/editor.js"></script>
<!-- IF S_FORUM_RULES --> <!-- IF S_FORUM_RULES -->
<div class="forumrules"> <div class="forumrules">

View file

@ -8,7 +8,7 @@ var text_name = 'signature';
// Define the bbCode tags // Define the bbCode tags
bbcode = new Array(); bbcode = new Array();
bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]'); bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]','[flash=]', '[/flash]','[size=]','[/size]'<!-- BEGIN custom_tags -->, {custom_tags.BBCODE_NAME}<!-- END custom_tags -->);
imageTag = false; imageTag = false;
// Helpline messages // Helpline messages
@ -52,33 +52,36 @@ function marklist(form_name, status)
<tr> <tr>
<td class="row1" width="35%"><b class="genmed">{L_SIGNATURE}: </b><br /><span class="gensmall">{L_SIGNATURE_EXPLAIN}</span></td> <td class="row1" width="35%"><b class="genmed">{L_SIGNATURE}: </b><br /><span class="gensmall">{L_SIGNATURE_EXPLAIN}</span></td>
<td class="row2"><table cellspacing="0" cellpadding="2" border="0"> <td class="row2"><table cellspacing="0" cellpadding="2" border="0">
<tr align="center" valign="middle"> <tr valign="middle" align="left">
<td><input class="btnbbcode" type="button" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold; width: 30px" onclick="bbstyle(0)" onmouseover="helpline('b')" /></td> <td colspan="2"><input type="button" class="btnbbcode" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold; width: 30px;" onclick="bbstyle(0)" onmouseover="helpline('b')" />
<td><input class="btnbbcode" type="button" accesskey="i" name="addbbcode2" value=" i " style="font-style:italic; width: 30px" onclick="bbstyle(2)" onmouseover="helpline('i')" /></td> <input type="button" class="btnbbcode" accesskey="i" name="addbbcode2" value=" i " style="font-style:italic; width: 30px;" onclick="bbstyle(2)" onmouseover="helpline('i')" />
<td><input class="btnbbcode" type="button" accesskey="u" name="addbbcode4" value=" u " style="text-decoration: underline; width: 30px" onclick="bbstyle(4)" onmouseover="helpline('u')" /></td> <input type="button" class="btnbbcode" accesskey="u" name="addbbcode4" value=" u " style="text-decoration: underline; width: 30px;" onclick="bbstyle(4)" onmouseover="helpline('u')" />
<td><input class="btnbbcode" type="button" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onclick="bbstyle(6)" onmouseover="helpline('q')" /></td> <!-- IF S_BBCODE_QUOTE --><input type="button" class="btnbbcode" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onclick="bbstyle(6)" onmouseover="helpline('q')" /><!-- ENDIF -->
<td><input class="btnbbcode" type="button" accesskey="c" name="addbbcode8" value="Code" style="width: 40px" onclick="bbstyle(8)" onmouseover="helpline('c')" /></td> <input type="button" class="btnbbcode" accesskey="c" name="addbbcode8" value="Code" style="width: 40px" onclick="bbstyle(8)" onmouseover="helpline('c')" />
<td><input class="btnbbcode" type="button" accesskey="l" name="addbbcode10" value="List" style="width: 40px" onclick="bbstyle(10)" onmouseover="helpline('l')" /></td> <input type="button" class="btnbbcode" accesskey="l" name="addbbcode10" value="List" style="width: 40px" onclick="bbstyle(10)" onmouseover="helpline('l')" />
<td><input class="btnbbcode" type="button" accesskey="o" name="addbbcode12" value="List=" style="width: 40px" onclick="bbstyle(12)" onmouseover="helpline('o')" /></td> <input type="button" class="btnbbcode" accesskey="o" name="addbbcode12" value="List=" style="width: 40px" onclick="bbstyle(12)" onmouseover="helpline('o')" />
<td><input class="btnbbcode" type="button" accesskey="p" name="addbbcode14" value="Img" style="width: 40px" onclick="bbstyle(14)" onmouseover="helpline('p')" /></td> <!-- IF S_BBCODE_IMG --><input type="button" class="btnbbcode" accesskey="p" name="addbbcode14" value="Img" style="width: 40px" onclick="bbstyle(14)" onmouseover="helpline('p')" /><!-- ENDIF -->
<td><input class="btnbbcode" type="button" accesskey="w" name="addbbcode18" value="URL" style="text-decoration: underline; width: 40px" onclick="bbstyle(18)" onmouseover="helpline('w')" /></td> <input type="button" class="btnbbcode" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onclick="bbstyle(16)" onmouseover="helpline('w')" />
<!-- IF S_BBCODE_FLASH --><input type="button" class="btnbbcode" accesskey="f" name="addbbcode18" value="Flash" onclick="bbstyle(18)" /><!-- ENDIF -->
<span class="genmed" style="white-space: nowrap;">{L_FONT_SIZE}: <select class="gensmall" name="addbbcode20" onchange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]');this.form.addbbcode20.selectedIndex = 2;" onmouseover="helpline('f')">
<option value="7">{L_FONT_TINY}</option>
<option value="9">{L_FONT_SMALL}</option>
<option value="12" selected="selected">{L_FONT_NORMAL}</option>
<option value="18">{L_FONT_LARGE}</option>
<option value="24">{L_FONT_HUGE}</option>
</select> | <a href="javascript:bbstyle(-1)" onmouseover="helpline('a')">{L_CLOSE_TAGS}</a></span>
</td>
</tr> </tr>
<!-- IF .custom_tags -->
<tr valign="middle" align="left">
<td colspan="2">
<!-- BEGIN custom_tags -->
<input type="button" class="btnbbcode" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})" />
<!-- END custom_tags -->
</td>
<!-- ENDIF -->
<tr> <tr>
<td colspan="9"><table width="100%" cellspacing="0" cellpadding="0" border="0"> <td colspan="9"><input type="text" name="helpbox" style="width:100%" maxlength="100" class="helpline" value="{L_STYLES_TIP}" /></td>
<tr>
<td><span class="genmed"> &nbsp;{L_FONT_SIZE}:</span> <select name="addbbcode20" onchange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]');this.form.addbbcode20.selectedIndex = 2;" onmouseover="helpline('f')">
<option value="7">{L_FONT_TINY}</option>
<option value="9">{L_FONT_SMALL}</option>
<option value="12" selected="selected">{L_FONT_NORMAL}</option>
<option value="18">{L_FONT_LARGE}</option>
<option value="24">{L_FONT_HUGE}</option>
</select></td>
<td class="gensmall" nowrap="nowrap" align="right"><a href="javascript:bbstyle(-1)" onmouseover="helpline('a')">{L_CLOSE_TAGS}</a></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="9"><input class="helpline" type="text" name="helpbox" size="45" maxlength="100" style="width:100%" value="{L_STYLES_TIP}" /></td>
</tr> </tr>
<tr> <tr>
<td colspan="9"><textarea class="post" name="signature" rows="10" cols="70" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);">{SIGNATURE}</textarea></td> <td colspan="9"><textarea class="post" name="signature" rows="10" cols="70" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);">{SIGNATURE}</textarea></td>