列印

Discuz! 2.5 SP1 0401 以後 bug 修正 (最近 08-09 )

Discuz! 2.5 SP1 0401 以後 bug 修正 (最近 08-09 )

2005-3-15 by funcn
帖子作者在線狀態隱身顯示在線

打開 viewthread.php

找到:
複製內容到剪貼簿
代碼:
, m.regdate
後面添加:
複製內容到剪貼簿
代碼:
, m.invisible
打開 模板 /viewthread.htm

找到:
複製內容到剪貼簿
代碼:
<!--{if $timestamp - $post['lastactivity'] <= 10800}-->
改為:
複製內容到剪貼簿
代碼:
<!--{if $timestamp - $post['lastactivity'] <= 10800 && !$post['invisible']}-->
--------------------

2005-4-14  by milo
attachment.php 筆誤:

打開 attachment.php

找到:
複製內容到剪貼簿
代碼:
if ($attachsoftdownload && $checkid != substr(md5($attach['filesize']),0,5)){
        showimgmessage('attachment_referer_invalid');
};
改為:
複製內容到剪貼簿
代碼:
if ($attachsoftdownload && $checkid != substr(md5($attach['filesize']),0,5)){
        showimgmessage('attachment_referer_invalid');
}
--------------------

2005-5-27 by 童虎
自定義頭像出現安全漏洞

打開 memcp.php

找到:
複製內容到剪貼簿
代碼:
$db->query("UPDATE $table_members SET avatar='$avatarnew', avatarwidth='$avatarwidthnew', avatarheight='$avatarheightnew' WHERE uid='$discuz_uid'");
改為:
複製內容到剪貼簿
代碼:
$db->query("UPDATE $table_members SET avatar='".dhtmlspecialchars($avatarnew)."', avatarwidth='$avatarwidthnew', avatarheight='$avatarheightnew' WHERE uid='$discuz_uid'");
--------------------

2005-6-4 by cnteacher
安裝論壇密碼含特殊字元導致提示密碼不正確

打開 install.php:

找到:
複製內容到剪貼簿
代碼:
$configfile = preg_replace("/[$]dbpw\s*\=\s*[\"'].*?[\"']/is", "\$dbpw = '$dbpw'", $configfile);
改為:
複製內容到剪貼簿
代碼:
$configfile = preg_replace("/[$]dbpw\s*\=\s*[\"'].*?[\"']/is", "\$dbpw = '".preg_quote ($dbpw, "/")."'", $configfile);
--------------------

2005-6-10 by Polo!
論壇板塊提前顯示公告問題

打開 include/cache.php

找到:
複製內容到剪貼簿
代碼:
$cols = " id, author, posturl, subject,starttime";
改為:
複製內容到剪貼簿
代碼:
$cols = " id, author, posturl, subject,starttime, endtime";
更新緩存



打開 forumdisplay.php

找到:(注意,8 個空格是一個製表符)
複製內容到剪貼簿
代碼:
        foreach($_DCACHE['announcements_forum'] as $ann) {
                $ann['authorencode'] = rawurlencode($ann['author']);
                $ann['starttime'] = gmdate("$dateformat $timeformat", $ann['starttime'] + ($timeoffset * 3600));
                $announcement_list[] = $ann ;
        }
改為:
複製內容到剪貼簿
代碼:
        foreach($_DCACHE['announcements_forum'] as $ann) {
                if($timestamp >= $ann['starttime'] && ($timestamp <= $ann['endtime'] || !$ann['endtime'])) {
                        $ann['authorencode'] = rawurlencode($ann['author']);
                        $ann['starttime'] = gmdate("$dateformat $timeformat", $ann['starttime'] + ($timeoffset * 3600));
                        $announcement_list[] = $ann ;
                }
        }
--------------------

2005-6-15 by cnteacher
後台設置管理模組受用戶組限制問題

打開 admin/groups.php

找到:
複製內容到剪貼簿
代碼:
admingid=$group[admingid]
改為:
複製內容到剪貼簿
代碼:
agid=$group[admingid]
找到:
複製內容到剪貼簿
代碼:
admingid='$admingid'
改為:
複製內容到剪貼簿
代碼:
admingid='$agid'
--------------------

2005-6-17 by Eiffel
非法利用「引用」

打開 模板 /viewthread.htm

找到:
複製內容到剪貼簿
代碼:
<!--{if !$thread['closed'] || $ismoderator}-->&nbsp;<a href="post.php?action=reply&fid=$fid&tid=$tid&repquote=$post[pid]"><img src="{IMGDIR}/quote.gif" border="0" alt="{lang reply_quote}"></a><!--{/if}-->
改為:
複製內容到剪貼簿
代碼:
<!--{if (!$thread['closed'] || $ismoderator) && $allowpostreply}-->&nbsp;<a href="post.php?action=reply&fid=$fid&tid=$tid&repquote=$post[pid]"><img src="{IMGDIR}/quote.gif" border="0" alt="{lang reply_quote}"></a><!--{/if}-->
--------------------

2005-7-21 by liuqiang
會員可任意刪除自己的短消息

打開 pm.php

找到:
複製內容到剪貼簿
代碼:
} elseif($action == 'delete') {
下面添加:
複製內容到剪貼簿
代碼:
if(!in_array($folder, array('inbox', 'outbox', 'track'))) showmessage('undefined_action');
找到:
複製內容到剪貼簿
代碼:
$checkadd = $folder == 'track' ? " AND new='1'" : '';
改為:
複製內容到剪貼簿
代碼:
$checkadd = $folder == 'track' ? " AND folder='inbox' AND new='1'" : " AND folder='$folder'";
--------------------

2005-7-6 by cnteacher
好友列表能看見隱身會員

打開 memcp.php

找到:
複製內容到剪貼簿
代碼:
if($buddy['onlineuser'] && !$buddy['invisible']) {
改成:
複製內容到剪貼簿
代碼:
if($buddy['onlineuser'] && ($adminid == 1 || !$buddy[invisible])) {
--------------------

2005-8-4 by pk0909
分割主題出現錯誤

打開 include/post.php

找到:
複製內容到剪貼簿
代碼:
global $db, $table_threads, $table_posts;
改成:
複製內容到剪貼簿
代碼:
global $db, $table_threads, $table_posts, $table_polls;
--------------------

2005-8-9 by xlp
公告超過 10 條無法翻頁

打開 announcement.php

找到:
複製內容到剪貼簿
代碼:
$query = $db->query("SELECT id, starttime, endtime FROM $table_announcements ");
改成:
複製內容到剪貼簿
代碼:
$query = $db->query("SELECT id, starttime, endtime FROM $table_announcements ORDER BY starttime DESC, id DESC");
--------------------

不斷收集中修正ing

[ Last edited by 納米 on 2005-8-9 at 10:25 PM ]
Hack 安裝錯誤, 80% 來自粗心, 請專心安裝
Linux0911 打造您的個性論壇

本人現在忙於研究所, 沒多的時間管論壇, 有問題別發 pm 給我, 謝謝~
Linux0911 Forum © 2004-2009 All Rights Reserved.

TOP



論壇聲明
  • 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
    如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
    請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!
最佳瀏覽解析度:不低於 1024 (最佳 1280 以上).(支援 IE 7, Mozilla Firefox, Safari, Chrome)
The Best Surfing Resolution: No Lower than 1024 (Best: above 1280).(IE 7, Mozilla Firefox, Safari, Chrome Supported)