mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Doh ... a deer a ... yes, well, uhm
git-svn-id: file:///svn/phpbb/trunk@2746 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
46bfc70d6d
commit
dbf4ea97af
1 changed files with 5 additions and 6 deletions
|
@ -70,7 +70,7 @@ $current_time = time();
|
||||||
//
|
//
|
||||||
if ( isset($HTTP_POST_VARS['bansubmit']) )
|
if ( isset($HTTP_POST_VARS['bansubmit']) )
|
||||||
{
|
{
|
||||||
$ban_end = ( isset($HTTP_POST_VARS['banlength']) ) ? $current_time + ( intval($HTTP_POST_VARS['banlength']) * 60 ) : 0;
|
$ban_end = ( !empty($HTTP_POST_VARS['banlength']) ) ? $current_time + ( intval($HTTP_POST_VARS['banlength']) * 60 ) : 0;
|
||||||
$ban_reason = ( isset($HTTP_POST_VARS['banreason']) ) ? $HTTP_POST_VARS['banreason'] : '';
|
$ban_reason = ( isset($HTTP_POST_VARS['banreason']) ) ? $HTTP_POST_VARS['banreason'] : '';
|
||||||
$ban_list = array_unique(explode("\n", $HTTP_POST_VARS['ban']));
|
$ban_list = array_unique(explode("\n", $HTTP_POST_VARS['ban']));
|
||||||
|
|
||||||
|
@ -207,8 +207,9 @@ if ( isset($HTTP_POST_VARS['bansubmit']) )
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql = "SELECT ban_userid, ban_ip, ban_email
|
$sql = "SELECT $type
|
||||||
FROM " . BANLIST_TABLE;
|
FROM " . BANLIST_TABLE . "
|
||||||
|
WHERE $type <> ''";
|
||||||
$result = $db->sql_query($sql);
|
$result = $db->sql_query($sql);
|
||||||
|
|
||||||
if ( $row = $db->sql_fetchrow($result) )
|
if ( $row = $db->sql_fetchrow($result) )
|
||||||
|
@ -237,8 +238,6 @@ if ( isset($HTTP_POST_VARS['bansubmit']) )
|
||||||
unset($banlist_tmp);
|
unset($banlist_tmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
$current_time = time();
|
|
||||||
|
|
||||||
if ( sizeof($banlist) )
|
if ( sizeof($banlist) )
|
||||||
{
|
{
|
||||||
for($i = 0; $i < count($banlist); $i++)
|
for($i = 0; $i < count($banlist); $i++)
|
||||||
|
|
Loading…
Add table
Reference in a new issue