aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_prune.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/acp/acp_prune.php')
-rw-r--r--phpBB/includes/acp/acp_prune.php24
1 files changed, 16 insertions, 8 deletions
diff --git a/phpBB/includes/acp/acp_prune.php b/phpBB/includes/acp/acp_prune.php
index b7e49ea983..308f83387c 100644
--- a/phpBB/includes/acp/acp_prune.php
+++ b/phpBB/includes/acp/acp_prune.php
@@ -1,14 +1,22 @@
<?php
-/**
+/**
*
* @package acp
* @version $Id$
-* @copyright (c) 2005 phpBB Group
-* @license http://opensource.org/licenses/gpl-license.php GNU Public License
+* @copyright (c) 2005 phpBB Group
+* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
+* @ignore
+*/
+if (!defined('IN_PHPBB'))
+{
+ exit;
+}
+
+/**
* @package acp
*/
class acp_prune
@@ -89,10 +97,10 @@ class acp_prune
$sql_forum = (sizeof($forum_id)) ? ' AND ' . $db->sql_in_set('forum_id', $forum_id) : '';
// Get a list of forum's or the data for the forum that we are pruning.
- $sql = 'SELECT forum_id, forum_name
+ $sql = 'SELECT forum_id, forum_name
FROM ' . FORUMS_TABLE . '
WHERE forum_type = ' . FORUM_POST . "
- $sql_forum
+ $sql_forum
ORDER BY left_id ASC";
$result = $db->sql_query($sql);
@@ -181,8 +189,8 @@ class acp_prune
}
else
{
- $sql = 'SELECT forum_id, forum_name
- FROM ' . FORUMS_TABLE . '
+ $sql = 'SELECT forum_id, forum_name
+ FROM ' . FORUMS_TABLE . '
WHERE ' . $db->sql_in_set('forum_id', $forum_id);
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
@@ -407,7 +415,7 @@ class acp_prune
}
// Get bot ids
- $sql = 'SELECT user_id
+ $sql = 'SELECT user_id
FROM ' . BOTS_TABLE;
$result = $db->sql_query($sql);