南瓜园

 找回密码
 注册
查看: 1317|回复: 0

插件首页热门贴中--加添“昨日发贴排行榜”的代碼

[复制链接]
发表于 2009-1-3 19:42:08 | 显示全部楼层 |阅读模式
# find 找

Copy code
if($tdtcontrol!=$tdtime){
    if($db_hostweb == 1 && !$cateid && $groupid != 'guest'){


# joins 加

Copy code
$cachelist=R_P."data/bbscache/index_toplist.php"; //主题排行缓存文件
$cachelistbak=R_P."data/bbscache/index_toplist.bak.php"; //過去的排行缓存文件
$cacheydlist=R_P."data/bbscache/index_topydlist.php"; //昨天排行缓存文件
if(touch($cachelist))copy($cachelist, $cachelistbak);
if(touch($cachelistbak))@require_once($cachelistbak);
if($toptoday)$topyesterday=$toptoday;
@writeover($cacheydlist,"<?php\n\$topyesterday=\"$topyesterday\";\n?>");
@writeover($cachelist,"<?php\n\$toptoday=\"\";\n\$topmonth=\"$topmonth\";\n\$newthreads=\"$newthreads\";\n\$replythreads=\"$replythreads\";\n\$hotthreads=\"$hotthreads\";\n\$timelv=\"$timelv\";\n?>");


## 昨天排行的 "變量"

Copy code
if(touch($cacheydlist))@require_once($cacheydlist);
$topyesterday
您需要登录后才可以回帖 登录 | 注册

本版积分规则

请大家牢记南瓜园网址 www.nan2008.com

QQ|小黑屋|手机版|Archiver|南瓜园

GMT+8, 2024-11-10 07:44 , Processed in 0.089189 second(s), 19 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表