aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/develop/calc_email_hash.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-12-24 13:14:24 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-12-24 13:14:24 +0000
commite85f9f79bc892533e8b67d80ae265167f2e5d4cd (patch)
treec6d6e55e75c2cf80cc380f5540a8e62b54e0c3c3 /phpBB/develop/calc_email_hash.php
parent8c9af252cba9c0d61351f7eb14e983b23b0c4256 (diff)
downloadforums-e85f9f79bc892533e8b67d80ae265167f2e5d4cd.tar
forums-e85f9f79bc892533e8b67d80ae265167f2e5d4cd.tar.gz
forums-e85f9f79bc892533e8b67d80ae265167f2e5d4cd.tar.bz2
forums-e85f9f79bc892533e8b67d80ae265167f2e5d4cd.tar.xz
forums-e85f9f79bc892533e8b67d80ae265167f2e5d4cd.zip
remove no longer necessary files... hooray
git-svn-id: file:///svn/phpbb/trunk@9221 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/develop/calc_email_hash.php')
-rw-r--r--phpBB/develop/calc_email_hash.php64
1 files changed, 0 insertions, 64 deletions
diff --git a/phpBB/develop/calc_email_hash.php b/phpBB/develop/calc_email_hash.php
deleted file mode 100644
index cf2bb5c418..0000000000
--- a/phpBB/develop/calc_email_hash.php
+++ /dev/null
@@ -1,64 +0,0 @@
-<?php
-// -------------------------------------------------------------
-//
-// $Id$
-//
-// FILENAME : calc_email_hash.php
-// STARTED : Tue Feb 03, 2004
-// COPYRIGHT : © 2004 phpBB Group
-// WWW : http://www.phpbb.com/
-// LICENCE : GPL vs2.0 [ see /docs/COPYING ]
-//
-// -------------------------------------------------------------
-
-//
-// Security message:
-//
-// This script is potentially dangerous.
-// Remove or comment the next line (die(".... ) to enable this script.
-// Do NOT FORGET to either remove this script or disable it after you have used it.
-//
-die("Please read the first lines of this script for instructions on how to enable it");
-@set_time_limit(300);
-
-define('IN_PHPBB', 1);
-define('PHPBB_ROOT_PATH', './../');
-define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
-include(PHPBB_ROOT_PATH . 'common.' . PHP_EXT);
-
-$start = 0;
-do
-{
- // Batch query for group members, call group_user_del
- $sql = "SELECT user_id, user_email
- FROM {$table_prefix}users
- LIMIT $start, 100";
- $result = $db->sql_query($sql);
-
- if ($row = $db->sql_fetchrow($result))
- {
- do
- {
- $sql = "UPDATE {$table_prefix}users
- SET user_email_hash = " . (crc32(strtolower($row['user_email'])) . strlen($row['user_email'])) . '
- WHERE user_id = ' . $row['user_id'];
- $db->sql_query($sql);
-
- $start++;
- }
- while ($row = $db->sql_fetchrow($result));
-
- echo "<br />Batch -> $start\n";
- flush();
- }
- else
- {
- $start = 0;
- }
- $db->sql_freeresult($result);
-}
-while ($start);
-
-echo "<p><b>Done</b></p>\n";
-
-?> \ No newline at end of file