0xV3NOMx
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 : 18.218.3.204


Current Path : /proc/thread-self/root/var/www/html/gug/hdfc/
Upload File :
Current File : //proc/thread-self/root/var/www/html/gug/hdfc/ccavResponseHandler.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <meta http-equiv="pragma" content="no-cache" />
    <title>Examination Automation</title>   
    <meta http-equiv="cache-control" content="max-age=0" />
    <meta http-equiv="cache-control" content="no-cache" />
    <meta http-equiv="expires" content="0" />
    <meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
    <meta http-equiv="pragma" content="no-cache" />
    <!-- css files-->
    <link rel="shortcut icon" type="image/jpg" href="images/tarka_favicon.jpg" />   
    <link rel="stylesheet" type="text/css"  href="../css/main.css" />
    <link rel="stylesheet" type="text/css"  href="../css/loginpage.css"  /> 
    <!-- <link rel="stylesheet" type="text/css"  href="css/jquery.alerts.css"   /> -->
    <link rel="stylesheet" type="text/css" href="../JQGrid3.5/css/jquery-ui-1.7.2.custom.css"  />
    <!--javascript files-->
    <script type="text/javascript" src="../js/checkbrowser.js"></script>
    <script type="text/javascript" src="../JQGrid3.5/js/jquery-1.3.2.js"></script>
    <!-- <script type="text/javascript" src="JQGrid3.5/js/jquery-ui-1.7.2.custom.min.js"></script> -->
    <script type="text/javascript" src ="../js/index.js?v=21092018" ></script>
    <script src="../libs/jquery.jclock-1.2.0.js.txt" type="text/javascript"></script>
<!--    <script type="text/javascript" src="js/base_file/spinner.js"></script> -->
     <script type="text/javascript">
            /*
            $(function(){
            // Dialog           
                $('#dialog').dialog({
                    autoOpen: false,
                    modal: true,
                    width: 600,
                    buttons: {
                        "Ok": function() { 
                            $(this).dialog("close"); 
                        }, 
                        "Cancel": function() { 
                            $(this).dialog("close"); 
                        } 
                    }
                });
            });     
            */
            $(function($) {
            $('.jclock').jclock();
            });
        </script> 
  </head>
<body>
         
        <div class="mainbody" align="center">
            
            <!-- Header div part-->
            <div class="header">
            
                <div class="header-top">
                    <div class="logo" align="left"></div>
                    <div class="headerDetails" align="right">                           
                        <div class="tarka-site">  
                            
                        </div>                      
                    </div>
                </div>  
                
                <div class="header-bottom">
                  <div style="float:left;"></div>       
                    <div class="package" style="margin-left:2px;" ><span id='university_name'>BENGALURU CENTRAL UNIVERSITY</span></div>
                    <div class="MainMenu" id="system_menu"></div>
                </div>
                <div  id='tarka_menu_html_div' style="display:none"> </div>
                
            </div>
            <!-- End Header div part-->
            
            <!--Main Contents Div -->
            <div class="contents">
            
            <div class="loginpage_main__div">

<?php include('Crypto.php')?>
<?php

	error_reporting(0);
	
	$workingKey='B600FDBF3FCBA75FD14C622ADA90FF5B';		//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>";
    $response = array();
    
    $servername = "97.74.228.93";
    $username = "logisys3_logu";
    $password = "Logisys@2106";
   
    /*$servername = "localhost";
    $username = "root";
    $password = "";*/

    $dbname = "logisys3_bcu";

    $conn = new mysqli($servername, $username, $password, $dbname);


	for($i = 0; $i < $dataSize; $i++) 
	{
		$information=explode('=',$decryptValues[$i]);
		/*if($i==3)	
			$order_status=$information[1];*/
		$response[$information[0]] = $information[1];
	}
	var_dump($response);
	if($response['order_status'] === "Success")
	{
		$html = "<div style='color:green;'><p style='font-size:20;font-weight:800;'>
		Your payment was successful for Amount : {$response['amount']}</p>
			 <p style='font-size:20;font-weight:800;'>Order ID for Transaction: {$response['order_id']} <br/><br/>
             Transaction ID : {$response['tracking_id']}</p></div>";

        $update="update collfundtransfer set fpaymentremarks = '{$response['order_id']}',fpaymenttranid = '{$response['tracking_id']}', 
        fpaymentstatus = 'success', fpaymentdate = now()
        where fid ='{$productinfo}'";
        //$result=$conn->query($update);

	}
	else if($response['order_status'] === "Aborted")
	{
		$html = "<p>Your payment was Aborted</p>";
	
	}
	else if($response['order_status'] === "Failure")
	{
		$html = "<div style='color:red;'><p style='font-size:20;font-weight:800;'>
		Your payment was Failure for Amount : {$response['amount']}</p>
			 <p style='font-size:20;font-weight:800;'>Order ID for Transaction: {$response['order_id']}";
	}
	else
	{
		$html =  "<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 $html;

	/*

	*/
?>
</div>
</body>

</html>