make the 'RANDOM'-mysql-naming case insensitive; refs #1050
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -189,7 +189,7 @@ elseif($page == 'mysqls')
|
|||||||
// Begin root-session
|
// Begin root-session
|
||||||
$db_root = new db($sql_root[$dbserver]['host'], $sql_root[$dbserver]['user'], $sql_root[$dbserver]['password'], '');
|
$db_root = new db($sql_root[$dbserver]['host'], $sql_root[$dbserver]['user'], $sql_root[$dbserver]['password'], '');
|
||||||
|
|
||||||
if ($settings['customer']['mysqlprefix'] == "RANDOM") {
|
if (strtoupper($settings['customer']['mysqlprefix']) == "RANDOM") {
|
||||||
$result = $db_root->query('SELECT `User` FROM mysql.user');
|
$result = $db_root->query('SELECT `User` FROM mysql.user');
|
||||||
while ($row = $db_root->fetch_array($result)) {
|
while ($row = $db_root->fetch_array($result)) {
|
||||||
$allsqlusers[] = $row[User];
|
$allsqlusers[] = $row[User];
|
||||||
|
|||||||
Reference in New Issue
Block a user