PK

ADDRLIN : /home/questend/public_html/domains/rwa40.com/useradmin/
FLL :
Current File : /home/questend/public_html/domains/rwa40.com/useradmin/payment_13052021.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 '../admin/includes/settings/constant.php';
   //include '../includes/settings/db.php';
   require_once '../admin/includes/settings/PDODB.php';
   include '../admin/includes/modules/functions.php';
   
   $function = new FUNCTIONS();
   //print_r($_SESSION['userId']);
   $user = $function->getUsers($_SESSION['userId'],NULL,NULL,1);
   if(empty($_SESSION['userId'])){
    header("Location: ../index.php");
    exit();
   }

   $account = $function->getAccountDetails($_SESSION['userId'],NULL,1);
   $bal = 0;
   for($i=0;$i<count($account);$i++){
      $bal += $account[$i]['debit']-$account[$i]['credit'];
   }

   if(isset($_POST['pay'])){
      
      $amount = !empty($_POST['amount'])?trim($_POST['amount']):"";
      $error_msg = "";

      if ($amount>0) {            
          echo "<script>window.location.href='../PaytmKit/paynow.php?amount=$amount';</script>";
      } else {
          $error_msg = "Please Enter Amount";
      }        
    }

    $discountperiod = $function->getDiscountPeriod($id=NULL,$date_to=NULL,$date_from=NULL);

     $date_to = $discountperiod[0]['date_to'];
     $date_from = $discountperiod[0]['date_from'];
    
     $diff2 = abs(strtotime($date_from) - strtotime($date_to));
     $years2 = 0;
     $months2 = 0;
     //$years = floor($diff / (365*60*60*24));
     //$months = floor(($diff - $years * 365*60*60*24) / (30*60*60*24));
     $days2 = floor(($diff2 - $years2 * 365*60*60*24 - $months2*30*60*60*24)/ (60*60*24));

     $curYear = date('Y');
     $start_date = $curYear."-04-01 01:01:01";
     
     $current_date = date("Y-m-d H:i:s");
     //$current_date = "2020-04-30 14:07:45";
     $diff = abs(strtotime($current_date) - strtotime($start_date));

     //$years = floor($diff / (365*60*60*24));
     //$months = floor(($diff - $years * 365*60*60*24) / (30*60*60*24));
     $days = floor(($diff - $years * 365*60*60*24 - $months*30*60*60*24)/ (60*60*24));
     //print_r($days); exit;
?>
<!DOCTYPE html>
<html lang="en">
   <head>
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
      <meta name="description" content="">
      <meta name="author" content="">
      <title>RWA Sectore 40 Noida</title>
      <!-- Bootstrap core CSS -->
      <link href="../vendor/bootstrap/css/bootstrap.css" rel="stylesheet">
      <!-- Custom styles for this template -->
      <link href="../css/noida40.css" rel="stylesheet">
      <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
      <link href="../css/bootstrap-dropdownhover.css" rel="stylesheet">
      <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet">
   </head>
   <body class="body-bg">
      <?php include_once '../layout/header.php'; ?>
      <header class="user-admin-hdr">
         <div class="user-title">
            <h1>Payment</h1>
         </div>
      </header>
      <!-- Page Content -->
      <div class="container">
         <div class="row">
            <div class="col-lg-6">
              <div class="jumbotron" style="background: transparent;">
                <form method="POST" action="">
                  <?php 
                    //30th,april = 29
                    //15th,may = 44
                    //15th,june = 75
                    if($days<=$days2) {
                    $bal = $bal-500;
                    ?>
                    <div class="input-group mb-3">
                      <div class="input-group-prepend">
                        <span class="input-group-text">₹</span>
                      </div>
                      <input type="text" class="form-control" id="amount" name="amount" placeholder="Enter Pay Amount in Rupees" value="<?=$bal;?>">
                      <div class="input-group-append">
                        <span class="input-group-text">.00</span>
                      </div>
                      <p>If you are pay annual subcription fee before <b> <?=date('jS M, Y', strtotime($date_from));?> </b> then you get 500 Rupees Discount</p>
                    </div>
                  <?php }else{ ?>
                    <div class="input-group mb-3">
                      <div class="input-group-prepend">
                        <span class="input-group-text">₹</span>
                      </div>
                      <input type="text" class="form-control" id="amount" name="amount" placeholder="Enter Pay Amount in Rupees" value="<?=$bal;?>">
                      <div class="input-group-append">
                        <span class="input-group-text">.00</span>
                      </div>
                    </div>
                  <?php }?>
                  <p class="lead">                    
                    <button class="btn btn-primary btn-lg" name="pay" id="pay" type="submit">Pay Now</button>
                  </p>
                </form>
              </div>
            </div>
         </div>
      </div>
      <!-- end Page Content -->
      <!-- Footer -->
      <?php include_once'../layout/footer.php';?>
      <!-- End Footer -->
      <!-- Bootstrap core JavaScript -->
      <script src="../vendor/jquery/jquery.min.js"></script>
      <script src="../vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
      <script src="../js/bootstrap-4-hover-navbar.js"></script>
   </body>
</html>


PK 99
E-SHOP || DASHBOARD
404

Page Not Found

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

← Back to Home