UnknownSec Bypass
403
:
/
var
/
www
/
santgyaneshwarji
/
cpanel
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
edit_program_calendar.php
<?php include "top.php"; include "header.php"; include "menu.php"; //include_once('config.php'); $id = $_GET['id']; $sql = "select * from programcalendartb 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("title"); if (inputField1.value == "") { flag = false; alert("Please enter program name"); document.getElementById("title").focus(); return false; } var inputField2 =document.getElementById("fromdate"); if (inputField2.value == "") { flag = false; alert("Please enter program from date"); document.getElementById("fromdate").focus(); return false; } var inputField3 =document.getElementById("todate"); if (inputField3.value == "") { flag = false; alert("Please enter program to date"); document.getElementById("todate").focus(); return false; } var title = document.getElementById("title").value; var fromdate = document.getElementById("fromdate").value; var todate = document.getElementById("todate").value; var address = document.getElementById("address").value; try { if (flag == true) { $.ajax({ url: "update_program_calendar.php", type: "POST", data: new FormData(this), contentType: false, cache: false, processData:false, success: function(data){ alert(data); // window.location.href="list_program_Calendar.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_program_Calendar.php"><button class="btn btn-sm btn-default"><b>Back to Program Calendar 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"> News & Events </header> <div class="panel-body"> <div class="position-center"> <form enctype="multipart/form-data" id="uploadForm" action="update_program_calendar.php" method="post"> <div class="form-group"> <input type="hidden" id="newsid" name="pid" value="<?php echo $_GET['id'];?>"> <label for="exampleInputEmail1">News Title</label> <input type="text" class="form-control" id="title" name="title" placeholder="News Title" value="<?php echo $data['program_name'];?>"> </div> <div class="form-group"> <label for="exampleInputEmail1">From Date</label> <input type="date" class="form-control" id="fromdate" name="fromdate" value="<?php echo $data['from_date'];?>"> </div> <div class="form-group"> <label for="exampleInputEmail1">To Date</label> <input type="date" class="form-control" id="todate" name="todate" value="<?php echo $data['to_date'];?>"> </div> <div class="form-group"> <label for="exampleInputEmail1">Program Address</label> <textarea class="form-control" id="address" name="address" rows="4" cols="50"> <?php echo $data['address'];?> </textarea> </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