View file public_html/paymentlogin.php

File size: 2.11Kb
<?php

/************************************

Script : Adnetwork
Website : http://facebook.com/mohd.arshadsaifi79

Script is created and provided by Arshad (http://facebook.com/mohd.arshadsaifi79)
**************************************/
include 'db.php';
include 'functions.php';

headtag("$SiteName - Payment Gateway Login");

$amount=formget("amount");
$invoice=formget("invoice");
$description=formget("description");
$company=formget("company");
$merchant=formget("merchant");
$return_url=formget("return_url");
$cancel_url=formget("cancel_url");
$notify_url=formget("notify_url");

if(isset($_POST['user_username']) AND isset($_POST['user_pwd'])){
     
     $user_username=formpost("user_username");
     $user_pwd=formpost("user_pwd");
     $user_password=md5($user_pwd);
     $do = mysql_query("SELECT * FROM userdata WHERE username='$user_username' AND password='$user_password'");
     $isit = mysql_num_rows($do);

if($isit==1){
$_SESSION['earnbuzz_user']=$user_username;
$_SESSION['earnbuzz_pass']=$user_password;

$_SESSION["amount"]=$amount;
$_SESSION["invoice"]=$invoice;
$_SESSION["description"]=$description;
$_SESSION["company"]=$company;
$_SESSION["merchant"]=$merchant;
$_SESSION["return_url"]=$return_url;
$_SESSION["cancel_url"]=$cancel_url;
$_SESSION["notify_url"]=$notify_url;
	
   header("Location:paymentpage.php");

}

else
{
echo '<div class="title"><img src="/error.png"/> <font color="red">Login Error:</font></div>';
 echo '<div class="error">Username OR Password is Wrong!</div>';
}
}

   echo '<div class="title">Log in</div>';
   echo '<div class="success">You are paying '.$amount.'$ to '.$company.'</div>';
   echo '<div class="form"><form method="post"><label for="user_username">Username:</label><br/><input type="text" name="user_username"/><br/><label for="user_password">Password:</label><br/><input type="password" name="user_pwd"/><br/><div id="forgot"><img src="http://earnbuzz.in/forgot.png" alt="?"/> <a href="/user/forgot">Forgot Password?</a></div><input type="submit" value="Log in"/></form></div>';

echo '<div class="page"><a href="'.$cancel_url.'">Cancel & Go Back To Merchant</a></div>';
include 'foot.php';

?>