UnknownSec Bypass
403
:
/
var
/
www
/
santgyaneshwarji
/
cpanel
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
add_faculty.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("teachername"); if (inputField1.value == "") { flag = false; alert("Please enter tracher name"); document.getElementById("teachername").focus(); return false; } var inputField1 =document.getElementById("qualification"); if (inputField1.value == "") { flag = false; alert("Please enter qualification"); document.getElementById("qualification").focus(); return false; } var inputField1 =document.getElementById("specialization"); if (inputField1.value == "") { flag = false; alert("Please enter specialization"); document.getElementById("specialization").focus(); return false; } var teachername = document.getElementById("teachername").value; var qualification = document.getElementById("qualification").value; var specialization = document.getElementById("specialization").value; try { if (flag == true) { $.ajax({ url: "save_faculty.php", type: "POST", data: new FormData(this), contentType: false, cache: false, processData:false, success: function(data){ if(data==0){ document.getElementById("teachername").value=""; document.getElementById("qualification").value=""; document.getElementById("specialization").value=""; document.getElementById("fileToUpload").value=null; alert("This faculty name is already exist."); return; } if(data==1) { window.location.href="faculty_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="faculty_list.php"><button class="btn btn-sm btn-default"><b>Back to Faculty 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 Faculty </header> <div class="panel-body"> <div class="position-center"> <form enctype="multipart/form-data" id="uploadForm" action="save_faculty.php" method="post"> <div class="form-group"> <label for="exampleInputEmail1">Name</label> <input type="text" class="form-control" id="teachername" name="teachername" placeholder="Faculty Name"> </div> <div class="form-group"> <label for="exampleInputEmail1">Qualification</label> <input type="text" class="form-control" id="qualification" name="qualification" placeholder="Qualification"> </div> <div class="form-group"> <label for="exampleInputEmail1">Specialization</label> <input type="text" class="form-control" id="specialization" name="specialization" placeholder="Specialization"> </div> <div class="form-group"> <label for="exampleInputFile">Photo</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> <?php include "footer.php"; ?>
Copyright © 2025 - UnknownSec