aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/common.php
diff options
context:
space:
mode:
authorBart van Bragt <bartvb@users.sourceforge.net>2001-03-09 23:33:06 +0000
committerBart van Bragt <bartvb@users.sourceforge.net>2001-03-09 23:33:06 +0000
commitd3d031d9eec485a05afdcc367ca8a8cca24e98e5 (patch)
tree1a2fd368a3c3292d173e4cffa669538637f484fe /phpBB/common.php
parent6be03b553d19c0598ea4101f1257bdcc2f81ab94 (diff)
downloadforums-d3d031d9eec485a05afdcc367ca8a8cca24e98e5.tar
forums-d3d031d9eec485a05afdcc367ca8a8cca24e98e5.tar.gz
forums-d3d031d9eec485a05afdcc367ca8a8cca24e98e5.tar.bz2
forums-d3d031d9eec485a05afdcc367ca8a8cca24e98e5.tar.xz
forums-d3d031d9eec485a05afdcc367ca8a8cca24e98e5.zip
Moved include files
git-svn-id: file:///svn/phpbb/trunk@94 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/common.php')
-rw-r--r--phpBB/common.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/phpBB/common.php b/phpBB/common.php
index 62bc288885..c79b681fba 100644
--- a/phpBB/common.php
+++ b/phpBB/common.php
@@ -23,25 +23,24 @@
***************************************************************************/
include('config.'.$phpEx);
+include('includes/constants.'.$phpEx);
// Find Users real IP (if possible)
$ip = ($HTTP_X_FORWARDED_FOR) ? $HTTP_X_FORWARDED_FOR : $REMOTE_ADDR;
define("USER_IP",$ip);
unset($ip);
-include('template.inc');
// Setup what template to use. Currently just use default
+include('includes/template.inc');
$template = new Template("./templates/Default", "remove");
include('functions/error.'.$phpEx);
include('functions/sessions.'.$phpEx);
include('functions/auth.'.$phpEx);
include('functions/functions.'.$phpEx);
-include('db.'.$phpEx);
+include('includes/db.'.$phpEx);
-// Initalize these variables to keep them safe.
-$user_logged_in = 0;
-$logged_in = 0;
+// Initalize to keep safe
$userdata = Array();
// Setup forum wide options.
@@ -68,7 +67,9 @@ else
$default_lang = $config[0]["default_lang"];
$sys_lang = $default_lang;
}
+
include('language/lang_'.$default_lang.'.'.$phpEx);
+
// Check if user is banned
if(!auth("ip ban", $db, "", USER_IP))
{