acl_get('a_prune')) { return; } $module['FORUM']['PRUNE'] = basename(__FILE__) . $SID . '&mode=forums'; return; } define('IN_PHPBB', 1); // Include files $phpbb_root_path = '../'; require($phpbb_root_path . 'extension.inc'); require('pagestart.' . $phpEx); // Do we have permission? if (!$auth->acl_get('a_prune')) { trigger_error($user->lang['NO_ADMIN']); } // Get the forum ID for pruning if (isset($_REQUEST['f'])) { $forum_id = intval($_REQUEST['f']); $forum_sql = ($forum_id == -1) ? '' : "AND forum_id = $forum_id"; } else { $forum_id = ''; $forum_sql = ''; } // Check for submit to be equal to Prune. If so then proceed with the pruning. if (isset($_POST['doprune'])) { $prunedays = (isset($_POST['prunedays'])) ? intval($_POST['prunedays']) : 0; // Convert days to seconds for timestamp functions... $prunedate = time() - ($prunedays * 86400); page_header($user->lang['PRUNE']); ?>

lang['PRUNE']; ?>

lang['PRUNE_SUCCESS']; ?>

sql_query($sql); if ($row = $db->sql_fetchrow($result)) { $log_data = ''; do { $p_result = prune($forum_rows[$i]['forum_id'], $prunedate); sync('forum', $forum_rows[$i]['forum_id']); $row_class = ($row_class == 'row1') ? 'row2' : 'row1'; ?> sql_fetchrow($result)); add_log('admin', 'log_prune', $log_data); } else { ?> sql_freeresult($result); ?>
lang['FORUM']; ?> lang['TOPICS_PRUNED']; ?> lang['POSTS_PRUNED']; ?>
lang['NO_PRUNE']; ?>

lang['PRUNE']); ?>

lang['PRUNE']; ?>

lang['FORUM_PRUNE_EXPLAIN']; ?>

' . $user->lang['ALL_FORUMS'] . '' . make_forum_select(false, false, false); ?>
lang['SELECT_FORUM']; ?>
    
sql_query($sql); $row = $db->sql_fetchrow($result); $db->sql_freeresult($result); $forum_name = ($forum_id == -1) ? $user->lang['ALL_FORUMS'] : $row['forum_name']; ?>

lang['FORUM'] . ': ' . $forum_name; ?>

lang['FORUM_PRUNE']; ?>
lang['PRUNE_NOT_POSTED'], ''); ?>