mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
- make install.php php5 compatible (hopefully) :D
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@5101 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
e82f1ba8c5
commit
5931f77a3b
1 changed files with 17 additions and 0 deletions
|
@ -225,6 +225,23 @@ function guess_lang()
|
||||||
error_reporting (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables
|
error_reporting (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables
|
||||||
set_magic_quotes_runtime(0); // Disable magic_quotes_runtime
|
set_magic_quotes_runtime(0); // Disable magic_quotes_runtime
|
||||||
|
|
||||||
|
// PHP5 with register_long_arrays off?
|
||||||
|
if (!isset($HTTP_POST_VARS) && isset($_POST))
|
||||||
|
{
|
||||||
|
$HTTP_POST_VARS = $_POST;
|
||||||
|
$HTTP_GET_VARS = $_GET;
|
||||||
|
$HTTP_SERVER_VARS = $_SERVER;
|
||||||
|
$HTTP_COOKIE_VARS = $_COOKIE;
|
||||||
|
$HTTP_ENV_VARS = $_ENV;
|
||||||
|
$HTTP_POST_FILES = $_FILES;
|
||||||
|
|
||||||
|
// _SESSION is the only superglobal which is conditionally set
|
||||||
|
if (isset($_SESSION))
|
||||||
|
{
|
||||||
|
$HTTP_SESSION_VARS = $_SESSION;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Slash data if it isn't slashed
|
// Slash data if it isn't slashed
|
||||||
if (!get_magic_quotes_gpc())
|
if (!get_magic_quotes_gpc())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue