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.116.85.111


Current Path : /proc/thread-self/root/var/www/html/gfgcg/phdadm/
Upload File :
Current File : //proc/thread-self/root/var/www/html/gfgcg/phdadm/verify.php

<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <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" />
    <title>Ph.D. Online Registration</title>
    <!-- Favicon-->
    <link rel="icon" href="images/favicon.jpg" type="image/x-icon">

    <!-- Google Fonts -->
    <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,600,700,800&amp;subset=latin-ext" rel="stylesheet">
    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" type="text/css">
    <!-- Bootstrap Core Css -->
    <link href="plugins/bootstrap/css/bootstrap_phd.css?v=111" rel="stylesheet">

    <!-- Waves Effect Css -->
    <link href="plugins/node-waves/waves.css" rel="stylesheet" />

   <link href="plugins/dropzone/dropzone.css" rel="stylesheet">
    <!-- Custom Css -->
    <link href="css/style_phd.css" rel="stylesheet">
    <link href="css/themes/all-themes.css" rel="stylesheet" />
</head>

<body class="theme-pink">
    <!-- Page Loader -->
    <div class="page-loader-wrapper">
        <div class="loader">
            <div class="preloader">
                <div class="spinner-layer pl-red">
                    <div class="circle-clipper left">
                        <div class="circle"></div>
                    </div>
                    <div class="circle-clipper right">
                        <div class="circle"></div>
                    </div>
                </div>
            </div>
            <p>Please wait...</p>
        </div>
    </div>
    <!-- #END# Page Loader -->
    <!-- Top Bar -->
   <nav class="navbar">
        <div class="container-fluid" style="color: #fff;">
            <div class='col-md-12 m-t--5'>
                <a href="index.html" style="float: right; padding-top: 15px;font-size:16px;color: #fff;">Home</a>
                <center>
                  <h2>Bengaluru Central University</h2>
                </center>
                <center>
                  <h3 style="margin-top: -4px;margin-right: 30px;">Ph.D. Course Work Online Registration</h3>
                </center>
            </div>
        </div>
    </nav>
    
    
    <section class="content">
    	<div class="row clearfix">
		   	<div class="container-fluid">
		        <div class="col-lg-10 col-md-10 col-sm-12 col-xs-12">
		            <div class="card">
                    <div class="header">
  		            		<h2>PAYMENT STATUS</h2>
                    </div>
                    <div class="body">
                      <div class="row clearfix">
                        

<?php

require('razorpay/config.php');
@session_start();

require('razorpay/razorpay-php/Razorpay.php');
use Razorpay\Api\Api;
use Razorpay\Api\Errors\SignatureVerificationError;

$success = true;

$error = "Payment Failed";


