MOON
Server: Apache
System: Linux e2e-78-16.ssdcloudindia.net 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
User: imensosw (1005)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/imensosw/www/imenso.co/demo/resume-maker/success.php
<?php
error_reporting(0);
 include("header-member.php");
 ?>

<?php
require('include/initalizedb.php');


?>
<body class="back_color">
<?php include("sidebar.php");  ?>
    <div class="main_wrp">
<?php
 include("login_header.php"); 
      

if(!isset($_SESSION['session_id'])) {
	echo "Google";
	header("Location:".PATH);
	exit;
}
  $user_id = $_SESSION['session_id'];
?>


  <div id="profile_main">
    <div class="profile_wrap ">
      <div class="profile_inner">
        <div class="row">
          <div class="col-lg-5 col-lg-offset-4 ">
            <div class="product_by">
              <div class="thank_tag">
                <h5><?php


//Store transaction information from PayPal
$item_number = $_GET['item_number']; 
$txn_id = $_GET['tx'];
$payment_gross = $_GET['amt'];
$currency_code = $_GET['cc'];
$payment_status = $_GET['st'];

//Get product price
/*$productResult = $db->query("SELECT price FROM products WHERE id = ".$item_number);
$productRow = $productResult->fetch_assoc();
$productPrice = $productRow['price'];*/
$productPrice="$5";
if($txn_id)
{
  //Check if payment data exists with the same TXN ID.
    /*$prevPaymentResult = $db->query("SELECT payment_id FROM payments WHERE txn_id = '".$txn_id."'");

    if($prevPaymentResult->num_rows > 0){
        $paymentRow = $prevPaymentResult->fetch_assoc();
        $last_insert_id = $paymentRow['payment_id'];
    }else{*/

        //Insert tansaction data into the database
        $insert = $db->query("INSERT INTO billing(user_id,amount,plan) VALUES('".$user_id."','".$productPrice."','full')");
        $last_insert_id = $db->insert_id;
   // }
?>
  Your payment has been successful.<br/>
    <?php
    if(isset($item_number) && !empty($item_number))
     echo "Your Payment ID - $last_insert_id <br/><a href='pdf.php?resume_id=$item_number & user_id=$user_id'>Download</a><br/>";
    ?>
<?php
}
else
{
?>
Your payment has failed.
<?php
}
?></h5>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>




        <footer>
            <div class="site_footer_2">
                <div class="copy_rights">
                    <p class="mar_0">© 2016. All Rights Reserved</p>
                </div>
            </div>
        </footer>


<?php include("footer.php") ; ?>