aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/develop/calc_email_hash.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/develop/calc_email_hash.php')
-rw-r--r--phpBB/develop/calc_email_hash.php18
1 files changed, 3 insertions, 15 deletions
diff --git a/phpBB/develop/calc_email_hash.php b/phpBB/develop/calc_email_hash.php
index a67b0f52a3..cf2bb5c418 100644
--- a/phpBB/develop/calc_email_hash.php
+++ b/phpBB/develop/calc_email_hash.php
@@ -21,22 +21,10 @@
die("Please read the first lines of this script for instructions on how to enable it");
@set_time_limit(300);
-$db = $dbhost = $dbuser = $dbpasswd = $dbport = $dbname = '';
-
define('IN_PHPBB', 1);
-define('ANONYMOUS', 1);
-$phpEx = substr(strrchr(__FILE__, '.'), 1);
-$phpbb_root_path='./../';
-include($phpbb_root_path . 'config.'.$phpEx);
-require($phpbb_root_path . 'includes/acm/acm_' . $acm_type . '.'.$phpEx);
-require($phpbb_root_path . 'includes/db/' . $dbms . '.'.$phpEx);
-include($phpbb_root_path . 'includes/functions.'.$phpEx);
-
-$cache = new acm();
-$db = new sql_db();
-
-// Connect to DB
-$db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, $dbport, false);
+define('PHPBB_ROOT_PATH', './../');
+define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
+include(PHPBB_ROOT_PATH . 'common.' . PHP_EXT);
$start = 0;
do