$query="SELECT time FROM ".SQLLOG." WHERE time > ".($time- RENZOKU)." AND host = '".mysql_escape_string($host)."'";// 投稿時間相距太短if(!$result=mysql_call($query))echo"sql失敗577<br>";$row=mysql_fetch_array($result);mysql_free_result($result);if($row&&!$upfile_name) error('連續投稿請稍候一段時間',$dest);

// 檔案上傳處理if($dest&&file_exists($dest)){$query="SELECT time FROM ".SQLLOG." WHERE time > ".($time- RENZOKU2)." AND host = '".mysql_escape_string($host)."'";// 附加圖檔的投稿時間相距太短if(!$result=mysql_call($query))echo"sql失敗586<br>";$row=mysql_fetch_array($result);mysql_free_result($result);if($row&&$upfile_name) error('連續附加圖檔投稿請稍候一段時間',$dest);

// 判斷欲回應的文章是不是剛剛被刪掉了if($resto){$result= mysql_call("SELECT no FROM ".SQLLOG." WHERE no = $resto");$tmp_ISALIVE=mysql_fetch_array($result);if(!$tmp_ISALIVE){
updatelog();
error('此討論串因為過舊已被刪除！',$dest);}mysql_free_result($result);}