去include/common.inc.php中将
//开启register_globals会有诸多不安全可能性,因此强制要求关闭register_globals
if ( ini_get('register_globals') )
{
exit('<a href=" http://docs.dedecms.com/doku.php?id=register_globals">php.ini register_globals must is Off! </a>');
}
//禁止 session.auto_start
if ( ini_get('session.auto_start') != 0 )
{
exit('<a href=" http://docs.dedecms.com/doku.php?id=session_auto_start">php.ini session.auto_start must is 0 ! </a>');
}
if ( ini_get('register_globals') )
{
exit('<a href=" http://docs.dedecms.com/doku.php?id=register_globals">php.ini register_globals must is Off! </a>');
}
//禁止 session.auto_start
if ( ini_get('session.auto_start') != 0 )
{
exit('<a href=" http://docs.dedecms.com/doku.php?id=session_auto_start">php.ini session.auto_start must is 0 ! </a>');
}
注释或者删除即可!