File size: 840B
<?php
include("../../config.php");
echo"<div class=\"a\">";
echo"Админка";
echo"</div>";
echo"<p>";
echo"<div class=\"c\">";
if($_SERVER['QUERY_STRING'] == "login=$admin&pass=$pass")
{
$admin = $_POST['admin'];
$password = $_POST['pass'];
$email = $_POST['email'];
$title = $_POST['title'];
$index = $_POST['index'];
$skin = $_POST['skin'];
$mpass = md5($password);
$tmp="<?php\r\n".
"$"."zipdir=\"".$newzipdir."\";\r\n".
"$"."zipp=\"".$newzipp."\";\r\n".
"$"."dir=\"".$newdir."\";\r\n?>";
$file = fopen ("tmp.php","a");
flock ($file,LOCK_EX);
ftruncate ($file,0);
fputs($file,$tmp);
fflush ($file);
flock ($file,LOCK_UN);
fclose($file);
echo "Данные Записаны!<br><a href=new.php?login=$admin&pass=$pass>Создать архив!</a>";
echo "</font></div></a>";
echo '</body></html>';
}
?>