判断是否开启了在线调试
boolean Bootstrap::_is_online_debug( )
boolean
private 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;
}