View file blackgbs/postdelmsg.php
<?php include "config.php"; if($pass==$user_pass) { $str=$_GET['str']; $page=$_GET['page']; $file=file("./msg/$id.dat"); $delstr=trim($file[$str]); $buff=file_get_contents("./msg/$id.dat"); $buff=str_replace("$delstr\r\n","",$buff); $file = fopen("./msg/$id.dat","w"); fputs($file,"$buff"); fclose($file); } $site='http://'.$_SERVER['HTTP_HOST'].''.str_replace('postdelmsg.php','index.php',$_SERVER['PHP_SELF']).'?id='.$id.'&page='.$page; header ("Location: $site"); ?>