X1-Shell 403 Bypass Sh3ll
Aktif Dizin:
/
/
home
/
ecofarmsafrica
/
public_html
/
upfateforms
Dosya Düzenle: uppro.php
<?php require '../DB/db.php'; ?> <!DOCTYPE html> <html> <head> <?php include '../partiels/links.php' ?> <link href="https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.2.1/flowbite.min.css" rel="stylesheet" /> <script src="https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.2.1/flowbite.min.js"></script> <script src="https://cdn.ckeditor.com/4.18.0/standard/ckeditor.js"></script> </head> <body> <div class="relative min-h-screen flex items-center justify-center bg-gray-50 py-12 px-4 sm:px-6 lg:px-8 bg-gray-500 bg-no-repeat bg-cover relative items-center overflow-hidden" style="background-image: url(https://source.unsplash.com/random/800x800/?fashion);"> <div class="absolute bg-black opacity-60 inset-0 z-0"></div> <div class="max-w-3xl w-full p-5 bg-white rounded-xl z-10 body bg-white dark:bg-[#0F172A]"> <div class="text-center "> <h2 class="mt-6 text-3xl font-bold text-gray-900 dark:text-white"> Update Product </h2> </div> <div class="p-4 md:p-5 dark:text-white"> <form action="../editcontroller/editpro.php" method="POST" enctype="multipart/form-data"> <?php require '../DB/db.php'; $id = $_GET['id']; ?> <input type="hidden" name="id" value="<?php echo $id; ?>"> <!-- Add this line to include the id as a hidden input --> <div class="grid gap-4 mb-4 grid-cols-2"> <div class="sm:col-span-1"> <div class="col-span-2"> <label for="category" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">Category</label> <select id="category" name="cat" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-primary-500 focus:border-primary-500 block w-full p-2.5 dark:bg-gray-600 dark:border-gray-500 dark:placeholder-gray-400 dark:text-white dark:focus:ring-primary-500 dark:focus:border-primary-500"> <option selected disabled>Select category</option> <option value="cat">Default</option> <?php require '../DB/db.php'; $sql = "SELECT * FROM category"; $result = $conn->query($sql); // Display categories inside the select tag while ($row = $result->fetch_assoc()) { echo '<option value="' . $row['c_id'] . '">' . $row['c_name'] . '</option>'; } ?> </select> </div> <div class="col-span-2 "> <label class="block mb-2 text-sm font-medium text-gray-900 dark:text-white" for="user_avatar">Upload file</label> <input name="p_img" class="block w-full text-sm text-gray-900 border border-gray-300 rounded-lg cursor-pointer bg-gray-50 dark:text-gray-400 focus:outline-none dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400" aria-describedby="user_avatar_help" id="user_avatar" type="file" onchange="previewImage1(event)"> </div> <div class="col-span-2 "> <label for="name" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">Name</label> <input type="text" name="p_name" id="name" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 dark:bg-gray-600 dark:border-gray-500 dark:placeholder-gray-400 dark:text-white dark:focus:ring-primary-500 dark:focus:border-primary-500" placeholder="Type product name" required=""> </div> <!-- <div class="col-span-2 "> <label for="name" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">Name</label> <select id="category" name="type" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-primary-500 focus:border-primary-500 block w-full p-2.5 dark:bg-gray-600 dark:border-gray-500 dark:placeholder-gray-400 dark:text-white dark:focus:ring-primary-500 dark:focus:border-primary-500"> <option selected="">Select category</option> <option value="NEW ARRIVALS">NEW ARRIVALS</option> <option value="Top Selling ">Top Selling </option> </select> </div> --> </div> <div class="sm:col-span-1"> <div class="col-span-2 "> <div class="flex justify-center"> <img id="imagePreview1" src="#" alt="Category Image Preview" style="display: none; height: 280px;"> </div> </div> </div> <div class="col-span-2"> <label for="description" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">Product Description</label> <textarea name="p_des" id="editor1" rows="4" class="block p-2.5 w-full text-sm text-gray-900 bg-gray-50 rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-600 dark:border-gray-500 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" placeholder="Write product description here"></textarea> </div> </div> <div class="flex justify-center items-center p-4 md:p-5 space-x-3 rtl:space-x-reverse rounded-b dark:border-gray-600"> <button type="submit" name="submit" class="text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800">Add new product</button> </div> </form> </div> </div> </div> <script src="../adminJS/admin.js"></script> <script> CKEDITOR.replace('editor1'); </script> </body> </html>
Değişiklikleri Kaydet
Yeni Dosya/Klasör Oluştur
Dosya
Klasör
Oluştur
Yeni Dosya Yükle (Mevcut Dizine)
Yükle
Adı
Tipi
Boyut
İşlemler
📁
.. (Üst Dizin)
📄 upcont.php
Dosya
3.18 KB
Düzenle
Yeniden Adlandır
Sil
Uygula
📄 uppro.php
Dosya
6.81 KB
Düzenle
Yeniden Adlandır
Sil
Uygula
Sorun Giderme (Shell Erişimi)
Çalıştır