mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
Minor updates, changed ALL to -1 other small issues.
git-svn-id: file:///svn/phpbb/trunk@1693 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
f971f59929
commit
c2f738215e
1 changed files with 5 additions and 6 deletions
|
@ -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);
|
||||
|
||||
?>
|
||||
?>
|
Loading…
Add table
Reference in a new issue