zhangjingyu
} elseif ($action == 'favor') {
$cachetime = pwFilemtime(D_P."data/bbscache/favor_sort.php");
if (!$per || !file_exists(D_P."data/bbscache/favor_sort.php") || ($timestamp-$cachetime>$per*3600)) {
$element = L::loadClass('element');
$element->setDefaultNum(50);
$_sort = array();
$_SORTDB = $element->hotFavorsort();
pwCache::writeover(D_P.'data/bbscache/favor_sort.php',"");
} else {
include pwCache::getPath(D_P."data/bbscache/favor_sort.php");
$_SORTDB = $_FAVORS;
unset($_FAVORS);
}
备份一段代码,关于帖子收藏排行sort.php