UnknownSec Bypass
403
:
/
var
/
www
/
santgyaneshwarji
/
cpanel
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
edit_ashram_address.php
<?php include "top.php"; include "header.php"; include "menu.php"; //include_once('config.php'); $id = $_GET['id']; $sql = "select * from ashramaddressbooktb where id='".$id."'"; $result = mysqli_query($conn,$sql); $data=mysqli_fetch_array($result); ?> <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("name"); if (inputField1.value == "") { flag = false; alert("Please enter ashram name"); document.getElementById("name").focus(); return false; } var inputField2 =document.getElementById("address"); if (inputField2.value == "") { flag = false; alert("Please enter ashram address"); document.getElementById("address").focus(); return false; } var inputField3 =document.getElementById("mobile"); if (inputField3.value == "") { flag = false; alert("Please enter mobile no."); document.getElementById("mobile").focus(); return false; } var inputField4 =document.getElementById("email"); if (inputField4.value == "") { flag = false; alert("Please enter ashram email"); document.getElementById("email").focus(); return false; } var name = document.getElementById("name").value; var address = document.getElementById("address").value; var mobile = document.getElementById("mobile").value; var email = document.getElementById("email").value; try { if (flag == true) { $.ajax({ url: "update_ashram_address.php", type: "POST", data: new FormData(this), contentType: false, cache: false, processData:false, success: function(data){ alert(data); window.location.href="list_ashram_address.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="list_ashram_address.php"><button class="btn btn-sm btn-default"><b>Back to Ashram Address 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"> Update Ashram Address </header> <div class="panel-body"> <div class="position-center"> <form enctype="multipart/form-data" id="uploadForm" action="update_ashram_address.php" method="post"> <div class="form-group"> <input type="hidden" id="pid" name="pid" value="<?php echo $_GET['id'];?>"> <label for="exampleInputEmail1">Name</label> <input type="text" class="form-control" id="name" name="name" placeholder="Ashram Name" value="<?php echo $data['name'];?>"> </div> <div class="form-group"> <label for="exampleInputEmail1">Address</label> <input type="text" class="form-control" id="address" name="address" placeholder="Ashram Address" value="<?php echo $data['address'];?>"> </div> <div class="form-group"> <label for="exampleInputEmail1">Mobile</label> <input type="text" class="form-control" id="mobile" name="mobile" placeholder="Ashram Mobile No." value="<?php echo $data['phone'];?>"> </div> <div class="form-group"> <label for="exampleInputEmail1">Email</label> <input type="text" class="form-control" id="email" name="email" placeholder="Ashram Email id" value="<?php echo $data['email'];?>"> </div> <div class="form-group"> <label for="exampleInputFile">Ashram Image</label> <input type="file" id="new-image" name="new-image"> <br> <img src="ashram_images/<?php echo $data['image_name']; ?>" height="100px"> <input type="hidden" name="old_image" value="<?php echo $data['image_name']; ?>"> <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