[0] ThrowableError in common.php line 1341

Parse error: syntax error, unexpected 'nction' (T_STRING), expecting ']'

  1. $arr = [
  2. 0 => lang('not_paid'),
  3. 1 => lang('paid'),
  4. ];
  5. return $arr[$data];
  6. }
  7. function mac_get_user_portrait($user_id)
  8. {
  9. $res = MAC_PATH . 'static_new/images/touxiang.png';
  10. if(!empty($user_id)){
  11. $res2 = 'upload/user/'.($user_id % 10 ). '/'.$user_id.'.jpg';
  12. if(file_exists(ROOT_PATH . $res2)){
  13. $res = MAC_PATH . $res2;
  14. }
  15. }
  16. return $res;
  17. }

Call Stack

  1. in common.php line 1341
  2. at App::init() in App.php line 182
  3. at App::initCommon() in App.php line 82
  4. at App::run() in start.php line 19
  5. at require('/www/wwwroot/122.10....') in index.php(4) : eval()'d code(3) : eval()'d code line 139
  6. at eval() in index.php(4) : eval()'d code line 3
  7. at eval() in index.php line 4

Environment Variables

GET Data

s
/bofang/7N6LqCKJuPbWf-1-11.html
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_CONNECTION
keep-alive
HTTP_CACHE_CONTROL
max-age=259200
HTTP_X_FORWARDED_FOR
10.8.80.106
HTTP_VIA
1.1 squid-proxy-5b5d847c96-qfw7s (squid/6.13)
HTTP_HOST
www.jnbbb120.com
HTTP_ACCEPT_ENCODING
gzip, br, zstd, deflate
HTTP_USER_AGENT
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT
*/*
PATH_INFO
REDIRECT_STATUS
200
SERVER_NAME
122.10.27.58
SERVER_PORT
80
SERVER_ADDR
154.86.235.210
REMOTE_PORT
57395
REMOTE_ADDR
216.73.216.61
SERVER_SOFTWARE
nginx/1.28.0
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/122.10.27.58
DOCUMENT_URI
/index.php
REQUEST_URI
/bofang/7N6LqCKJuPbWf-1-11.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/bofang/7N6LqCKJuPbWf-1-11.html
SCRIPT_FILENAME
/www/wwwroot/122.10.27.58/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1763004401.6374
REQUEST_TIME
1763004401
Environment Variables
empty

ThinkPHP Constants

ROOT_PATH
/www/wwwroot/122.10.27.58/
APP_PATH
/www/wwwroot/122.10.27.58/application/
MAC_COMM
/www/wwwroot/122.10.27.58/application/common/common/
MAC_HOME_COMM
/www/wwwroot/122.10.27.58/application/index/common/
MAC_ADMIN_COMM
/www/wwwroot/122.10.27.58/application/admin/common/
MAC_START_TIME
1763004401.6424
BIND_MODULE
index
ENTRANCE
index
IN_FILE
/index.php
THINK_VERSION
5.0.24
THINK_START_TIME
1763004401.644
THINK_START_MEM
519024
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/122.10.27.58/thinkphp/
LIB_PATH
/www/wwwroot/122.10.27.58/thinkphp/library/
CORE_PATH
/www/wwwroot/122.10.27.58/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/122.10.27.58/thinkphp/library/traits/
EXTEND_PATH
/www/wwwroot/122.10.27.58/extend/
VENDOR_PATH
/www/wwwroot/122.10.27.58/vendor/
RUNTIME_PATH
/www/wwwroot/122.10.27.58/runtime/
LOG_PATH
/www/wwwroot/122.10.27.58/runtime/log/
CACHE_PATH
/www/wwwroot/122.10.27.58/runtime/cache/
TEMP_PATH
/www/wwwroot/122.10.27.58/runtime/temp/
CONF_PATH
/www/wwwroot/122.10.27.58/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
ADDON_PATH
/www/wwwroot/122.10.27.58/addons/