UnknownSec Bypass
403
:
/
var
/
www
/
santgyaneshwarji
/
cpanel
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
add_facilities.php
<?php include "top.php"; include "header.php"; include "menu.php"; ?> <script src="https://code.jquery.com/jquery-2.2.0.min.js"></script> <script type="text/javascript"> $(document).ready(function (e){ $("#uploadForm").on('submit',(function(e){ e.preventDefault(); var flag = true; var inputField1 =document.getElementById("facilitiestitle"); if (inputField1.value == "") { flag = false; alert("Please enter facilities title"); document.getElementById("facilitiestitle").focus(); return false; } var inputField2 =document.getElementById("long_desc"); if (inputField2.value == "") { flag = false; alert("Please enter discription"); document.getElementById("long_desc").focus(); return false; } var inputField3 =document.getElementById("fileToUpload"); if (inputField3.value == "") { flag = false; alert("Please select image"); document.getElementById("fileToUpload").focus(); return false; } var facilitiestitle = document.getElementById("facilitiestitle").value; var long_desc = document.getElementById("long_desc").value; try { if (flag == true) { $.ajax({ url: "save_facilities.php", type: "POST", data: new FormData(this), contentType: false, cache: false, processData:false, success: function(data){ if(data==0){ document.getElementById("facilitiestitle").value=""; document.getElementById("long_desc").value=""; document.getElementById("fileToUpload").value=null; alert("This facilities name is already exist."); return; } if(data==1) { window.location.href="facilities_list.php"; } }, error: function(){} }); } } catch (Error) { alert(Error); } return; })); }); </script> <div class="form-w3layouts"> <!-- page start--> <!-- page start--> <div class="row"> <div class="row w3-res-tb"> <div class="col-sm-5 m-b-xs"> <a href="facilities_list.php"><button class="btn btn-sm btn-default"><b>Back to Facilities List</b></button></a> </div> <div class="col-sm-4"> </div> <div class="col-sm-3"> </div> </div> <div class="col-lg-12"> <section class="panel"> <header class="panel-heading"> Add Facilities </header> <div class="panel-body"> <div class="position-center"> <form enctype="multipart/form-data" id="uploadForm" action="save_facilities.php" method="post"> <div class="form-group"> <label for="exampleInputEmail1">Facilities Title</label> <input type="text" class="form-control" id="facilitiestitle" name="facilitiestitle" placeholder="News Title"> </div> <div class="form-group" style="display:none" > <textarea id='short_desc' name='short_desc' hidden="hidden"></textarea> </div> <div class="form-group"> <label for="exampleInputPassword1">Discription</label> <textarea id='long_desc' name='long_desc' ></textarea> </div> <div class="form-group"> <label for="exampleInputFile">News Image</label> <input type="file" id="fileToUpload" name="fileToUpload"> <p class="help-block">Max. Size 200kb (only .jpg, .jpeg, .png files allow)</p> </div> <input type="submit" class="btn btn-info" onclick="data()" value="Submit"> </form> </div> </div> </section> </div> </div> </div> <!-- Script --> <script type="text/javascript"> // Initialize CKEditor CKEDITOR.inline( 'short_desc'); CKEDITOR.replace('long_desc',{ width: "100%", height: "200px" }); </script> <?php include "footer.php"; ?>
Copyright © 2025 - UnknownSec