//日下载数
elseif($down==7)
{
$r=$empire->fetch1("select DayHits from {$dbtbpre}ecms_".$cr['tbname']." where id='$id' limit 1");
$shownum=$r['DayHits'];
}
//周下载数
elseif($down==8)
{
$r=$empire->fetch1("select WeekHits from {$dbtbpre}ecms_".$cr['tbname']." where id='$id' limit 1");
$shownum=$r['WeekHits'];
}
//月下载数
elseif($down==9)
{
$r=$empire->fetch1("select MonthHits from {$dbtbpre}ecms_".$cr['tbname']." where id='$id' limit 1");
$shownum=$r['MonthHits'];
}
第
三步:打开/e/class/DownSysFun.php 找到,//总下载数据增一.
代码如下:
$usql=$empire->query("update {$dbtbpre}ecms_".$class_r[$classid][tbname]." set totaldown=totaldown+1where id='$id'");
//替换成:
$usql=$empire->query("update {$dbtbpre}ecms_".$class_r[$classid][tbname]." set totaldown=totaldown+1,DayHits=DayHits+1,WeekHits=WeekHits+1,MonthHits=MonthHits+1 where id='$id'");