UnknownSec Bypass
403
:
/
var
/
www
/
santgyaneshwarji
/
cpanel
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
edit_patrika_link.php
<?php include "top.php"; include "header.php"; include "menu.php"; $id = $_GET['id']; $sql = "select * from patrikalinktb 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("language"); if (inputField1.value == "-") { flag = false; alert("Please select language"); document.getElementById("language").focus(); return false; } /*var inputField2 =document.getElementById("month"); if (inputField2.value == "-") { flag = false; alert("Please select month"); document.getElementById("month").focus(); return false; } var inputField3 =document.getElementById("year"); if (inputField3.value == "-") { flag = false; alert("Please select year"); document.getElementById("year").focus(); return false; }*/ var inputField4 =document.getElementById("title"); if (inputField4.value == "") { flag = false; alert("Please enter title"); document.getElementById("title").focus(); return false; } var inputField6 =document.getElementById("downloadlink"); if (inputField6.value == "") { flag = false; alert("Please enter downloadlink"); document.getElementById("downloadlink").focus(); return false; } var inputField7 =document.getElementById("readerlink"); if (inputField7.value == "") { flag = false; alert("Please enter readerlink"); document.getElementById("readerlink").focus(); return false; } var language = document.getElementById("language").value; var month = document.getElementById("month").value; var year = document.getElementById("year").value; var title = document.getElementById("title").value; var downloadlink = document.getElementById("downloadlink").value; var readerlink = document.getElementById("readerlink").value; try { if (flag == true) { $.ajax({ url: "update_patrika_link.php", type: "POST", data: new FormData(this), contentType: false, cache: false, processData:false, success: function(data){ // alert(data); window.location.href="list_patrika_link.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_sadgranth_link.php"><button class="btn btn-sm btn-default"><b>Back to Sadgranth Link 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 Sadgranth </header> <div class="panel-body"> <div class="position-center"> <form enctype="multipart/form-data" id="uploadForm" action="update_patrika_link.php" method="post"> <input type="hidden" id="newsid" name="newsid" value="<?php echo $_GET['id'];?>"> <!--<div class="form-group"> <label for="exampleInputEmail1">Month</label> <select class="form-control input-sm m-bot15" id="month" name="month"> <option value="-">-</option> <option value="January">January</option> <option value="February">February</option> <option value="March">March</option> <option value="April">April</option> <option value="May">May</option> <option value="June">June</option> <option value="July">July</option> <option value="August">August</option> <option value="September">September</option> <option value="October">October</option> <option value="November">November</option> <option value="December">December</option> </select> </div> <div class="form-group"> <label for="exampleInputEmail1">Month</label> <select class="form-control input-sm m-bot15" id="year" name="year"> <option value="-">-</option> <option value="2010">2010</option> <option value="2011">2011</option> <option value="2012">2012</option> <option value="2013">2013</option> <option value="2014">2014</option> <option value="2015">2015</option> <option value="2016">2016</option> <option value="2017">2017</option> <option value="2018">2018</option> <option value="2019">2019</option> <option value="2020">2020</option> <option value="2021">2021</option> <option value="2022">2022</option> <option value="2023">2023</option> <option value="2024">2024</option> <option value="2025">2025</option> <option value="2026">2026</option> <option value="2027">2027</option> <option value="2028">2028</option> <option value="2029">2029</option> <option value="2030">2030</option> <option value="2031">2031</option> <option value="2032">2032</option> <option value="2033">2033</option> <option value="2034">2034</option> <option value="2035">2035</option> <option value="2036">2036</option> <option value="2037">2037</option> <option value="2038">2038</option> <option value="2039">2039</option> <option value="2040">2040</option> </select> </div>--> <div class="form-group"> <label for="exampleInputEmail1">Title</label> <input disabled type="text" class="form-control" id="month" name="month" value="<?php echo $data['month']; ?>"> </div> <div class="form-group"> <label for="exampleInputEmail1">Title</label> <input disabled type="text" class="form-control" id="year" name="year" value="<?php echo $data['year']; ?>"> </div> <div class="form-group"> <label for="exampleInputEmail1">Language</label> <select class="form-control input-sm m-bot15" id="language" name="language"> <?php if($data['language']=="Hindi") echo ' <option selected value="Hindi">Hindi</option> <option value="English">English</option> <option value="Gujarati">Gujarati</option> <option value="Odia">Odia</option> <option value="Nepali">Nepali</option>'; elseif ($data['language']=="English") { echo ' <option value="Hindi">Hindi</option> <option selected value="English">English</option> <option value="Gujarati">Gujarati</option> <option value="Odia">Odia</option> <option value="Nepali">Nepali</option>'; } elseif ($data['language']=="Gujarati") { echo ' <option value="Hindi">Hindi</option> <option value="English">English</option> <option selected value="Gujarati">Gujarati</option> <option value="Odia">Odia</option> <option value="Nepali">Nepali</option>'; } elseif ($data['language']=="Odia") { echo ' <option value="Hindi">Hindi</option> <option value="English">English</option> <option value="Gujarati">Gujarati</option> <option selected value="Odia">Odia</option> <option value="Nepali">Nepali</option>'; } elseif ($data['language']=="Nepali") { echo ' <option value="Hindi">Hindi</option> <option value="English">English</option> <option value="Gujarati">Gujarati</option> <option selected value="Odia">Odia</option> <option selected value="Nepali">Nepali</option>'; } else { echo '<option selected value="-">-</option>'; } ?> </select> </div> <div class="form-group"> <label for="exampleInputEmail1">Title</label> <input type="text" class="form-control" id="title" name="title" value="<?php echo $data['title']; ?>"> </div> <div class="form-group"> <label for="exampleInputFile">Cover Image</label> <input type="file" id="new-image" name="new-image"> <br> <img src="patrika_cover_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> <div class="form-group"> <label for="exampleInputEmail1">Download Sadgranth Link</label> <input type="text" class="form-control" id="downloadlink" name="downloadlink" value="<?php echo $data['downloadlink']; ?>"> </div> <div class="form-group"> <label for="exampleInputEmail1">E-Reder Sadgranth Link</label> <input type="text" class="form-control" id="readerlink" name="readerlink" value="<?php echo $data['readerlink']; ?>"> </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