aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/ucp.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/ucp.php')
-rw-r--r--phpBB/ucp.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/phpBB/ucp.php b/phpBB/ucp.php
index 2b236c29c5..908d4fb89a 100644
--- a/phpBB/ucp.php
+++ b/phpBB/ucp.php
@@ -36,6 +36,7 @@ $user->setup('ucp');
$template->assign_var('S_IN_UCP', true);
$module = new p_master();
+$default = false;
// Basic "global" modes
switch ($mode)
@@ -69,7 +70,6 @@ switch ($mode)
case 'confirm':
$module->load('ucp', 'confirm');
- exit;
break;
case 'login':
@@ -233,6 +233,16 @@ switch ($mode)
trigger_error($message);
break;
+
+ default:
+ $default = true;
+ break;
+}
+
+// We use this approach because it does not impose large code changes
+if (!$default)
+{
+ return true;
}
// Only registered users can go beyond this point