diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-04-02 14:04:18 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-04-02 14:04:18 +0000 |
commit | 51d9bdeca72e22dfa2f7cecc3e7867b125ee899b (patch) | |
tree | 679053f4374226e2bdfb02af19f942b842040354 /phpBB/admin | |
parent | 374f7adca2dd41e3a20739c74514fbca87a01e55 (diff) | |
download | forums-51d9bdeca72e22dfa2f7cecc3e7867b125ee899b.tar forums-51d9bdeca72e22dfa2f7cecc3e7867b125ee899b.tar.gz forums-51d9bdeca72e22dfa2f7cecc3e7867b125ee899b.tar.bz2 forums-51d9bdeca72e22dfa2f7cecc3e7867b125ee899b.tar.xz forums-51d9bdeca72e22dfa2f7cecc3e7867b125ee899b.zip |
Various updates with any luck they fix a few minor issues without causing new ones ...
git-svn-id: file:///svn/phpbb/trunk@2462 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/admin')
-rw-r--r-- | phpBB/admin/admin_forum_prune.php | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/phpBB/admin/admin_forum_prune.php b/phpBB/admin/admin_forum_prune.php index ec04cc7291..f3e528e35a 100644 --- a/phpBB/admin/admin_forum_prune.php +++ b/phpBB/admin/admin_forum_prune.php @@ -19,7 +19,7 @@ * ***************************************************************************/ -define('IN_PHPBB', 1); +define('IN_PHPBB', true); if ( !empty($setmodules) ) { @@ -32,7 +32,7 @@ if ( !empty($setmodules) ) // // Load default header // -$phpbb_root_path = "../"; +$phpbb_root_path = '../'; require($phpbb_root_path . 'extension.inc'); require('pagestart.' . $phpEx); require($phpbb_root_path . 'includes/prune.'.$phpEx); @@ -47,7 +47,7 @@ if( isset($HTTP_GET_VARS[POST_FORUM_URL]) || isset($HTTP_POST_VARS[POST_FORUM_UR if( $forum_id == -1 ) { - $forum_sql = ""; + $forum_sql = ''; } else { @@ -57,8 +57,8 @@ if( isset($HTTP_GET_VARS[POST_FORUM_URL]) || isset($HTTP_POST_VARS[POST_FORUM_UR } else { - $forum_id = ""; - $forum_sql = ""; + $forum_id = ''; + $forum_sql = ''; } // // Get a list of forum's or the data for the forum that we are pruning. @@ -90,13 +90,12 @@ if( isset($HTTP_POST_VARS['doprune']) ) $prunedate = time() - ( $prunedays * 86400 ); $template->set_filenames(array( - "body" => "admin/forum_prune_result_body.tpl") + 'body' => 'admin/forum_prune_result_body.tpl') ); for($i = 0; $i < count($forum_rows); $i++) { $p_result = prune($forum_rows[$i]['forum_id'], $prunedate); - sync('forum', $forum_rows[$i]['forum_id']); $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; |