$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 "";
}
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')
{
$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 "
"; echo "
"; $message.="
"; $message.="
"; $message.="
"; $message.="
"; $message.="
"; $message.=""; $message.="";
}
}
?>
Invalid Transaction. Please try again
";
echo "
Your Enrollment for Admmission is completed successfully
"; echo "We have received the payment of Rs. " . $amount ."
"; echo "
Enrollment no. : ". $regno ."
"; echo "Payment Transaction ID : ".$txnid."
"; echo "Keep Enrollment number for feature correspondence with university.
"; echo " "; /* $emailid = $lobj_get_data[femail]; require_once("src/cManualMailer.php"); $message=""; $message.=""; $message.=""; $message.=" style='font-size:15px; font-family: Verdana, Arial, Helvetica, sans-serif'>Dear Candidate,"; $message.="
Welcome To Central University of Gujarat
"; $message.="
You have successfully registered for the Entrance Test - 2016
"; $message.="
Following are the Application Details
"; $message.="Application No. :{$productinfo}
"; $message.="Candidate Name :{$lobj_get_data[ffname]}
"; $message.="Date of Birth :{$lobj_get_data[fdob]}
"; $message.="Mobile No. :{$lobj_get_data[fmobile]}
"; $message.="Payment Status :{$lobj_get_data[fpaystatus]}
"; $message.="
Entrance Test Fee : {$amount}
"; $message.="
Payment Transaction ID : {$txnid}
"; $message.=""; $message.="
Regards
"; $message.="Support Team
"; $message.="CUG
"; $message.=""; $message.=""; $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 { echo "