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.141.47.139
<?php
//require_once("links/header.php");
?>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>ORMS</title>
<link rel="shortcut icon" type="image/x-icon" href="../images/favicon.jpg" />
<link rel="stylesheet" href="css/style.css" type="text/css" media="all" />
<link rel="stylesheet" href="css/logstyle.css" type="text/css" media="all" />
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.css" rel='stylesheet' type='text/css' />
<script src="js/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="js/index.js" type="text/javascript"></script>
<script src="js/control.js" type="text/javascript"></script>
<script src="js/dytable.js" type="text/javascript"></script>
<script src="js/validate.js" type="text/javascript"></script>
<script src="js/form_submit.js" type="text/javascript"></script>
<script src="js/loadtable.js" type="text/javascript"></script>
<script src="js/home.js" type="text/javascript"></script>
<script src="js/home2.js" type="text/javascript"></script>
</head>
<body onload="loaddata()">
<!-- wrapper -->
<div id="wrapper">
<!-- shell -->
<div class="shell">
<!-- container -->
<div class="container">
<div style="margin-right:10px;padding-top:8px;color:#fff;" class="nav-top">
<span style="padding-left:5px;width:400px;" id="datestr"></span>
<span style="float:right;padding-right:10px;"> <span id="user_name"></span> <span onclick="home()" style = 'cursor: pointer;' >Home</span> | <span onclick="logoutsession()" style = 'cursor: pointer;'>Logout</span></span>
</div>
<!-- header -->
<header class="header">
<h1 id="logo"><a href="#">Logisys</a>
<input type = 'hidden' id = 'appno' >
<input type = 'hidden' id = 'post_id' >
<input type = 'hidden' id = 'post_subject' >
<span id = "postdata" style = "font-size:18px;margin-left:30%;float:center;"></span>
</h1>
<br style="clear:both;"/>
<nav id="navigation" >
<ul style = "margin-left:3%;">
<li class=""><a href="#" class="" ></a></li>
<li class=""><a href="#" ></a></li>
<li class=""><a href="#"></a></li>
<li class=""><a href="#" ></a></li>
<li class=""><a href="#" ></a></li>
<li class=""><a href="#" ></a></li>
<li class=""><a href="#" ></a></li>
<li class=""><a href="#" ></a></li>
<li class=""><a href="#" ></a></li>
<li class=""><a href="#" ></a></li>
<!-- <li><a href="#">Upload documents</a></li>
<li><a href="#">Preview</a></li>
<li><a href="#">Payment</a></li>
<li>
<a href="#">Reprint Challan</a>
</li> -->
</ul>
</nav>
<div class="cl"> </div>
</header>
<!-- end of header -->
<div class="main" id = 'page_main_page' style = "margin-left:3%;margin-right:2%;" > <?php
require_once(dirname(__FILE__)."/cconfig.php");
ini_set("display_errors","On");
error_reporting(E_ALL ^ E_NOTICE^ E_WARNING);
require_once("cconfig.php");
$aobj_context=CConfig::CreateNewDbContext();
$status=$_POST["status"];
$firstname =$_POST["firstname"];
$amount =$_POST["amount"];
$txnid =$_POST["txnid"];
$posted_hash=$_POST["hash"];
$key =$_POST["key"];
$productinfo=$_POST["productinfo"];
$email =$_POST["email"];
//$salt = "MQmZaJLHtO";//MQmZaJLHtO
$salt = "28DcdKtthz";
$remarks="";
foreach($_POST as $ak=>$av)
{
$remarks.="{$ak} => ".addslashes($av)." \n";
}
$update="update postdet set fpaymentremarks='{$remarks}',
fpaymentstatus='{$status}',
ftranid='{$txnid}',
fpaymentdate = now()
where fappno='{$productinfo}'";
$lobj_update = $aobj_context->mobj_db->Execute($update);
If(isset($_POST["additionalCharges"]))
{
$additionalCharges=$_POST["additionalCharges"];
$retHashSeq = $additionalCharges.'|'.$salt.'|'.$status.'|||||||||||'.$email.'|'.$firstname.'|'.$productinfo.'|'.$amount.'|'.$txnid.'|'.$key;
}
else
{
$retHashSeq = $salt.'|'.$status.'|||||||||||'.$email.'|'.$firstname.'|'.$productinfo.'|'.$amount.'|'.$txnid.'|'.$key;
}
$hash = hash("sha512", $retHashSeq);
//var_dump($posted_hash);
if ($hash != $posted_hash)
{
echo "<h1 style='color:red;'>Invalid Transaction.Please try again";
}
else
{
$get_data=" select fpaymentstatus from postdet
where FAPPNO ='{$productinfo}' limit 1";
$lobj_get_data=$aobj_context->mobj_db->GetRow($get_data);
//
//
$pay = $lobj_get_data['fpaymentstatus'];
if($pay == 'success')
{
$update="update postdet set appstatus='T' where fappno='{$productinfo}'";
$lobj_update = $aobj_context->mobj_db->Execute($update);
echo " <div class='col-xs-9 center-block' style='float:none;margi:0 auto;'> <h1 style='color:green;'>Thank You. Your payment status is ". $status ."</h1>";
echo "<h2>Your Transaction ID for this transaction is ".$txnid.".</h2>";
echo "<h3>We have received a payment of Rs. " . $amount ."</h3>";
$html='<button style = "text-align:center;background-color:lightblue;font-family:italic;" onclick=\'Printapplication("'.$productinfo.'");\' type="button">Print Application</button>';
$html.='</div> ';
echo $html;
}
else
{
echo "<div id='table_left_div' style='background:#fff;'><div style='height:450px;'><h1 style='color:red;'>Transaction " .$lobj_get_data[fpaymentstatus]. " Please try again</h1></div></div>";
}
}
?>
<div >
</div>
</div>
<section style="background: url(images/appfromHd.jpg) repeat 0 0;">
</section>
<!-- end of main -->
</div>
<!-- end of container -->
</div>
<!-- end of wrappert -->
<!-- end of shell -->
</div>
<script src="js/script.js"></script>
<script src="js/home.js" type="text/javascript"></script>
</body>
</html>
<!-- END CONTAINER
<?php
//require_once("links/footer.php");
?>
|