PK

ADDRLIN : /home/questend/www/domains/rwa40.com/admin/adjustment-entry/
FLL :
Current File : /home/questend/www/domains/rwa40.com/admin/adjustment-entry/paynow.php

<?php
   ob_start();
   error_reporting(E_ALL ^ E_NOTICE);
   @session_start();
   ini_set('allow_url_include',1);    
   date_default_timezone_set("Asia/Kolkata");
   set_time_limit(600);
   ini_set('max_execution_time',600);
   include '../includes/settings/constant.php';
   //include '../includes/settings/db.php';
   require_once '../includes/settings/PDODB.php';
   include '../includes/modules/functions.php';
   
   $function = new FUNCTIONS();
   
   if(empty($_SESSION['adminId']) && empty($_SESSION['admin_role_id'])) {
      header("Location: ../index.php");
      exit();
   }
   
   $ipaddress = $function->getRealIpAddr();
   //print_r($member_id);
   //print_r($_POST); exit;
   if(isset($_POST['payBtn']) && !empty($_POST)){  
      //print_r($_POST['payBtn']); exit;
      $entrytype = !empty($_POST['payBtn'])?trim($_POST['payBtn']):"";
      $particular = !empty($_POST['particular'])?trim($_POST['particular']):"";
      $uid = !empty($_POST['uid'])?trim($_POST['uid']):"";
      $amount = !empty($_POST['amount'])?trim($_POST['amount']):"";
      $owner_name = !empty($_POST['owner_name'])?trim($_POST['owner_name']):"";
      $house_no = !empty($_POST['house_no'])?trim($_POST['house_no']):"";
      

      $_SESSION['uid']=$uid;
      $_SESSION['owner_name'] = $owner_name;
      $_SESSION['house_no'] = $house_no;
      $_SESSION['entrytype']=$entrytype;

      $pdodb = PDODB::getInstance();

      $date = date('Y-m-d H:i:s');
      
      if ($entrytype=='Debit') {
          

          $sql2 = "INSERT INTO accounts SET uid='".$uid."',transaction_id='".$TXNID."',particular='".$particular."',debit='".$amount."',txndate='".$date."',ipaddress='".$ipaddress."', is_adjustment='2'";

          $result2 = $pdodb->query($sql2);
            //print_r($result2); exit;
          $_SESSION['orderid'] = $ORDER_ID;
          header("Location: adjustment-entry-list.php");
      } else{
          

          $sql2 = "INSERT INTO accounts SET uid='".$uid."',transaction_id='".$TXNID."',particular='".$particular."',credit='".$amount."',txndate='".$date."',ipaddress='".$ipaddress."', is_adjustment='2'";

          $result2 = $pdodb->query($sql2);
            //print_r($result2); exit;
          $_SESSION['orderid'] = $ORDER_ID;
          header("Location: adjustment-entry-list.php");
      }
        
        //print_r($_SESSION['uid']); exit;
        PDODB::closeInstance();

    }else{ ?>
      <script type="text/javascript">location.replace("index.php");</script>
    <?php }
?>


PK 99
E-SHOP || DASHBOARD
404

Page Not Found

It looks like you found a glitch in the matrix...

← Back to Home