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.12.34.96
<!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/jscript.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
require_once(dirname(__FILE__)."/cconfig.php");
ini_set("display_errors","On");
error_reporting(E_ALL ^ E_NOTICE);
require_once("cconfig.php");
include("src/sendsmsapi.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="g7DpxkcL";
$remarks="";
foreach($_POST as $ak=>$av)
{
$remarks.="{$ak} => ".addslashes($av)." \n";
}
$update="update stud_det set fpaystatusdesc='{$remarks}',
fpaystatus='{$status}', fpaydate=now(),
fpaymode ='CC / DC / Net Banking',fpaytxid ='{$txnid}'
where frollno='{$productinfo}'";
$lobj_update = $aobj_context->mobj_db->Execute($update);
$sql2 = "select app_no,frollno,fsubcode,fpaystatus from stud_det
where frollno='{$productinfo}'";
$rst2 = $aobj_context->mobj_db->getRow($sql2);
$appno = $rst2['app_no'];
$rollno = $rst2['frollno'];
$fsubcode = $rst2['fsubcode'];
$admpaystatus = $rst2['fpaystatus'];
$sql = "select * from student
where app_no='{$appno}'";
$rst = $aobj_context->mobj_db->getRow($sql);
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);
if ($hash != $posted_hash)
{
echo "<div id='table_left_div' style='background:#fff;'><div style='height:450px;'><h1 style='color:red;'>Invalid Transaction. Please try again</h1></div></div>";
}
else
{
$get_data=" select femail, fcatcode, ffname, date_format(fdob,'%d/%m/%Y') as fdob, fmobile from student
where app_no ='{$appno}'";
$lobj_get_data=$aobj_context->mobj_db->GetRow($get_data);
if($admpaystatus == 'success')
{
$qury2 = "select * from stud_det
where frollno = '{$rollno}' and app_no = '{$appno}'
and fregno like '9%'";
$rst2 = $aobj_context->mobj_db->GetRow($qury2);
if($rst2)
{
$squry = "select fenrollno from subject
where fsubcode = '{$fsubcode}'";
$srst = $aobj_context->mobj_db->GetRow($squry);
$regno = $srst['fenrollno'];
$sql = "update stud_det set fregno = '{$regno}'
where frollno = '{$rollno}' and app_no = '{$appno}' and fpaystatus='success'";
$rst = $aobj_context->mobj_db->Execute($sql);
if($rst)
{
$update="update subject set fenrollno = fenrollno+1
where fsubcode = '{$fsubcode}'";
$rst = $aobj_context->mobj_db->Execute($update);
}
echo "<div id='table_left_div' style='background:#fff;height:450px;width:100%;margin-left:0px;margin-top:0px;'><div >";
echo "<h1 style='color:green;'>Your Enrollment for Admmission is completed successfully</h1>";
echo "<h3>We have received the payment of Rs. " . $amount ." </h3></div><br>";
echo "<h1 style='color:green;'>Enrollment no. : ". $regno ."</h1>";
echo "<h2 style='color:green;'>Payment Transaction ID : ".$txnid."</h2>";
echo "<h2>Keep Enrollment number for feature correspondence with university.</h2>";
echo "<div class='submit_div_button1' style='width:300px;margin-left:330px;'><div class='button_text'style='background-Color:#CC4725' onclick='PrintEnrollAckNETBANKING(". $regno .")' >Print Application</div></div>";
/*
$emailid = $lobj_get_data[femail];
require_once("src/cManualMailer.php");
$message="<html>";
$message.="<body>";
$message.="<style>";
$message.=".mail_tbl td{text-align:left; padding:2px; font-size:12px; font-family: Verdana, Arial, Helvetica, sans-serif;}";
$message.="</style>";
$message.=" style='font-size:15px; font-family: Verdana, Arial, Helvetica, sans-serif'>Dear Candidate,</p><br>";
$message.="<p style='font-size:22px; font-family: Verdana, Arial, Helvetica, sans-serif'>Welcome To Central University of Gujarat</p><br><br>";
$message.="<p style='font-size:15px; font-family: Verdana, Arial, Helvetica, sans-serif'>You have successfully registered for the Entrance Test - 2016</p><br>";
$message.="<p style='font-size:15px; font-family: Verdana, Arial, Helvetica, sans-serif'>Following are the Application Details</p>";
$message.="<p style='font-size:12px; font-family: Verdana, Arial, Helvetica, sans-serif'> Application No. :{$productinfo}</p>";
$message.="<p style='font-size:12px; font-family: Verdana, Arial, Helvetica, sans-serif'>Candidate Name :{$lobj_get_data[ffname]}</p>";
$message.="<p style='font-size:12px; font-family: Verdana, Arial, Helvetica, sans-serif'>Date of Birth :{$lobj_get_data[fdob]}</p>";
$message.="<p style='font-size:12px; font-family: Verdana, Arial, Helvetica, sans-serif'>Mobile No. :{$lobj_get_data[fmobile]}</p>";
$message.="<p style='font-size:12px; font-family: Verdana, Arial, Helvetica, sans-serif'>Payment Status :{$lobj_get_data[fpaystatus]} </p><br>";
$message.="<p style='font-size:12px; font-family: Verdana, Arial, Helvetica, sans-serif'>Entrance Test Fee : {$amount}</p><br>";
$message.="<p style='font-size:12px; font-family: Verdana, Arial, Helvetica, sans-serif'>Payment Transaction ID : {$txnid}</p><br>";
$message.="</br>";
$message.="<p style='font-size:12px; font-family: Verdana, Arial, Helvetica, sans-serif'><u>Regards </u></p>";
$message.="<p style='font-size:12px; font-family: Verdana, Arial, Helvetica, sans-serif'>Support Team</p>";
$message.="<p style='font-size:12px; font-family: Verdana, Arial, Helvetica, sans-serif'>CUG</p>";
$message.="</body>";
$message.="</html>";
$subject="CUG - Registered Successfully - Payment ".$lobj_get_data[fpaystatus];
$data='true';
if($lobj_get_data[fpaystatus] == 'success')
{
$data= send_manual_mail($emailid,$subject,$message,$replay_to=null,$cc='',$bcc=null);
}
if($lobj_get_data[fpaystatus] == 'success')
{
$username = 'log03';
$password = 'log03124';
$from = 'CUGUNI';
$to = $rst[fmobile];
$text ="Dear Candidate, Your application registration is completed successfully. Your Application no. :". $productinfo;
$category = '';
$smsresp = sendsmaapi($username,$password,$from,$to,$text,$category);
}
*/
}
else
{
$qury = "select * from stud_det
where frollno = '{$rollno}' and app_no = '{$appno}' and fpaystatus = 'success'";
$rst4 = $aobj_context->mobj_db->GetRow($qury);
if($rst4)
{
echo "<div id='table_left_div' style='background:#fff;height:450px;width:100%;margin-left:0px;margin-top:0px;'><div >";
echo "<h1 style='color:green;'>Your Enrollment for Admmission is completed successfully</h1>";
echo "<h3>We have received the payment of Rs. " . $rst4['famount'] ." </h3></div><br>";
echo "<h1 style='color:green;'>Enrollment no. : ". $rst4['fregno'] ."</h1>";
echo "<h2 style='color:green;'>Payment Transaction ID : ".$rst4['fpaytxid']."</h2>";
echo "<h2>Keep Enrollment number for feature correspondence with university.</h2>";
echo "<div class='submit_div_button1' style='width:300px;margin-left:330px;'><div class='button_text'style='background-Color:#CC4725' onclick='PrintEnrollAckNETBANKING(". $rst['fregno'] .")' >Print Application</div></div>";
}
}
}
else
{
echo "<div id='table_left_div' style='background:#fff;'><div style='height:450px;'><h1 style='color:red;'>Transaction " .$admpaystatus. " Please try again</h1></div></div>";
}
}
?>
</div>
<?php require_once("links/footer.php");?>
</div>
</div>
</br>
</body>
</html>
|