mi ha troncato il codice di prima proprio dove penso serva lo riposto
codice:
<?php
//////////////////////////////////////////////////////////////////////
// PHP ACCOUNT CREATION //
//////////////////////////////////////////////////////////////////////
?>
<?
include('config.php');
if(substr($base_dir,-1)=="/"){
$base_dir = substr($base_dir,0,strlen($base_dir)-1);
}
if(!is_dir($base_dir)){
//Create Folder;
mkdir($base_dir,"0777");
}
$base_dir.="/";
if(strlen($accname)< 3){
$error = true;
}
if(strlen($pw)< 4){
$error = true;
}
if(strlen($email)< 8){
$error = true;
}
echo "Il Tuo Account è:   $accname
";
echo "<span class='pn'>La Tua Password è:   $pw</span>
";
echo "<span class='pn'>La Tua E-Mail è:   $email</span>
";
if($error!=true && $check_folder!=true){
if(!file_exists($base_path)){
$file = fopen($base_path,"w+");
fclose($file);
}else {
echo 'Questo account e già in uso, provane un altro!';
};
$file = fopen($base_path,"a+");
$new_data = $pass_name.$pw;
fwrite($file,$new_data);
fclose($file);
echo "registrazione riuscita";
} else {
echo "registrazione fallita";
};
?>