函数名 | 内部取值定义 > 网站参数取值定义 |
---|---|
功能 | 获得网站参数定义的值,部分值需要在后台进行定义 |
语法 | <!--{ $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", 终端设备类型, p=PC WINDOWS NT系统,l=Linux系统,a=安卓手机,w=微信浏览器,h=iPhone,d=iPad "client_ip": "::1", 客户端请求IP地址, 支持IP6 "currd": "23", 当前日期日,数字 "currmc": "七", 当前日期月,中文字符 "currmd": "7", 当前日期月,数字 "currme": "Jul", "currmea": "July", "currwc": "二", "currwd": "2", "currwe": "TUE", "currwea": "Tuesday", "curry": "2024", "def_head": "/upfiles/def_head.jpg", "def_pict": "/upfiles/def_pict.jpg", "emHost": "smtp.163.com", "emName": "", "emPass": "DFOEZYWJEOHFAUSR", "emPost": "465", "emUser": "ffwbms@163.com", "endtime": "2099-08-21", "ext": ".html", "file": "test.html", "file_key": "", "host": "localhost", "isstaticurl": "0", "path": "", "protocol": "http://", "referer": "", "requesturl": "/test.html", "sessionid": "fhwl_1721618633800113", "site_domain": "ffwish.com", "site_icp": "", "upload_path": "upfiles", "useragent": "mozilla/5.0 (windows nt 10.0; win64; x64) applewebkit/537.36 (khtml, like gecko) chrome/126.0.0.0 safari/537.36" } |