diff options
| author | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-10-30 00:57:27 +0000 |
|---|---|---|
| committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-10-30 00:57:27 +0000 |
| commit | 691f50ada9386a63c53a473a44b835a8b1ca5978 (patch) | |
| tree | be18990bb0ae925485bc4785b15f648ca8cb2e9d /phpBB/common.php | |
| parent | 9075298051fca5bc78713f455fc58d99e677e77a (diff) | |
| download | forums-691f50ada9386a63c53a473a44b835a8b1ca5978.tar forums-691f50ada9386a63c53a473a44b835a8b1ca5978.tar.gz forums-691f50ada9386a63c53a473a44b835a8b1ca5978.tar.bz2 forums-691f50ada9386a63c53a473a44b835a8b1ca5978.tar.xz forums-691f50ada9386a63c53a473a44b835a8b1ca5978.zip | |
Changed $board_config to $config, more posting "stuff", altered polling code in viewtopic and loads of new problems, poor coding, etc. created :)
git-svn-id: file:///svn/phpbb/trunk@2983 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/common.php')
| -rw-r--r-- | phpBB/common.php | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/phpBB/common.php b/phpBB/common.php index e871afb8ed..82b0a4cc99 100644 --- a/phpBB/common.php +++ b/phpBB/common.php @@ -130,6 +130,9 @@ define('TOPICS_WATCH_TABLE', $table_prefix.'topics_watch'); define('USER_GROUP_TABLE', $table_prefix.'user_group'); define('USERS_TABLE', $table_prefix.'users'); define('WORDS_TABLE', $table_prefix.'words'); +define('POLL_OPTIONS_TABLE', $table_prefix.'poll_results'); +define('POLL_VOTES_TABLE', $table_prefix.'poll_voters'); + define('VOTE_DESC_TABLE', $table_prefix.'vote_desc'); define('VOTE_RESULTS_TABLE', $table_prefix.'vote_results'); define('VOTE_USERS_TABLE', $table_prefix.'vote_voters'); @@ -142,10 +145,10 @@ $template = new Template(); $db = new sql_db($dbhost, $dbuser, $dbpasswd, $dbname, $dbport, false); // Obtain boardwide default config (rebuilding cache if reqd) -if ( empty($board_config) ) +if ( empty($config) ) { require_once($phpbb_root_path . 'includes/functions_admin.'.$phpEx); - $board_config = config_config(); + $config = config_config(); } $sql = "SELECT * @@ -155,7 +158,7 @@ $result = $db->sql_query($sql, false); while ( $row = $db->sql_fetchrow($result) ) { - $board_config[$row['config_name']] = $row['config_value']; + $config[$row['config_name']] = $row['config_value']; } // Re-cache acl options if reqd @@ -171,9 +174,9 @@ $user = new user(); $auth = new auth(); // Show 'Board is disabled' message -if ( $board_config['board_disable'] && !defined('IN_ADMIN') && !defined('IN_LOGIN') ) +if ( $config['board_disable'] && !defined('IN_ADMIN') && !defined('IN_LOGIN') ) { - $message = ( !empty($board_config['board_disable_msg']) ) ? $board_config['board_disable_msg'] : 'Board_disable'; + $message = ( !empty($config['board_disable_msg']) ) ? $config['board_disable_msg'] : 'Board_disable'; trigger_error($message); } |
