KDBoard Bugǿܼ¼
--------------------------------------------------------------------

//2002.3.19-------cp.php changerankforѭ޸Ϊ
         $username=trim($moderators[$i]);
         $hisrank=getdbdata("users","username='$username'","rankid");
         if($hisrank<98){
            mysql_query("update ".$prefix."users set ranks='$admin[moderator]',rankid='98' where username='$moderators[$i]'");
         }

//2002.3.20------------member.php յ
line 73  $birthyear=trim($birhtyear); Ϊ$birthyear+=0;
line 76 if($birthyear>date("Y",$time())){  Ϊ if($birthyear>date("Y",$nowtime)){
line 82 if(!checkdate($birthyear,$birthmonth,$birthday)){  Ϊif(!checkdate($birthmonth,$birthday,$birthyear)){ 

//2002.3.20---------viewthread.php עʱʾ
line 176  $author=getdbdata("users","username='$post[author]'");
line 174 $regtime=gmdate($userinfo[dateformat]." ".$userinfo[timeformat],($userinfo[regtime]+$userinfo[shica]*3600));
ַ174е$userinfo[regtime]Ϊ$author[regtime]

//2002.3.20------------------usercp.php  յ
l.76  if(trim($birthyear)!=$userinfo[birthyear]){   -------->if($birthyear!=$userinfo[birthyear]){
l.77  $birthyear=trim($birhtyear);----------->$birthyear+=0;
l.80  if($birthyear>date("Y",$time())){ ----------------->if($birthyear>date("Y",$nowtime)){
l.98  if(!checkdate($birthyear,$birthmonth,$birthday)){  ------------>if(!checkdate($birthmonth,$birthday,$birthyear)){ 

//2002.3.20-------------------viewthread.php οͶƱ
57    if($votethis){  ---------->if($votethis && is_kdbuser($kdbuser,$kdbpswd)){
58    if(is_in(",".$kdbuser,$vote[voteduser])){ ---------->if(is_in($kdbuser,$vote[voteduser])){ 
81.   } --------------->}elseif($votethis){my_error($lang[nopowers]);exit;}

//2002.3.22---------------------cp.php
177,178   $query=implode(",",$querytmp);
                  mysql_query("update ".$prefix."forum set ".$query." where forumid='$forumid'");
	  ---------------->
              if(count($querytmp)>1) $query=implode(",",$querytmp);
              else $query= $querytmp[0];
              if($query != '') mysql_query("update ".$prefix."forum set ".$query." where forumid='$forumid'");

//2002.3.23---------------------kdb.style
<select name=postrank>
<option value=0 $rankpost[0]>$lang[anyone]</option>
$viewranklist
</select></td>
------------------------>
<select name=postrank>
<option value=0 $rankpost[0]>$lang[anyone]</option>
$postranklist
</select></td>

//2002.3.24
ʽʹ֮һӦ仯
ˢͼꡣ
鿴ʱԱͰIPһʾΪ*
Ƶᡱ

//2002.3.25
ҳʱ
ˮѡ
        ηʱӱ⣬ݳ
ͳѡ
        Ƿʾҳʱ
˶Ϣ֪ͨʹûѡʱ򿪻ȡ
ϴ޸ʱ3.24֮ļupgrade.php, Ȼ󵽿ѡָģ弴

//2002.3.27
ûע˸ҳԵַУ
member.php101кУ
$comefrom=htmlspecialchars($comefrom);
$homepage=htmlspecialchars($homepage);
------------------------------------------------------------------
usercp.php
ԭ63к$homepage=htmlspecialchars($homepage);
ԭ72к$comefrom=htmlspecialchars($comefrom);

post.php173ĩβtitle='$title' where threadid='$threadid'");
Ϊtitle='$title' where threadid='$post[threadid]'");

//2002.3.28
ȫûע͸ݴ飬ΥַעϢΣ

//2002.3.29
Ż˶
Զˢ

//2002.4.7
1.1.0, ٶнϴ.
ŻԶͷ
ģ뷽ʽŻ, ˴ݿѯ
жѯŻ
ˢfunction.php, ɾ˴ǹ

//2002.4.15
ʱ©ͶƱ
viewthread.php
line118--->eval("\$index=\"".templates("index")."\";");Ϊ
eval("\$index=\"$nowtemplates[index]\";");
line119-------->eval("\$viewthread_vote_result=\"".templates("viewthread_vote_result")."\";");
Ϊ
eval("\$viewthread_vote_result=\"$nowtemplates[viewthread_vote_result]\";");
line 138-------->
eval("\$viewthread_vote=\"".templates("viewthread_vote")."\";");
Ϊ
eval("\$viewthread_vote=\"$nowtemplates[viewthread_vote]\";");

post.php 260кһ
eval("\$post_form_vote=\"$nowtemplates[post_form_vote]\";");
260ǰһ
eval("\$post_form_delete=\"$nowtemplates[post_form_delete]\";");

//2002.4.19
forumdisplay.php
line 110:$nowtemplates[list_sortfield]       ---->
$nowtemplates[forum_threadlist_sortfield]
line 111:$nowtemplates[list_sortorder]      ---------->
$nowtemplates[forum_threadlist_sortorder]

//2002.4.28
ѡͶƱviewthread.php
67-69
for($i=1;$i<=$vote[votenum];$i++){
             if($votethis[$i-1]==$i) $voteresulttmp[$i-1]+=1;
}

for($i=0;$i<count($votethis);$i++){
             $voteresulttmp[$votethis[$i]-1]+=1;
}

Ϣظmessage.php63
eval("\$sendmessageform=\"".templates("sm_form")."\";");
Ϊeval("\$sendmessageform=\"$nowtemplates[sm_form]\";");

URLԶʶ%~
277
$content=eregi_replace("(http://|ftp://)+([-_/a-zA-Z0-9\.]+)([\?&=/0-9a-zA-Z]+)","[url]\\1\\2\\3[/url]",$content);
Ϊ
$content=eregi_replace("(http://|ftp://)+([-_/~a-zA-Z0-9\.]+)([\?\.~%&=/0-9a-zA-Z]+)","[url]\\1\\2\\3[/url]",$content);
327
$content=eregi_replace("(\[url\])(http://|ftp://)([-_/a-zA-Z0-9\.]+)([\?&=/0-9a-zA-Z]+)(\[/url\]+)","<a href=\\2\\3\\4 target=_blank>\\2\\3\\4</a>",$content);
Ϊ
$content=eregi_replace("(\[url\])(http://|ftp://)([-_/~a-zA-Z0-9\.]+)([\?\.~%&=/0-9a-zA-Z]+)(\[/url\]+)","<a href=\\2\\3\\4 target=_blank>\\2\\3\\4</a>",$content);
328
$content=eregi_replace("(\[url\])([-_/~a-zA-Z0-9\.]+)([\?&=/0-9a-zA-Z]+)(\[/url\]+)","<a href=http://\\2\\3 target=_blank>\\2\\3</a>",$content);
Ϊ
$content=eregi_replace("(\[url\])([-_/~a-zA-Z0-9\.]+)([\?\.~%&=/0-9a-zA-Z]+)(\[/url\]+)","<a href=http://\\2\\3 target=_blank>\\2\\3</a>",$content);

//2002.5.6
v1.2.01.1.0ĸĶܣ
ǰڷֵBUG
ʹURLԶʶʶ%,~
ӭûΪ̳ʾ
ƶӹ
ĶⲿֵSQLѯŻ˽1/2Ĳѯڻظٶȸ
Żͬ¼80%Ĳѯ
༭Ϣʾַ
̳ݱݹ
ҳǷûбѡ
ϴܣ
һ
ϴ͵ĸ
ϴС
ڱ༭ʱѡɾˢ¸ϴ
÷ٲſظ
鿴ϴηʺ󷢱
ҳIPַϵͳϢж
ɾӹ
д˲kdbǩ
PHP汾жϣʹKDBPHP4.0ϵĸ汾ϣʹphp.iniregister_globals=Off
------------------------------------------------------------------------------------

//2002.5.10
д棬еBUGʹٶȸ
ܷԵ

//2002.5.15
URLԶʶʱURLĩβпոʱʾ⣬취ǽǵĿոΪһȫǵĿո񣬵֪BIG5ȫǿոǷͬĵȫǿոͬʱҪעfunctions.phpнȫǿոתһ¡
лiamdcһֱİҵ˲ٳϵBUG

//2002.5.25
̳Ѱмж

//2002.5.18 edit by dc
1.޸ textview.php 
2.һЩͼ껻ÿһ.
3.޸ css ģ彫WORD-BREAK:BREAK-ALL; ȥӢıǿȶе

4.޸ı ޸ kdb.style ģ

   usercp_editprofile
   E-mail Ӵ
   <td width="20%" bgcolor="$themes[altcolor1]">$lang[email]</td>
   <td width="60%" bgcolor="$themes[altcolor2]">
   <input type="text" name="email" size="25 Ϊ 40" value="$userinfo[email]"></td>
   </tr>

   register_optional
   ҳ Ӵ
   <tr>
   <td bgcolor="$themes[altcolor1]">$lang[homepage]</td>
   <td bgcolor="$themes[altcolor2]">
   <input type="text" name="homepage" size="25 Ϊ 40" value="$userinfo[homepage]"></td>
   </tr>

   ǩ Ӵ
   <textarea rows="4 Ϊ 6" cols="30 Ϊ 60" name="signature">$userinfo[signature]</textarea></td>
   </tr>

    ༭ģӴ
    cp_addtemplate
    <td bgcolor="$themes[altcolor2]"><textarea wrap="off" name="template"  rows="20" cols="70 Ϊ 100">$template[template]</textarea></td>
    <textarea wrap="off" name="template"  rows="20" cols="70 Ϊ 100">

5.usercp_subscription
   
   <tr align="center bgcolor=$themes[sortbgcolor]>
   Ϊ
   <tr align="center" bgcolor="$themes[sortbgcolor]">
   ⽫ 
   <td width="10%" bgcolor="$themes[altcolor1]"> </td> 
   Ϊ 
   <td width="10%" color="$themes[sortfontcolor]"> </td>

6.ѡĹ
   ޸ģ post_form_title_optional  post_form_title 
   
   <td width="80%" bgcolor="$themes[altcolor2]">
   
   <input type="text" name="title" size="30" value="$post[title]"></td>
    
              <SELECT name="optiontitle">
                <OPTION 
              selected value="">ѡ</OPTION>
                <OPTION value=ԭ>ԭ</OPTION>
                <OPTION value=Ƽ>Ƽ</OPTION>
                <OPTION value=ת>ת</OPTION>
                <OPTION value=ѧ>ѧ</OPTION>
                <OPTION value=֪>֪</OPTION>
                <OPTION value=></OPTION>
                <OPTION value=></OPTION>
                <OPTION value=桿>桿</OPTION>
                <OPTION value=ˮ>ˮ</OPTION>
                <OPTION value=ۡ>ۡ</OPTION>
                <OPTION value=ע⡿>ע⡿</OPTION>
                <OPTION value=顿>顿</OPTION>
                <OPTION value=ܼ>ܼ</OPTION>
                <OPTION value=></OPTION>
                <OPTION value=Ц>Ц</OPTION>
              </SELECT>
    ޸ post.php 131к193е
    $title=my_htmlspecialchars($title);
    Ϊ$title=my_htmlspecialchars($optiontitle).my_htmlspecialchars($title);

7. 61.*.*.* ̨
8.viewthread.php  ͸** ĳ
   213  
   $contact.="<a href=mailfriend.php?userid=$post[userid] target=_blank><img src=images/email.gif border=0 alt=\"$lang[emailto]$authorusername]\"></a>&nbsp;";
   Ϊ
   $contact.="<a href=mailfriend.php?userid=$post[userid] target=_blank><img src=images/email.gif border=0 alt=\"$lang[emailto]$post[username]\"></a>&nbsp;";

9.register_optional
    <input type="text" name="homepage" size="40" value="$userinfo[homepage]"></td>
    Ϊ
    <input type="text" name="homepage" size="40" value="$userinfo[homepage]">&nbsp;&nbsp;http://</td>

10.member.php
     $navigation.=" &raquo; $admin[forumname]$lang[userlist]";
     Ϊ
     $navigation.=" &raquo; $lang[userlist]";

11.û: : : for עû
    index_welcome_user
    <table align="center" width="100%" border="0" cellspacing="0"><tr>
    <td width="60%">$lang[comeback] $userinfo[username],
    <a href="search.php?action=newposts">$lang[viewlastnewposts]</a><br>
    $lang[lastvisit] $lastvisit<br>
    $lang[nowtime] $nowdatetime</td>
    <td align="right" valign="bottom">$lang[members] $totalusers<br>
    $lang[totalthreads] $totalthreads<br>
    $lang[totalposts] $totalposts
    </td>
    </tr></table><br>
    Ϊ
    <table align="center" width="100%" border="0" cellspacing="0"><tr>
    <td width="88%">$lang[comeback] $userinfo[username], 
    <a href="search.php?action=newposts">$lang[viewlastnewposts]</a><br>
    $lang[lastvisit] $lastvisit<br>$lang[nowtime] $nowdatetime</td>
    <td width="7%" align="left">
    $lang[members]:<br>$lang[totalthreads]:<br>$lang[totalposts]:</td>
    <td width="5%" align="right">
    $totalusers<br>$totalthreads<br>$totalposts</td>
    </tr></table><BR>

12.û: : : for ÿͻ
     index_welcome_guest
     <td align="right" valign="bottom">$lang[members] $totalusers<br>
     $lang[totalthreads] $totalthreads<br>
     $lang[totalposts] $totalposts
     Ϊ
     <td width="7%" align="left">
     $lang[members]:<br>$lang[totalthreads]:<br>$lang[totalposts]:</td>
     <td width="5%" align="right">
     $totalusers<br>$totalthreads<br>$totalposts
     
     <td width="70%">$lang[welcomeguest]
     
     <td width="88%">$lang[welcomeguest]
     
13.index_forumlist_title
    <td width="10%"><font color="$themes[topfontcolor]">$lang[moderator]</font></td>
    </tr>   
    </table>
    <table align="center" width="100%" border="0" bordercolor="$themes[bordercolor]">
    <tr align="center"><td>
    µ밴ϵ CTRL+F5 </td>
    </tr>
    </table>
    <table align="center" width="100%" border="1" cellspacing="0" cellpadding="3" $themes[toptablebg] bordercolor="$themes[bordercolor]">

14.index_forumlist_title
<td width="5%">
<td width="45%">
<td width="10%">
<td width="10%">
<td width="20%">
<td width="10%">
Ϊ
<td width="5%">
<td width="51%">
<td width="8%">
<td width="8%">
<td width="18%">
<td width="10%">

15.index_forum_list
<td align="center" bgcolor="$themes[altcolor1]">$forumimg</td>
<td bgcolor="$themes[altcolor2]"><a href="forumdisplay.php?forumid=$forum[forumid]">$forum[forumname]</a>
<br>$forum[description]</td>
<td align="center" bgcolor="$themes[altcolor1]">$forum[threads]</td>
<td align="center" bgcolor="$themes[altcolor2]">$forum[posts]</td>
Ϊ
<td width="5%" align="center" bgcolor="$themes[altcolor1]">$forumimg</td>
<td width="51%" bgcolor="$themes[altcolor2]"><a href="forumdisplay.php?forumid=$forum[forumid]">$forum[forumname]</a>
<br>$forum[description]</td>
<td width="8%" align="center" bgcolor="$themes[altcolor1]">$forum[threads]</td>
<td width="8%" align="center" bgcolor="$themes[altcolor2]">$forum[posts]</td>

16.
ɾ
99 BACKGROUND-COLOR: $themes[altcolor2];

17.kdb ģһ
<style type="text/css">
.none {
border-style:none} 
</style>

18.post_form_fastreply
<input type="checkbox" class="none">
<input type="checkbox" class="none">
<input type="checkbox" class="none">
<input type="checkbox" class="none">

19.post_form_optional
<input type="checkbox" class="none">
<input type="checkbox" class="none">
<input type="checkbox" class="none">
<input type="checkbox" class="none">

20.post_form_img
<input type="checkbox" class="none">
<input type="checkbox" class="none">
<input type="checkbox" class="none">
<input type="checkbox" class="none">

21.post_form_kdbcode
1121  radio  none
<input type="radio" class="none">
<input type="radio" class="none">

22.post_form_vote
<input type="checkbox" class="none">

23.post_form_delete
<input type="checkbox" name="delthispost" value="yes" class="none">$lang[delthispost]

24.search_form
ͬ ѡ class="none"
<input type="checkbox" name="title" value="1" checked class="none">$lang[searchtitle]<br>
<input type="checkbox" name="content" value="1" checked class="none">$lang[searchcontent]</td>
<input type="checkbox" name="exactmatch" value="1" checked class="none">$lang[exactmatch]

25.sm_form
<input type="checkbox" name="backupoutbox" value="1" class="none">$lang[backupoutbox]?<br>

26.޸ sm_form ģ
<textarea name="content" rows="5" cols="60">$themessage</textarea></td>
Ϊ
<textarea name="content" rows="9" cols="90">$themessage</textarea></td>

27.޸ register_optional ģ
ѡ class="none"
<textarea rows="4 Ϊ 9" cols="30 Ϊ 90" name="signature">$userinfo[signature]</textarea>

28.viewtheread.php
 class=\"none\"
$voteitems.="<tr><td bgcolor=$nowvotecolor><input type=checkbox name=votethis[] value=\"$i\" class=\"none\">".$votecontent[$i-1]."</td></tr>";
$voteitems.="<tr><td bgcolor=$nowvotecolor><input type=radio name=votethis value=\"$i\" class=\"none\">".$votecontent[$i-1]."</td></tr>";

29.functions.php
 iframe ﷨
338    
$content=eregi_replace("(\[if\])(.*)(\[/if\])","<div><font color=black ><iframe src=\"\\2\" WIDTH=\"100%\" HEIGHT=\"500\" ></iframe></font></div><br><a href=\\2 target=_blank>Netscape users click here to view the content</a><br>",$content);
310 
$content=str_replace("[if][url]",'[if]',$content);

30. flash ﷨
339
$content=eregi_replace("(\[flash\])(.*)(\[/flash\])","<embed WIDTH=\"100%\" HEIGHT=\"350\" type=\"application/x-shockwave-flash\" src=\"\\2\"></embed>",$content);
311
$content=str_replace("[flash][url]",'[flash]',$content);

31.post_form_fastreply
ɾٻظı $post_form_smiles Ӵ ӿٻظ ALT+S
<textarea name="content" rows="5" cols="95"></textarea>

<textarea name="content" rows="7" cols="95"></textarea>

<input type="submit" class="submits" name="submit" value="$lang[fastreply]">

<input type="submit" class="submits" name="submit" accesskey="s" value="$lang[fastreply]">

32.ֵ⣬functions.phpĵ8280ע͵
 joksky ϵģ
$content=str_replace('&',"&amp;",$content);
ʾĻ
$content=str_replace('&',"&",$content);

33.post_form_thread
 Alt+s ټ
<input type="submit" class="submits" name="submit" value="$post_title">

<input type="submit" class="submits" name="submit" accesskey="s" value="$post_title">

34.login_youmust
 Alt+s ټ
<input type="submit" class="submits" name="submit" value="$lang[login]">

<input type="submit" class="submits" name="submit" accesskey="s" value="$lang[login]">

35.search_form
 Alt+s ټ
<input type="submit" name="submit" class="submits" value="$lang[submit]">

<input type="submit" name="submit" class="submits" accesskey="s" value="$lang[submit]">

36.sm_form
 Alt+s ټ
<input type="submit" name="messagesubmit" class="submits" value="$lang[submit]">

<input type="submit" name="messagesubmit" class="submits" accesskey="s" value="$lang[submit]">

37.forum_threadlist_title

<table align="center" width="100%" cellpadding="3" cellspacing="0" border="1" bordercolor="$themes[bordercolor]">
<tr align="center" bgcolor="$themes[sortbgcolor]">
<td width="5%"><font color="$themes[sortfontcolor]">$lang[status]</font></td>
<td width="5%"><font color="$themes[sortfontcolor]">$lang[smiles]</font></td>
<td width="52%"><font color="$themes[sortfontcolor]">$lang[title]</font></td>
<td width="12%"><font color="$themes[sortfontcolor]">$lang[author]</font></td>
<td width="5%"><font color="$themes[sortfontcolor]">$lang[reads]</font></td>
<td width="5%"><font color="$themes[sortfontcolor]">$lang[reply]</font></td>
<td width="16%"><font color="$themes[sortfontcolor]">$lang[lastpost]</font></td>
</tr>

38.functions.php
ñڵͼᳬ
 $content=eregi_replace("(\[img\])+([-~!\`#%&_/:\.a-zA-Z0-9]+)(\[/img\]+)","<a href=\"\\2\" target=\"_blank\" title=\"´ͼ\"><img src=\"\\2\" border=\"0\" onload=\"javascript:if(this.width>screen.width-333) this.width=screen.width-333\"></a>",$content);


39.ʼַӴ ޸ģ mailthread
<td bgcolor="$themes[altcolor2]"><textarea warp="off" name="content" rows="10" cols="60 Ϊ 100">

40.functions.php
ö۸ı
$thread[title]="[<b>$lang[topped]</b>] ".$thread[title];
$thread[title]="<font color=\"red\"><b>$lang[topped]</b></font>".$thread[title];

41.functions.php
336 ¸
$content=str_replace("[code]","<br><table width=80% align=center border=1 bordercolor=$themes[bordercolor] cellspacing=0 cellpadding=5><tr><td><b>:<br><pre>",$content);
Ϊ
    $content=str_replace("[code]","<table width=80% align=center border=0 cellspacing=1 cellpadding=3><tr><td>:</td><td align=right>(ϰ¿ɸƵ)</td></tr><tr><td colspan=2 style=\"BORDER: #000000 1px solid;bordercolor=$themes[bordercolor];\"><pre ondblclick='javascript:window.clipboardData.setData(\"Text\", this.innerText); alert(\"ѸƵ. ڿʹ\");'>",$content);

42.޸ register ģ
<table cellspacing="0" cellpadding="3" border="1" width="100%" align="center">
Ϊ
<table cellspacing="0" cellpadding="3" border="1" width="100%"  align="center" bordercolor="#000000">

43.functions.php
״̬ͼʾϿ´
195 $thread[status]="<img src=images/$imgname border=0>";
Ϊ
  $thread[status]="<a href=viewthread.php?threadid=$thread[threadid]&page=$i&viewm=$viewm target=_blank><img src=images/$imgname alt=´ border=0></a>";

44.index.php ÿûǰͷ  
$viewonlineuser.="<a href=\"member.php?action=viewuser&userid=$value\">$key</a>  ";
Ϊ
$viewonlineuser.="<FONT COLOR=\"#AD79EC\"></FONT><a href=\"member.php?action=viewuser&userid=$value\">$key</a>  ";

45.viewthread.php
ÿƪ¿ͷ  n ƪĹ
 188  global  ,$num,$page,$nu; 
һм 
$nu++; 
$num=($page-1)*$userinfo[ppp]+$nu; 

46.ģ viewthread_content
<td valign="top"> $postimg <b>$post[title]</b><br><br>
Ϊ
<td valign="top">( $num ƪ) $postimg <b>$post[title]</b><br><br>

47.ģ viewthread_table ޸ td 
<td width="22%"><font color="$themes[sortfontcolor]">$lang[author]</font></td>
<td width="78%"><font color="$themes[sortfontcolor]">$lang[title] &nbsp;&nbsp;&nbsp; $cutpage</font></td>

48.޸ģ index_online_users
 log ͼʾΪصͼ
<img src="images/forumlogo.gif" border="0"></td>

49.sm_read
<td width="30%">
<td width="70%">
Ϊ
<td width="22%">
<td width="78%">

50. htmlǩ ķ+URL Զ
޸ functions.php 
Ѱ 
if($parseurl=="yes"){ 
Ϊ 
if($parseurl=="yes"){ 
м
    $content=str_replace("[url][url]",'[url]',$content);
    $content=str_replace("[URL][url]",'[url]',$content);
    $content=str_replace("[/url][/url]",'[/url]',$content);
    $content=str_replace("[/URL][/url]",'[/url]',$content);
    $content=str_replace("[url=[url]",'[url=',$content);
    $content=str_replace("[URL=[url]",'[url=',$content);
    $content=str_replace("&gt;[url]",'&gt;',$content);
    $content=str_replace("&gt;[/url]",'&gt;',$content);
    $content=str_replace(">[url]",'>',$content);
    $content=str_replace(">[/url]",'>',$content);
    $content=str_replace("=[url]",'=',$content);
    $content=str_replace("\"[url]",'"',$content);
    $content=str_replace("[/url]\"",'"',$content);
    $content=str_replace("&quot;[url]",'&quot;',$content);
    $content=str_replace("[/url]]",']',$content);
    $content=str_replace("][/url]",']',$content);
    $content=str_replace("[img][url]",'[img]',$content);
    $content=str_replace("[IMG][url]",'[img]',$content);
    $content=str_replace("[/url][/img]",'[/img]',$content);
    $content=str_replace("[/url][/IMG]",'[/img]',$content);
    $content=str_replace("[/img][/url]",'[/img]',$content);
    $content=str_replace("[/IMG][/url]",'[/img]',$content);
    $content=str_replace("[img=[/url]",'[img=',$content);
    $content=str_replace("[IMG=[/url]",'[img=',$content);
    $content=str_replace("[img\\2\\3\\4\*\\5\\6\\7][url]",'[img\\2\\3\\4\*\\5\\6\\7]',$content);
    $content=str_replace("[IMG\\2\\3\\4\*\\5\\6\\7][url]",'[img\\2\\3\\4\*\\5\\6\\7]',$content);

51./رûעĹ
޸ mysql һλ, phpMyAdmin Ϊ
ѡȡ adminlog ->  -> һʼ¼ 
logname ֵ over
logvalue ֵ yes ->ִ

߰װ̳ǰ޸ install.php
Ѱ mysql_query("insert into $table (logname,logvalue) values ('viewcomefrom','yes')");
 mysql_query("insert into $table (logname,logvalue) values ('over','yes')");

 textview.php 
$lang[over]="̳Ŀǰֹͣûע";
$lang[doover]="Ƿ׼ûע";

޸ģ cp_admin 
<form action="cp.php?action=admin" method="post">
<table width="100%" border="1" bordercolor="$themes[bordercolor]" cellspacing="0" cellpadding="5 Ϊ 6">
 <td bgcolor="$themes[altcolor2]"><input type="text" name="email" size="30" value="$admin[email]"></td>
·
</tr><tr>
<td bgcolor="$themes[altcolor1]">$lang[doover]</td>
<td bgcolor="$themes[altcolor2]">
<input type="radio" name="over" value="yes" $over[yes]>$lang[yes]
<input type="radio" name="over" value="no" $over[no]>$lang[no]</td>

޸ member.php
Ѱ $action=="reg"
 }elseif($action=="reg"){
  if(is_kdbuser($kdbuser,$kdbpswd)){
    my_error($lang[isregisted].$kdbuser);
    exit;
  }һм
  if($admin[over]=='no'){
    my_error($lang[over]);
    exit;
  } 

޸ cp.php
Ѱ $annexallow[$admin[allowannex]=='yes'?'yes':'no']='checked';
һм
$over[$admin[over]=='yes'?'yes':'no']='checked';
Ѱ $adminquery[]=(($allowannex==$admin[allowannex])?"":"allowannex");
һм
$adminquery[]=(($over==$admin[over])?"":"over");

52.޸ viewthread.php ÷ÿֻܿ IP ַǰλ
else $postip=ereg_replace("([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})","\\1.\\2.*.*",$post[postip]);


53.Ѱ 󷢱̫ ̳̫С ok
޸ search_threadlist_title ģ
<td width="5 Ϊ 4%"><font color="$themes[sortfontcolor]">$lang[status]</font></td>
<td width="5 Ϊ 4%"><font color="$themes[sortfontcolor]">$lang[smiles]</font></td>
<td width="40 Ϊ 42%"><font color="$themes[sortfontcolor]">$lang[title]</font></td>
<td width="10 Ϊ 17%"><font color="$themes[sortfontcolor]">$lang[whichforum]</font></td>
<td width="10%"><font color="$themes[sortfontcolor]">$lang[author]</font></td>
<td width="5%"><font color="$themes[sortfontcolor]">$lang[reads]</font></td>
<td width="5%"><font color="$themes[sortfontcolor]">$lang[reply]</font></td>
<td width="20 Ϊ 13%"><font color="$themes[sortfontcolor]">$lang[lastpost]</font></td>
</tr>

54.PM ԭ.ظʱļϷ (޷ʹô빦)
ģ sm_form
<td bgcolor="$themes[altcolor2]"><input type="text" name="title" size="40"></td>
Ϊ
<td bgcolor="$themes[altcolor2]"><input type="text" name="title" size="40" value="$re"></td>

message.php
56  $re="Re:".$replymessage[title];
57 
$themessage="\n\n\n".$lang[oldmessage]."$sendtouser".$lang[oldmessage2]."\n".$replymessage[content];

textview.php
$lang[oldmessage]="---ԭ ";
$lang[oldmessage2]=" ---";

55. Ż
޸ģ usercp_subscription_list
<tr><td bgcolor="$themes[altcolor1]">
Ϊ
<tr><td align="center" bgcolor="$themes[altcolor1]">

56.޸ģ usercp_subscription
<td width="10%" color="$themes[sortfontcolor]"> </td>
<td width="50 Ϊ 55%"><font color="$themes[sortfontcolor]">$lang[title]</font></td>
<td width="10%"><font color="$themes[sortfontcolor]">$lang[reads]</font></td>
<td width="10%"><font color="$themes[sortfontcolor]">$lang[reply]</font></td>
<td width="20 Ϊ 15%"><font color="$themes[sortfontcolor]">$lang[lastpost]</font></td>

57.޸ kdb.style 
 input type="radio" 涼 class="none"
 input type="checkbox" 涼 class="none"


//2002.4.01
1.ڱ༭ʱ նǱ֮ǰֵ¶1ûȥץ֮ǰֵ
޸ register_timeinput ģ·ݵı $
<input type="text" name="birthyear" size="4" value="$userinfo[birthyear]">$lang[year]<select name="birthmonth">
<option value="1" $birthmonth[1]>1</option>
<option value="2" $birthmonth[2]>2</option>
<option value="3" $birthmonth[3]>3</option>
<option value="4" $birthmonth[4]>4</option>
<option value="5" $birthmonth[5]>5</option>
<option value="6" $birthmonth[6]>6</option>
<option value="7" $birthmonth[7]>7</option>
<option value="8" $birthmonth[8]>8</option>
<option value="9" $birthmonth[9]>9</option>
<option value="10" $birthmonth[10]>10</option>
<option value="11" $birthmonth[11]>11</option>
<option value="12" $birthmonth[12]>12</option>
</select>$lang[month]<select name="birthday">

2.ں̨ɾһ̳ʱȰ¼̳ɾɾ̳Ļ Unknown column 'formid' in 'where clause' ĴϢ
޸ cp.php
 176 
$query.=($query)?(" or formid='".$row[forumid]."'"):(" and formid='".$row[forumid]."'");
u
$query.=($query)?(" or forumid='".$row[forumid]."'"):(" and forumid='".$row[forumid]."'");

3.ں̨ɾһ̳ʱὫȫûȫĴ
޸ cp.php
 830  function delete_operate
 831  global $prefix,$lang;
 830  831 мһжϳʽ
if(trim($query)== || !isset($query)) return;

//2003.04.18
1.֮ǰ汾ˢʱ©Ĵ
post.php 
Ѱ if(!$quotemessage[username])$quotemessage[username]=$guest[username];
һм
$quotemessage[content]=eregi_replace("\[quote\](.*)\[/quote\]","",$quotemessage[content]);

ȥ <br>
$quotemessage[content]=(strlen($quotemessage[content])>255)?substr($quotemessage[content],0,255)."<br>........":$quotemessage[content];
ȥһ \n
$edit_or_quote="[quote][i]".$quotemessage[username]."[/i]".$lang[quoteinfo]."\n\n".$quotemessage[content]."[/quote]";

functions.php
 if($parseurl=="yes") ֵȫעΪ
$content=eregi_replace("([^]=])(http://|ftp://)+([-_/~!\#a-zA-Z0-9]+)(\.)([\?\.-_\`~!\#%&=/0-9a-zA-Z]+)","\\1[url]\\2\\3\\4\\5[/url]",$content);
    
$content=eregi_replace("(^http://|^ftp://)+([-_/~!\#a-zA-Z0-9]+)(\.)([\?\.-_\`~!\#%&=/0-9a-zA-Z]+)","[url]\\1\\2\\3\\4[/url]",$content);

$content=str_replace(">[url]",'>',$content);
$content=str_replace(">[/url]",'>',$content);
-----------------------
2.޸ģ register_shica
 GMT +8:00 ĵ
<option value="8" $shica[200]>(GMT +8:00) Beijing, Hong Kong, Taipei, Singapore</option>
-----------------------
3.
textview.php 
$lang[refresh]="µ밴ϵ CTRL+F5 <A HREF=\"index.php\"></A>";
$lang[ifnoback]="ȴûз,<a href=\"$urlname\">";
$lang[error]="";
$lang[plzback]="뷵";
$lang[browser]="";
$lang[http]="&nbsp;&nbsp;http://";
$lang[font]="";
$lang[kdbhome]="KDBoardϼ</a><br>̳Ĺٷַ, ʲôֱӷ";
$lang[omegahome]="Ӧ׼ӿռ</a><br>̳ķҳṩ KDB û֧";
$lang[optiontitle]="<OPTION selected value=\"\">ѡ</OPTION><OPTION value=ԭ>ԭ</OPTION><OPTION value=Ƽ>Ƽ</OPTION>
<OPTION value=ת>ת</OPTION><OPTION value=ѧ>ѧ</OPTION><OPTION value=֪>֪</OPTION><OPTION value=></OPTION>
<OPTION value=></OPTION><OPTION value=桿>桿</OPTION><OPTION value=ˮ>ˮ</OPTION><OPTION value=ۡ>ۡ</OPTION>
<OPTION value=ע⡿>ע⡿</OPTION><OPTION value=顿>顿</OPTION><OPTION value=ܼ>ܼ</OPTION><OPTION value=></OPTION><OPTION value=Ц>Ц</OPTION>";
$lang[plzdelinst]="ɾinstall.phpļ, ִܾ!";
$lang[charset]="gb2312";
~~~
޸ģ index_forumlist_title ԭִ $lang[refresh]
~~~
functions.php ִ
޸
function my_header($urlname,$textdisplay=""){
  global $themes,$nowtemplates;
 global  $lang
 $lang[ifnoback] ȡ

޸
function my_error($message){
  global $themes,$nowtemplates;
 global  $lang
 $lang[error]  $lang[plzback] ȡ
~~~
index.php һִ
 function agent($agt) { һм
global $lang;
ִȡΪ $lang[browser]
~~~
kdb.style ִ
ģ register_required ڵ " http://"  $lang[http] ȡ

ģ css ڵ ""  $lang[font] ȡ

ģ index_online_users ڵ̳$lang[kdbhome]$lang[omegahome]ȡ

޸ģ post_form_title  post_form_title_optional ѡĲ
ĳ
<SELECT name="optiontitle">
$lang[optiontitle]
</SELECT>
~~~
header.php һִ
 session_start(); һм
global $lang;
if(!$lang)include"textview.php";
~~~
޸ functions.php  kdb.style  charset ֵΪ $lang[charset]
-----------------------
3.ע
help.htm  charset δʹ $lang[charset]
upgrade.php ִδ
install.php ִδ
message.css ָδ
kdbug.txt   ִδ
readme.txt  ִδ
help.htm    ִδ
-----
functions.php
function listtheme($theme=""){
-----
4.ûб---> Ѱ Ч
޸ member.php ļе253254255 еĩβ "' "ĳ "%' " 


//2003.06.02
1.֮ǰ functions.php Ǽ \-
$content=eregi_replace("([^]=])(http://|ftp://)+([-_/~!\#a-zA-Z0-9]+)(\.)([\?\.-_\`~!\#%&=/0-9a-zA-Z\-]+)","\\1[url]\\2\\3\\4\\5[/url]",$content);
    
$content=eregi_replace("(^http://|^ftp://)+([-_/~!\#a-zA-Z0-9]+)(\.)([\?\.-_\`~!\#%&=/0-9a-zA-Z\-]+)","[url]\\1\\2\\3\\4[/url]",$content);

-----
2.ûЦķ޸ĳɶ, ޸ index.php
ҵ
$viewonlineuser.="<FONT COLOR=\"#AD79EC\"></FONT><a href=\"member.php?action=viewuser&userid=$value\">$key</a>  ";
ĳ
$viewonlineuser.="<a href=\"member.php?action=viewuser&userid=$value\">$key</a><FONT COLOR=\"#AD79EC\">,</FONT>  ";
-----
3.
textview.php 
$lang[newwinpci]="Ӵͼ";
$lang[newwintitle]="Ӵ";
$lang[codecopy]="(ϰ¿ɸƵ)";
$lang[codecopying]="ѸƵ. ڿʹ";
ڶ $lang[code] Ϊ $lang[code2]

 functions.php 溬дֵĵطȡΪĴ
-----
4.̨ ϱ ѡĿɾ
 cp.php 603 м class=\"none\"
$databases.="<input type=checkbox name=kdbtable[$nowbase] value='yes' checked class=\"none\"></td>\n";
-----
5.µĻԱעʱһηʱ
޸ member.php 
Ѱ setcookie("kdblastvisit",$password,$nowtime+1800);
޸Ϊ setcookie("kdblastvisit",$regtime,$nowtime+1800);


//2003.06.12
1. ģ viewthread_content ҵ
<table border="0" cellspacing="0" cellpadding="0">
<tr><td width="85%">$contact</td>
<td width="15%" align="right">
޸Ϊ
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr><td align="left">$contact</td>
<td align="right">


//2003.07.05
޸ functions.php  https ıʶ  : ıʶ
 299 м https://|    # ĺ :
 300 м ^https://|   # ĺ :
 348 м https://|    # ĺ :
 349 з # ĺ :

 305 м  # ĺ {}
 306 м  # ĺ {}



ӵ

1.ʼҪ ɻҪ
2.Ƽ
  ༭ҪӴ  ɻҪ Ҫµ +ϴ ʧ....
  <td bgcolor="#D2D2D2"><font class="nf">     :</font></td>
  <td bgcolor="#D2D2D2"><font class="nf"><input type="text" name="sendtoname" size="25" maxlength="75"></font></td>
  $query[title]
  
  $thread[title]
3.̨ҪϹۿԱ
4.ظʱԤǰ
5.ǩѡ 
6.
7.function listtheme($theme=""){
8.ع
9.ֵĹ
10.ָ ǵ kdbkdb_threads  replies(ظ) Ҫۡ
11.ͼַ