AL8 Forum
   µn¿ýµù¥UÀ°§U


¼ÐÃD: [D4.0] Discuz 4.0 ¸É¤B (¤£Â_§ó·s)
 alan888
 0000001
Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9

ÀY»Î: Administrator

¦Û­z: skywalker

©«¤l: 21869

ºëµØ: 195

¿n¤À: 557995 ÂI

²{ª÷: 78355948 ¤¸

¦s´Ú: 144392954 ¤¸

¾\ŪÅv­­: 120

µù¥U: 2003-11-13

¨Ó¦Û: Hong Kong

ª¬ºA: Â÷½u
  ¤j ¤¤ ¤p
µoªí©ó 2005-12-16 21:00  ¸ê®Æ  ­Ó¤HªÅ¶¡  ¥D­¶ µu®ø®§  ¥[¬°¦n¤Í 
Discuz 4.0 ¸É¤B (¤£Â_§ó·s)

Discuz 4.0 ¸É¤B (patch 20051216)

¥»¸É¤B¾A¥Î©óDiscuz! 3.0F¤Î4.0.0RC2¥H«áªº©Ò¦³ª©¥»
½Ð°È¥²¤Î®É¨Ï¥Î¦¹¸É¤B¡A¥H§K¼vÅT±zªº¨Ï¥Î

¦pªG¤¹³\bugfix_20051216.php¥X²{¶Ã½X¡A»¡©ú±z¨S¦³¦w¸ËZend Optimizer,½Ð¦w¸Ë«á¦A¹B¦æ¥»¸É¤Bµ{§Ç¡C

¨Ï¥Î¤èªk¡G
1. ±N bugfix_20051216.php ¡B discuz_version.php ¡B admin/database.inc.php ¤T­Ó¤å¥ó«ö¥Ø¿ý¤À§O¤W¶Ç¨ìªA°È¾¹½×¾Â¥Ø¿ý¤U
2. ¦bÂsÄý¾¹¹B¦æ bugfix_20051216.php¡A¨Ò¦p http://www.discuz.net/bugfix_20051216.php¡AÀ³·í´£¥Ü¡u20051216¤w¦¨¥\¥´¸É¤B¡C½Ð¨ê·s¥»­¶­±¥HÀËÅç¬O§_¦¨¥\¡C¡v
¥Ñ©ó bugfix_20051216.php ¬O¥[±KµLªkÁc¤Æ, §¹¦¨«á­n¿ï gb2312 ½sº¿¤~¯à¥¿±`Åã¥Ü
3. F5 ¨ê·s¹B¦æªº­¶­±¡A¥¿±`±¡ªp¤U¨ê·s«áÀ³·í´£¥Ü¡u±z¤§«e¤w¸g¦¨¥\¥´¹L¦¹¸É¤B¡AµL»Ý¦A¦¸¨ê·s¡A½Ð§R°£¥»µ{§Ç(bugfix_20051216.php)¡v
4. §R°£ªA°È¾¹¤Wªºbugfix_20051216.php¡A¦ý¤´µM«O¯ddiscuz_version.php¤£§R°£
5. ¦¨¥\

­×¥¿¦Cªí¡G
­×¥¿¤F«á¥x¼Æ¾Ú®w³Æ¥÷µLªk³Æ¥÷¼s§iªí¡B­q³æªíªº°ÝÃD
­×¥¿¤F«á¥x¤@¨Ç³]¸mÅܶqµLªk³Æ¥÷«áµLªk«O¦sªº°ÝÃD



 ªþ¥ó: ±z©Ò¦bªº¥Î¤á²ÕµLªk¤U¸ü©Î¬d¬Ýªþ¥ó



 AL8 Forum © All rights reserved.
³»³¡
 bencwk
 0000170
Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7

ÀY»Î: Moderator

©«¤l: 2472

ºëµØ: 55

¿n¤À: 43910 ÂI

²{ª÷: 5 ¤¸

¦s´Ú: 83044 ¤¸

¾\ŪÅv­­: 100

µù¥U: 2004-1-20

ª¬ºA: Â÷½u
  ¤j ¤¤ ¤p
µoªí©ó 2005-12-18 14:35  ¸ê®Æ  ­Ó¤HªÅ¶¡  ¥D­¶ µu®ø®§  ¥[¬°¦n¤Í 
12¤ë16¤éDiscuz!4.0.0¸É¤BµLZENDª©¥»

12¤ë16¤éDiscuz!4.0.0¸É¤BµLZENDª©¥»
µ£ªêµo¥¬

¦pªG§AªºªÅ¶¡¤£¤ä´©ZEND¥i¥H¤U¸üªþ¥ó¡AµM«á¸ÑÀ£§âùØ­±ªºÀÉÂл\¦øªA¾¹¤Wªº­ì¤å¥ó¡A§¹¦¨¸É¤B

­×¥¿¦Cªí¡G
­×¥¿¤F«á»O¸ê®Æ®w³Æ¥÷µLªk³Æ¥÷¼s§iªí¡B­q³æªíªº°ÝÃD
­×¥¿¤F«á»O¤@¨Ç³]¸mÅܼƵLªk³Æ¥÷«áµLªk«O¦sªº°ÝÃD



 ªþ¥ó: ±z©Ò¦bªº¥Î¤á²ÕµLªk¤U¸ü©Î¬d¬Ýªþ¥ó




GTA SAºô: gta-sa.04gd.com
°Q½×°Ï: bbs.04gd.com / bbs2.04gd.com
 AL8 Forum © All rights reserved.
³»³¡
 Poka
 0000379
Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9

ÀY»Î: Administrator

©«¤l: 6214

ºëµØ: 6

¿n¤À: 38095 ÂI

²{ª÷: 4793 ¤¸

¦s´Ú: 1493911 ¤¸

¾\ŪÅv­­: 120

µù¥U: 2003-11-30

ª¬ºA: Â÷½u
  ¤j ¤¤ ¤p
µoªí©ó 2006-1-3 12:43  ¸ê®Æ  ­Ó¤HªÅ¶¡  µu®ø®§  ¥[¬°¦n¤Í 
20060102¸É¤B

Âà¸ü¦Û:
http://forum.discuz.com/viewthread.php?tid=216298

¾A¥Î©óDiscuz! 4.0.0¥¿¦¡ª© ¨ä¥Lª©¥»¥Î¤á½Ð¤Å¨Ï¥Î¦¹¸É¤B

½Ð°È¥²¤Î®É¨Ï¥Î¦¹¸É¤B¡A¥H§K¼vÅT±zªº¨Ï¥Î

¨Ï¥Î¤èªk¡G
1. ±N admin/members.inc.php ¤W¶Ç¨ìªA°È¾¹½×¾Â¥Ø¿ý¤Uªº ./admin/ ¤¤
2. ±N discuz_version.php ¤W¶Ç¨ìªA°È¾¹½×¾Â¥Ø¿ý¤U
3. §¹¦¨

¦p±z¼È®ÉµLªk¤É¯Å¨ìDiscuz! 4.0.0¥¿¦¡ª©¡A½Ð«ö·Ó¥H¤U¾Þ§@¡A¦P¼Ë¥i¥H§K¨ü¼vÅT¡G
1. ¦bºÞ²z²Õ³]¸m¤¤Ãö³¬ª©¥D¡B¶W¯Åª©¥Dªº¸T¤î¥Î¤áÅv­­
2. §¹¦¨

­×¥¿¦Cªí¡G
1. ­×¥¿¤F«á¥xª©¥D¸T¤î¥Î¤áªºÅv­­´£¤É°ÝÃD(¦w¥þ°ÝÃD)
2. ­×¥¿¤F«á¥xª©¥D¸T¤î¥Î¤áªº¹L´Á®É¶¡¬°¥Ã¤[ªº²{¹ê°ÝÃD

©x¤èºô¯¸¤U¸ü:
http://download.discuz.net/patch/20060102.zip



 ªþ¥ó: ±z©Ò¦bªº¥Î¤á²ÕµLªk¤U¸ü©Î¬d¬Ýªþ¥ó



 AL8 Forum © All rights reserved.
³»³¡
 Poka
 0000379
Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9

ÀY»Î: Administrator

©«¤l: 6214

ºëµØ: 6

¿n¤À: 38095 ÂI

²{ª÷: 4793 ¤¸

¦s´Ú: 1493911 ¤¸

¾\ŪÅv­­: 120

µù¥U: 2003-11-30

ª¬ºA: Â÷½u
  ¤j ¤¤ ¤p
µoªí©ó 2006-2-8 12:26  ¸ê®Æ  ­Ó¤HªÅ¶¡  µu®ø®§  ¥[¬°¦n¤Í 
«Dªk¨Ï¥Î [hide] ªº¼È®É¸Ñ¨M¿ìªk

­×§ï post.php, §ä
if(empty($bbcodeoff) && !$allowhidecode && preg_match("/\[hide=?\d*\].+?\[\/hide\]/is", preg_replace("/(\[code\].*\[\/code\])/is", '', $message))) {
        showmessage('post_hide_nopermission');
}

§ó´«¬°
if(empty($bbcodeoff) && !$allowhidecode &&  preg_match("/\[hide=?\d*\].+?\[\/hide\]/is", $message)) {
        showmessage('post_hide_nopermission');
}




 AL8 Forum © All rights reserved.
³»³¡
 Poka
 0000379
Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9

ÀY»Î: Administrator

©«¤l: 6214

ºëµØ: 6

¿n¤À: 38095 ÂI

²{ª÷: 4793 ¤¸

¦s´Ú: 1493911 ¤¸

¾\ŪÅv­­: 120

µù¥U: 2003-11-30

ª¬ºA: Â÷½u
  ¤j ¤¤ ¤p
µoªí©ó 2006-2-15 12:36  ¸ê®Æ  ­Ó¤HªÅ¶¡  µu®ø®§  ¥[¬°¦n¤Í 
«D©x¤èµo§Gªº "Discuz! 4.0.0 ¥¿¦¡ª© Bug¤Î¸Ñ¨M¿ìªk"

Âà¸ü¦Û: 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§}¡Ghttp://www.discuz.net/viewthread.php?tid=222990
±¡ªp´y­z¡G¨Ï¥Î¤zÂZ½XªºªO¶ô[§@ªÌ­ì³Ð]¡A¤zÂZ½X¤£°_§@¥Î¡C¥u­n¬O¥[¹L¤Àªº©«¤l¡A¥u­nÂ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§}¡Ghttp://www.discuz.net/viewthread.php?tid=232791
±¡ªp´y­z¡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§}¡Ghttp://www.discuz.net/viewthread.php?tid=225563
±¡ªp´y­z¡G"¤µ¤éµo¶K"¤£·Ç½T¡C
¸Ñ¨M¿ìªk¡G
QUOTE:
§@ªÌ: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

§ä¨ì
if($categories) {

¤W­±²K¥[
//0:00®É°õ¦æ¦¹¦¸§ó·s
if($lastposttime < $todaypostcheck  && $todayposttemp != 0){
                $db->query("UPDATE {$tablepre}forums SET todayposts=0 ");//§ó·s¤µ¤éµo¶K
        }
//end

==================================================================================
­ì©«¦a§}¡Ghttp://www.freediscuz.net/dev/viewthread.php?tid=12537
±¡ªp´y­z¡Gµu´Á¸T¤î³X°Ýªº¥Î¤áµLªk¦Û°Ê¸Ñ¸T¡C¤j­P¬Ý¤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§}¡Ghttp://www.discuz.net/viewthread.php?tid=208436
±¡ªp´y­z¡G«á¥xªº¬É­±­·®æ½s¿è¤F«á¡A¦n¹³¨S¦³§ó·s½w¦s¡C
¸Ñ¨M¿ìªk¡G
¦bstyles.inc.php¤¤¬ÛÃö¦ì¸m¥[¤J¬õ¦â¦rÅé
QUOTE:
                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§}¡Ghttp://www.discuz.net/viewthread.php?tid=234683
±¡ªp´y­z¡G
¡u²Î­p¡v¡Ð¡uºÞ²z¹Î¶¤¡v¤¤¡A·í¦³¤À°Ïª©¥D®É¡AÂI³o­Ó¤À°Ïª©¥D©ÒÁÒªº¤À°ÏÃì±µ·|¥X²{¡G
QUOTE:
«ü©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§}¡Ghttp://www.discuz.net/viewthread.php?tid=234683
±¡ªp´y­z¡G±Ò¥Î±j¨î¿é¤J²z¥Ñ¡A¦b¨ä¥LºÞ²z¥\¯à¥²©w­n¿é¤J­ì¦]¡A¦ýµû¤À®É´N¥i¤£¿é¤J²z¥Ñ¡C
¸Ñ¨M¿ìªk¡G
­×§ï  misc.php
¬d§ä
$rate = $ratetimes = 0;

´À´«¬°
require_once DISCUZ_ROOT.'./include/misc.func.php';
                checkreasonpm();
                $rate = $ratetimes = 0;

==================================================================================
­ì©«¦a§}¡Ghttp://www.discuz.net/viewthread.php?tid=227761
±¡ªp´y­z¡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§}¡Ghttp://www.discuz.net/viewthread.php?tid=227166
±¡ªp´y­z¡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§}¡Ghttp://www.freediscuz.net/dev/viewthread.php?tid=12578
±¡ªp´y­z¡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§}¡Ghttp://www.freediscuz.net/dev/viewthread.php?tid=12643
±¡ªp´y­z¡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§}¡Ghttp://www.discuz.net/viewthread.php?tid=233722
±¡ªp´y­z¡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¿è ]




 AL8 Forum © All rights reserved.
³»³¡
 alan888
 0000001
Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9

ÀY»Î: Administrator

¦Û­z: skywalker

©«¤l: 21869

ºëµØ: 195

¿n¤À: 557995 ÂI

²{ª÷: 78355948 ¤¸

¦s´Ú: 144392954 ¤¸

¾\ŪÅv­­: 120

µù¥U: 2003-11-13

¨Ó¦Û: Hong Kong

ª¬ºA: Â÷½u
  ¤j ¤¤ ¤p
µoªí©ó 2006-2-17 12:35  ¸ê®Æ  ­Ó¤HªÅ¶¡  ¥D­¶ µu®ø®§  ¥[¬°¦n¤Í 
¤wµn¤J®É¨Ï¥Î "¿ò¥¢±K½X" ®É¶ñ¤W¥ô¦ó¤@­Ó email §}§¡¥i¦¨¥\µo¥X

¨ä¹ê¦n²³æªº°ÝÃD¤]¥i¥H»¡¤@­Ó¤p bug ¦ý¤£¦s¦b¥ô¦ó¦w¥þ©Êªº°ÝÃD

1. ¥ý­n¤F¸Ñ discuz µ²ºc, ¦b§A login ¶}©l $email ´N¬O§Aµn°Oªº email
¦A include/common.inc.php ¥i§ä¨ì
QUOTE:
m.extgroupids, m.regdate, m.email, m.timeoffset,

2. ¦b®Ö¹ï e-mail, ¦pªG§A¥´§Aªº username, ¦A¥´¥ô¦ó email ¨ä¹ê§¡µL®Ä, ¦b®Ö¹ï®É¬O¥Î¦^§A¥»¨­¦b¥»¯¸ªº email, ©Ò¥H¯à³q¹L, ³Ì«á¨º email ³£¬Oµo¦^§Aªº«H½c¤º

¸Ñ¨M¿ìªk
1. lostpasswd ¼ÒªO
§ä
<input type="text" name="email" size="25">

§ó´«¦¨
<input type="text" name="lpemail" size="25">

2. member.php
§ä
$query = $db->query("SELECT uid, username, adminid, email FROM {$tablepre}members WHERE username='$username' AND secques='$secques' AND email='$email'");

§ó´«¦¨
$query = $db->query("SELECT uid, username, adminid, email FROM {$tablepre}members WHERE username='$username' AND secques='$secques' AND email='$lpemail'");


¤S©ÎªÌ¦p¥»¯¸¤@¼Ë­×§ï
member.php
§ä
} elseif($action == 'lostpasswd') {

        $discuz_action = 141;

¦b¤U­±¥[¤W
        if($discuz_uid){
                showmessage(''.$discuz_user.', §A¤wµn¤J, «ç·|§Ñ°O±K½X', NULL, 'HALTED');
        }




 AL8 Forum © All rights reserved.
³»³¡
 Poka
 0000379
Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9

ÀY»Î: Administrator

©«¤l: 6214

ºëµØ: 6

¿n¤À: 38095 ÂI

²{ª÷: 4793 ¤¸

¦s´Ú: 1493911 ¤¸

¾\ŪÅv­­: 120

µù¥U: 2003-11-30

ª¬ºA: Â÷½u
  ¤j ¤¤ ¤p
µoªí©ó 2006-2-28 17:36  ¸ê®Æ  ­Ó¤HªÅ¶¡  µu®ø®§  ¥[¬°¦n¤Í 
[BUG] ·í "Html ¥N码 ¥i¥Î" ®É°µ¦¨ªº¿ù»~ (by: AndyGod)

Âà¸ü¦Û: http://www.freediscuz.net/dev/viewthread.php?tid=12696


¿ù»~»¡©ú: ·í¶}±Ò¤F Html ¥N码 ¥i¥Î ®É, ·|°µ¦¨¶K¤å®É¤£¯à¦Û°Ê´«¦æ, ´N¬O»¡¨C¦æ¤£·|¦Û°Ê¦a¥[¤J <br /> ¡C

¸Ñ¨M¤èªk

¥´¶} discuzcode.func.php
§ä
return $htmlon || $allowhtml ? $message : nl2br(str_replace(array("\t", '   ', '  '), array('        ', '   ', '  '), $message));

§ï¬°
return $htmlon || $allowhtml ? nl2br($message) : nl2br(str_replace(array("\t", '   ', '  '), array('        ', '   ', '  '), $message));

§¹¦¨ ^^




 AL8 Forum © All rights reserved.
³»³¡

Ápô§Ú­Ì - AL8 Forum - ºô­¶ªÅ¶¡¥Ñ I-SERVICES ´£¨Ñ - Archiver - WAP
²M°£ Cookies, ·í«e®É°Ï GMT+8, ²{¦b®É¶¡¬O 2008-11-23 00:03
Processed in 0.029071 second(s), 7 queries , Gzip enabled
Powered by Discuz! 5.5.0  © 2001-2007 Comsenz Inc.