aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/common.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-09-25 18:18:47 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-09-25 18:18:47 +0000
commit9de75b5dcfd96e0f3ba09a77d212ba0a15480691 (patch)
tree386eed08fd5ce5bfbea40221b5c03c77d88e9c93 /phpBB/common.php
parentea43268a218a5182e6379af01d2a722cfcc7a93b (diff)
downloadforums-9de75b5dcfd96e0f3ba09a77d212ba0a15480691.tar
forums-9de75b5dcfd96e0f3ba09a77d212ba0a15480691.tar.gz
forums-9de75b5dcfd96e0f3ba09a77d212ba0a15480691.tar.bz2
forums-9de75b5dcfd96e0f3ba09a77d212ba0a15480691.tar.xz
forums-9de75b5dcfd96e0f3ba09a77d212ba0a15480691.zip
Updated and fixed various issues, see post in developers forum for info
git-svn-id: file:///svn/phpbb/trunk@1083 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/common.php')
-rw-r--r--phpBB/common.php25
1 files changed, 4 insertions, 21 deletions
diff --git a/phpBB/common.php b/phpBB/common.php
index 0b87f9a5c8..09f6d967a6 100644
--- a/phpBB/common.php
+++ b/phpBB/common.php
@@ -102,34 +102,28 @@ $theme = Array();
$images = Array();
$lang = Array();
-if(empty($phpbb_root_path))
-{
- $phpbb_root_path = "./";
-}
include($phpbb_root_path . 'config.'.$phpEx);
include($phpbb_root_path . 'includes/constants.'.$phpEx);
include($phpbb_root_path . 'includes/template.'.$phpEx);
-include($phpbb_root_path . 'includes/message.'.$phpEx);
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))
{
- $client_ip = (ereg("([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)", $HTTP_X_FORWARDED_FOR, $ip_list)) ? $ip_list[0] : $REMOTE_ADDR;
+ $client_ip = ( ereg("^([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)", $HTTP_X_FORWARDED_FOR, $ip_list) ) ? $ip_list[0] : $REMOTE_ADDR;
}
else if(!empty($HTTP_PROXY_USER))
{
- $client_ip = (ereg("[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+", $HTTP_PROXY_USER)) ? $HTTP_PROXY_USER : $REMOTE_ADDR;
+ $client_ip = ( ereg("[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+", $HTTP_PROXY_USER) ) ? $HTTP_PROXY_USER : $REMOTE_ADDR;
}
else
{
@@ -154,22 +148,11 @@ else
{
$board_config[$row['config_name']] = $row['config_value'];
}
- $board_config['allow_html_tags'] = split(",", $board_config['allow_html_tags']);
- $board_config['board_email'] = str_replace("<br />", "\n", "-- \n" . $board_config['email_sig']);
- $board_config['default_template'] = stripslashes($board_config['sys_template']);
- $board_config['board_timezone'] = $board_config['system_timezone'];
}
if( $board_config['board_disable'] && !defined("IN_ADMIN") )
{
- include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '.'.$phpEx);
-
- message_die(GENERAL_MESSAGE, $lang['Board_disable'], $lang['Information']);
+ message_die(GENERAL_MESSAGE, 'Board_disable', 'Information');
}
-//
-// Setup the emailer
-//
-$emailer = new emailer($board_config['smtp_delivery']);
-
?> \ No newline at end of file