aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorthe_systech <the_systech@users.sourceforge.net>2001-10-15 20:15:46 +0000
committerthe_systech <the_systech@users.sourceforge.net>2001-10-15 20:15:46 +0000
commit265cabc30e6b1f708c60bc283d4fb087b17f164b (patch)
treee8d7e61fb21fbad00f99f0971b97d66681696691 /phpBB/includes/functions.php
parent8d3b31d59c147cfd2628f9e35cc02357dedb5c87 (diff)
downloadforums-265cabc30e6b1f708c60bc283d4fb087b17f164b.tar
forums-265cabc30e6b1f708c60bc283d4fb087b17f164b.tar.gz
forums-265cabc30e6b1f708c60bc283d4fb087b17f164b.tar.bz2
forums-265cabc30e6b1f708c60bc283d4fb087b17f164b.tar.xz
forums-265cabc30e6b1f708c60bc283d4fb087b17f164b.zip
Username Disallow Admin...
git-svn-id: file:///svn/phpbb/trunk@1210 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 0723bbae58..a6c34a4345 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -486,7 +486,7 @@ function validate_username($username)
OR LOWER(g.group_name) = '" . strtolower($username) . "' )";
$sql_disallow = "SELECT disallow_username
FROM " . DISALLOW_TABLE . "
- WHERE disallow_username = '$username'";
+ WHERE '$username' LIKE disallow_username";
if($result = $db->sql_query($sql_users))
{
if($db->sql_numrows($result) > 0)
@@ -513,7 +513,7 @@ function validate_username($username)
UNION
SELECT disallow_username, NULL
FROM " . DISALLOW_TABLE . "
- WHERE disallow_username = '$username'";
+ WHERE '$username' LIKE disallow_username";
if($result = $db->sql_query($sql))
{
if($db->sql_numrows($result) > 0)
@@ -1207,4 +1207,4 @@ function message_die($msg_code, $msg_text = "", $msg_title = "", $err_line = "",
}
-?> \ No newline at end of file
+?>