aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/common.php
diff options
context:
space:
mode:
authorJames Atkinson <thefinn@users.sourceforge.net>2001-08-13 01:07:14 +0000
committerJames Atkinson <thefinn@users.sourceforge.net>2001-08-13 01:07:14 +0000
commitdf3da5934dfcbb50c5aa076515c40ae487a733b3 (patch)
tree36106b052fb0f1eb1b6b83c51c02944658456645 /phpBB/common.php
parent887bef5659e15319e087bc28c96ce25df44affa2 (diff)
downloadforums-df3da5934dfcbb50c5aa076515c40ae487a733b3.tar
forums-df3da5934dfcbb50c5aa076515c40ae487a733b3.tar.gz
forums-df3da5934dfcbb50c5aa076515c40ae487a733b3.tar.bz2
forums-df3da5934dfcbb50c5aa076515c40ae487a733b3.tar.xz
forums-df3da5934dfcbb50c5aa076515c40ae487a733b3.zip
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
Diffstat (limited to 'phpBB/common.php')
-rw-r--r--phpBB/common.php32
1 files changed, 19 insertions, 13 deletions
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