From e7c3370a043fe4f163fcc4b3b529d1c78093c0f2 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sun, 19 Oct 2003 15:36:45 +0000 Subject: bump topic and orphan attachments changes here and there... git-svn-id: file:///svn/phpbb/trunk@4614 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/adm/admin_board.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'phpBB/adm/admin_board.php') diff --git a/phpBB/adm/admin_board.php b/phpBB/adm/admin_board.php index 06eb755f43..de3ef0ce45 100644 --- a/phpBB/adm/admin_board.php +++ b/phpBB/adm/admin_board.php @@ -97,6 +97,10 @@ while ($row = $db->sql_fetchrow($result)) $default_config[$config_name] = $config_value; $new[$config_name] = request_var($config_name, $default_config[$config_name]); + if ($config_name == 'bump_interval' && $submit) + { + $new['bump_interval'] = request_var('bump_interval', 0) . request_var('bump_type', ''); + } if ($submit) { @@ -375,6 +379,17 @@ switch ($mode) $display_last_edited_yes = ($new['display_last_edited']) ? 'checked="checked"' : ''; $display_last_edited_no = (!$new['display_last_edited']) ? 'checked="checked"' : ''; + + $bump_type = (string) preg_replace('#^[0-9]+([m|h|d])$#', '\1', $new['bump_interval']); + $bump_time = (int) preg_replace('#^([0-9]+)[m|h|d]$#', '\1', $new['bump_interval']); + + $s_bump_type = ''; + $types = array('m' => 'MINUTES', 'h' => 'HOURS', 'd' => 'DAYS'); + foreach ($types as $type => $lang) + { + $selected = ($type == $bump_type) ? 'selected="selected" ' : ''; + $s_bump_type .= ''; + } ?> lang['SITE_NAME']; ?>: @@ -433,6 +448,10 @@ switch ($mode) lang['FLOOD_INTERVAL']; ?>:
lang['FLOOD_INTERVAL_EXPLAIN']; ?> + + lang['BUMP_INTERVAL']; ?>:
lang['BUMP_INTERVAL_EXPLAIN']; ?> +   + lang['TOPICS_PER_PAGE']; ?>: -- cgit v1.2.1