新葡萄(AMG)品牌官网-Official website

[2] ErrorException in common.php line 1410

Undefined array key "HTTP_USER_AGENT"

  1. }
  2. }
  3. if (!function_exists('get_browser_type')) {
  4. /**
  5. * 获取浏览器类型
  6. * @return string
  7. */
  8. function get_browser_type(){
  9. $agent = $_SERVER["HTTP_USER_AGENT"];
  10. if(strpos($agent,'MSIE') !== false || strpos($agent,'rv:11.0')) return "ie";
  11. if(strpos($agent,'Firefox') !== false) return "firefox";
  12. if(strpos($agent,'Chrome') !== false) return "chrome";
  13. if(strpos($agent,'Opera') !== false) return 'opera';
  14. if((strpos($agent,'Chrome') == false) && strpos($agent,'Safari') !== false) return 'safari';
  15. if(false!==strpos($_SERVER['HTTP_USER_AGENT'],'360SE')) return '360SE';
  16. return 'unknown';
  17. }
  18. }

Call Stack

  1. in common.php line 1410
  2. at Error::appError(2, 'Undefined array key ...', '/usr/home/wh-ab06e23...', 1410) in common.php line 1410
  3. at get_browser_type() in Admin.php line 31
  4. at Admin->initialize() in Controller.php line 68
  5. at Controller->__construct(object(App))
  6. at ReflectionClass->newInstanceArgs([object(App)]) in Container.php line 439
  7. at Container->invokeClass('app\cms\admin\Index', []) in Container.php line 284
  8. at Container->make('app\cms\admin\Index', []) in App.php line 723
  9. at App->controller('index', 'admin', false, 'Error') in Module.php line 94
  10. at Module->exec() in Dispatch.php line 168
  11. at Dispatch->run() in App.php line 432
  12. at App->think\{closure}(object(Request), object(Closure), null)
  13. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  14. at Middleware->think\{closure}(object(Request))
  15. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  16. at Middleware->dispatch(object(Request)) in App.php line 435
  17. at App->run() in admin.php line 38

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
PHPSESSID os619u9mvn16pinatip6sonnoo
Sessionempty
Server/Request Data
DOCUMENT_ROOT /usr/home/wh-ab06e23wu37w79x0mqi/htdocs/public
GATEWAY_INTERFACE CGI/1.1
HTTP_ACCEPT */*
HTTP_ACCEPT_ENCODING gzip
HTTP_COOKIE PHPSESSID=os619u9mvn16pinatip6sonnoo
HTTP_HOST www.dtjsjt.com
PATH /bin
PHPRC /var/www/php80/hichina_ini/wh-ab06e23wu37w79x0mqi
QUERY_STRING
REDIRECT_STATUS 200
REMOTE_ADDR 104.206.95.34
REMOTE_PORT 34452
REQUEST_METHOD GET
REQUEST_URI /admin.php
SCRIPT_FILENAME /usr/home/wh-ab06e23wu37w79x0mqi/htdocs/public/admin.php
SCRIPT_NAME /admin.php
SERVER_ADDR 10.24.135.69
SERVER_ADMIN webmaster@wh-ab06e23wu37w79x0mqi.my3w.com
SERVER_NAME www.dtjsjt.com
SERVER_PORT 80
SERVER_PROTOCOL HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
TZ Asia/Shanghai
UNIQUE_ID aeRTMwoYh0UADKE4HAAAAAAl
PHP_SELF /admin.php
REQUEST_TIME_FLOAT 1776571187.2611
REQUEST_TIME 1776571187
Environment Variablesempty
ThinkPHP Constants
APP_PATH /usr/home/wh-ab06e23wu37w79x0mqi/htdocs/public/../application/
ENTRANCE admin
HTMLPURIFIER_PREFIX /usr/home/wh-ab06e23wu37w79x0mqi/htdocs/vendor/ezyang/htmlpurifier/library
PUBLIC_PATH /
ADMIN_FILE admin.php
XML 地图