mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
- some fixes
- added script for easy adjustement of username_clean column within the users table (please see the note i added to the utf8_clean_string() function) git-svn-id: file:///svn/phpbb/trunk@6561 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
805af6f437
commit
3d0759974b
20 changed files with 130 additions and 67 deletions
|
@ -152,16 +152,16 @@
|
|||
<td style="width:90px; white-space: nowrap; text-align: right; vertical-align: middle;">
|
||||
<!-- IF modules.S_FIRST_ROW && not modules.S_LAST_ROW -->
|
||||
{ICON_MOVE_UP_DISABLED}
|
||||
<a href="{modules.U_MOVE_DOWN}">{ICON_MOVE_DOWN}</a>
|
||||
<a href="{modules.U_MOVE_DOWN}">{ICON_MOVE_DOWN}</a>
|
||||
<!-- ELSEIF not modules.S_FIRST_ROW && not modules.S_LAST_ROW-->
|
||||
<a href="{modules.U_MOVE_UP}">{ICON_MOVE_UP}</a>
|
||||
<a href="{modules.U_MOVE_DOWN}">{ICON_MOVE_DOWN}</a>
|
||||
<!-- ELSEIF modules.S_LAST_ROW && not modules.S_FIRST_ROW -->
|
||||
<!-- ELSEIF modules.S_LAST_ROW && not modules.S_FIRST_ROW -->
|
||||
<a href="{modules.U_MOVE_UP}">{ICON_MOVE_UP}</a>
|
||||
{ICON_MOVE_DOWN_DISABLED}
|
||||
<!-- ELSE -->
|
||||
{ICON_MOVE_UP_DISABLED}
|
||||
{ICON_MOVE_DOWN_DISABLED}
|
||||
{ICON_MOVE_DOWN_DISABLED}
|
||||
<!-- ENDIF -->
|
||||
<a href="{modules.U_EDIT}">{ICON_EDIT}</a>
|
||||
<a href="{modules.U_DELETE}">{ICON_DELETE}</a>
|
||||
|
|
52
phpBB/develop/adjust_usernames.php
Normal file
52
phpBB/develop/adjust_usernames.php
Normal file
|
@ -0,0 +1,52 @@
|
|||
<?php
|
||||
/**
|
||||
* Adjust username_clean column.
|
||||
*
|
||||
* You should make a backup from your users table in case something goes wrong
|
||||
*/
|
||||
die("Please read the first lines of this script for instructions on how to enable it");
|
||||
|
||||
set_time_limit(0);
|
||||
|
||||
define('IN_PHPBB', true);
|
||||
$phpbb_root_path = './../';
|
||||
$phpEx = substr(strrchr(__FILE__, '.'), 1);
|
||||
include($phpbb_root_path . 'common.'.$phpEx);
|
||||
|
||||
// Start session management
|
||||
$user->session_begin();
|
||||
$auth->acl($user->data);
|
||||
$user->setup();
|
||||
|
||||
$echos = 0;
|
||||
|
||||
$sql = 'SELECT user_id, username
|
||||
FROM ' . USERS_TABLE;
|
||||
$result = $db->sql_query($sql);
|
||||
|
||||
while ($row = $db->sql_fetchrow($result))
|
||||
{
|
||||
$sql = 'UPDATE ' . USERS_TABLE . "
|
||||
SET username_clean = '" . $db->sql_escape(utf8_clean_string($row['username'])) . "'
|
||||
WHERE user_id = " . $row['user_id'];
|
||||
$db->sql_query($sql);
|
||||
|
||||
if ($echos > 200)
|
||||
{
|
||||
echo '<br />' . "\n";
|
||||
$echos = 0;
|
||||
}
|
||||
|
||||
echo '.';
|
||||
$echos++;
|
||||
|
||||
flush();
|
||||
}
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
echo 'FINISHED';
|
||||
|
||||
// Done
|
||||
$db->sql_close();
|
||||
|
||||
?>
|
|
@ -12,7 +12,7 @@
|
|||
* If you overwrite the original schema files please make sure you save the file with UNIX linefeeds.
|
||||
*/
|
||||
|
||||
//die("Please read the first lines of this script for instructions on how to enable it");
|
||||
die("Please read the first lines of this script for instructions on how to enable it");
|
||||
|
||||
set_time_limit(0);
|
||||
|
||||
|
@ -1899,7 +1899,7 @@ function get_schema_struct()
|
|||
'user_birthday' => array('INDEX', 'user_birthday'),
|
||||
'user_email_hash' => array('INDEX', 'user_email_hash'),
|
||||
'user_type' => array('INDEX', 'user_type'),
|
||||
'username_clean' => array('INDEX', 'username_clean'),
|
||||
'username_clean' => array('INDEX', 'username_clean'),
|
||||
),
|
||||
);
|
||||
|
||||
|
|
|
@ -705,7 +705,7 @@ class acp_language
|
|||
$row = $db->sql_fetchrow($result);
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
if (!$row)
|
||||
if ($row)
|
||||
{
|
||||
trigger_error($user->lang['LANGUAGE_PACK_ALREADY_INSTALLED'] . adm_back_link($this->u_action), E_USER_WARNING);
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ class acp_modules
|
|||
{
|
||||
trigger_error($user->lang['NO_MODULE_ID'] . adm_back_link($this->u_action . '&parent_id=' . $this->parent_id), E_USER_WARNING);
|
||||
}
|
||||
|
||||
|
||||
if (confirm_box(true))
|
||||
{
|
||||
$errors = $this->delete_module($module_id);
|
||||
|
@ -94,7 +94,7 @@ class acp_modules
|
|||
{
|
||||
trigger_error($user->lang['NO_MODULE_ID'] . adm_back_link($this->u_action . '&parent_id=' . $this->parent_id), E_USER_WARNING);
|
||||
}
|
||||
|
||||
|
||||
$sql = 'UPDATE ' . MODULES_TABLE . '
|
||||
SET module_enabled = ' . (($action == 'enable') ? 1 : 0) . "
|
||||
WHERE module_id = $module_id";
|
||||
|
@ -351,6 +351,7 @@ class acp_modules
|
|||
$navigation = '<a href="' . $this->u_action . '">' . strtoupper($this->module_class) . '</a>';
|
||||
|
||||
$modules_nav = $this->get_module_branch($this->parent_id, 'parents', 'descending');
|
||||
|
||||
foreach ($modules_nav as $row)
|
||||
{
|
||||
$langname = $this->lang_name($row['module_langname']);
|
||||
|
@ -392,13 +393,16 @@ class acp_modules
|
|||
}
|
||||
|
||||
$url = $this->u_action . '&parent_id=' . $this->parent_id . '&m=' . $row['module_id'];
|
||||
|
||||
|
||||
$template->assign_block_vars('modules', array(
|
||||
'MODULE_IMAGE' => $module_image,
|
||||
'MODULE_TITLE' => $langname,
|
||||
'MODULE_ENABLED' => ($row['module_enabled']) ? true : false,
|
||||
'MODULE_DISPLAYED' => ($row['module_display']) ? true : false,
|
||||
|
||||
'S_ACP_CAT_SYSTEM' => ($this->module_class == 'acp' && $row['module_langname'] == 'ACP_CAT_SYSTEM') ? true : false,
|
||||
'S_ACP_MODULE_MANAGEMENT' => ($this->module_class == 'acp' && ($row['module_basename'] == 'modules' || $row['module_langname'] == 'ACP_MODULE_MANAGEMENT')) ? true : false,
|
||||
|
||||
'U_MODULE' => $this->u_action . '&parent_id=' . $row['module_id'],
|
||||
'U_MOVE_UP' => $url . '&action=move_up',
|
||||
'U_MOVE_DOWN' => $url . '&action=move_down',
|
||||
|
@ -1008,6 +1012,14 @@ class acp_modules
|
|||
|
||||
return $this->lang_name($target['module_langname']);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the module or her childs hold the management module(s)
|
||||
*/
|
||||
function is_management_module($module_id)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
|
@ -295,7 +295,7 @@ class acp_search
|
|||
|
||||
if ($post_counter <= $this->max_post_id)
|
||||
{
|
||||
redirect($this->u_action . '&action=delete', 3);
|
||||
redirect($this->u_action . '&action=delete');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -339,7 +339,7 @@ class acp_search
|
|||
|
||||
if ($post_counter <= $this->max_post_id)
|
||||
{
|
||||
redirect($this->u_action . '&action=create', 3);
|
||||
redirect($this->u_action . '&action=create');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -298,19 +298,16 @@ class dbal
|
|||
$array = array($array);
|
||||
}
|
||||
|
||||
$values = array();
|
||||
foreach ($array as $var)
|
||||
if (sizeof($array) == 1)
|
||||
{
|
||||
$values[] = $this->_sql_validate_value($var);
|
||||
}
|
||||
@reset($array);
|
||||
$var = current($array);
|
||||
|
||||
if (sizeof($values) == 1)
|
||||
{
|
||||
return $field . ($negate ? ' <> ' : ' = ') . $values[0];
|
||||
return $field . ($negate ? ' <> ' : ' = ') . $this->_sql_validate_value($var);
|
||||
}
|
||||
else
|
||||
{
|
||||
return $field . ($negate ? ' NOT IN ' : ' IN ' ) . '(' . implode(', ', $values) . ')';
|
||||
return $field . ($negate ? ' NOT IN ' : ' IN ' ) . '(' . implode(', ', array_map(array($this, '_sql_validate_value'), $array)) . ')';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -3350,7 +3350,7 @@ function page_footer($run_cron = true)
|
|||
$template->assign_vars(array(
|
||||
'DEBUG_OUTPUT' => (defined('DEBUG')) ? $debug_output : '',
|
||||
|
||||
'U_ACP' => ($auth->acl_get('a_') && $user->data['is_registered']) ? "{$phpbb_root_path}adm/index.$phpEx?sid=" . $user->session_id : '')
|
||||
'U_ACP' => ($auth->acl_get('a_') && $user->data['is_registered']) ? append_sid("{$phpbb_root_path}adm/index.$phpEx", '', true, $user->session_id) : '')
|
||||
);
|
||||
|
||||
// Call cron-type script
|
||||
|
|
|
@ -549,7 +549,7 @@ class template_compile
|
|||
*/
|
||||
function compile_tag_include_php($tag_args)
|
||||
{
|
||||
return "include('" . $this->template->root . '/' . $tag_args . "');";
|
||||
return "include('" . $tag_args . "');";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -559,7 +559,7 @@ class template_compile
|
|||
*/
|
||||
function _parse_is_expr($is_arg, $tokens)
|
||||
{
|
||||
$expr_end = 0;
|
||||
$expr_end = 0;
|
||||
$negate_expr = false;
|
||||
|
||||
if (($first_token = array_shift($tokens)) == 'not')
|
||||
|
@ -578,12 +578,12 @@ class template_compile
|
|||
if (@$tokens[$expr_end] == 'by')
|
||||
{
|
||||
$expr_end++;
|
||||
$expr_arg = $tokens[$expr_end++];
|
||||
$expr = "!(($is_arg / $expr_arg) % $expr_arg)";
|
||||
$expr_arg = $tokens[$expr_end++];
|
||||
$expr = "!(($is_arg / $expr_arg) % $expr_arg)";
|
||||
}
|
||||
else
|
||||
{
|
||||
$expr = "!($is_arg % 2)";
|
||||
$expr = "!($is_arg % 2)";
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -591,12 +591,12 @@ class template_compile
|
|||
if (@$tokens[$expr_end] == 'by')
|
||||
{
|
||||
$expr_end++;
|
||||
$expr_arg = $tokens[$expr_end++];
|
||||
$expr = "(($is_arg / $expr_arg) % $expr_arg)";
|
||||
$expr_arg = $tokens[$expr_end++];
|
||||
$expr = "(($is_arg / $expr_arg) % $expr_arg)";
|
||||
}
|
||||
else
|
||||
{
|
||||
$expr = "($is_arg % 2)";
|
||||
$expr = "($is_arg % 2)";
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -604,18 +604,18 @@ class template_compile
|
|||
if (@$tokens[$expr_end] == 'by')
|
||||
{
|
||||
$expr_end++;
|
||||
$expr_arg = $tokens[$expr_end++];
|
||||
$expr = "!($is_arg % $expr_arg)";
|
||||
$expr_arg = $tokens[$expr_end++];
|
||||
$expr = "!($is_arg % $expr_arg)";
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
if ($negate_expr)
|
||||
{
|
||||
$expr = "!($expr)";
|
||||
$expr = "!($expr)";
|
||||
}
|
||||
|
||||
array_splice($tokens, 0, $expr_end, $expr);
|
||||
array_splice($tokens, 0, $expr_end, $expr);
|
||||
|
||||
return $tokens;
|
||||
}
|
||||
|
|
|
@ -931,6 +931,9 @@ function utf8_case_fold($text, $option = 'full')
|
|||
|
||||
/**
|
||||
* @todo needs documenting
|
||||
*
|
||||
* Please be aware that if you change something within this function or within
|
||||
* functions used here you need to rebuild/update the complete users table.
|
||||
*/
|
||||
function utf8_clean_string($text)
|
||||
{
|
||||
|
|
|
@ -1433,7 +1433,7 @@ ALTER TABLE phpbb_users ADD PRIMARY KEY (user_id);;
|
|||
CREATE INDEX phpbb_users_user_birthday ON phpbb_users(user_birthday);;
|
||||
CREATE INDEX phpbb_users_user_email_hash ON phpbb_users(user_email_hash);;
|
||||
CREATE INDEX phpbb_users_user_type ON phpbb_users(user_type);;
|
||||
CREATE INDEX phpbb_users_username ON phpbb_users(username);;
|
||||
CREATE INDEX phpbb_users_username_clean ON phpbb_users(username_clean);;
|
||||
|
||||
CREATE GENERATOR phpbb_users_gen;;
|
||||
SET GENERATOR phpbb_users_gen TO 0;;
|
||||
|
|
|
@ -1687,7 +1687,7 @@ GO
|
|||
CREATE INDEX [user_type] ON [phpbb_users]([user_type]) ON [PRIMARY]
|
||||
GO
|
||||
|
||||
CREATE INDEX [username] ON [phpbb_users]([username]) ON [PRIMARY]
|
||||
CREATE INDEX [username_clean] ON [phpbb_users]([username_clean]) ON [PRIMARY]
|
||||
GO
|
||||
|
||||
|
||||
|
|
|
@ -1032,7 +1032,7 @@ CREATE TABLE phpbb_users (
|
|||
KEY user_birthday (user_birthday),
|
||||
KEY user_email_hash (user_email_hash),
|
||||
KEY user_type (user_type),
|
||||
KEY username (username(255))
|
||||
KEY username_clean (username_clean(255))
|
||||
);
|
||||
|
||||
|
||||
|
|
|
@ -1032,7 +1032,7 @@ CREATE TABLE phpbb_users (
|
|||
KEY user_birthday (user_birthday),
|
||||
KEY user_email_hash (user_email_hash),
|
||||
KEY user_type (user_type),
|
||||
KEY username (username)
|
||||
KEY username_clean (username_clean)
|
||||
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
|
||||
|
||||
|
||||
|
|
|
@ -1847,7 +1847,7 @@ CREATE INDEX phpbb_users_user_email_hash ON phpbb_users (user_email_hash)
|
|||
/
|
||||
CREATE INDEX phpbb_users_user_type ON phpbb_users (user_type)
|
||||
/
|
||||
CREATE INDEX phpbb_users_username ON phpbb_users (username)
|
||||
CREATE INDEX phpbb_users_username_clean ON phpbb_users (username_clean)
|
||||
/
|
||||
|
||||
CREATE SEQUENCE phpbb_users_seq
|
||||
|
|
|
@ -1294,7 +1294,7 @@ CREATE TABLE phpbb_users (
|
|||
CREATE INDEX phpbb_users_user_birthday ON phpbb_users (user_birthday);
|
||||
CREATE INDEX phpbb_users_user_email_hash ON phpbb_users (user_email_hash);
|
||||
CREATE INDEX phpbb_users_user_type ON phpbb_users (user_type);
|
||||
CREATE INDEX phpbb_users_username ON phpbb_users (username);
|
||||
CREATE INDEX phpbb_users_username_clean ON phpbb_users (username_clean);
|
||||
|
||||
/*
|
||||
Table: 'phpbb_warnings'
|
||||
|
|
|
@ -59,6 +59,8 @@ INSERT INTO phpbb_config (config_name, config_value) VALUES ('browser_check', '1
|
|||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('bump_interval', '10');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('bump_type', 'd');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('cache_gc', '7200');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('captcha_gd', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('captcha_gd_noise', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('check_dnsbl', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('chg_passforce', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('cookie_domain', '');
|
||||
|
@ -116,19 +118,19 @@ INSERT INTO phpbb_config (config_name, config_value) VALUES ('ldap_server', '');
|
|||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('ldap_uid', '');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('limit_load', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('limit_search_load', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('load_anon_lastread', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('load_birthdays', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('load_cpf_memberlist', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('load_cpf_viewprofile', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('load_cpf_viewtopic', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('load_db_lastread', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('load_anon_lastread', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('load_db_track', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('load_onlinetrack', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('load_jumpbox', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('load_moderators', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('load_online', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('load_online_guests', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('load_online_time', '5');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('load_onlinetrack', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('load_search', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('load_tplcompile', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('load_user_activity', '1');
|
||||
|
@ -163,8 +165,6 @@ INSERT INTO phpbb_config (config_name, config_value) VALUES ('pass_complex', '.*
|
|||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('pm_edit_time', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('pm_max_boxes', '4');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('pm_max_msgs', '50');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('captcha_gd', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('captcha_gd_noise', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('posts_per_page', '10');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('print_pm', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('queue_interval', '600');
|
||||
|
@ -237,10 +237,10 @@ INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_ignoreflood', 1
|
|||
INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_img', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_list', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_noapprove', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_print', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_poll', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_post', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_postcount', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_print', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_read', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_reply', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_local) VALUES ('f_report', 1);
|
||||
|
@ -315,38 +315,37 @@ INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('a_words', 1);
|
|||
|
||||
# -- User related auth options
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_sendemail', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_readpm', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_sendpm', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_masspm', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_sendim', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_ignoreflood', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_hideonline', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_viewonline', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_viewprofile', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_attach', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_chgavatar', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_chggrp', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_chgcensors', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_chgemail', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_chggrp', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_chgname', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_chgpasswd', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_chgcensors', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_search', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_savedrafts', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_download', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_attach', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_sig', 1);
|
||||
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_hideonline', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_ignoreflood', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_masspm', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_pm_attach', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_pm_bbcode', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_pm_smilies', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_pm_delete', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_pm_download', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_pm_edit', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_pm_printpm', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_pm_emailpm', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_pm_forward', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_pm_delete', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_pm_img', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_pm_flash', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_pm_forward', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_pm_img', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_pm_printpm', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_pm_smilies', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_readpm', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_savedrafts', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_search', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_sendemail', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_sendim', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_sendpm', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_sig', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_viewonline', 1);
|
||||
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_viewprofile', 1);
|
||||
|
||||
|
||||
# -- standard auth roles
|
||||
|
|
|
@ -1004,7 +1004,7 @@ CREATE TABLE phpbb_users (
|
|||
CREATE INDEX phpbb_users_user_birthday ON phpbb_users (user_birthday);
|
||||
CREATE INDEX phpbb_users_user_email_hash ON phpbb_users (user_email_hash);
|
||||
CREATE INDEX phpbb_users_user_type ON phpbb_users (user_type);
|
||||
CREATE INDEX phpbb_users_username ON phpbb_users (username);
|
||||
CREATE INDEX phpbb_users_username_clean ON phpbb_users (username_clean);
|
||||
|
||||
# Table: 'phpbb_warnings'
|
||||
CREATE TABLE phpbb_warnings (
|
||||
|
|
|
@ -31,7 +31,7 @@ if (empty($lang) || !is_array($lang))
|
|||
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
|
||||
|
||||
$lang = array_merge($lang, array(
|
||||
'ACP_MODULE_MANAGEMENT_EXPLAIN' => 'Here you are able to manage all kind of modules. Please note that if you place the same module under different categories, the category selected will be the first one found within the tree.',
|
||||
'ACP_MODULE_MANAGEMENT_EXPLAIN' => 'Here you are able to manage all kind of modules. Please note that the ACP has a three-level menu structure (Category -> Category -> Module) whereby the others having a two-level menu structure (Category -> Module) which must be kept. Please also be aware that you may lock out yourself if you disable or delete the modules responsible for the module management itself.',
|
||||
'ADD_MODULE' => 'Add module',
|
||||
'ADD_MODULE_CONFIRM' => 'Are you sure you want to add the selected module with the selected mode?',
|
||||
'ADD_MODULE_TITLE' => 'Add module',
|
||||
|
|
|
@ -34,7 +34,7 @@ if (empty($lang) || !is_array($lang))
|
|||
$lang = array_merge($lang, array(
|
||||
'TERMS_OF_USE_CONTENT' => 'By accessing “%1$s” (hereinafter “we”, “us”, “our”, “%1$s”, “%2$s”), you agree to be legally bound by the following terms. If you do not agree to be legally bound by all of the following terms then please do not access and/or use “%1$s”. We may change these at any time and we’ll do our utmost in informing you, though it would be prudent to review this regularly yourself as your continued usage of “%1$s” after changes mean you agree to be legally bound by these terms as they are updated and/or amended.<br />
|
||||
<br />
|
||||
Our forums are powered by phpBB (hereinafter “they”, “them”, “their”, “phpBB software”, “www.phpbb.com”, “phpBB Group”, “phpBB Teams”) which is a bulletin board solution released under the “<a href="http://www.gnu.org/licenses/gpl.html">General Public License</a”> (hereinafter “GPL”) and can be downloaded from <a href="http://www.phpbb.com/">www.phpbb.com</a>. The phpBB software only facilitates Internet based discussions and the GPL strictly forbids them in what we allow and/or disallow as permissible content and/or conduct. For further information about phpBB, please see: <a href="http://www.phpbb.com/">http://www.phpbb.com/</a>.<br />
|
||||
Our forums are powered by phpBB (hereinafter “they”, “them”, “their”, “phpBB software”, “www.phpbb.com”, “phpBB Group”, “phpBB Teams”) which is a bulletin board solution released under the “<a href="http://www.gnu.org/licenses/gpl.html">General Public License</a>” (hereinafter “GPL”) and can be downloaded from <a href="http://www.phpbb.com/">www.phpbb.com</a>. The phpBB software only facilitates Internet based discussions and the GPL strictly forbids them in what we allow and/or disallow as permissible content and/or conduct. For further information about phpBB, please see: <a href="http://www.phpbb.com/">http://www.phpbb.com/</a>.<br />
|
||||
<br />
|
||||
You agree not to post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-orientated or any other material that may violate any laws be it of your country, the country where “%1$s” is hosted or International Law. Doing so may lead to you being immediately and permanently banned, with notification of your Internet Service Provider if deemed required by us. The IP address of all posts are recorded to aid in enforcing these conditions. You agree that “%1$s” have the right to remove, edit, move or close any topic at any time should we see fit. As a user you agree to any information you have entered to being stored in a database. While this information will not be disclosed to any third party without your consent, neither “%1$s” nor phpBB shall be held responsible for any hacking attempt that may lead to the data being compromised.
|
||||
',
|
||||
|
|
Loading…
Add table
Reference in a new issue