mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
Fixed validate_username failure and matched groups field names
git-svn-id: file:///svn/phpbb/trunk@419 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
dfa753d562
commit
7858865add
1 changed files with 4 additions and 4 deletions
|
@ -48,10 +48,10 @@ function validate_username($username)
|
||||||
// a UNION clause which would be very nice here :(
|
// a UNION clause which would be very nice here :(
|
||||||
// So we have to use two queries
|
// So we have to use two queries
|
||||||
case 'mysql':
|
case 'mysql':
|
||||||
$sql_users = "SELECT username
|
echo $sql_users = "SELECT username
|
||||||
FROM ".USERS_TABLE."
|
FROM ".USERS_TABLE."
|
||||||
WHERE LOWER(u.username) = '".strtolower($username)."'";
|
WHERE LOWER(username) = '".strtolower($username)."'";
|
||||||
$sql_disallow = "SELECT disallow_username
|
echo $sql_disallow = "SELECT disallow_username
|
||||||
FROM ".DISALLOW_TABLE."
|
FROM ".DISALLOW_TABLE."
|
||||||
WHERE disallow_username = '$username'";
|
WHERE disallow_username = '$username'";
|
||||||
|
|
||||||
|
@ -888,7 +888,7 @@ if(isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']))
|
||||||
if($result = $db->sql_query($sql))
|
if($result = $db->sql_query($sql))
|
||||||
{
|
{
|
||||||
$sql = "INSERT INTO ".GROUPS_TABLE."
|
$sql = "INSERT INTO ".GROUPS_TABLE."
|
||||||
(group_name, group_note, single_user)
|
(group_name, group_description, group_single_user)
|
||||||
VALUES
|
VALUES
|
||||||
('$username', 'Personal User', 1)";
|
('$username', 'Personal User', 1)";
|
||||||
if($result = $db->sql_query($sql))
|
if($result = $db->sql_query($sql))
|
||||||
|
|
Loading…
Add table
Reference in a new issue