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 $forum_id = (isset($_REQUEST['f'])) ? intval($_REQUEST['f']) : -1; // 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)) { $prune_ids = array(); $log_data = ''; do { $prune_ids[] = $row['forum_id']; $p_result = prune($row['forum_id'], $prunedate, FALSE); $row_class = ($row_class == 'row1') ? 'row2' : 'row1'; ?> sql_fetchrow($result)); add_log('admin', 'log_prune', $log_data); // Sync all pruned forums at once sync('forum', 'forum_id', $prune_ids, TRUE); } 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'], ''); ?>