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}--> <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}--> <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 ]