UnknownSec Bypass
403
:
/
var
/
www
/
html
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
banbasa_registration.php
<?php include "top_banbasa.php";?> <!-- /contact-form --> <script type="text/javascript"> function SaveCustomerDetails() { var rollno = ""; // $('#hdn_rollno').val(); // rollno = window.atob(rollno); // var RollNo = getUrlParameter('RollNo'); // var RollNo = rollno; var flag = true; var inputField1 = document.getElementById("txtName"); if (inputField1.value == "") { flag = false; alert("Please Enter Your Name."); document.getElementById("txtName").focus(); return false; } var inputField5 = document.getElementById("txtMobileNo"); if (inputField5.value == "") { flag = false; alert("Please Enter Your Mobile No."); document.getElementById("txtMobileNo").focus(); return false; } var digits = "0123456789"; var temp; //alert(document.getElementById("txtMobileNo.ClientID").value.length); for (var i = 0; i < document.getElementById("txtMobileNo").value.length; i++) { temp = document.getElementById("txtMobileNo").value.substring(i, i + 1); if (digits.indexOf(temp) == -1) { alert("Use only numeric digits."); document.getElementById("txtMobileNo").focus(); flag = false; return false; } } var inputField2 = document.getElementById("txtPersonalNo"); if (inputField2.value == "") { flag = false; alert("Please Enter Your Service No."); document.getElementById("txtPersonalNo").focus(); return false; } var inputField3 = document.getElementById("txtRank"); if (inputField3.value == "") { flag = false; alert("Please Enter Your Rank ."); document.getElementById("txtRank").focus(); return false; } var firstpsw = document.getElementById("txtPassword"); var secondpsw = document.getElementById("txtConfirmPsw"); if (firstpsw.value.length < 8 || firstpsw.value.length > 15) { flag = false; alert("Password should be between 8 to 15 chararcter"); document.getElementById("txtPassword").focus(); return false; } if (secondpsw.value.length < 8 || secondpsw.value.length > 15) { flag = false; alert("Password should be between 8 to 15 chararcter"); document.getElementById("txtConfirmPsw").focus(); return false; } if (firstpsw.value != secondpsw.value) { flag = false; alert("Password does not Match . Please Enter Again"); document.getElementById("txtPassword").focus(); return false; } var inputField4 = document.getElementById("FileUpload1"); if (inputField4.value.length == "0") { flag = false; alert("Please Select Your Canteen Card."); document.getElementById("FileUpload1").focus(); return false; } var inputField5 = document.getElementById("FileUpload2"); if (inputField5.value.length == "0") { flag = false; alert("Please Select Your Address Proof."); document.getElementById("FileUpload2").focus(); return false; } if (removeSpaces(document.getElementById('txtCompare').value) == "") { flag = false; alert("Please Enter Captcha Code ."); return false; } var str1 = removeSpaces(document.getElementById('txtCaptcha').value); var str2 = removeSpaces(document.getElementById('txtCompare').value); if (str1 != str2) { alert("Captcha is not correct. please enter again"); flag = false; GenerateCaptcha(); return false; } var Name = document.getElementById("txtName").value; var PersonalNo = document.getElementById("txtPersonalNo").value; var Rank = document.getElementById("txtRank").value; var MobileNo = document.getElementById("txtMobileNo").value; var psw = document.getElementById("txtPassword").value; // Checking whether FormData is available in browser if (window.FormData !== undefined) { var fileUpload = $("#FileUpload1").get(0); var files = fileUpload.files; var size = $('#FileUpload1')[0].files[0].size; var type = $('#FileUpload1').val().replace(/^.*\./, ''); // Create FormData object var fileData = new FormData(); // Looping over all files and add it to FormData object for (var i = 0; i < files.length; i++) { fileData.append(files[i].name, files[i]); } // Adding one more key to FormData object // fileData.append('username', 'Manas'); fileData.append('Name', Name); fileData.append('PersonalNo', PersonalNo); fileData.append('Rank', Rank); fileData.append('MobileNo', MobileNo); fileData.append('psw', psw); fileData.append('size', size); fileData.append('type', type); $.ajax({ url: 'UploadHandler.ashx', type: "POST", contentType: false, // Not to set any content header processData: false, // Not to process data data: fileData, success: function (result) { var str = result; if (str == "2") { UploadAddressProof(); // alert("Your Request is send to the admin. Your account is active verification by admin with in 24 hrs"); // document.getElementById("txtName").value = ""; // document.getElementById("txtPersonalNo").value = ""; // document.getElementById("txtRank").value = ""; // document.getElementById("txtMobileNo").value = ""; // document.getElementById("FileUpload1").value = ""; // document.getElementById("txtPassword").value = ""; // document.getElementById("txtConfirmPsw").value = ""; // return; } else if (str == "3") { alert("You are already Register Please contact to admin"); document.getElementById("txtName").value = ""; document.getElementById("txtPersonalNo").value = ""; document.getElementById("txtRank").value = ""; document.getElementById("txtMobileNo").value = ""; document.getElementById("FileUpload1").value = ""; document.getElementById("FileUpload2").value = ""; document.getElementById("<txtPassword").value = ""; document.getElementById("<txtConfirmPsw").value = ""; return; } else if (str == "4") { alert("You have already sent data to admin."); document.getElementById("txtName").value = ""; document.getElementById("txtPersonalNo").value = ""; document.getElementById("txtRank").value = ""; document.getElementById("txtMobileNo").value = ""; document.getElementById("FileUpload1").value = ""; document.getElementById("FileUpload2").value = ""; document.getElementById("txtPassword").value = ""; document.getElementById("txtConfirmPsw").value = ""; return; } else if (str == "0") { alert("File Size Should be between 50 kb to 1 MB"); // $('#hdnpicvalue').val(''); return; } else if (str == "1") { alert("Only JPG or PNG File are allowed"); return; } else { // $('#hdnpicvalue').val('1'); // GetPhoto(); } //alert(result); }, error: function (err) { alert(err.statusText); } }); } else { alert("FormData is not supported."); } return true; } function UploadAddressProof() { var rollno = ""; // $('#hdn_rollno').val(); // rollno = window.atob(rollno); // var RollNo = getUrlParameter('RollNo'); // var RollNo = rollno; var flag = true; var Name = document.getElementById("txtName").value; var PersonalNo = document.getElementById("txtPersonalNo").value; var Rank = document.getElementById("txtRank").value; var MobileNo = document.getElementById("txtMobileNo").value; var psw = document.getElementById("txtPassword").value; // Checking whether FormData is available in browser if (window.FormData !== undefined) { var fileUpload = $("#FileUpload2").get(0); var files = fileUpload.files; var size = $('#FileUpload2')[0].files[0].size; var type = $('#FileUpload2').val().replace(/^.*\./, ''); // Create FormData object var fileData = new FormData(); // Looping over all files and add it to FormData object for (var i = 0; i < files.length; i++) { fileData.append(files[i].name, files[i]); } // Adding one more key to FormData object // fileData.append('username', 'Manas'); fileData.append('Name', Name); fileData.append('PersonalNo', PersonalNo); fileData.append('Rank', Rank); fileData.append('MobileNo', MobileNo); fileData.append('psw', psw); fileData.append('size', size); fileData.append('type', type); $.ajax({ url: 'UploadAddressHandler.ashx', type: "POST", contentType: false, // Not to set any content header processData: false, // Not to process data data: fileData, success: function (result) { var str = result; if (str == "2") { alert("Your Request is send to the admin. Your account is active verification by admin with in 24 hrs"); document.getElementById("txtName").value = ""; document.getElementById("txtPersonalNo").value = ""; document.getElementById("txtRank").value = ""; document.getElementById("txtMobileNo").value = ""; document.getElementById("FileUpload1").value = ""; document.getElementById("FileUpload2").value = ""; document.getElementById("txtPassword").value = ""; document.getElementById("txtConfirmPsw").value = ""; return; } else if (str == "3") { alert("You are already Register Please contact to admin"); document.getElementById("txtName.ClientID").value = ""; document.getElementById("txtPersonalNo").value = ""; document.getElementById("txtRank").value = ""; document.getElementById("txtMobileNo").value = ""; document.getElementById("FileUpload1").value = ""; document.getElementById("FileUpload2").value = ""; document.getElementById("txtPassword").value = ""; document.getElementById("txtConfirmPsw").value = ""; return; } else if (str == "4") { alert("Your hav already send data to admin."); document.getElementById("txtName").value = ""; document.getElementById("txtPersonalNo").value = ""; document.getElementById("txtRank").value = ""; document.getElementById("txtMobileNo").value = ""; document.getElementById("FileUpload1").value = ""; document.getElementById("FileUpload2").value = ""; document.getElementById("txtPassword").value = ""; document.getElementById("txtConfirmPsw").value = ""; return; } else if (str == "0") { alert("File Size Should be between 50 kb to 1 MB"); // $('#hdnpicvalue').val(''); return; } else if (str == "1") { alert("Only JPG or PNG File are alowed"); return; } else { // $('#hdnpicvalue').val('1'); // GetPhoto(); } //alert(result); }, error: function (err) { alert(err.statusText); } }); } else { alert("FormData is not supported."); } return true; } /* Function to Generat Captcha */ $(document).ready(function () { GenerateCaptcha(); } ) function GenerateCaptcha() { var chr1 = Math.ceil(Math.random() * 10) + ''; var chr2 = Math.ceil(Math.random() * 10) + ''; var chr3 = Math.ceil(Math.random() * 10) + ''; var str = new Array(4).join().replace(/(.|$)/g, function () { return ((Math.random() * 36) | 0).toString(36)[Math.random() < .5 ? "toString" : "toUpperCase"](); }); var captchaCode = str + chr1 + ' ' + chr2 + ' ' + chr3; document.getElementById("txtCaptcha").value = captchaCode } /* Validating Captcha Function */ function ValidCaptcha() { var str1 = removeSpaces(document.getElementById('txtCaptcha').value); var str2 = removeSpaces(document.getElementById('txtCompare').value); if (str1 == str2) { return true; } else { GenerateCaptcha(); return false; } } /* Remove spaces from Captcha Code */ function removeSpaces(string) { return string.split(' ').join(''); } </script> <section class="w3l-contact-main"> <div class="contact-infhny py-5"> <div class="container py-lg-3"> <div class="title-content text-left mb-lg-4 mb-4"> <h6 class="sub-title">User Registration</h6> <h3 class="hny-title">Apply For <span>New Registration</span></h3> </div> <div class="row align-form-map"> <div class="col-lg-12 form-inner-cont"> <form action="https://sendmail.w3layouts.com/submitForm" method="post" class="signin-form"> <div class="form-input"> <label for="w3lName">Name*</label> <input type="text" name="w3lName" id="txtName" placeholder="" /> </div> <div class="form-input"> <label for="w3lSender">Mobile No.*</label> <input type="email" name="w3lSender" id="txtMobileNo" placeholder="" required="" /> </div> <div class="form-input"> <label for="w3lSender">Service No. as per Canteen Card*</label> <input type="text" name="w3lSender" id="txtPersonalNo" placeholder="" required="" /> </div> <div class="form-input"> <label for="w3lSender">Rank*</label> <input type="email" name="w3lSender" id="txtRank" placeholder="" required="" /> </div> <div class="form-input"> <label for="w3lSender">Password*</label> <input type="email" name="w3lSender" id="txtpassword" placeholder="" required="" /> </div> <div class="form-input"> <label for="w3lSender">Confirm Password*</label> <input type="email" name="w3lSender" id="txtConfirmPsw" placeholder="" required="" /> </div> <div class="form-input"> <label for="w3lMessage">Please Select Image of Canteen Card Only One(Max. file size less than 1MB)*</label> <input type="file" name="upload[]" id="FileUpload1" required=""> </div> <div class="form-input"> <label for="w3lMessage">Please Select Image of Address Proof Only One(Max. file size less than 1MB)*</label> <input type="file" name="upload[]" id="FileUpload2" required=""> </div> <button type="submit" style="width: 100%" class="btn btn-contact" onclick="SaveCustomerDetails(); return false;">Submit</button> </form> </div> </div> </div> </section> <!-- //contact-form --> <!-- /contact-form --> <?php include "banbasa_address.php";?> <!-- //contact-form --> <?php include "footer.php";?>
Copyright © 2025 - UnknownSec