mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 05:48:51 +00: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:
parent
c5b88e8481
commit
1dc9f30a8b
1 changed files with 11 additions and 1 deletions
|
@ -36,6 +36,7 @@ $user->setup('ucp');
|
||||||
$template->assign_var('S_IN_UCP', true);
|
$template->assign_var('S_IN_UCP', true);
|
||||||
|
|
||||||
$module = new p_master();
|
$module = new p_master();
|
||||||
|
$default = false;
|
||||||
|
|
||||||
// Basic "global" modes
|
// Basic "global" modes
|
||||||
switch ($mode)
|
switch ($mode)
|
||||||
|
@ -69,7 +70,6 @@ switch ($mode)
|
||||||
|
|
||||||
case 'confirm':
|
case 'confirm':
|
||||||
$module->load('ucp', 'confirm');
|
$module->load('ucp', 'confirm');
|
||||||
exit;
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'login':
|
case 'login':
|
||||||
|
@ -233,6 +233,16 @@ switch ($mode)
|
||||||
trigger_error($message);
|
trigger_error($message);
|
||||||
|
|
||||||
break;
|
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
|
// Only registered users can go beyond this point
|
||||||
|
|
Loading…
Add table
Reference in a new issue