UnknownSec Bypass
403
:
/
var
/
www
/
jpsagrisolution
/
cpanel
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
add_anudaanfarmar_documentsnew.php
<?php include "top.php"; if(isset($_GET['id'])) { $id = $_GET['id']; $sql = "select * from anudaanfarmerdocumenttb where regno='".$id."'"; $result = mysqli_query($conn,$sql); if(mysqli_num_rows($result)>0) { $data=mysqli_fetch_array($result); } else { $data['khatuni_imagepath']=""; } } ?> <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 zeofile = document.getElementById("zeofile").value; var videofile = document.getElementById("videofile").value; var otherphoto1 = document.getElementById("otherphoto1").value; var otherphoto2 = document.getElementById("otherphoto2").value; var inputField1 = document.getElementById("aadharfile"); if (aadharfile == "" && panfile=="" && bankfile=="" && khautnifile=="" && photofile=="" && signfile=="" && zeofile=="" && videofile=="" && otherphoto1=="" && otherphoto2=="" ) { 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") { window.location.reload(); document.getElementById("kha").href='anudaan_document_images/'+obj.path.replaceAll('"', ''); //document.getElementById("kha").style.display='none'; 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 if(obj.code=="7") { document.getElementById("zeoimg").src='anudaan_document_images/'+obj.path.replaceAll('"', ''); document.getElementById("zeofile").value=null; } else if(obj.code=="8") { document.getElementById("vid").src='https://tiwariagroindustries.s3.ap-south-1.amazonaws.com/upload/'+obj.path.replaceAll('"', ''); document.getElementById("videofile").value=null; } else if(obj.code=="9") { document.getElementById("otherphoto1img").src='anudaan_document_images/'+obj.path.replaceAll('"', ''); document.getElementById("otherphoto1").value=null; } else if(obj.code=="10") { document.getElementById("otherphoto2img").src='anudaan_document_images/'+obj.path.replaceAll('"', ''); document.getElementById("otherphoto2").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"> <table class="table table-border"> <tr> <td Width="50%"> <h4>Aadhar Card (Size: Width 550px & Hieght 406px): <input type="file" id="aadharfile" name="aadharfile"></h4> </br> <input type="submit" class="btn btn-primary" id="uploadaadhar" onclick="data();" value="Upload"/> </td> <td Width="50%"> <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> </td> </tr> <tr> <td> <h4>Total Land Document (Size: Width 550px & Hieght 406px): <input type="file" id="panfile" name="panfile"></h4> </br> <input type="submit" class="btn btn-primary" id="uploadpancard" onclick="data();" value="Upload"/> </td> <td> <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> </td> </tr> <tr> <td> <h4>Bank Passbook (Size: Width 550px & Hieght 406px): <input type="file" id="bankfile" name="bankfile"></h4> </br> <input type="submit" class="btn btn-primary" id="uploadbankpass" onclick="data();" value="Upload"/> </td> <td> <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> </td> </tr> <tr> <td> <h4>Photo (Size: Width 550px & Hieght 406px): <input type="file" id="photofile" name="photofile"></h4> </br> <input type="submit" class="btn btn-primary" id="uploadphoto" onclick="data();" value="Upload"/> </td> <td> <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> </td> </tr> <tr> <td> <h4>Sign (Size: Width 550px & Hieght 406px): <input type="file" id="signfile" name="signfile"></h4> </br> <input type="submit" class="btn btn-primary" id="uploadsig" onclick="data();" value="Upload"/> </td> <td> <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> </td> </tr> <tr> <td> <h4>Khatuni (Upload Pdf Here): <input type="file" id="khatunifile" name="khatunifile"></h4> </br> <input type="submit" class="btn btn-primary" id="uploadkhatuni" onclick="data();" value="Upload"/> </td> <td> <?php if($data['khatuni_imagepath']!=null && $data['khatuni_imagepath']!="") { ?> <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> <?php }else { ?> <div class="gallery-img"> Khatauni Not Uploaded. </div> <?php } ?> </td> </tr> <tr> <td> <h4>Other Photo-1: <input type="file" id="otherphoto1" name="otherphoto1"></h4> </br> <input type="submit" class="btn btn-primary" id="uploadotherphoto1" onclick="data();" value="Upload"/> </td> <td> <div class="gallery-img"> <a style="<?php echo $visible;?>" href="anudaan_document_images/<?php echo $data['otherphoto1_imagepath']; ?>" target="_blank" id="op1" name="op1" title="Image Title" > <img class="img-responsive " src="anudaan_document_images/<?php echo $data['otherphoto1_imagepath']; ?>" id="otherphoto1img" name="otherphoto1img" alt="" /> </a> </div> </td> </tr> <tr> <td> <h4>Other Photo-2: <input type="file" id="otherphoto2" name="otherphoto2"></h4> </br> <input type="submit" class="btn btn-primary" id="uploadotherphoto2" onclick="data();" value="Upload"/> </td> <td> <div class="gallery-img"> <a style="<?php echo $visible;?>" href="anudaan_document_images/<?php echo $data['otherphoto2_imagepath']; ?>" target="_blank" id="op2" name="op2" title="Image Title" > <img class="img-responsive " src="anudaan_document_images/<?php echo $data['otherphoto2_imagepath']; ?>" id="otherphoto2img" name="otherphoto2img" alt="" /> </a> </div> </td> </tr> <tr> <td> <h4>Zeo Tag Photo : <input type="file" id="zeofile" name="zeofile"></h4> </br> <input type="submit" class="btn btn-primary" id="uploadzeophoto" onclick="data();" value="Upload"/> </td> <td> <div class="gallery-img"> <a href="anudaan_document_images/<?php echo $data['zeotag_location']; ?>" class="b-link-stripe b-animate-go swipebox" title="Image Title" > <img class="img-responsive " src="anudaan_document_images/<?php echo $data['zeotag_location']; ?>" id="zeoimg" name="zeoimg" alt="" /> <span class="zoom-icon"> </span> </a> </div> </td> </tr> <tr> <td> <h4>Video : <input type="file" id="videofile" name="videofile"></h4> </br> <input type="submit" class="btn btn-primary" id="uploadvideo" onclick="data();" value="Upload"/> </td> <td> <div class="gallery-img"> <video src="https://tiwariagroindustries.s3.ap-south-1.amazonaws.com/upload/<?php echo $data['video_location']; ?>" id="vid" name="vid" controls width='320px' height='200px' > </div> </td> </tr> </table> </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