it does the same thing. here is the source for the entire program. Don't beat me because it looks bad please
<?
include('valid.php');
$dir = opendir("/home");
while ($file_name = readdir($dir))
if($file_name == $email) {
echo "We apologize for the inconvience but the email address $email@jkcool.com has already been taken please try a
different on";
exit;
} else {
if ($password != $confirmpassword) {
echo "Sorry but the passwords you entered do not match";
exit;
} else {
$md5pass= crypt($password);
$final = addslashes($md5pass);
$str2 = "mkdir /home/$email";
$str3 = "touch /home/$email/.profile";
$str4 = "echo /usr/bin/pine >> /home/$email/.profile";
$str5 = "echo logout >> /home/$email/.profile";
$str6 = $final;
$fp2 = fopen("/website/job", 'a+');
fwrite($fp2, "$str2 \n");
fclose($fp2);
$fp3 = fopen("/website/job", 'a+');
fwrite($fp3, "$str3 \n");
fclose($fp3);
$fp4 = fopen("/website/job", 'a+');
fwrite($fp4, "$str4 \n");
fclose($fp4);
$fp5 = fopen("/website/job", 'a+');
fwrite($fp5, "$str5 \n");
fclose($fp5);
$fp6 = fopen("/website/job", 'a+');
fwrite($fp6, "useradd $email -p $str6");
fclose($fp6);
echo $final;
$connection = @mysql_connect("localhost", "john", "camaro") or die ("Can't
connect to SQL host");
$db = @mysql_connect_db(authorize, $connection) or die ("Can't select the
sql database you specified");
$sql = "insert into email (username, password) values ($email,
$password)";
$result = @($sql, $connection) or die ("Can't run the SQL
query");
echo "The User Has been Created Please wait for 5 minutes before loggining
in";
}
}
?>
it just dosen't seem to want to add those slashes anymore ideas
John