UnknownSec Bypass
403
:
/
var
/
www
/
cotutilitydash
/ [
drwxrwxr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
upload_excelfile.php
<?php include "header.php"?> <?php include "sidemenu.php"?> <div id="page-wrapper"> <div class="col-md-12 graphs"> <div class="xs"> <h3>Excel Upload</h3> <div class="well1 white"> <input type="hidden" class="form-control1" id="hdid" name="hdid"> <fieldset> <form method="POST" action="testupload.php" enctype="multipart/form-data"> <div class="form-group"> <label>Upload Excel File</label> <input type="file" name="file" id="file" class="form-control1"> </div> <div class="form-group"> <button type="submit" name="Submit" id="Submit" class="btn btn-success">Upload</button> <a class="btn btn-primary" href="sample_file/sample.xlsx">Download Sample Data File</a> </div> </form> </fieldset> </div> <div class="bs-example4 tab-content" data-example-id="simple-responsive-table"> </div> </div> <script> function checkpermission() { var formname = "upload_excelfile.php"; try { var urlgetcode = 'get_permissiondetails.php'; $.ajax({ method: 'POST', url: urlgetcode, data: '&formname=' + formname, dataType: 'json', async: true, cache: false, success: function(data) { if (data.add == 0) { $(Submit).prop("disabled", true); $(file).prop("disabled", true); alert( "You do not have permission to upload excel file, please contact to administrator" ); return; } else { $(Submit).prop("disabled", false); } }, error: function(request) { alert(request.responseText); } }); } catch (Error) { alert(Error); } return; } $(document).ready(function() { checkpermission(); $("#studtable").DataTable({ bLengthChange: true, "iDisplayLength": 10, bInfo: false, responsive: true, "bAutoWidth": false }); }); function uploadexcelfile() { alert("ok"); var flag = true; var inputField1 = document.getElementById("file"); if (inputField1.files.length == 0) { flag = false; alert("Please select file."); document.getElementById("file").focus(); return false; } var area = document.getElementById("txtareaname").value; var id = document.getElementById("hdid").value; var btnopration = document.getElementById("btnsave").innerHTML; var identifier = 1; try { if (flag == true) { var urlgetcode = 'insert_uploaddata.php'; $.ajax({ method: 'POST', url: urlgetcode, data: '&area=' + area + '&id=' + id + '&btnopration=' + btnopration + '&identifier=' + identifier, dataType: 'json', async: true, cache: false, success: function(data) { alert(data); window.location.href = "manage_area.php"; $('#hdid').val(""); $('#testdepartmentname').val(""); }, error: function(request) { alert(request.responseText); } }); } } catch (Error) { alert(Error); } return; } </script> <?php include "footer.php"?>
Copyright © 2025 - UnknownSec