git-svn-id: file:///svn/phpbb/trunk@1621 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
James Atkinson 2001-12-17 10:40:23 +00:00
parent 4a6c692484
commit 19ad462c32

View file

@ -97,17 +97,18 @@ if( isset($HTTP_POST_VARS['doprune']) )
);
$i = 0;
@reset($forum_rows);
reset($forum_rows);
while(list(, $forum_data) = each ($forum_rows))
{
$p_result = prune($forum_data['forum_id'], $prunedate);
sync("forum", $forum_data['forum_id']);
$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
$i++;
$template->assign_block_vars("prune_results", array(
"ROW_COLOR" => "#" . $row_color,
"ROW_CLASS" => $row_class,
@ -117,6 +118,7 @@ if( isset($HTTP_POST_VARS['doprune']) )
);
}
$template->assign_vars(array(
"L_FORUM" => $lang['Forum'],
"L_TOPICS_PRUNED" => $lang['Topics_pruned'],
@ -162,7 +164,8 @@ else
}
else
{
$forum_id = intval($HTTP_POST_VARS[POST_FORUM_URL]);
$forum_id = $HTTP_POST_VARS[POST_FORUM_URL];
//
// Output the form to retrieve Prune information.