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_SUCCESS']; ?>
lang['FORUM']; ?> | lang['TOPICS_PRUNED']; ?> | lang['POSTS_PRUNED']; ?> |
---|---|---|
lang['NO_PRUNE']; ?> |
lang['FORUM_PRUNE_EXPLAIN']; ?>
' . $user->lang['ALL_FORUMS'] . '' . make_forum_select(false, false, false); ?> sql_query($sql); $row = $db->sql_fetchrow($result); $db->sql_freeresult($result); $forum_name = ($forum_id == -1) ? $user->lang['ALL_FORUMS'] : $row['forum_name']; ?>