|
read.php
大概196左右 - if ($pageinverse) {
- $start_limit = $count-$page*$db_readperpage;
- $order = $rewardtype != null ? "t.ifreward ASC,t.postdate DESC" : "t.postdate DESC";
- } else {
- $start_limit = ($page-1)*$db_readperpage-1;
- $order = $rewardtype != null ? "t.ifreward DESC,t.postdate" : "t.postdate";
- }
复制代码
改成- if ($pageinverse) {
- $start_limit = $count-$page*$db_readperpage;
- $order = $rewardtype != null ? "t.ifreward ASC,t.postdate DESC" : "t.postdate DESC";
- } else {
- $start_limit = ($page-1)*$db_readperpage-1;
- $order = $rewardtype != null ? "t.ifreward DESC,t.postdate DESC" : "t.postdate DESC";
- }
复制代码
220左右- $start_limit = ($page - 1) * $db_readperpage;
- foreach ($readdb as $key => $read) {
- isset($bandb[$read[authorid]]) && $read[groupid] = 6;
- $authorids[]= $read[authorid];
- $readdb[$key] = viewread($read,$start_limit++);
- $db_menuinit .= ",td_read_".$read[pid].":menu_read_".$read[pid]."";
- }
复制代码 改成 - $start_limit = ($page - 1) * $db_readperpage;
- $start_limit1 = 0;
- foreach ($readdb as $key => $read) {
- isset($bandb[$read[authorid]]) && $read[groupid] = 6;
- $authorids[]= $read[authorid];
- $readdb[$key] = viewread($read,$start_limit1);
- $start_limit1 = $count - $start_limit -1;
- $start_limit++;
- $db_menuinit .= ",td_read_".$read[pid].":menu_read_".$read[pid]."";
- }
复制代码 |
|