aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/database_update.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2006-12-27 00:06:39 +0000
committerNils Adermann <naderman@naderman.de>2006-12-27 00:06:39 +0000
commitb41365fcd41fc185fe197667d2f0bec13f6c30c2 (patch)
treee7746c0e1e870e82a62bb52f08cdb10977059d56 /phpBB/install/database_update.php
parent677dc5d2e11c3209fcaf798e4b44588a9305328f (diff)
downloadforums-b41365fcd41fc185fe197667d2f0bec13f6c30c2.tar
forums-b41365fcd41fc185fe197667d2f0bec13f6c30c2.tar.gz
forums-b41365fcd41fc185fe197667d2f0bec13f6c30c2.tar.bz2
forums-b41365fcd41fc185fe197667d2f0bec13f6c30c2.tar.xz
forums-b41365fcd41fc185fe197667d2f0bec13f6c30c2.zip
- display search type as page title for premade searches [Bug #6508]
- flash enabled on user side by default, so that admins can actually change anything by activating it (still disabled by default) - properly implemented password complexity check [Bug #6584] - do not ldap_escape paramaters for the bind function [Bug #6208] - deleted words in edited post subjects weren't getting there search cache refreshed [Bug #6288] - made common word threshold configurable [Bug #6168] - recreated word match table entries after installation, side effect of bug #6060 - option to only allow ASCII usernames - adjusted search page pagination [Bug #6424] - correctly calculate unformatted search result extract length git-svn-id: file:///svn/phpbb/trunk@6814 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/install/database_update.php')
-rw-r--r--phpBB/install/database_update.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/phpBB/install/database_update.php b/phpBB/install/database_update.php
index febd88665f..42c7e101f8 100644
--- a/phpBB/install/database_update.php
+++ b/phpBB/install/database_update.php
@@ -320,6 +320,10 @@ $database_update_info = array(
'session_forwarded_for' => array('VCHAR:255', 0),
),
),
+ 'change_columns' => array(
+ USERS_TABLE => array(
+ 'user_options' => array('UINT:11', 895),
+ ),
// Remove the following keys
'drop_keys' => array(
ZEBRA_TABLE => array(
@@ -558,6 +562,7 @@ if (version_compare($current_version, '3.0.b4', '<='))
set_config('forwarded_for_check', '0');
set_config('ldap_password', '');
set_config('ldap_user', '');
+ set_config('fulltext_native_common_thres', '20');
$sql = 'SELECT user_colour
FROM ' . USERS_TABLE . '
@@ -580,6 +585,28 @@ if (version_compare($current_version, '3.0.b4', '<='))
break;
}
+ switch ($config['pass_complex'])
+ {
+ case '.*':
+ set_config('pass_complex', 'PASS_TYPE_ANY');
+ break;
+
+ case '[a-zA-Z]':
+ set_config('pass_complex', 'PASS_TYPE_CASE');
+ break;
+
+ case '[a-zA-Z0-9]':
+ set_config('pass_complex', 'PASS_TYPE_ALPHA');
+ break;
+
+ case '[a-zA-Z\W]':
+ set_config('pass_complex', 'PASS_TYPE_SYMBOL');
+ break;
+ }
+
+ $sql = 'UPDATE ' . USERS_TABLE . ' SET user_options = 895 WHERE user_options = 893';
+ _sql($sql, $errored, $error_ary);
+
$no_updates = false;
}