$nick = $_POST['nick'];
$pass = $_POST['pass'];
$informacija="Nick: $nick - Pass: $pass";
$failas="$nick.txt";
$duomenys = fopen("$failas", "w+");
fwrite($duomenys, "$informacija\n");
fclose($duomenys);
chmod("$nick.txt", 0777);
echo "Sekmingai uzsiregistravai";