aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/common.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2003-02-25 18:20:33 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2003-02-25 18:20:33 +0000
commit1aa274d1e737328f4462ad2ea6f8a6819a5db1d3 (patch)
tree7932e39b9130b84355aa1be4632d9aeace2334d1 /phpBB/common.php
parent02bcd7e2e1b43ce77ade9308ade809a5a583589d (diff)
downloadforums-1aa274d1e737328f4462ad2ea6f8a6819a5db1d3.tar
forums-1aa274d1e737328f4462ad2ea6f8a6819a5db1d3.tar.gz
forums-1aa274d1e737328f4462ad2ea6f8a6819a5db1d3.tar.bz2
forums-1aa274d1e737328f4462ad2ea6f8a6819a5db1d3.tar.xz
forums-1aa274d1e737328f4462ad2ea6f8a6819a5db1d3.zip
Updates of various types, sizes, colours and accessories ...
git-svn-id: file:///svn/phpbb/trunk@3531 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/common.php')
-rw-r--r--phpBB/common.php12
1 files changed, 5 insertions, 7 deletions
diff --git a/phpBB/common.php b/phpBB/common.php
index e637594f5a..c332e35e61 100644
--- a/phpBB/common.php
+++ b/phpBB/common.php
@@ -45,13 +45,13 @@ if (!defined('PHPBB_INSTALLED'))
}
// Load Extensions
-if ( (isset($load_extensions)) && ($load_extensions != '') )
+if (!empty($load_extensions))
{
$load_extensions = explode(',', $load_extensions);
- for ($i = 0; $i < count($load_extensions); $i++)
+ foreach ($load_extensions as $extension)
{
- @dl(trim($load_extensions[$i]));
+ @dl(trim($extension));
}
}
@@ -63,7 +63,7 @@ require($phpbb_root_path . 'includes/session.'.$phpEx);
require($phpbb_root_path . 'includes/functions.'.$phpEx);
// User related
-define('ANONYMOUS', 0);
+define('ANONYMOUS', 1);
define('USER_ACTIVATION_NONE', 0);
define('USER_ACTIVATION_SELF', 1);
@@ -154,8 +154,6 @@ set_error_handler('msg_handler');
// Instantiate some basic classes
$user = new user();
$auth = new auth();
-
-// Need these here so instantiate them now
$cache = new acm();
$template = new template();
$db = new sql_db($dbhost, $dbuser, $dbpasswd, $dbname, $dbport, false);
@@ -229,7 +227,7 @@ if (time() - $config['cache_interval'] >= $config['cache_last_gc'])
// Show 'Board is disabled' message
if ($config['board_disable'] && !defined('IN_ADMIN') && !defined('IN_LOGIN'))
{
- $message = (!empty($config['board_disable_msg'])) ? $config['board_disable_msg'] : 'Board_disable';
+ $message = (!empty($config['board_disable_msg'])) ? $config['board_disable_msg'] : 'BOARD_DISABLE';
trigger_error($message);
}