找回密码
 注册
查看: 2605|回复: 0
收起左侧

7.3可用回帖倒序显示

[复制链接]

5312

主题

8317

帖子

1万

积分

管理员

出售国内外虚拟空间

Rank: 10Rank: 10Rank: 10

积分
14660
帖子
8317
精华
67
体力
14660 点
蓝豆
2391 点
注册时间
2007-6-8

终身成就奖LY官方团队会员身份ID卡

发表于 2009-4-15 16:33:53 | 显示全部楼层 |阅读模式
read.php
大概196左右
  1. if ($pageinverse) {
  2. $start_limit = $count-$page*$db_readperpage;
  3. $order = $rewardtype != null ? "t.ifreward ASC,t.postdate DESC" : "t.postdate DESC";
  4. } else {
  5. $start_limit = ($page-1)*$db_readperpage-1;
  6. $order = $rewardtype != null ? "t.ifreward DESC,t.postdate" : "t.postdate";
  7. }
复制代码

改成
  1. if ($pageinverse) {
  2. $start_limit = $count-$page*$db_readperpage;
  3. $order = $rewardtype != null ? "t.ifreward ASC,t.postdate DESC" : "t.postdate DESC";
  4. } else {
  5. $start_limit = ($page-1)*$db_readperpage-1;
  6. $order = $rewardtype != null ? "t.ifreward DESC,t.postdate DESC" : "t.postdate DESC";
  7. }
复制代码

220左右
  1. $start_limit = ($page - 1) * $db_readperpage;
  2. foreach ($readdb as $key => $read) {
  3. isset($bandb[$read[authorid]]) && $read[groupid] = 6;
  4. $authorids[]= $read[authorid];
  5. $readdb[$key] = viewread($read,$start_limit++);
  6. $db_menuinit .= ",td_read_".$read[pid].":menu_read_".$read[pid]."";
  7. }
复制代码
改成
  1. $start_limit = ($page - 1) * $db_readperpage;
  2. $start_limit1 = 0;
  3. foreach ($readdb as $key => $read) {
  4. isset($bandb[$read[authorid]]) && $read[groupid] = 6;
  5. $authorids[]= $read[authorid];
  6. $readdb[$key] = viewread($read,$start_limit1);
  7. $start_limit1 = $count - $start_limit -1;
  8. $start_limit++;
  9. $db_menuinit .= ",td_read_".$read[pid].":menu_read_".$read[pid]."";
  10. }
复制代码
出售国内或美国高性能虚拟空间,高速VPS以及服务器! 同时承接各种类型的网站制作,网站维护,支付宝交易安全放心!    联系QQ:6102031
懒得打字嘛,点击右侧快捷回复
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

网站公告上一条 /2 下一条

GMT+8, 2024-4-29 03:26 , Processed in 0.109375 second(s), 24 queries , Gzip On.

© 2006-2022 Powered by Discuz! X3.4

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