From 391c4bff08bccfb8eb7304a64ff79d763657f1c4 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Thu, 13 Mar 2003 12:19:56 +0000 Subject: Moved directory git-svn-id: file:///svn/phpbb/trunk@3648 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/admin/admin_prune.php | 203 -------------------------------------------- 1 file changed, 203 deletions(-) delete mode 100644 phpBB/admin/admin_prune.php (limited to 'phpBB/admin/admin_prune.php') diff --git a/phpBB/admin/admin_prune.php b/phpBB/admin/admin_prune.php deleted file mode 100644 index 5b0f5c48c9..0000000000 --- a/phpBB/admin/admin_prune.php +++ /dev/null @@ -1,203 +0,0 @@ -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'], ''); ?>
- - \ No newline at end of file -- cgit v1.2.1