1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-06 15:45:34 +02:00

Try and protect against users being silly and trying to go direct to a later page

git-svn-id: file:///svn/phpbb/trunk@6044 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Graham Eames 2006-06-10 21:08:01 +00:00
parent c102bec023
commit 8b40e7fe33

View File

@ -517,6 +517,14 @@ class install_install extends module
$$var = request_var($var, '');
}
if ($dbname == '')
{
// Someone's been silly and tried calling this page direct
// So we send them back to the start to do it again properly
header('Location: index.' . $phpEx . '?mode=install');
exit;
}
$s_hidden_fields = ($img_imagick) ? '<input type="hidden" name="img_imagick" value="' . addslashes($img_imagick) . '" />' : '';
$passed = false;
@ -668,6 +676,14 @@ class install_install extends module
$$var = request_var($var, '');
}
if ($dbname == '')
{
// Someone's been silly and tried calling this page direct
// So we send them back to the start to do it again properly
header('Location: index.' . $phpEx . '?mode=install');
exit;
}
$s_hidden_fields = ($img_imagick) ? '<input type="hidden" name="img_imagick" value="' . addslashes($img_imagick) . '" />' : '';
$written = false;
@ -804,6 +820,14 @@ class install_install extends module
$$var = request_var($var, '');
}
if ($dbname == '')
{
// Someone's been silly and tried calling this page direct
// So we send them back to the start to do it again properly
header('Location: index.' . $phpEx . '?mode=install');
exit;
}
$s_hidden_fields = ($img_imagick) ? '<input type="hidden" name="img_imagick" value="' . addslashes($img_imagick) . '" />' : '';
$email_enable = ($email_enable !== '') ? $email_enable : true;
@ -872,6 +896,14 @@ class install_install extends module
$$var = request_var($var, '');
}
if ($dbname == '')
{
// Someone's been silly and tried calling this page direct
// So we send them back to the start to do it again properly
header('Location: index.' . $phpEx . '?mode=install');
exit;
}
$cookie_domain = ($server_name != '') ? $server_name : (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : getenv('SERVER_NAME');
// If we get here and the extension isn't loaded it should be safe to just go ahead and load it