Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.147.46.174
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="shortcut icon" type="image/jpg" href="img/favicon.jpg" />
<?php require_once("links/js_files.php");?>
<script src="js/candidate_list.js"></script>
<script type="text/javascript">
$(function(){
$('.index_label_div').corner("5px").css("border","1px solid #6F6868");
$('.messageboard-div').corner("5px").css("border","1px solid #6F6868");
$('.reg_no_div').corner("bl br").css("border","1px solid #6F6868");
$('#main_message_board').corner("bl br").css("border","1px solid #2596CE");
$('.submit_div_button').corner("5px");
$('.div_app_form_center_blue').corner("tl tr");
$('.div_app_form_center_black').corner("tl tr");
$('#print_app_form').corner("5px");
});
</script>
</head>
<body >
<div id='main_frame'>
<div class='header_main_div'>
<?php require_once("links/header.php");?>
<div id='main_page_div' style=' text-align: center;'>
<?php include('hdfc/Crypto.php')?>
<?php
error_reporting(0);
$bank = 'hdfc';
$servername = "97.74.228.93";
$username = "logisys3_logu";
$password = "Logisys@2106";
$dbname = "logisys3_sikkim";
$conn = new mysqli($servername, $username, $password, $dbname);
$get_data = "select * from masbank
where fenttype = 'res' and fbank = '{$bank}'";
$result=$conn->query($get_data);
if (mysqli_num_rows($result) > 0)
{
// output data of each row
while($row = mysqli_fetch_assoc($result))
{
// var_dump($row);
$working_key = $row['fmid'];
$access_code = $row['fkey'];
$website = $row['fwebsite'];
$returnurl = $row['freturnurl'];
}
}
$workingKey = $working_key; //Working Key should be provided here.
$encResponse = $_POST["encResp"]; //This is the response sent by the CCAvenue Server
$rcvdString = decrypt($encResponse,$workingKey); //Crypto Decryption used as per the specified working key.
$order_status = "";
$decryptValues = explode('&', $rcvdString);
$dataSize = sizeof($decryptValues);
echo "<center>";
for($i = 0; $i < $dataSize; $i++)
{
$information=explode('=',$decryptValues[$i]);
$response[$information[0]] = $information[1];
}
if($response['order_status']==="Success")
{
$productinfo = $response['merchant_param3'];
$txnid = $response['tracking_id'];
$amt = $response['amount'];
$firstname = 'HDFC';
$status = 'success';
$html = "";
echo "<h1 style='color:green;'>Thank You. Your order status is success</h1>";
echo "<h2>Your Transaction ID for this transaction is ".$txnid.".</h2>";
echo "<h3>We have received a payment of Rs. " . $amt ."</h3>";
$html="
<div class='raval_submit' style='width:241px;float:none; margin: 0 auto;' >
<span onclick=\"PrintRevaluationApplicationForm('{$productinfo}');\" style='float:left;margin-left:8px;cursor: pointer; line-height: 19px;font-size:14px;font-weight:bold;'>Click here to take a PrintOut</span>
</div>";
echo $html;
$html = "";
$update="update res_stud set FPAYMENTREMARKS='{$txnid}',FPAYMENTSTATUS='{$status}',
FPAYMENTCONFIRM='{$status}', fackdate = current_date(), funivrecdate = current_date(),
fackuser = '{$firstname}', FCHALLANNO = '{$txnid}'
where APPNO='{$productinfo}'";
$result=$conn->query($update);
//echo "<br>Thank you for shopping with us. Your credit card has been charged and your transaction is successful. We will be shipping your order to you soon.";
}
else if($order_status==="Aborted")
{
echo "<br>Thank you for shopping with us.We will keep you posted regarding the status of your order through e-mail";
}
else if($order_status==="Failure")
{
echo "<br>Thank you for shopping with us.However,the transaction has been declined.";
}
else
{
echo "<br>Security Error. Illegal access detected";
}
echo "<br><br>";
echo "<table cellspacing=4 cellpadding=4>";
// for($i = 0; $i < $dataSize; $i++)
// {
// $information=explode('=',$decryptValues[$i]);
// echo '<tr><td>'.$information[0].'</td><td>'.urldecode($information[1]).'</td></tr>';
// }
echo "</table><br>";
echo "</center>";
?>
</div>
<?php require_once("links/footer.php");?>
</div>
</div>
</br>
</body>
</html>
|