Файл: manager3_adm/1.php
Строк: 36
<?
define('_IN_JOHNCMS', 1);
$textl = 'Менеджер';
require_once ("../incfiles/core.php");
require_once ("../incfiles/head.php");
require_once ("../incfiles/regglobals.php");
echo'<b><center>*Football MANAGER*ADMIN PANEL*</center></b><br/><br/>';
if ($rights >= 6)
{
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"Замена прошла успешно!<br/>";
echo '<hr/>[<a href="index.php">В АДМИНКУ</a>]<br/>';
}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";
echo '<hr/>[<a href="index.php">В АДМИНКУ</a>]<br/>';
}
}
else{ echo 'СОСАТЬ ХУЙ ТВОЕ ПРИЗВАНИЕ МУДАК!!!! xD<br/>'; }
require_once ("../incfiles/end.php");
?>