aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2009-02-22 15:29:18 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2009-02-22 15:29:18 +0000
commit794c5749696c9fa2595ed3a1d7c836a0d984e11c (patch)
tree37aab2f0f965ddcaeb1d26af753095f59a6e025c /phpBB/develop/repair_bots.php
parentFix guest/bot session problems with apache authentication plugin (Bug #41085) (diff)
downloadphpbb-794c5749696c9fa2595ed3a1d7c836a0d984e11c.tar.gz
phpbb-794c5749696c9fa2595ed3a1d7c836a0d984e11c.tar.bz2
phpbb-794c5749696c9fa2595ed3a1d7c836a0d984e11c.zip
remove global and change $user-> to phpbb::$user->
git-svn-id: file:///svn/phpbb/trunk@9334 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/develop/repair_bots.php')
-rw-r--r--phpBB/develop/repair_bots.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/phpBB/develop/repair_bots.php b/phpBB/develop/repair_bots.php
index dc38726e7c..6743b7deba 100644
--- a/phpBB/develop/repair_bots.php
+++ b/phpBB/develop/repair_bots.php
@@ -18,9 +18,9 @@ include(PHPBB_ROOT_PATH . 'includes/functions_user.' . PHP_EXT);
// Start session management
-$user->session_begin();
-$auth->acl($user->data);
-$user->setup();
+phpbb::$user->session_begin();
+$auth->acl(phpbb::$user->data);
+phpbb::$user->setup();
$bots = array(
'AdsBot [Google]' => array('AdsBot-Google', ''),
@@ -94,8 +94,6 @@ echo 'done';
*/
function add_bots($bots)
{
- global $db;
-
$sql = 'SELECT group_id FROM ' . GROUPS_TABLE . " WHERE group_name = 'BOTS'";
$result = $db->sql_query($sql);
$group_id = (int) $db->sql_fetchfield('group_id', $result);