判断是否开启了在线调试
boolean Bootstrap::_is_online_debug( )
boolean
16391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664private
static
function
_is_online_debug()
{
if
(IS_SYSTEM_MODE)
{
if
(isset(
$_SERVER
[
'HTTP_X_MYQEE_SYSTEM_DEBUG'
]) &&
$_SERVER
[
'HTTP_X_MYQEE_SYSTEM_DEBUG'
]==
'1'
)
{
return
true;
}
else
{
return
false;
}
}
if
(!isset(
$_COOKIE
[
'_debug_open'
]))
return
false;
if
(!isset(self::
$core_config
[
'debug_open_password'
]) || !
is_array
(self::
$core_config
[
'debug_open_password'
]))
return
false;
foreach
(self::
$core_config
[
'debug_open_password'
]
as
$username
=>
$password
)
{
if
(
$_COOKIE
[
'_debug_open'
] == self::get_debug_hash(
$username
,
$password
))
{
return
true;
}
}
return
false;
}