mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Altered SQL slightly for Postgres
git-svn-id: file:///svn/phpbb/trunk@293 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
60c507756c
commit
ffb911d1e1
1 changed files with 4 additions and 4 deletions
|
@ -42,9 +42,9 @@ function validate_username($username)
|
||||||
|
|
||||||
global $db;
|
global $db;
|
||||||
|
|
||||||
$sql = "SELECT LOWER(u.username), d.disallow_username
|
$sql = "SELECT u.username, d.disallow_username
|
||||||
FROM ".USERS_TABLE." u, ".DISALLOW_TABLE." d
|
FROM ".USERS_TABLE." u, ".DISALLOW_TABLE." d
|
||||||
WHERE u.username = '".strtolower($username)."'
|
WHERE LOWER(u.username) = '".strtolower($username)."'
|
||||||
OR d.disallow_username = '$username'";
|
OR d.disallow_username = '$username'";
|
||||||
if($result = $db->sql_query($sql))
|
if($result = $db->sql_query($sql))
|
||||||
{
|
{
|
||||||
|
@ -91,7 +91,7 @@ function template_select($default)
|
||||||
{
|
{
|
||||||
if($file == $default)
|
if($file == $default)
|
||||||
{
|
{
|
||||||
$selected = " SELECTED";
|
$selected = " selected";
|
||||||
}
|
}
|
||||||
$template_select .= "<option value=\"$file\"$selected>$file</option>\n";
|
$template_select .= "<option value=\"$file\"$selected>$file</option>\n";
|
||||||
}
|
}
|
||||||
|
@ -527,7 +527,7 @@ switch($mode)
|
||||||
|
|
||||||
$user_theme = ($HTTP_POST_VARS['theme']) ? $HTTP_POST_VARS['theme'] : $board_config['default_theme'];
|
$user_theme = ($HTTP_POST_VARS['theme']) ? $HTTP_POST_VARS['theme'] : $board_config['default_theme'];
|
||||||
$user_lang = ($HTTP_POST_VARS['language']) ? $HTTP_POST_VARS['language'] : $board_config['default_lang'];
|
$user_lang = ($HTTP_POST_VARS['language']) ? $HTTP_POST_VARS['language'] : $board_config['default_lang'];
|
||||||
$user_timezone = (isset($HTTP_POST_VARS['timezone'])) ? $HTTP_POST_VARS['timezone'] : $board_config['default_timezone'];
|
$user_timezone = str_replace("+", "", (isset($HTTP_POST_VARS['timezone'])) ? $HTTP_POST_VARS['timezone'] : $board_config['default_timezone']);
|
||||||
$user_template = ($HTTP_POST_VARS['template']) ? $HTTP_POST_VARS['template'] : $board_config['default_template'];
|
$user_template = ($HTTP_POST_VARS['template']) ? $HTTP_POST_VARS['template'] : $board_config['default_template'];
|
||||||
$user_dateformat = ($HTTP_POST_VARS['dateformat']) ? trim($HTTP_POST_VARS['dateformat']) : $board_config['default_dateformat'];
|
$user_dateformat = ($HTTP_POST_VARS['dateformat']) ? trim($HTTP_POST_VARS['dateformat']) : $board_config['default_dateformat'];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue