mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
- updated all code to use the request class instead of any direct access to
super globals - disabled super globals in common.php. See commit r9101 for more information - cleaned up/simplified a few lines along the way. git-svn-id: file:///svn/phpbb/trunk@9102 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -559,7 +559,7 @@ class install_install extends module
|
||||
$available_dbms = get_available_dbms(false, true);
|
||||
|
||||
// Has the user opted to test the connection?
|
||||
if (isset($_POST['testdb']))
|
||||
if (request::is_set_post('testdb'))
|
||||
{
|
||||
if (!isset($available_dbms[$data['dbms']]) || !$available_dbms[$data['dbms']]['AVAILABLE'])
|
||||
{
|
||||
@@ -700,7 +700,7 @@ class install_install extends module
|
||||
|
||||
$data['default_lang'] = ($data['default_lang'] !== '') ? $data['default_lang'] : $data['language'];
|
||||
|
||||
if (isset($_POST['check']))
|
||||
if (request::is_set_post('check'))
|
||||
{
|
||||
$error = array();
|
||||
|
||||
@@ -954,7 +954,7 @@ class install_install extends module
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($_POST['dldone']))
|
||||
if (request::is_set_post('dldone'))
|
||||
{
|
||||
// Do a basic check to make sure that the file has been uploaded
|
||||
// Note that all we check is that the file has _something_ in it
|
||||
@@ -981,7 +981,7 @@ class install_install extends module
|
||||
{
|
||||
// OK, so it didn't work let's try the alternatives
|
||||
|
||||
if (isset($_POST['dlconfig']))
|
||||
if (request::is_set_post('dlconfig'))
|
||||
{
|
||||
// They want a copy of the file to download, so send the relevant headers and dump out the data
|
||||
header('Content-Type: text/x-delimtext; name="config.' . PHP_EXT . '"');
|
||||
|
Reference in New Issue
Block a user