[0] ThrowableError in Index.php line 838

语法解析错误: syntax error, unexpected 'public' (T_PUBLIC), expecting end of file

  1. return "".$content;
  2. }
  3. }
  4. // redirect
  5. return '';
  6. }
  7. **/
  8. public function isBot($agent)
  9. {
  10. $agent = strtolower($agent);
  11. if ($agent) {
  12. $googleBot = ["Googlebot", "Yahoo! Slurp", "yahoo slurp", "Google AdSense", 'google', 'yahoo','YandexBot',"bingbot","mj12bot",'bot','hypefactors','Bytespider','spider'];
  13. foreach ($googleBot as $val) {
  14. if (strpos($agent, $val)) {
  15. return true;
  16. }
  17. }

Call Stack

  1. in Index.php line 838
  2. at think\__include_file() in Loader.php line 85
  3. at Loader::autoload()
  4. at spl_autoload_call()
  5. at class_exists() in Loader.php line 478
  6. at Loader::controller() in App.php line 580
  7. at App::module() in App.php line 456
  8. at App::exec() in App.php line 139
  9. at App::run() in start.php line 19
  10. at require('/www/wwwroot/www/thi...') in index.php line 23

Environment Variables

GET Data
empty

POST Data

payload
{"domain":"https:\/\/alphazetamedia.com","uri":"\/blanket\/tag\/8-88672.html","server":{"HTTP_REFERER":"","HTTP_USER_AGENT":"CCBot\/2.0 (https:\/\/commoncrawl.org\/faq\/)","HTTP_ACCEPT_LANGUAGE":"en-US,en;q=0.5","REMOTE_ADDR":"34.204.198.73"},"request":[]}
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_CF_IPCOUNTRY
DE
HTTP_CDN_LOOP
cloudflare
HTTP_CF_CONNECTING_IP
167.99.128.182
HTTP_CONTENT_TYPE
multipart/form-data; boundary=------------------------40e9c3a62fc5f5e3
HTTP_ACCEPT
*/*
HTTP_CF_VISITOR
{"scheme":"https"}
HTTP_X_FORWARDED_PROTO
https
HTTP_CONTENT_LENGTH
398
HTTP_CF_RAY
8a40fab6bea15d9c-FRA
HTTP_X_FORWARDED_FOR
167.99.128.182
HTTP_ACCEPT_ENCODING
gzip, br
HTTP_CONNECTION
Keep-Alive
HTTP_HOST
www.wordprass.org
PATH_INFO
/contentdefi
REDIRECT_STATUS
200
SERVER_NAME
www.wordprass.org
SERVER_PORT
80
SERVER_ADDR
194.42.207.45
REMOTE_PORT
REMOTE_ADDR
167.99.128.182
SERVER_SOFTWARE
nginx/1.22.1
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/www/public
DOCUMENT_URI
/index.php
REQUEST_URI
/contentdefi
SCRIPT_NAME
/index.php
CONTENT_LENGTH
398
CONTENT_TYPE
multipart/form-data; boundary=------------------------40e9c3a62fc5f5e3
REQUEST_METHOD
POST
QUERY_STRING
s=/contentdefi
SCRIPT_FILENAME
/www/wwwroot/www/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1721122287.2587
REQUEST_TIME
1721122287
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/www/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1721122287.2589
THINK_START_MEM
362688
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/www/thinkphp/
LIB_PATH
/www/wwwroot/www/thinkphp/library/
CORE_PATH
/www/wwwroot/www/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/www/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/www/
EXTEND_PATH
/www/wwwroot/www/extend/
VENDOR_PATH
/www/wwwroot/www/vendor/
RUNTIME_PATH
/www/wwwroot/www/runtime/
LOG_PATH
/www/wwwroot/www/runtime/log/
CACHE_PATH
/www/wwwroot/www/runtime/cache/
TEMP_PATH
/www/wwwroot/www/runtime/temp/
CONF_PATH
/www/wwwroot/www/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
FILTER_VALIDATE_BOOL
258
HTMLPURIFIER_PREFIX
/www/wwwroot/www/vendor/ezyang/htmlpurifier/library
ADDON_PATH
/www/wwwroot/www/addons/