Âà¸ü¦Û: http://forum.discuz.com/viewthread.php?tid=237603
Discuz! 4.0.0 ¥¿¦¡ª© Bug¤Î¸Ñ¨M¿ìªk ·J¶°[³Ì«á§ó·s©ó2006¦~2¤ë14¤é]
¦bFreediscuz!ªº©«¤l¦a§}¡Ghttp://www.freediscuz.net/dev/viewthread.php?tid=12645
¦Û¤v®Ú¾ÚDiscuz!©MFreediscuz!ªº¸Ñµª¡A§â³o¨ÇBUG©M¸Ñ¨M¿ìªk¾ã¨ì¤@°_¨Ó¤F¡C¤£ª¾¹L¥hªº¨âӸɤB¸É¤F¦h¤Ö¡C³¡¤À¤º®e§Ú§ï¦¨Â²Å骺¤F~·í®É¦Û¤v¦¬¶°ªº®ÉÔ¤è«K¬d¾\¡A©Ò¥H§ï¤F
[³Ì«á§ó·s©ó2006¦~2¤ë14¤é]
==================================================================================
ì©«¦a§}¡G
http://www.discuz.net/viewthread.php?tid=222990
±¡ªp´yz¡G¨Ï¥Î¤zÂZ½XªºªO¶ô[§@ªÌì³Ð]¡A¤zÂZ½X¤£°_§@¥Î¡C¥un¬O¥[¹L¤Àªº©«¤l¡A¥unÂIÀ»¥k¤W¤èªº¤p¤â¡A¦A¥X¨Óªº©«¤l¤º®e½Æ»s¥H«á´N¬O¨S¦³¤zÂZ½Xªº¡C
¸Ñ¨M¿ìªk¡G
×§ï: misc.php
¬d§ä
$post['message'] = discuzcode($post['message'], $post['smileyoff'], $post['bbcodeoff'], $post['htmlon'], $forum['allowsmilies'], $forum['allowbbcode'], $forum['allowimgcode'], $forum['allowhtml']);
Åܦ¨
$post['message'] = discuzcode($post['message'], $post['smileyoff'], $post['bbcodeoff'], $post['htmlon'], $forum['allowsmilies'], $forum['allowbbcode'], $forum['allowimgcode'], $forum['allowhtml'], $forum['jammer']);
==================================================================================
ì©«¦a§}¡G
http://www.discuz.net/viewthread.php?tid=232791
±¡ªp´yz¡G·í©«¤º¸ÑªR
[img]http://www.discuz.net/logging.php?action=logout[/img]
³o¬q¥N½X®É¡A³X°Ý©«¤lªº¤H±N·|°h¥Xµn¿ý¡C
¸Ñ¨M¿ìªk¡G
discuzcode.func.php¤º
§ä
str_replace('submit', '',
§ï¬°
str_replace(array('submit','action=logout'),array('', ''),
==================================================================================
ì©«¦a§}¡G
http://www.discuz.net/viewthread.php?tid=225563
±¡ªp´yz¡G"¤µ¤éµo¶K"¤£·Ç½T¡C
¸Ñ¨M¿ìªk¡G
§@ªÌ:muhan
×§ïÃø«×:¤¤
×§ï¤å¥ó:include/common.inc.php, include/forum.fuc.php, include/post.fuc.php, topicadmin.php ,index.php
¤ä«ù½×¾Â:http://www.javawind.com
ºt¥Ü½×¾Â:http://www.javawind.com
ª`:¥u·|¦b¨C¤Ñªº0:00²Ä¤@Ó¥´¶}º¶ªº¤H¤~·|¼W¥[¤@¦¸¼Æ¾Ú®w¬d¸ß
¸Ñ¨Mªº°ÝÃD¦³:
1.·Ç½TÅã¥Ü·í¤Ñ"¤µ¤éµo©«",±q¨C¤Ñªº0:00¶}©l²Îp.
2.¸Ñ¨M§R¶K«á"¤µ¤éµo©«"¤£§ó·sªº±¡ªp.
3.¸Ñ¨M"¤µ¤éµo©«"·|µL²Ö¥[ªº±¡ªp.
²Ä¤@¨B:
×§ïinclude/common.inc.php
§ä¨ì
function payment($amount, $orderid) {
¤W±²K¥[
//±q0:00¶}©l by muhan start
list($thisyear,$thismonth,$thisday) = explode(':',gmdate('Y:m:d',$timestamp + $timeoffset * 3600));
$todaypostcheck = gmmktime(0,0,0,$thismonth,$thisday,$thisyear) - $timeoffset * 3600;
//end
²Ä¤G¨B:
×§ïinclude/forum.fuc.php
§ä¨ì
function forumtodayposts(&$forum) {
$forum['lastpost'] = explode("\t", $forum['lastpost']);
return $forum['todayposts'] = $GLOBALS['timestamp'] - $forum['lastpost'][2] > 86400 ? 0 : $forum['todayposts'];
}
´À´«¦¨:
/*function forumtodayposts(&$forum) {
$forum['lastpost'] = explode("\t", $forum['lastpost']);
return $forum['todayposts'] = $GLOBALS['timestamp'] - $forum['lastpost'][2] > 86400 ? 0 : $forum['todayposts'];
}*/
//Àò±o³Ì«áµo¶K®É¶¡ by muhan
function lastposttime(&$forum) {
return $forum['lastpost'][2];
}
//end
function forumtodayposts(&$forum) {
global $todaypostcheck;
return $forum['todayposts'] = $forum['lastpost'][2] < $todaypostcheck ? 0 : $forum['todayposts']; //Àò±o¤µ¤é¶K¼Æ
}
²Ä¤T¨B:
×§ï¤å¥óinclude/post.fuc.php
§ä¨ì
global $forum, $timestamp, $_DCACHE;
´À´«¦¨:
global $forum, $timestamp, $_DCACHE, $todaypostcheck;
§ä¨ì
if($forum['lastpost'][2] > $timestamp - gmdate('G', $timestamp + $_DCACHE['settings']['timeoffset'] * 3600) * 3600 - gmdate('i', $timestamp + $_DCACHE['settings']['timeoffset'] * 3600) * 60 - gmdate('s', $timestamp + $_DCACHE['settings']['timeoffset'] * 3600) * 1) {
´À´«¦¨
//if($forum['lastpost'][2] > $timestamp - gmdate('G', $timestamp + $_DCACHE['settings']['timeoffset'] * 3600) * 3600 - gmdate('i', $timestamp + $_DCACHE['settings']['timeoffset'] * 3600) * 60 - gmdate('s', $timestamp + $_DCACHE['settings']['timeoffset'] * 3600) * 1) {
if($forum['lastpost'][2] > $todaypostcheck) {//¤µ¤éµo¶K±q0:00¶}©l by muhan
²Ä¥|¨B:
×§ï¤å¥ótopicadmin.php
§ä¨ì²Ä¤@Ó:
if($post['dateline'] < $losslessdel) {
$uidarray[] = $post['authorid'];
}
«á±²K¥[:
elseif($post['dateline'] > $todaypostcheck){
$db->query("UPDATE {$tablepre}forums SET todayposts=todayposts-1 WHERE fid=$fid");//§ó·s¤µ¤éµo¶K
}
²Ä¤¨B:
×§ïindex.php
§ä¨ì
$threads = $posts = $todayposts = 0;
´«¦æ²K¥[
$lastposttime = $todayposttemp = 0;//³Ì«á¤@¶K®É¶¡Åܶq by muhan
§ä¨ì
if($forum['type'] != 'group') {
$threads += $forum['threads'];
$posts += $forum['posts'];
´«¦æ²K¥[
$todayposttemp += $forum['todayposts'];//½T©w¬O§_Âk¹s
$forum['lastpost'] = explode("\t", $forum['lastpost']); //by muhan
$lastposttime = lastposttime($forum) > $lastposttime ? lastposttime($forum) : $lastposttime;//Àò±o¥þ½×¾Â³Ì«á¤@¶Kªºµo§G®É¶¡ bymuhan
§ä¨ì
¤W±²K¥[
//0:00®É°õ¦æ¦¹¦¸§ó·s
if($lastposttime < $todaypostcheck && $todayposttemp != 0){
$db->query("UPDATE {$tablepre}forums SET todayposts=0 ");//§ó·s¤µ¤éµo¶K
}
//end
==================================================================================
ì©«¦a§}¡G
http://www.freediscuz.net/dev/viewthread.php?tid=12537
±¡ªp´yz¡Gµu´Á¸T¤î³X°Ýªº¥Î¤áµLªk¦Û°Ê¸Ñ¸T¡C¤jP¬Ý¤F¤@¤U¸Ñ¸T¹Lµ{¡A¬O¦b mmeber.php¸Ì¡Amember.php?action=groupexpiry ¡A¦ý¸T¤î³X°Ýªº¥Î¤á¦b common.inc.php ´N³QÄdºI¤F¡AµLªk¦Û°Ê¸Ñ¸T¡C
¸Ñ¨M¿ìªk¡G
¦bcommon.inc.php¤¤
§ä
if(isset($allowvisit) && $allowvisit == 0) {
´À´«¬°
if(isset($allowvisit) && $allowvisit == 0 && !(CURSCRIPT == 'member' && $action == 'groupexpiry')) {
==================================================================================
ì©«¦a§}¡G
http://www.discuz.net/viewthread.php?tid=208436
±¡ªp´yz¡G«á¥xªº¬É±·®æ½s¿è¤F«á¡A¦n¹³¨S¦³§ó·s½w¦s¡C
¸Ñ¨M¿ìªk¡G
¦bstyles.inc.php¤¤¬ÛÃö¦ì¸m¥[¤J¬õ¦â¦rÅé
if($newname) {
$db->query("INSERT INTO {$tablepre}styles (name, templateid) VALUES ('$newname', '1')");
$styleidnew = $db->insert_id();
foreach($predefinedvars as $variable) {
$db->query("INSERT INTO {$tablepre}stylevars (styleid, variable)
VALUES ('$styleidnew', '$variable')");
}
}
updatecache('styles');
updatecache('settings');
cpmsg('styles_edit_succeed', 'admincp.php?action=styles');
} elseif(submitcheck('importsubmit')) {
==================================================================================
ì©«¦a§}¡G
http://www.discuz.net/viewthread.php?tid=234683
±¡ªp´yz¡G
¡u²Îp¡v¡Ð¡uºÞ²z¹Î¶¤¡v¤¤¡A·í¦³¤À°Ïª©¥D®É¡AÂI³oÓ¤À°Ïª©¥D©ÒÁÒªº¤À°ÏÃì±µ·|¥X²{¡G
«ü©wªº½×¾Â¤£¦s¦b¡A½Ðªð¦^¡C
[ ÂIÀ»³o¸Ìªð¦^¤W¤@¶ ]
¸Ñ¨M¿ìªk¡G
¤èªk¤@
×§ï: stats_team.htm
¬d§ä
<a href="forumdisplay.php?fid=$fid">
´À´«¬°
<!--{if $forum[type] == 'group'}--><a href="index.php?gid=$fid"><!--{else}--><a href="forumdisplay.php?fid=$fid"><!--{/if}-->
§¹¦¨
¤èªk¤G
×§ï: Forumdisplay.php
¬d§ä
if(!$forum['fid'] || $forum['type'] == 'group') {
´À´«¬°
if(!$forum['fid']) {
showmessage('forum_nonexistence', NULL, 'HALTED');
} elseif($forum['type'] == 'group') {
header("Location: {$boardurl}index.php?gid=$fid&sid=$sid");
}
==================================================================================
ì©«¦a§}¡G
http://www.discuz.net/viewthread.php?tid=234683
±¡ªp´yz¡G±Ò¥Î±j¨î¿é¤J²z¥Ñ¡A¦b¨ä¥LºÞ²z¥\¯à¥²©wn¿é¤Jì¦]¡A¦ýµû¤À®É´N¥i¤£¿é¤J²z¥Ñ¡C
¸Ñ¨M¿ìªk¡G
×§ï misc.php
¬d§ä
´À´«¬°
require_once DISCUZ_ROOT.'./include/misc.func.php';
checkreasonpm();
$rate = $ratetimes = 0;
==================================================================================
ì©«¦a§}¡G
http://www.discuz.net/viewthread.php?tid=227761
±¡ªp´yz¡G³ø§i©«¤l¥\¯à¤ÖBUG
¸Ñ¨M¿ìªk¡G
¥´¶} misc.php
§ä
showmessage('thread_report_disabled');
§ï
showmessage('thread_report_disable');
¥t¥~°e¦h¤@Ó HACK µ¹¤j®a
³oÓ HACK ¬O¥Î¨Ó¨¾¤î·|û³ø§i®É¤£¥´¤W "¨ã«O²z¥Ñ©Î¹ê¨ÒÁ|ÃÒ"
¥´¶} misc.php §ä
$posturl = "{$boardurl}viewthread.php?tid=$tid".($page || $pid ? "&page=$page#pid$pid" : NULL);
¦b¥¦¤W±¥[¤J
if(empty($reason) || strlen($reason) < 8) {
showmessage('½Ð¸Ô²Ó´£¨Ñ±zªºÁ|³ø²z¥Ñ©Î¹ê¨ÒÁ|©º¡AÁÂÁ¡C½Ð½Ðªð¦^¡C');
}
==================================================================================
ì©«¦a§}¡G
http://www.discuz.net/viewthread.php?tid=227166
±¡ªp´yz¡G¦³Ó ¥Î¤á²Õ n 3000 - 6000 ¤À¡Aè¦n³o ·|û test ªº¿n¤Àè¦b¬O 3000 ®É¡A·íª©¥D©Î¶W¯Åª©¥D ½s¿è¥Î¤á test
¨Ï¥Î [¸T¤îµo¨¥] ©Î [¸T¤î³X°Ý] «á¡A¦A¸Ñ¸T test ¦^¥¿±`·|û ( [µL] )¡C³o®É test ·|ûªº¥Î¤á²Õ´N·|Åܦ¨ªÅ¥Õ¡C
¸Ñ¨M¿ìªk¡G
¥´¶} admin/members.inc.php
$query = $db->query("SELECT groupid FROM {$tablepre}usergroups WHERE type='member' AND creditshigher<'$member[credits]' AND creditslower>'$member[credits]'");
§ï¬°
$query = $db->query("SELECT groupid FROM {$tablepre}usergroups WHERE type='member' AND creditshigher<='$member[credits]' AND creditslower>'$member[credits]' LIMIT 1");
==================================================================================
ì©«¦a§}¡G
http://www.freediscuz.net/dev/viewthread.php?tid=12578
±¡ªp´yz¡G¤TÓÀɦ³ charset ¿ù»~¡C
¸Ñ¨M¿ìªk¡G
±N¥H¤U¤å¥ó¤¤¡G
\templates\default\pm_archive_html.htm
\templates\default\post_smilies.htm
\templates\default\viewthread_printable.htm
<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}">
»y¥y¤¤ªº
§ï¬°
==================================================================================
ì©«¦a§}¡G
http://www.freediscuz.net/dev/viewthread.php?tid=12643
±¡ªp´yz¡G²¾°Ê¥DÃD¥i¥H²¾°Ê¦^ì¨Óªº½×¾Â(®ö¶O SQL)¡C³oÓ BUG ¥Ñ D1 - D4 ¤]¤@ª½¥X²{, ¨C¦¸¤]¦³¤H´£, ¦ý©x¤è¦n¹³ÁÙ¬Oª¾ªº...~
¸Ñ¨M¿ìªk¡G
¥´¶} topicadmin.php
§ä
} elseif($operation == 'move') {
¦b¤U¦æ¥[¤J
if($moveto == $fid) {
showmessage('admin_move_invalid');
}
# §¹ ^^
==================================================================================
ì©«¦a§}¡G
http://www.discuz.net/viewthread.php?tid=233722
±¡ªp´yz¡G¦hµ¡¤f¨ê·s¨Ï¦b½u®É¶¡Ãz¼WªºBUG
¸Ñ¨M¿ìªk¡G
include/global.func.php
$db->query("UPDATE {$tablepre}onlinetime SET total=total+'$oltimespan', thismonth=".(gmdate('Yn', $timestamp) == gmdate('Yn', $lastactivity) ? 'thismonth' : 0)."+'$oltimespan' WHERE uid='$discuz_uid'");
§ï¬°
$db->query("UPDATE {$tablepre}onlinetime SET total=total+'$oltimespan', thismonth=".(gmdate('Yn', $timestamp) == gmdate('Yn', $lastactivity) ? 'thismonth' : 0)."+'$oltimespan', lastupdate='$timestamp' WHERE uid='$discuz_uid' AND lastupdate<=".($timestamp - $oltimespan*60), 'UNBUFFERED');
$db->query("REPLACE INTO {$tablepre}onlinetime (uid, thismonth, total)
VALUES ('$discuz_uid', '$oltimespan', '$oltimespan')");
§ï¬°
$db->query("INSERT INTO {$tablepre}onlinetime (uid, thismonth, total, lastupdate)
VALUES ('$discuz_uid', '$oltimespan', '$oltimespan', '$timestamp')", 'SILENT');
§¹¦¨
[
¥»©«³Ì«á¥Ñ Poka ©ó 2006-2-15 13:44 ½s¿è ]