ParseError

模板标签写法错误:syntax error, unexpected token "-", expecting "->" or "?->" or "{" or "["
PHP语法错误 或者 模板标签语法错误,检查上下行代码是否写对
D:\wwwroot\www.sunew.net\caches\caches_template\sunew2026\pc\content\header.php(25) 搜索问题 →

模板文件:D:\wwwroot\www.sunew.net\cms\templates/sunew2026/pc\content\index.html

模板文件:D:\wwwroot\www.sunew.net\cms\templates/sunew2026/pc\content\header.html

解析文件:D:\wwwroot\www.sunew.net\caches\caches_template\sunew2026\pc\content\header.php at line 25

18     <link rel="preload" href="<?php echo APP_PATH?>cms/templates/sunew2026/assets/js/main.js" as="script">
19     
20     <!-- 首屏关键CSS(内联,确保首屏快速渲染) -->
21     <style>
22 *,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
23 html{scroll-behavior:smooth}
24 body{font-family:'PingFang SC','Microsoft YaHei','Helvetica Neue',Arial,sans-serif;line-height:1.6;color:#fff;background:linear-gradient(135deg,#0f0f23 0%,#1a1a3e 50%,#0f0f23 100%);background-attachment:fixed;min-height:100vh;overflow-x:hidden}
25 :root<?php ++primary-color:#ff6b35;--secondary-color:#ff8c42;--accent-color:#ffd166;--text-color:#fff;--text-secondary:rgba(255,255,255,0.7);--bg-primary:#0f0f23;--bg-secondary:#1a1a3e;--border-color:rgba(255,107,53,0.3);--shadow:0 4px 30px rgba(255,107,53,0.3);--transition:all 0.3s ease; ?>
26 .container{max-width:1200px;margin:0 auto;padding:0 20px}
27 .navbar{position:fixed;top:0;left:0;right:0;z-index:1000;transition:var(--transition)}
28 .navbar::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(15,15,35,0.9);backdrop-filter:blur(20px);border-bottom:1px solid rgba(255,107,53,0.2)}
29 .navbar .container{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;height:70px}
30 .nav-brand img{height:40px}
31 .nav-menu{display:flex;list-style:none;gap:5px}
32 .nav-menu>li{position:relative}
  1. include D:\wwwroot\www.sunew.net\cms\libs\classes\service.class.php   —   include()

  2. D:\wwwroot\www.sunew.net\cms\modules\content\index.php : 59   —  service->display ( arguments )

    $module
    content
    $template
    index
    $style
    sunew2026

    52                 } else {
    53                     define('IS_HTML'0);
    54                 }
    55             }
    56         }else{
    57             define('IS_HTML'dr_site_info('ishtml'$siteid));
    58         }
    59         pc_base::load_sys_class('service')->display('content','index',$default_style);
    60     }
    61     //列表页
    62     public function lists() {
    63         if (IS_POST) {
    64             dr_json(0L('禁止提交,请检查提交地址是否有误'));
    65         }
    66         $catid intval($this->input->get('catid'));
    
  3. D:\wwwroot\www.sunew.net\cms\libs\classes\application.class.php : 130   —  index->init ()

    123                 throw new \OutOfBoundsException('API处理程序不存在<br>检查此文件是否存在:'.CMS_PATH.'api/'.$op.'.php,检查地址是否正确,注意控制器文件');
    124             }
    125         } else {
    126             if (method_exists($controllerROUTE_A)) {
    127                 if (preg_match('/^[_]/i'ROUTE_A)) {
    128                     dr_exit_msg(0'You are visiting the action is to protect the private action');
    129                 } else {
    130                     call_user_func(array($controller, ROUTE_A));
    131                     if (IS_ADMIN && CI_DEBUG && !IS_AJAX) {
    132                         if (!in_array(ROUTE_M, array('admin')) || !in_array(ROUTE_C, array('index')) && !in_array(ROUTE_A, array('public_main'))) {
    133                             $this->debug->message();
    134                         }
    135                     }
    136                     if (!IS_ADMIN && IS_DEV && !IS_AJAX) {
    137                         $this->debug->message();
    
  4. D:\wwwroot\www.sunew.net\cms\libs\classes\application.class.php : 73   —  application->init ()

    66             define('CLIENT_URL'SITE_URL);
    67             define('CLIENT_NAME''pc');
    68         }
    69         !defined('IS_CLIENT') && define('IS_CLIENT''');
    70         if (module_exists('content') && is_file(PC_PATH.'modules/content/config/run.php')) {
    71             require PC_PATH.'modules/content/config/run.php';
    72         }
    73         $this->init();
    74         // 挂钩点 程序结束之后
    75         pc_base::load_sys_class('hooks')::trigger('cms_close');
    76     }
    77     
    78     /**
    79      * 调用件事
    80      */
    
  5. D:\wwwroot\www.sunew.net\cms\base.php : 471   —  application->__construct ()

    464             include PC_PATH.$path.DIRECTORY_SEPARATOR.$classname.'.class.php';
    465             $name $classname;
    466             if ($my_path self::my_path(PC_PATH.$path.DIRECTORY_SEPARATOR.$classname.'.class.php')) {
    467                 include $my_path;
    468                 $name 'MY_'.$classname;
    469             }
    470             if ($initialize) {
    471                 $classes[$key] = new $name;
    472             } else {
    473                 $classes[$key] = true;
    474             }
    475             return $classes[$key];
    476         } else {
    477             CI_DEBUG && log_message('debug''类文件:'.$path.DIRECTORY_SEPARATOR.$classname.'.class.php不存在');
    478             return false;
    
  6. D:\wwwroot\www.sunew.net\cms\base.php : 422   —  pc_base::_load_class ( arguments )

    $classname
    application
    $path
    libs\classes
    $initialize
    1

    415     /**
    416      * 加载系统类方法
    417      * @param string $classname 类名
    418      * @param string $path 扩展地址
    419      * @param intger $initialize 是否初始化
    420      */
    421     public static function load_sys_class($classname$path ''$initialize 1) {
    422         return self::_load_class($classname, $path, $initialize);
    423     }
    424     
    425     /**
    426      * 加载应用类方法
    427      * @param string $classname 类名
    428      * @param string $m 模块
    429      * @param intger $initialize 是否初始化
    
  7. D:\wwwroot\www.sunew.net\cms\base.php : 413   —  pc_base::load_sys_class ( arguments )

    $classname
    application

    406 
    407 class pc_base {
    408     
    409     /**
    410      * 初始化应用程序
    411      */
    412     public static function creat_app() {
    413         return self::load_sys_class('application');
    414     }
    415     /**
    416      * 加载系统类方法
    417      * @param string $classname 类名
    418      * @param string $path 扩展地址
    419      * @param intger $initialize 是否初始化
    420      */
    
  8. D:\wwwroot\www.sunew.net\index.php : 43   —  pc_base::creat_app ()

    36 // 判断安装
    37 if (file_exists('install') && is_file(CACHE_PATH.'install.lock')) {
    38     dr_dir_delete('install'TRUE);
    39 }
    40 // 结束,安装之后可以删除此段代码
    41 
    42 // 执行主程序
    43 pc_base::creat_app();
    

$_SERVER

Key Value
_FCGI_X_PIPE_ \\.\pipe\IISFCGI-4569f09e-b8a6-47eb-ab20-4a43bbb1d415
PHP_FCGI_MAX_REQUESTS 10000
ALLUSERSPROFILE C:\ProgramData
APPDATA C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG C:\inetpub\temp\apppools\www.sunew.net\www.sunew.net.config
APP_POOL_ID www.sunew.net
BT_PANEL D:\BtSoft\panel
BT_PYTHON C:\Program Files\python
BT_SETUP D:\BtSoft
CommonProgramFiles C:\Program Files\Common Files
CommonProgramFiles(x86) C:\Program Files (x86)\Common Files
CommonProgramW6432 C:\Program Files\Common Files
COMPUTERNAME KGt2srtQpDfY
ComSpec C:\Windows\system32\cmd.exe
DriverData C:\Windows\System32\Drivers\DriverData
LOCALAPPDATA C:\Windows\system32\config\systemprofile\AppData\Local
NODE_HOME D:\BtSoft\pm2\18.6.0
NUMBER_OF_PROCESSORS 4
OS Windows_NT
Path C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\python;C:\Program Files\python\Scripts;;D:\BtSoft\panel\script;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE AMD64
PROCESSOR_IDENTIFIER Intel64 Family 6 Model 79 Stepping 1, GenuineIntel
PROCESSOR_LEVEL 6
PROCESSOR_REVISION 4f01
ProgramData C:\ProgramData
ProgramFiles C:\Program Files
ProgramFiles(x86) C:\Program Files (x86)
ProgramW6432 C:\Program Files
PSModulePath C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules
PUBLIC C:\Users\Public
SystemDrive C:
SystemRoot C:\Windows
TEMP C:\Windows\TEMP
TMP C:\Windows\TEMP
UNRAR_LIB_PATH C:\Program Files\python\Lib\site-packages\unrar\UnRAR.dll
USERDOMAIN WORKGROUP
USERNAME KGt2srtQpDfY$
USERPROFILE C:\Windows\system32\config\systemprofile
windir C:\Windows
ORIG_PATH_INFO /index.php
URL /index.php
SERVER_SOFTWARE Microsoft-IIS/10.0
SERVER_PROTOCOL HTTP/1.1
SERVER_PORT_SECURE 1
SERVER_PORT 443
SERVER_NAME sunew.net
SCRIPT_NAME /index.php
SCRIPT_FILENAME d:\wwwroot\www.sunew.net\index.php
REQUEST_URI /
REQUEST_METHOD GET
REMOTE_USER
REMOTE_PORT 53782
REMOTE_HOST 216.73.216.1
REMOTE_ADDR 216.73.216.1
QUERY_STRING
PATH_TRANSLATED d:\wwwroot\www.sunew.net\index.php
LOGON_USER
LOCAL_ADDR 122.114.10.78
INSTANCE_META_PATH /LM/W3SVC/11
INSTANCE_NAME WWW.SUNEW.NET
INSTANCE_ID 11
HTTPS_SERVER_SUBJECT CN=www.sunew.net
HTTPS_SERVER_ISSUER C=US, O=DigiCert Inc, OU=www.digicert.com, CN=Encryption Everywhere DV TLS CA - G2
HTTPS_SECRETKEYSIZE 2048
HTTPS_KEYSIZE 256
HTTPS on
GATEWAY_INTERFACE CGI/1.1
DOCUMENT_ROOT d:\wwwroot\www.sunew.net
CONTENT_TYPE
CONTENT_LENGTH 0
CERT_SUBJECT
CERT_SERIALNUMBER
CERT_ISSUER
CERT_FLAGS
CERT_COOKIE
AUTH_USER
AUTH_PASSWORD
AUTH_TYPE
APPL_PHYSICAL_PATH d:\wwwroot\www.sunew.net\
APPL_MD_PATH /LM/W3SVC/11/ROOT
IIS_UrlRewriteModule 7.1.0871.0
WEBSOCKET_VERSION 13
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_HOST sunew.net
HTTP_ACCEPT_ENCODING gzip, br, zstd, deflate
HTTP_ACCEPT */*
HTTP_CONTENT_LENGTH 0
HTTP_CONNECTION close
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT
1773945644.976                                                                    
REQUEST_TIME
1773945644                                                                    

Constants

Key Value
IS_DEV 1
IS_ADMIN
IS_MOBILE
SELF index.php
CMS_PATH D:\wwwroot\www.sunew.net\
SELF_DIR D:\wwwroot\www.sunew.net\
IN_CMS 1
IN_PHPCMS 1
IS_API
IS_COLLAPI
PC_PATH D:\wwwroot\www.sunew.net\cms\
PHPCMS_PATH D:\wwwroot\www.sunew.net\
CACHE_PATH D:\wwwroot\www.sunew.net\caches\
CONFIGPATH D:\wwwroot\www.sunew.net\caches\configs\
HTTP_REFERER
SYS_START_TIME 1773945644.98
SYS_START_MEM 375216
MIN_PHP_VERSION 7.1.0
SYS_TIMEZONE 8
CHARSET utf-8
SYS_TPL_ROOT templates/
TPLPATH D:\wwwroot\www.sunew.net\cms\templates/
SYS_TIME_FORMAT
SYS_ADMIN_PAGESIZE 10
TEMPPATH D:\wwwroot\www.sunew.net\cms\temp/
IS_AJAX
IS_POST
IS_AJAX_POST
SYS_TIME 1773945644
SYS_BDMAP_API
WEB_PATH /
SITE_THEME 0
JS_PATH https://www.sunew.net/statics/js/
CSS_PATH https://www.sunew.net/statics/css/
IMG_PATH https://www.sunew.net/statics/images/
MOBILE_JS_PATH https://www.sunew.net/mobile/statics/js/
MOBILE_CSS_PATH https://www.sunew.net/mobile/statics/css/
MOBILE_IMG_PATH https://www.sunew.net/mobile/statics/images/
APP_PATH https://www.sunew.net/
MOBILE_PATH https://www.sunew.net/mobile/
SYS_DEBUG 1
SYS_EDITOR 0
SESSION_STORAGE file
SESSION_TTL 1800
SESSION_SAVEPATH D:\wwwroot\www.sunew.net\caches\sessions/
COOKIE_PRE CMSF14CC25335853_
COOKIE_DOMAIN
COOKIE_PATH
SYS_ADMIN_PATH sadmin
NeedCheckComeUrl 1
SYS_KEY CMS70bdc902d0b733f8fd5c57e615e1294e
SYS_LANGUAGE zh-cn
SYS_GO_404 0
SYS_301 1
SYS_URL_ONLY 0
SYS_TOKEN_NAME csrf_test_name
SYS_CSRF 1
SYS_CSRF_TIME 0
SYS_TPL_NAME default
IS_EDIT_TPL 0
SYS_ADMIN_LOG 1
SYS_GZIP 1
ADMIN_FOUNDERS
Array
(
    [0] => 1
)
                                                                    
SYS_HTML_ROOT /html
SYS_MOBILE_ROOT /mobile
SYS_KEYWORDAPI 0
SYS_BAIDU_AID
SYS_BAIDU_SKEY
SYS_BAIDU_ARCRETKEY
SYS_BAIDU_QCNUM 10
SYS_XUNFEI_AID
SYS_XUNFEI_SKEY
SYS_ATTACHMENT_STAT 1
SYS_ATTACHMENT_FILE 0
SYS_ATTACHMENT_DEL 1
SYS_ATTACHMENT_SAVE_ID 0
SYS_ATTACHMENT_CF 1
SYS_ATTACHMENT_PAGESIZE 18
SYS_ATTACHMENT_SAFE 0
SYS_ATTACHMENT_PATH
SYS_ATTACHMENT_URL
SYS_ATTACHMENT_SAVE_TYPE 0
SYS_ATTACHMENT_SAVE_DIR
CI_DEBUG 1
IS_DEBUG 0
SYS_CACHE 0
SYS_CACHE_TYPE 0
SYS_CACHE_CLEAR 0
SYS_CACHE_SHOW 0
SYS_CACHE_SMS 60
SYS_CACHE_CRON 3
SYS_UPLOAD_PATH D:\wwwroot\www.sunew.net\uploadfile/
SYS_UPLOAD_URL https://www.sunew.net/uploadfile/
SYS_AVATAR_PATH D:\wwwroot\www.sunew.net\uploadfile/avatar/
SYS_AVATAR_URL https://www.sunew.net/uploadfile/avatar/
SYS_THUMB_PATH D:\wwwroot\www.sunew.net\uploadfile/thumb/
SYS_THUMB_URL https://www.sunew.net/uploadfile/thumb/
CMS_CLOUD https://ceshi.kaixin100.cn/
SITE_PROTOCOL https://
FC_NOW_URL https://sunew.net/
FC_NOW_HOST https://sunew.net/
DOMAIN_NAME sunew.net
WEB_DIR /
CMSURI
SITE_ID 1
ROOT_URL https://www.sunew.net/
SITE_URL https://www.sunew.net
SITE_MURL
ROUTE_M content
ROUTE_C index
ROUTE_A init
USER_HTTP_CODE a6ca1fd54b51c1a2725666247ae320ce
IS_MEMBER
IS_HOME 1
CLIENT_URL https://www.sunew.net
CLIENT_NAME pc
IS_CLIENT
EVENT_PRIORITY_LOW 200
EVENT_PRIORITY_NORMAL 10
EVENT_PRIORITY_HIGH 10
CACHE_MODEL_PATH D:\wwwroot\www.sunew.net\caches\caches_model\caches_data\
SITEID 1
IS_HTML 0
Path https://sunew.net/
HTTP Method GET
IP Address 216.73.216.1
Is AJAX? no
Is CLI? no
User Agent Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
No $_GET, $_POST, or $_COOKIE Information to show.

Headers

Header Value
User-Agent Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Host sunew.net
Accept-Encoding gzip, br, zstd, deflate
Accept */*
Connection close
  1. D:\wwwroot\www.sunew.net\index.php
  2. D:\wwwroot\www.sunew.net\cms\base.php
  3. D:\wwwroot\www.sunew.net\caches\configs\system.php
  4. D:\wwwroot\www.sunew.net\caches\configs\cache.php
  5. D:\wwwroot\www.sunew.net\cms\libs\functions\global.func.php
  6. D:\wwwroot\www.sunew.net\cms\libs\functions\extention.func.php
  7. D:\wwwroot\www.sunew.net\cms\libs\classes\cache.class.php
  8. D:\wwwroot\www.sunew.net\cms\libs\classes\application.class.php
  9. D:\wwwroot\www.sunew.net\cms\libs\classes\debug.class.php
  10. D:\wwwroot\www.sunew.net\cms\libs\classes\param.class.php
  11. D:\wwwroot\www.sunew.net\caches\configs\route.php
  12. D:\wwwroot\www.sunew.net\cms\libs\classes\input.class.php
  13. D:\wwwroot\www.sunew.net\cms\libs\classes\security.class.php
  14. D:\wwwroot\www.sunew.net\cms\libs\classes\service.class.php
  15. D:\wwwroot\www.sunew.net\cms\modules\content\config\run.php
  16. D:\wwwroot\www.sunew.net\cms\modules\404\config\filters.php
  17. D:\wwwroot\www.sunew.net\cms\modules\admin\config\hooks.php
  18. D:\wwwroot\www.sunew.net\cms\libs\classes\hooks.class.php
  19. D:\wwwroot\www.sunew.net\cms\modules\admin\config\filters.php
  20. D:\wwwroot\www.sunew.net\cms\modules\attachment\config\filters.php
  21. D:\wwwroot\www.sunew.net\cms\modules\collection\config\filters.php
  22. D:\wwwroot\www.sunew.net\cms\modules\member\config\hooks.php
  23. D:\wwwroot\www.sunew.net\cms\modules\member\config\filters.php
  24. D:\wwwroot\www.sunew.net\cms\modules\template\config\filters.php
  25. D:\wwwroot\www.sunew.net\caches\configs\hooks.php
  26. D:\wwwroot\www.sunew.net\cms\modules\content\index.php
  27. D:\wwwroot\www.sunew.net\cms\modules\content\functions\util.func.php
  28. D:\wwwroot\www.sunew.net\cms\model\content_model.class.php
  29. D:\wwwroot\www.sunew.net\cms\libs\classes\model.class.php
  30. D:\wwwroot\www.sunew.net\cms\libs\classes\db_factory.class.php
  31. D:\wwwroot\www.sunew.net\cms\libs\classes\upload.class.php
  32. D:\wwwroot\www.sunew.net\caches\configs\database.php
  33. D:\wwwroot\www.sunew.net\cms\libs\classes\db_mysqli.class.php
  34. D:\wwwroot\www.sunew.net\cms\modules\content\classes\url.class.php
  35. D:\wwwroot\www.sunew.net\cms\model\category_model.class.php
  36. D:\wwwroot\www.sunew.net\cms\model\members_model.class.php
  37. D:\wwwroot\www.sunew.net\cms\model\member_login_model.class.php
  38. D:\wwwroot\www.sunew.net\cms\model\admin_model.class.php
  39. D:\wwwroot\www.sunew.net\cms\model\admin_login_model.class.php
  40. D:\wwwroot\www.sunew.net\cms\libs\classes\template_cache.class.php
  41. D:\wwwroot\www.sunew.net\caches\caches_template\sunew2026\pc\content\index.php
  42. D:\wwwroot\www.sunew.net\cms\temp\errors\html\error_exception.php
Memory Usage 4MB
Peak Memory Usage: 4MB
Memory Limit: 128M