我们来修改一下phpcms版本的随机点击率:
首先V9版本:
\api\count.php
找到
$views = $r['views'] + 1;
替换成
$rand_num=rand(1,20);
$views = $r['views'] + $rand_num;
2008sp4版本
打开include\admin\content.class.php
查找“function hits($contentid)”
$hits = $r['hits'] +1;改为$hits = $r['hits'] + rand(1,10);
说明:rand(最小值,最大值);从最小值到最大值之间取随机数。