aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/index.php
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2012-11-20 23:19:51 -0600
committerNathan Guse <nathaniel.guse@gmail.com>2012-11-20 23:19:51 -0600
commit61aa53f91aaf11bb2fdfac3a9cdc24b074b4463e (patch)
tree210fe8026aecc70a45d48e52c58ef77d43b85787 /phpBB/index.php
parent570c5ad3c08378f377385aaff7d3810ccb8db3ff (diff)
parentb453f359ff6dab58b0eaf94548c4e58110fb02ec (diff)
downloadforums-61aa53f91aaf11bb2fdfac3a9cdc24b074b4463e.tar
forums-61aa53f91aaf11bb2fdfac3a9cdc24b074b4463e.tar.gz
forums-61aa53f91aaf11bb2fdfac3a9cdc24b074b4463e.tar.bz2
forums-61aa53f91aaf11bb2fdfac3a9cdc24b074b4463e.tar.xz
forums-61aa53f91aaf11bb2fdfac3a9cdc24b074b4463e.zip
Merge branch 'develop' of git://github.com/phpbb/phpbb3 into ticket/11103
Conflicts: phpBB/config/services.yml phpBB/index.php
Diffstat (limited to 'phpBB/index.php')
-rw-r--r--phpBB/index.php40
1 files changed, 2 insertions, 38 deletions
diff --git a/phpBB/index.php b/phpBB/index.php
index ac886be0ff..94b2b17084 100644
--- a/phpBB/index.php
+++ b/phpBB/index.php
@@ -17,11 +17,12 @@ define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
+include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
-$user->setup();
+$user->setup('viewforum');
// Mark notifications read
if (($mark_notification = request_var('mark_notification', 0)))
@@ -45,43 +46,6 @@ if (($mark_notification = request_var('mark_notification', 0)))
}
}
-// Handle the display of extension front pages
-if ($ext = $request->variable('ext', ''))
-{
- $class = 'phpbb_ext_' . str_replace('/', '_', $ext) . '_controller';
-
- if (!$phpbb_extension_manager->available($ext))
- {
- send_status_line(404, 'Not Found');
- trigger_error($user->lang('EXTENSION_DOES_NOT_EXIST', $ext));
- }
- else if (!$phpbb_extension_manager->enabled($ext))
- {
- send_status_line(404, 'Not Found');
- trigger_error($user->lang('EXTENSION_DISABLED', $ext));
- }
- else if (!class_exists($class))
- {
- send_status_line(404, 'Not Found');
- trigger_error($user->lang('EXTENSION_CONTROLLER_MISSING', $ext));
- }
-
- $controller = new $class;
-
- if (!($controller instanceof phpbb_extension_controller_interface))
- {
- send_status_line(500, 'Internal Server Error');
- trigger_error($user->lang('EXTENSION_CLASS_WRONG_TYPE', $class));
- }
-
- $controller->handle();
- exit_handler();
-}
-
-include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
-
-$user->add_lang('viewforum');
-
display_forums('', $config['load_moderators']);
$order_legend = ($config['legend_sort_groupname']) ? 'group_name' : 'group_legend';