if (empty($_POST['razorpay_payment_id']) === false)
{
    $api = new Api($keyId, $keySecret);
   
    try
    {
        // Please note that the razorpay order ID must
        // come from a trusted source (session here, but
        // could be database or something else)

        $attributes = array(
            'razorpay_order_id' => $_SESSION['razorpay_order_id'],
            'razorpay_payment_id' => $_POST['razorpay_payment_id'],
            'razorpay_signature' => $_POST['razorpay_signature']
        );
       // var_dump($attributes);
        $api->utility->verifyPaymentSignature($attributes);
        //var_dump($api);
    }
    catch(SignatureVerificationError $e)
    {
        $success = false;
        $error = 'Razorpay Error : ' . $e->getMessage();
    }
}
//pay_BM9pU1wNQgNrzY
if ($success === true)
{
    $html = "<p>Your payment was successful</p>
             <p>Payment ID: {$_POST['razorpay_payment_id']}</p>";

            // use Razorpay\Api\Api;
             $paymentid = $_POST['razorpay_payment_id'];
            
            $api = new Api($keyId, $keySecret);
            $payment = $api->payment->fetch("{$paymentid}");
      
            $servername = "97.74.228.93";
            $username = "logisys3_logu";
            $password = "Logisys@2106";
           /* $servername = "localhost";
            $username = "root";
            $password = "";*/
            $dbname = "logisys3_comexam";
            $conn = new mysqli($servername, $username, $password, $dbname);
            
            $get_data = "select * from dbname where ifnull(fdeleted,'') <> 'T'";

            $result1=$conn->query($get_data); 

            if (mysqli_num_rows($result1) > 0) 
            {
                // output data of each row
                $dbnames = array();
                while($row = mysqli_fetch_assoc($result1)) 
                {
                    $dbnames[$row['FUNIVCODE']] = $row['FDBNAME'];
                }
            }

            mysqli_close($conn);

            $servername = "97.74.228.93";
            $username = "logisys3_logu";
            $password = "Logisys@2106";
         
           /*$servername = "localhost";
            $username = "root";
            $password = "";*/

            $dbname = $dbnames[$payment->notes->univcode];

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

            $status = "success";
            $productinfo = $payment->notes->appno;
            $txnid = $payment->id;

            $payment['TXNAMOUNT'] = ((float)$payment->amount/100);
           
            $firstname = 'razorpay';
            $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. " . $payment['TXNAMOUNT']  ."</h3>";

            $html = "";
            $html="
            <div class='m-l-10 btn btn-primary waves-effect btn' >
            <span onclick=\"PrintApplicationFormNETBANKING('{$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 phdstudadm set FPAYREMARKS = '{$txnid}',FPAYID = '{$txnid}', 
            FPAYSTATUS = 'success', FPAYDATE = now()
            where fappno ='{$productinfo}'";
            $result=$conn->query($update);
}
else
{
    $html = "<p>Your payment failed</p>
             <p>{$error}</p>";
    echo $html;
}


?>
                    
                      </div>
                    
                  </div>
                   
                  </div>
                </div>
              </div>
            </div>
  </section>

<!-- Modal -->

    <script src="js/appForm.js"></script>
    <script src="js/control.js"></script>
    <script src="js/validate.js"></script>

    <!-- Jquery Core Js -->
    <script src="plugins/jquery/jquery.min.js"></script>
    <script src="js/Registrationpage.js"></script>

    <!-- Bootstrap Core Js -->
    <script src="plugins/bootstrap/js/bootstrap.js"></script>

    <!-- Select Plugin Js -->
    <script src="plugins/bootstrap-select/js/bootstrap-select.js"></script>

    <!-- Slimscroll Plugin Js -->
    <script src="plugins/jquery-slimscroll/jquery.slimscroll.js"></script>

    <!-- Waves Effect Plugin Js -->
    <script src="plugins/node-waves/waves.js"></script>

    <script src="plugins/jquery-validation/jquery.validate.js"></script>
    <script src="plugins/jquery-steps/jquery.steps.js"></script>
	<script src="js/pages/forms/form-wizard.js"></script>
    <script src="plugins/sweetalert/sweetalert.min.js"></script>
	<!-- Autosize Plugin Js -->
  <script src="https://checkout.razorpay.com/v1/checkout.js"></script>
    <script src="js/form_submit.js"></script>

    <!-- Input Mask Plugin Js -->
    <script src="plugins/jquery-inputmask/jquery.inputmask.bundle.js"></script>

    <script src="plugins/dropzone/dropzone.js"></script>
    <script src="plugins/bootstrap-tagsinput/bootstrap-tagsinput.js"></script>
    <script src="plugins/jquery-validation/jquery.validate.js"></script>
    <script src="plugins/jquery-steps/jquery.steps.js"></script>
    <script src="plugins/sweetalert/sweetalert.min.js"></script>

    <!-- Custom Js -->
    <script src="js/admin.js"></script>

    <script src="js/appStatus.js"></script>
    <script src="js/kusPhdAdm.js"></script>
    <!-- Demo Js -->
    <script src="js/demo.js"></script>
    <script type="text/javascript">
        $(function() {
           $("li").click(function() {
              // remove classes from all
              $("li").removeClass("active");
              // add class to the one we clicked
              $(this).addClass("active");
           });
        });
         var $demoMaskedInput = $('.daterange');

        //Date
        $demoMaskedInput.find('.date').inputmask('dd/mm/yyyy', { placeholder: '__/__/____' });
    </script>
</body>

</html>