Dedecms php.ini register_globals must is OFF
Way to go directly to the include/common.inc.php tutorial will
----
Prohibit Session.auto_start
if (Ini_get (' Session.auto_start ')! = 0)
{
Exit (' php.ini Session.auto_start must is 0! ');
}
----
Delete.
==================
After this deletion, then look down ...
There's one more place
if (Ini_get (' register_globals '))
{
Exit (' PHP.ini register_globals must is off! ');
}
After deletion, it can be solved perfectly.
The sections that need to be removed are:
1. 第10-20 Line
There are many unsafe possibilities for opening register_globals, so it is mandatory to shut down register_globals
if (Ini_get (' register_globals '))
{
Exit (' PHP.ini register_globals must is off! ');
}
Prohibit Session.auto_start
if (Ini_get (' Session.auto_start ')! = 0)
{
Exit (' php.ini Session.auto_start must is 0! ');
}
2. Line 72nd to 75th
if (Ini_get (' register_globals '))
{
Exit (' PHP.ini register_globals must is off! ');
}
The above two delete can be solved perfectly!
Search for this item in Apche's php.ini, your should be register_globals = on modified to Register_globals = Off Save restart server environment such as restart Apche
The morning update is mainly for register_globals and Session.auto_start strict filtering
If the user of a standalone server can modify php.ini in the PHP configuration file, change Register_globals=on to Register_globals=off
Also change the session.auto_start=1 to session.auto_start=0, then restart Apache.
If the user is a virtual host, notify the space provider as much as possible to modify the configuration, or you can try Ini_set (' Session.auto_start ', 0).
If it doesn't work, it's only the last way to go straight to include/common.inc.php.
----
Prohibit Session.auto_start
if (Ini_get (' Session.auto_start ')! = 0)
{
Exit (' php.ini Session.auto_start must is 0! ');
}
http://www.bkjia.com/PHPjc/632370.html www.bkjia.com true http://www.bkjia.com/PHPjc/632370.html techarticle dedecms php.ini register_globals must is off method go directly to include/common.inc.php Tutorial will----//Forbidden Session.auto_start if (ini_ge T (' Session.auto_start ')! = 0) {exit (' ph ...