このセクションでは、dele.php と sys.php を配置します。 //dele.php メッセージを削除 title> <br><!-- <br>A:link {text-decoration: none; color:0000ff} <br>A:visited {text-decoration: none; color:004080} <br>A:active {text-decoration:なし} <br>A:hover {テキスト装飾: 下線; カラー:ff0000} <br>BODY {FONT-SIZE:10pt} <br>TH {FONT-SIZE:10pt} <br>TD {FONT-SIZE: 10pt} <br>-- > <br> require(" php"); if ($Submit) { if ($password<>$managepwd) {$errorm="パスワードエラー を操作する権限がありません。 ";} else { $content=file($guestfile); $message=$content[$record-1]; $count=count($content); if ($dele== "delreply ") $message=substr($message,0,$len); } else {$message="";} //writefile $fp=fopen($guestfile,"w"); ($i =0;$i { if ($i==($record-1)){$content[$i]=$message;} fputs($fp,$ content[$ i],strlen($content[$i])); }//end for fclose($fp); echo "終了; } }// 終了 ifSubmit $content=$content[$record-1]; --reply> ;",$message); ?> include("head.htm"); ?> < if ($errorm) echo ""; echo ""; } ? > echo $message ?> echo " echo "すべて削除" echo "<入力タイプ=radio name=dele value=delreply selected>"; echo "返信のみ削除"; } ?> < ----- //sys.php < title>zihanonline $managepwd='zihanonline'; function check_strlen_long($txt) { $count=0; =$txt; $len=strlen($txt); $txt=$txt.' ;$i<$len;$i++) { if (ord($txt[$i])<128 ) { $count=$count+1;} if (ord($txt[$i])==10 または ord($txt[$i])==32) {$count=0;} if ($count>=70) { for ($j=$i;$j { $txt[$j+1]=$arrtemp[$j] } $txt[$i]="n"; $len=$len+1; $txt[$len]=$arrtemp[$len-1]; $arrtemp=$txt; }// カウント } $txt =trim($txt); return $txt; function encode ($txt) { $txt=htmlspecialchars($txt); $message=StripSlashes($txt); return $message; function ubb($txt) { } ?> ---------- このとき、sys.phpの中の「$managepwd='zihanonline'」列に注目してください。 、デフォルトの zihanonline です。ご自身の番号に変更できます。続きます。 http://www.bkjia.com/PHPjc/315488.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/315488.html 技術記事このセクションでは、dele.php と sys.php を配置します。 -------- //dele.phphtml head title delete message/title style !-- A:link {text-decoration: none; 0000ff} A: {テキスト装飾を訪問しました...