SessTehKing
04-04-2007, 12:55 AM
<?php
if(file_exists("".$_POST['name']."password.php")) {
include("".$_POST['name']."password.php");
if($real = $_POST['pass'])
{ Posting code here
} else { echo("Password is wrong.");}
} else {
$ft = fopen("".$_POST['name']."password.php", "a+");
fwrite($ft, "<?php
\$real = ".$_POST['pass']."
?>");
Posting code again
}
?>
This code should check if the file exists, and if it does, check if the password entered is the true password, and if that is right, then post. If not, say the password is wrong. And if the file doesn't exist yet, create it and write the password entered for the name (indicated by the file), then continue to post.
It always posts, no matter what.
if(file_exists("".$_POST['name']."password.php")) {
include("".$_POST['name']."password.php");
if($real = $_POST['pass'])
{ Posting code here
} else { echo("Password is wrong.");}
} else {
$ft = fopen("".$_POST['name']."password.php", "a+");
fwrite($ft, "<?php
\$real = ".$_POST['pass']."
?>");
Posting code again
}
?>
This code should check if the file exists, and if it does, check if the password entered is the true password, and if that is right, then post. If not, say the password is wrong. And if the file doesn't exist yet, create it and write the password entered for the name (indicated by the file), then continue to post.
It always posts, no matter what.