0")or die(mysql_error());
$plugcount = 20-$plugcount;
//if the login form is submitted
if (isset($_POST['submit'])) { // if form has been submitted
// makes sure they filled it in
if(!$_POST['username'] | !$_POST['pass']) {
//die('You did not fill in a required field.');
}
// checks it against the database
if (!get_magic_quotes_gpc()) {
$_POST['email'] = addslashes($_POST['email']);
}
$check = mysql_query("SELECT * FROM babeloggerv3_users WHERE username = '".$_POST['username']."'")or die(mysql_error());
//Gives error if user dosen't exist
$check2 = mysql_num_rows($check);
if ($check2 == 0) {
die('That user does not exist in our database.
Click Here to Register');
}
while($info = mysql_fetch_array( $check ))
{
$_POST['pass'] = stripslashes($_POST['pass']);
$info['password'] = stripslashes($info['password']);
//$_POST['pass'] = md5($_POST['pass']);
//gives error if the password is wrong
if ($_POST['pass'] != $info['password']) {
die('Incorrect password, please try again.');
}
else
{
// if login is ok then we add a cookie
$_POST['username'] = stripslashes($_POST['username']);
$hour = time() + 3600;
setcookie("username",$_POST['username'],time()+$cookie_time);
setcookie("password",$_POST['pass'],time()+$cookie_time);
setcookie("remember","checked",time()+$cookie_time);
//then redirect them to the members area
//header("Location: psubmit.php?user=" + $_POST['username']);
header("Location: psubmit.php");
}
}
}
else
{
// if they are not logged in
?>
Username
| Instead of
the standard submit requirements of first sending a lot of hits, we are
selling plug space at a low rate. Your plug will appear on our
site and on many other sites that we submit to. So save your
traffic for yourself and eliminate the wait in long ques. |
 |
|
There are currently print($plugcount); ?> open spots for plugs |
Current Discount rates:
| 1-10 credits |
$5.00/credit |
| 10-20 credits |
$4.75/credit |
|
|
|
Or
Click here to register |