Файл: manager1/adminuvol.php
Строк: 22
<?
if(isset($_GET['go'])){
$instr=$_POST['instr'];
$instr2=$_POST['instr2'];
$log = file("clubs.dat");
$text = implode("",$log);
$text = str_replace($instr,$instr2,$text);
$f = fopen("clubs.dat", "w+");
fwrite($f, "$text");
fflush($f);
fclose($f);
echo"Замена прошла успешно!";
}else{
echo "<form action="1.php?go=res" method="post"><div>n";
echo "Что меняем<br/>n";
echo "<input name="instr"/><br/>n";
echo "На что меняем:<br/>n";
echo "<input name="instr2"/><br/>n";
echo "<input type="submit" value="Отправить"/></div></form>n";
}
?>