From df3da5934dfcbb50c5aa076515c40ae487a733b3 Mon Sep 17 00:00:00 2001 From: James Atkinson Date: Mon, 13 Aug 2001 01:07:14 +0000 Subject: Added emailer class, did alterations and templates for registration Welcome message vars can be removed from lang file git-svn-id: file:///svn/phpbb/trunk@844 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/common.php | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) (limited to 'phpBB/common.php') diff --git a/phpBB/common.php b/phpBB/common.php index b6de4aebc2..6ba17d0c58 100644 --- a/phpBB/common.php +++ b/phpBB/common.php @@ -32,56 +32,56 @@ set_magic_quotes_runtime(0); // Disable magic_quotes_runtime // if( !get_magic_quotes_gpc() ) { - while( list($k, $v) = each($HTTP_GET_VARS) ) + while( list($k, $v) = each($HTTP_GET_VARS) ) { if( is_array($HTTP_GET_VARS[$k]) ) { while( list($k2, $v2) = each($HTTP_GET_VARS[$k]) ) { - $HTTP_GET_VARS[$k][$k2] = addslashes($v2); + $HTTP_GET_VARS[$k][$k2] = addslashes($v2); } @reset($HTTP_GET_VARS[$k]); } else { - $HTTP_GET_VARS[$k] = addslashes($v); + $HTTP_GET_VARS[$k] = addslashes($v); } } - @reset($HTTP_GET_VARS); + @reset($HTTP_GET_VARS); - while( list($k, $v) = each($HTTP_POST_VARS) ) + while( list($k, $v) = each($HTTP_POST_VARS) ) { if( is_array($HTTP_POST_VARS[$k]) ) { while( list($k2, $v2) = each($HTTP_POST_VARS[$k]) ) { - $HTTP_POST_VARS[$k][$k2] = addslashes($v2); + $HTTP_POST_VARS[$k][$k2] = addslashes($v2); } @reset($HTTP_POST_VARS[$k]); } else { - $HTTP_POST_VARS[$k] = addslashes($v); + $HTTP_POST_VARS[$k] = addslashes($v); } } - @reset($HTTP_POST_VARS); + @reset($HTTP_POST_VARS); - while( list($k, $v) = each($HTTP_COOKIE_VARS) ) + while( list($k, $v) = each($HTTP_COOKIE_VARS) ) { if( is_array($HTTP_COOKIE_VARS[$k]) ) { while( list($k2, $v2) = each($HTTP_COOKIE_VARS[$k]) ) { - $HTTP_COOKIE_VARS[$k][$k2] = addslashes($v2); + $HTTP_COOKIE_VARS[$k][$k2] = addslashes($v2); } @reset($HTTP_COOKIE_VARS[$k]); } else { - $HTTP_COOKIE_VARS[$k] = addslashes($v); + $HTTP_COOKIE_VARS[$k] = addslashes($v); } } - @reset($HTTP_COOKIE_VARS); + @reset($HTTP_COOKIE_VARS); } // @@ -107,13 +107,14 @@ include($phpbb_root_path . 'includes/sessions.'.$phpEx); include($phpbb_root_path . 'includes/auth.'.$phpEx); include($phpbb_root_path . 'includes/functions.'.$phpEx); include($phpbb_root_path . 'includes/db.'.$phpEx); +include($phpbb_root_path . 'includes/emailer.'.$phpEx); // // Obtain and encode users IP // if(!empty($HTTP_CLIENT_IP)) { - $client_ip = (ereg("[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+", $HTTP_CLIENT_IP)) ? $HTTP_CLIENT_IP : $REMOTE_ADDR; + $client_ip = (ereg("[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+", $HTTP_CLIENT_IP)) ? $HTTP_CLIENT_IP : $REMOTE_ADDR; } else if(!empty($HTTP_X_FORWARDED_FOR)) { @@ -200,4 +201,9 @@ if($board_config['board_disable'] && !defined("IN_ADMIN")) message_die(GENERAL_MESSAGE, $lang['Board_disable'], $lang['Information']); } +// +// Setup the emailer +// +$emailer = new emailer($board_config['smtp_delivery']); + ?> \ No newline at end of file -- cgit v1.2.1