aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/develop/repair_bots.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-12-27 12:18:04 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-12-27 12:18:04 +0000
commit25725c98503c3a9ba8b5de4b91c2528b6c974a03 (patch)
treeadf5470b0a4f90ef44b9be7a9761c4a6153072aa /phpBB/develop/repair_bots.php
parent297af28a40e5fa94de0cb2f57d807b39020f44f0 (diff)
downloadforums-25725c98503c3a9ba8b5de4b91c2528b6c974a03.tar
forums-25725c98503c3a9ba8b5de4b91c2528b6c974a03.tar.gz
forums-25725c98503c3a9ba8b5de4b91c2528b6c974a03.tar.bz2
forums-25725c98503c3a9ba8b5de4b91c2528b6c974a03.tar.xz
forums-25725c98503c3a9ba8b5de4b91c2528b6c974a03.zip
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
Diffstat (limited to 'phpBB/develop/repair_bots.php')
-rw-r--r--phpBB/develop/repair_bots.php8
1 files changed, 4 insertions, 4 deletions
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(),