diff --git a/e107_admin/banlist.php b/e107_admin/banlist.php index 9e7f4ab11..94fa02a5a 100644 --- a/e107_admin/banlist.php +++ b/e107_admin/banlist.php @@ -11,8 +11,8 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_admin/banlist.php,v $ -| $Revision: 1.7 $ -| $Date: 2007-12-26 13:21:34 $ +| $Revision: 1.8 $ +| $Date: 2008-01-13 10:51:34 $ | $Author: e107steved $ +----------------------------------------------------------------------------+ */ @@ -235,11 +235,114 @@ function select_box($name, $data, $curval = FALSE) $text = ""; +// Drop-down box for access counts +function drop_box($box_name,$curval) +{ + $opts = array(50,100,150,200,250,300,400,500); + $ret = "\n"; + return $ret; +} + switch ($action) { - case 'options' : + if(!getperms("0")) exit; + if (isset($_POST['update_ban_options'])) + { + $pref['enable_rdns'] = intval($_POST['ban_rdns_on_access']); + $pref['enable_rdns_on_ban'] = intval($_POST['ban_rdns_on_ban']); + $pref['ban_max_online_access'] = intval($_POST['ban_access_guest']).','.intval($_POST['ban_access_member']); + $pref['ban_retrigger'] = intval($_POST['ban_retrigger']); + save_prefs(); + } + + if (isset($_POST['remove_expired_bans'])) + { + $sql->db_Delete('banlist',"`banlist_bantype` < ".BAN_TYPE_WHITELIST." AND `banlist_banexpires` > 0 AND `banlist_banexpires` < ".time()); + } + + list($ban_access_guest,$ban_access_member) = explode(',',varset($pref['ban_max_online_access'],'100,200')); + $ban_access_member = max($ban_access_guest,$ban_access_member); + $text = "