diff options
| author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-12-24 13:54:34 +0000 |
|---|---|---|
| committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-12-24 13:54:34 +0000 |
| commit | c2f738215e2b48b8e8e31e0019f27c4b38c8155e (patch) | |
| tree | 4251d4de14960812fb54e6d4d24a45202e325cf4 /phpBB/admin/admin_forum_prune.php | |
| parent | f971f59929e7a5cb565311c2d38286c2d1e74cc5 (diff) | |
| download | forums-c2f738215e2b48b8e8e31e0019f27c4b38c8155e.tar forums-c2f738215e2b48b8e8e31e0019f27c4b38c8155e.tar.gz forums-c2f738215e2b48b8e8e31e0019f27c4b38c8155e.tar.bz2 forums-c2f738215e2b48b8e8e31e0019f27c4b38c8155e.tar.xz forums-c2f738215e2b48b8e8e31e0019f27c4b38c8155e.zip | |
Minor updates, changed ALL to -1 other small issues.
git-svn-id: file:///svn/phpbb/trunk@1693 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/admin/admin_forum_prune.php')
| -rw-r--r-- | phpBB/admin/admin_forum_prune.php | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/phpBB/admin/admin_forum_prune.php b/phpBB/admin/admin_forum_prune.php index c4f924ef50..cf2be4dd93 100644 --- a/phpBB/admin/admin_forum_prune.php +++ b/phpBB/admin/admin_forum_prune.php @@ -86,7 +86,7 @@ $forum_rows = $db->sql_fetchrowset($f_result); // if( isset($HTTP_POST_VARS['doprune']) ) { - $prunedays = ( isset($HTTP_POST_VARS['prunedays']) ) ? $HTTP_POST_VARS['prunedays'] : 0; + $prunedays = ( isset($HTTP_POST_VARS['prunedays']) ) ? intval($HTTP_POST_VARS['prunedays']) : 0; // Convert days to seconds for timestamp functions... $prunesecs = $prunedays * 1440 * 60; @@ -142,7 +142,7 @@ else ); $select_list = "<select name=\"" . POST_FORUM_URL . "\">\n"; - $select_list .= "<option value=\"ALL\">" . $lang['All_Forums'] . "</option>\n"; + $select_list .= "<option value=\"-1\">" . $lang['All_Forums'] . "</option>\n"; for($i = 0; $i < count($forum_rows); $i++) { @@ -164,9 +164,8 @@ else } else { - $forum_id = $HTTP_POST_VARS[POST_FORUM_URL]; + $forum_id = intval($HTTP_POST_VARS[POST_FORUM_URL]); - // // Output the form to retrieve Prune information. // @@ -174,7 +173,7 @@ else "body" => "admin/forum_prune_body.tpl") ); - $forum_name = ( $forum_id == "ALL" ) ? $lang['All_Forums'] : $forum_rows[0]['forum_name']; + $forum_name = ( $forum_id == -1 ) ? $lang['All_Forums'] : $forum_rows[0]['forum_name']; $prune_data = $lang['Prune_topics_not_posted'] . " "; $prune_data .= "<input type=\"text\" name=\"prunedays\" size=\"4\"> " . $lang['Days']; @@ -204,4 +203,4 @@ $template->pparse("body"); include('page_footer_admin.'.$phpEx); -?> +?>
\ No newline at end of file |
