From 25725c98503c3a9ba8b5de4b91c2528b6c974a03 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sat, 27 Dec 2008 12:18:04 +0000 Subject: replace constants with class constants. ACL_YES, ACL_NO, ACL_NEVER, USER_NORMAL, USER_IGNORE, USER_INACTIVE, USER_FOUNDER git-svn-id: file:///svn/phpbb/trunk@9233 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/develop/repair_bots.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'phpBB/develop') diff --git a/phpBB/develop/repair_bots.php b/phpBB/develop/repair_bots.php index 21c6652243..6d3e57da57 100644 --- a/phpBB/develop/repair_bots.php +++ b/phpBB/develop/repair_bots.php @@ -2,7 +2,7 @@ /** * Rebuild BOTS * -* You should make a backup from your whole database. Things can and will go wrong. +* You should make a backup from your whole database. Things can and will go wrong. * This will only work if no BOTs were added. * */ @@ -74,9 +74,9 @@ $bots = array( 'Yahoo [Bot]' => array('Yahoo! Slurp', ''), 'YahooSeeker [Bot]' => array('YahooSeeker/', ''), ); - + $bot_ids = array(); -user_get_id_name($bot_ids, array_keys($bots), USER_IGNORE); +user_get_id_name($bot_ids, array_keys($bots), phpbb::USER_IGNORE); foreach($bot_ids as $bot) { user_delete('remove', $bot); @@ -119,7 +119,7 @@ function add_bots($bots) foreach ($bots as $bot_name => $bot_ary) { $user_row = array( - 'user_type' => USER_IGNORE, + 'user_type' => phpbb::USER_IGNORE, 'group_id' => $group_id, 'username' => $bot_name, 'user_regdate' => time(), -- cgit v1.2.1