mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
- assign user rank
- only a few very tiny bugfixes git-svn-id: file:///svn/phpbb/trunk@5451 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -554,12 +554,24 @@ function user_ban($mode, $ban, $ban_len, $ban_len_other, $ban_exclude, $ban_reas
|
||||
'ban_give_reason' => $ban_give_reason,
|
||||
);
|
||||
}
|
||||
$sql = $db->sql_build_array('MULTI_INSERT', $sql_ary);
|
||||
|
||||
if ($sql)
|
||||
|
||||
if (sizeof($sql_ary))
|
||||
{
|
||||
$sql = 'INSERT INTO ' . BANLIST_TABLE . ' ' . $sql;
|
||||
$db->sql_query($sql);
|
||||
switch (SQL_LAYER)
|
||||
{
|
||||
case 'mysql':
|
||||
case 'mysql4':
|
||||
case 'mysqli':
|
||||
$db->sql_query('INSERT INTO ' . BANLIST_TABLE . ' ' . $db->sql_build_array('MULTI_INSERT', $sql_ary));
|
||||
break;
|
||||
|
||||
default:
|
||||
foreach ($sql_ary as $ary)
|
||||
{
|
||||
$db->sql_query('INSERT INTO ' . BANLIST_TABLE . ' ' . $db->sql_build_array('INSERT', $ary));
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// If we are banning we want to logout anyone matching the ban
|
||||
|
Reference in New Issue
Block a user