Просмотр файла 1.php

Размер файла: 707B
<?php
include "head.php";

if (empty($name) || empty($password))
{
echo "имя или пароль не делать выбранное!";
echo '<meta http-equiv="refresh" content="2; url=registration.php">';   
}
else
{
if(file_exists("users/$name.dat"))
{
echo "это имя уже существует!";
echo '<meta http-equiv="refresh" content="2; url=registration.php">';
}
else
{
$inputString = "$password";
$fp = fopen( "users/$name.dat" , "w" );
fwrite($fp, $inputString);
fclose($fp);
echo "регистрация заканчивается, Вы можете войти";
echo '<meta http-equiv="refresh" content="2; url=login.php">';
}
}

include "foot.php";
?>