Parašė sidicer· 2010 Kov. 5 21:03:21
#3
Nu Neveik :(
Va Visas KODAS:
<?php
require("conn.php");
if($_POST['submit']){
$vard = $_POST['vardas'];
$pava = $_POST['pavarde'];
$data = $_POST['data'];
$nick = $_POST['nick'];
$pass = $_POST['pass'];
$passa = $_POST['passa'];
$ip = $_SERVER['REMOTE_ADDR'];
if($vard == "" || $pava == "" || $data == "" || $nick == "" || $pass == "" || $passa == ""){
echo "Visi Laukai Butini";
}else{
if($pass == $passa){
}else(file_exists($nick.".txt")){
echo "Toks Nick Jau Nebegalimas.";
}
$passas = md5("$pass");
$informacija="Failas Sukurtas :]";
$failas="$nick.txt";
$duomenys=fopen($failas, "a");
fwrite($duomenys, "$informacija\n");
fclose($duomenys);
mysql_query("INSERT INTO reg VALUES ('','$vard','$pava','$data','$nick','$passas','$ip')");
echo "<center>Sveikas Uzsiregistraves $nick</center>";
}else{
echo "Slaptazodziai Nesutampa";
}
}
}else{
$url .= "index.php";
header("Location:".$url);
}
?>
Redagavo sidicer· 2010 Kov. 5 21:03:39