{pboot:list scode={sort:scode} num=4}
[list:title]
{/pboot:list}
分享服务器维护、抵抗入侵、防篡改、防御攻击、排查后门木马、清理挖矿病毒、网络安全、信息安全、内网安全、数据灾备、网站搬迁、程序升级、威胁情报、网站安全运维的日常知识
{pboot:list scode={sort:scode} num=4}
[list:title]
{/pboot:list}
内容列表时间格式化:
[list:date style=Y-m-d]
内容详情页时间格式化:
{content:date style=Y-m-d}
config
、data
和 runtime
文件夹增加写入权限,设置为 755 或 777。
chmod -R 755 /path/to/your/project/config
chmod -R 755 /path/to/your/project/data
chmod -R 755 /path/to/your/project/runtime
找到对应的HTML文件:
编辑HTML文件:
保存并上传:
检查效果:
通过以上步骤,你可以顺利地完成公司网站页面的文字修改。
<title>
{dede:field.title/}_{dede:fieldname='position' runphp='yes'}
$tc="_"; $tw=$GLOBALS['cfg_list_symbol'];
@me=HTML2text(@me); $tf=split($tw,@me);
for($ta=(count($tf)-2);$ta>=1;$ta--){$tk.=trim($tf[$ta]).$tc;}
$tk=substr($tk,0,-1); @me=$tk;
{/dede:field}_{dede:global.cfg_webname/}
</title>
/zb_users/theme/
目录。函数位置:
c_system_common.php
文件,大约519行。函数参数:
$name
:字符串,必须,获取值的名称。$type
:字符串,可选,获取哪种类型,可选值为“GET”、“POST”、“SERVER”。$default
:字符串,可选,缺省默认值。函数输出:
null
。示例:
$value = GetVars('key', 'GET', 'default_value');
<?php
$class_sql = $empire->query('select * from phome_enewsclass where islast=1 LIMIT 50'); // 调用50个,数量可自改
while ($class_row = $empire->fetch($class_sql)) {
$classurl = sys_ReturnBqClassUrl($class_r[$class_row['classid']]);
?>
<li><a href="<?=$classurl?>"><?=$class_row['classname']?></a></li>
<?php
}
?>
启用程序代码:
list.var
中勾选“使用程序代码”。添加代码:
$scnum = $empire->gettotal("select count(*) as total from www_moban5_cn_enewsfava where id='$r[id]' and classid='$r[classid]'");
$listtemp = '收藏数:' . $scnum;