函数名 | 内部取值定义 > 网站参数取值定义 |
---|---|
功能 | 获得网站参数定义的值,部分值需要在后台进行定义 |
语法 | <!--{ $wset["参数"] }--> |
endtime:网站到期时间 client:终端设备类型, p=PC WINDOWS NT系统, l=Linux系统, a=安卓手机, w=微信浏览器, h=iPhone, d=iPad client_ip:客户端请求IP地址 upload_path:上传图片所在的目录 def_pict:图片不存在时的默认图片 def_head:头像图片不存在时的默认头像图片 host:网站域名 path:文件路径 file:文件名 ext:文件后缀 emUser:模板文件所在的目录 emPass:网站根目录 emHost:模板文件所在的目录 emPost:上传图片所在的目录 site_domain:模板文件所在的目录 site_icp:网站根目录 curry:当前日期年,数字。返回例:2014 currmd:当前日期月,数字。返回例:5 currme:当前日期月,英文缩写字符。返回例:MAY currmea:当前日期月,英文字符。返回例:May currmc:当前日期月,中文字符。返回例:五 currd:当前日期日,数字。返回例:25 currwd:当前日期周数字。返回例:0 currwe:当前日期周,英文缩写字符。返回例:SUN currwea:当前日期周,英文字符。返回例:Sunday currwc:当前日期周,中文数字字符,一至六或日。返回例:日 | |
范例 | <!--{$wset['curry']}--> 返回: 2014 |
注释 | { "client": "p", "client_ip": "127.0.0.1", "currd": "24", "currmc": "十", "currmd": "10", "currme": "Oct", "currmea": "October", "currwc": "四", "currwd": "4", "currwe": "THUR", "currwea": "Thursday", "curry": "2024", "def_head": "/upfiles/def_head.jpg", "def_pict": "/upfiles/def_pict.jpg", "emHost": ".......", "emName": "飞鸿网络科技", "emPass": ".......", "emPost": "465", "emUser": ".......", "endtime": "2999-08-26", "ext": ".html", "file": "fhwl-list.html", "file_404": "template/default/404.html", "file_key": "", "host": "127.0.0.1", "isstaticurl": "0", "path": "template/default", "protocol": "http://", "referer": "", "requesturl": "/fhwl-list.html?pid=1258\u0026pg=1", "sessionid": "fhwl_1729739336325952", "site_domain": "ffwish.com", "site_icp": "", "template": "template/default/", "upload_path": "upfiles", "useragent": "mozilla/5.0 (windows nt 10.0; win64; x64) applewebkit/537.36 (khtml, like gecko) chrome/130.0.0.0 safari/537.36 edg/130.0.0.0" } |