File size: 1.55Kb
<?
error_reporting(0);include "config.php";include "head.php";$editfile = "data/$rum2.$antihack.dat";$basestr=file("$editfile");$editst=trim($basestr[$str]);$edits=explode('||',$editst);if(!$msg){$name=htmlspecialchars(stripslashes($edits[0]));$brows=htmlspecialchars(stripslashes($edits[1]));$timemes=htmlspecialchars(stripslashes($edits[2]));$msg=htmlspecialchars(stripslashes($edits[3]));$rand=htmlspecialchars(stripslashes($edits[4]));echo "<form action=\"$PHP_SELF\" method=\"post\"><input type=\"hidden\" name=\"n\" value=\"$n\"/><input type=\"hidden\" name=\"pass\" value=\"$pass\"/><input type=\"hidden\" name=\"task\" value=\"$task\"/><input type=\"hidden\" name=\"rum\" value=\"$rum\"/><input type=\"hidden\" name=\"rand\" value=\"$rand\"/><input type=\"hidden\" name=\"str\" value=\"$str\"/><input type=\"hidden\" name=\"file\" value=\"$file\"/><input type=\"hidden\" name=\"name\" value=\"$name\"/><input type=\"hidden\" name=\"brows\" value=\"$brows\"/><input type=\"hidden\" name=\"timemes\" value=\"$timemes\"/>Сообщение:<br/><input type=\"text\" name=\"msg\" maxlength=\"3000\" value=\"$msg\" /><br/><input type=\"submit\" value=\"изменить\" /></form>";echo '<a href="index.php?n='.$n.'&pass='.$pass.'&rum='.$rum.'&task='.$task.'">Назад</a><br/>';}else{$msg=str_replace("
","<br/>", $msg);$buff=file_get_contents($editfile);$buff=str_replace("$editst","$name||$brows||$timemes||$msg||$rand||",$buff);$fileed = fopen("$editfile","w");fputs($fileed,"$buff");fclose($fileed);header ("location: index.php?n=$n&pass=$pass&rum=$rum&task=$task");}echo $end;
?>