1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-18 22:58:10 +01:00

remove exit statement and make sure no "additional" code gets executed

git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8915 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2008-09-23 13:30:52 +00:00
parent c5b88e8481
commit 1dc9f30a8b

View File

@ -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