PHPY Bugǿܼ¼
--------------------------------------------------------------------
2003.08.02

1.
޸ textview.php
$lang[nothisday] ɾ
$lang[banhisip] ע
$lang[dispset] ο
$lang[userpasslen]="Ա볤(Ԫ)ܳ";
$lang[forumidnot]="ָ̳뷵";
$lang[nonewstitle]="δдű뷵";
$lang[nulladmin]="̳ѡδд뷵";
$lang[threadidnot]="ָ²뷵";
$lang[messagenot]="ָĻ뷵";
$lang[themeidnot]="ָķ񲻴뷵";
$lang[repeatthemename]="ظ뷵";

2.Աֹ IP  IP Ч
޸ cp.php 
 683   userip Ϊ regip 
Ϊ userip ֵֻ onlineuser 

3.ΪȫǿոҲܷ
޸ post.php
 127  
 if(trim($title)==''){ Ϊ if(trim($title)=='' || trim($title)==''){

4.Ա
޸ member.php
 81  if(!$email){ 
if(strlen($password)>$admin[maxuserlen] || strlen($password)<$admin[minuserlen]){
$message.="<li>$lang[userpasslen] $admin[minuserlen]-$admin[maxuserlen]</li>";
}

5.Է༭ûݵ ЧǷҲҪж
޸ cp.php 
 134    293-294 в
if (!$newstitle || $newstitle==' ' || $newstitle==''){
my_error($lang[nonewstitle]);
exit;
}

6.Է༭ûݵı
޸ cp.php 
 134  Ϊ if(!$forumname || $forumname==' ' || $forumname==''){
 213-214 в 
      if(!$forumname || $forumname==' ' || $forumname==''){
        my_error($lang[nullforumname]);
        exit;
      }

7.Է༭ûƵķ
޸ cp.php
 360-361 в 
      if(!$themename || $themename==' ' || $themename==''){
        my_error($lang[nullthemename]);
        exit;
      }
 406-407 в 
      if(!$themename || $themename==' ' || $themename==''){
        my_error($lang[nullthemename]);
        exit;
      }

8.̳ѡûмж
޸ cp.php
 19-20 в
if(!$sitename || !$siteurl || !$forumname || !$forumurl || !$email || !$annexsize || !$annexext || $dlannexminposts=='' || !$posttwicetime || !$maxtitle || !$maxcontent || !$tpp || !$ppp || !$hotminreads || !$hotminreplies || !$maxkeyword || !$minkeyword || !$messagelife || !$maxmessage || !$avatars || !$apr || !$apc || !$defavatarposts || !$awidth || !$aheight || !$onlinetime || !$administrator || !$moderator || !$guestname || !$forumrule){
        my_error($lang[nulladmin]);
        exit;
}

9.̳ʾ
޸ forumdisplay.php
 2-3 м
   $forum=getdbdata("forum","forumid='$forumid'");
   if(!$forumid || !$forum[forumid]) {
     my_error($lang[forumidnot]);
     exit;
   }

10.²ʾ
޸ viewthread.php
 10-11 м
   $threadnot=getdbdata('threads',"threadid='$threadid'");
   if(!$threadid || !$threadnot[threadid]) {
     my_error($lang[threadidnot]);
     exit;
   }

11.Ļʾ
޸ message.php
 19-20 м
   $themessage=getdbdata("sm","smid='$smid'");
   if(!$smid || !$themessage[smid]){
     my_error($lang[messagenot]);
     exit;
   }

12.񲻴ʾ
޸ cp.php
 414-415 в
   $themeidnot=getdbdata("themes","themeid='$themeid'");
   if(!$themeidnot){
     my_error($lang[themeidnot]);
     exit;
   }

--------------------------------------------------------------------

2003.08.14
1.ĳЩŷϻ $phpver ĴѶϢ
޸ header.php
 22  ڵȺźһ @ δ
$phpver=@ereg_replace("([^0-9\.]+)([0-9]+)",'',phpversion());

2.ű
޸ textview.php
$lang[nonewstitle]="δдű뷵";
޸ cp.php
 302  327  if жм || (strlen($newstitle)>255)

3.̳
޸ textview.php
$lang[nullforumname]="̳Ϊջ̳뷵";
޸ cp.php
 138  218  if жм || (strlen($description)>255)

4.̳ʹô HTML ޷ʾ
޸ cp.php
 141-142  217-218 в $forumname=my_htmlspecialchars($forumname);

5.űʹô HTML ޷ʾ
޸ cp.php
 308-309  334-335 в $newstitle=my_htmlspecialchars($newstitle);

kdb.style
ģ viewthread_content   $num g Ϊ  $num ƪ