<!doctypehtml PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns=http://www.w3.org/1999/xhtml><meta content="text/html; charset=utf-8"http-equiv=Content-Type><meta name=Keywords><meta name=description><title>
   Signin
  </title><link href=/resource/newucenter/css/odp_login.css?v=20151127 rel=stylesheet><link href=/resource/newucenter/css/style.css?v=20160311 rel=stylesheet><style>body {
            background: #f5f5f5;
            color: #000;
            font-size: 12px;
            font-family: Arial, Helvetica, sans-serif;
            position: relative;
        }</style><body><div class=header><div class=head><div class=logo><a href=/ target=_blank title=logo> <img src=/resource/newucenter/images/s_logo.png> </a></div></div></div><div class=main><div class=pic><img src=./resource/newucenter/images/login_bj.png></div><div class=box><div class=boxbg1></div><div class=boxbg2><div class=login><p>Username： <span id=login_username_id> </span><div class="account inputbox"><div class="icon_account icon"></div><input placeholder="Enter account name"class=acc id=user_email name=user_email></div><p>Passsword： <span id=login_password_id> </span><div class="cipher inputbox"><div class="icon_cipher icon"></div><input placeholder="Write the password"class=cip id=fake_pass_01 name=password_fake><input placeholder="Write the password"style="display: none;"class=cip id=user_password name=user_password onkeydown=keyLogin(); type=password></div><div class=msg><div class=msg_left><input id=checked_pwd type=checkbox><span> Remember </span></div><div class=msg_right><a href=./index.php?a=ucenter&m=findpwd&lang=en-us onclick=_ga_track_event_new('btnclick','ucenter-login-fpwd','en-us') target=_blank> Forget password </a></div></div><a class=login_btn href=javascript:void(0); onclick=_ga_track_event_new('btnclick','ucenter-login-oasis','en-us');ajax_login();> Login </a><div class=tab><a href=javascript:void(0); id=ltab onclick=_ga_track_event_new('btnclick','ucenter-login-register','en-us')> Sign up>> </a></div></div><div class=regsiter><p>Username： <span id=reg_username_id> </span><div class="account inputbox"><div class="icon_account icon"></div><input placeholder="Enter account name"class=acc id=r_user_email name=r_user_email></div><p>Passsword： <span id=reg_password_id> </span><div class="cipher inputbox"><div class="icon_cipher icon"></div><input placeholder="Write the password"class=cip id=r_user_password_fake name=r_user_password_fake><input placeholder="Write the password"style="display: none;"class=cip id=r_user_password name=r_user_password type=password></div><p>Confirm password： <span id=reg_cf_password_id> </span><div class="recipher inputbox"><div class="icon_recipher icon"></div><input placeholder="Enter password again"class=recip id=c_user_password_fake name=c_user_password_fake><input placeholder="Enter password again"style="display: none;"class=recip id=c_user_password name=c_user_password type=password></div><div class=msg><div class=msg_left><input id=agreed name=agreed type=checkbox><span> Agree to the <a href=./TermsofService(EN).html target=_blank> Term of Service </a> </span><span>  and the <a href=/PrivacyPolicy(EN).html target=_blank> Privacy Policy </a> </span></div></div><a class=regsiter_btn href=javascript:void(0); id=reg_btn onclick=_ga_track_event_new('btnclick','ucenter-register-oasis','en-us');ajax_register();> Sign up </a><div class=tab><a href=javascript:void(0); id=rtab onclick=_ga_track_event_new('btnclick','ucenter-login-login','en-us')> Login Now>> </a></div></div><div class=regsiter></div><div class=third id=third_login><p>Third Party Login</p><a href="javascript:OAS_GAMES_JS.facebook.login({'fail':'Fail to connect with facebook'})"class=facebook tip=1> </a><a href="javascript:OAS_GAMES_JS.google.login({'fail':'Fail to connect with Google'})"class=google tip=2> </a><a href="javascript:OAS_GAMES_JS.google.login({'fail':'Fail to connect with Google'});"class=youtube tip=3> </a><a href="javascript:OAS_GAMES_JS.twitter.login({'fail':'Fail to connect with Twitter'})"class=twitter tip=4> </a></div></div><div class=boxbg3></div></div></div><script src=/resource/_js/jquery-1.7.2.min.js></script><script src=https://img.oasgames.com/uploads/160552730241340/oas_library.2.3.js></script><script src=/resource/newucenter/js/js.js></script><script>//默认不选中协议，按钮变灰
    $('#reg_btn').removeClass().addClass('regsiter_btn_hui');



    var login_third_tip = 1;
    $(function () {
        checkUserLogin();

        eventRegister();

        _ga_track_pageview_new('/index.php?a=ucenter&m=login');
    });

    function eventRegister() {

        $("#ltab").click(function () {
            login_third_tip = 0;
            $(".login").hide();
            $(".regsiter").show();
        });
        $("#rtab").click(function () {
            login_third_tip = 1;
            $(".regsiter").hide();
            $(".login").show();
        });
        $(".acc").focus(function () {
            $(this).parent(".inputbox").css("border", "1px solid #3ec7f3");
            $(this).parent(".inputbox").children(".icon_account").css("background-position", "0px -88px");
        });
        $(".acc").blur(function () {
            $(this).parent(".inputbox").css("border", "1px solid #cccccc");
            $(this).parent(".inputbox").children(".icon_account").css("background-position", "0px -126px");
        });
        $(".cip").focus(function () {
            $(this).parent(".inputbox").css("border", "1px solid #3ec7f3");
            $(this).parent(".inputbox").children(".icon_cipher").css("background-position", "-45px -88px");
        });
        $(".cip").blur(function () {
            $(this).parent(".inputbox").css("border", "1px solid #cccccc");
            $(this).parent(".inputbox").children(".icon_cipher").css("background-position", "-45px -126px");
        });
        $(".recip").focus(function () {
            $(this).parent(".inputbox").css("border", "1px solid #3ec7f3");
            $(this).parent(".inputbox").children(".icon_recipher").css("background-position", "-45px -88px");
        });
        $(".recip").blur(function () {
            $(this).parent(".inputbox").css("border", "1px solid #cccccc");
            $(this).parent(".inputbox").children(".icon_recipher").css("background-position", "-45px -126px");
        });
    }</script><script>var lang = "en-us";


    //js去左右空格
    String.prototype.trim=function() {
        return this.replace(/(^\s*)|(\s*$)/g,'');
    }
    function keyLogin() {
        var event = window.event || arguments.callee.caller.arguments[0];
        if (event.keyCode == 13) {
            ajax_login();
        }
    }

    //登陆
    function ajax_login() {

        var email = $("#user_email").val();
        email = email.trim();
        var pwd = $("#user_password").val();
        var checked_pwd = $("#checked_pwd").attr('checked');
        var remember;

        if (checked_pwd == 'checked') {
            remember = 1;
        }
        if(email == '' || email == "Enter account name"){
            $("#login_username_id").html("Enter Account");
            return false;
        }
        if (email.length < 6) {
            $("#login_username_id").html("Wrong Format");
            return false;
        }else {
            $("#login_username_id").html('');
        }

        pwd = pwd.trim();
        if(pwd == '' || pwd == "Write the password"){
            $("#login_password_id").html("Please input password.");
            return false;
        }
        if (pwd.length < 6) {
            $("#login_password_id").html("6-15 characters");
            return false;
        }
        else {
            $("#login_password_id").html('');
        }

//        var para = "m=login&email=" + email + "&pwd=" + pwd + "&remember=" + remember + "&callback=?";
//        var url = "https://passport.oasgames.com/";
        var url = "https://passport.oasgames.com/?m=login&callback=?";

        $.ajax({
            'url': url,'type':'post', 'async': false, 'data': {email:email,pwd:pwd,remember:remember}, 'dataType': 'json', 'success': function (rs) {
                if (rs.status == 'ok') {
                    var jump = 'no';
                    if (jump != 'no') {
                        window.location.href = 'no';
                    } else {
                        window.location.href = '/?a=newucenter&lang=en-us';
                    }
                } else if (rs.err_code == 1) {
                    $("#login_username_id").html("Name does not exist.");
                    return false;
                } else if (rs.err_code == 3) {
                    $("#login_password_id").html("Wrong Password");
                    return false;
                } else {
                    $("#login_username_id").html("Wrong password. Failed to login.");
                    return false;
                }
            },'error':function(rs){
                $("#login_username_id").html("Name does not exist.");
                return false;
            }
        });
    }

    //注册
    function ajax_register() {
        if(!$('#agreed').attr('checked')){
            return false;
        }
        var email  = $("#r_user_email").val();
        email = email.trim();
        var pwd    = $("#r_user_password").val();
        var cf_pwd = $("#c_user_password").val();
        var myreg  = /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;
        if (email == '' || email == "Enter Account" || email == "Enter account name") {
            $("#reg_username_id").html("Name cannot be empty.");
            return false;
        }else if(email.length >25){
            $("#reg_username_id").html("Username should be no more than 25 letters");
            return false;
        }
        else {
            $("#reg_username_id").html('');
        }

        if (!myreg.test(email)) {
            $("#reg_username_id").html("Wrong name format. Please make sure email correct.");
            return false;
        }

        if (pwd == '' || pwd == "Write the password") {
            $("#reg_password_id").html("6-15 characters");
            return false;
        }
        else {
            $("#reg_password_id").html('');
        }

        if (pwd.length < 6) {

            $("#reg_password_id").html("6-15 characters");
            return false;
        }
        else {
            $("#reg_password_id").html('');
        }

        if (pwd.length > 15) {
            $("#reg_password_id").html("6-15 characters");
            return false;
        }
        else {
            $("#reg_password_id").html('');
        }

        if (pwd == cf_pwd) {
            $("#reg_cf_password_id").html('');
        }
        else {
            $("#reg_cf_password_id").html("Password doesnot match.");
            return false;

        }
        var url = 'https://passport.oasgames.com/?m=register&callback=?';
//        var para = "m=register&email=" + email + "&pwd=" + pwd + "&callback=?";

        $.ajax({
            'url': url, 'async': false, 'data': {email: email, pwd: pwd}, 'dataType': 'json', 'success': function (rs) {
                if (rs.status == 'ok') {

                    var jump = 'no';
                    if (jump != 'no') {
                        window.location.href = 'no';
                    } else {
                        window.location.href = '/?a=newucenter&lang=en-us';
                    }
                }
                else {
                    if (rs.err_code == -1) {
                        $("#reg_username_id").html("Account exists.");
                        return false;
                    } else {
                        $("#reg_username_id").html("The account exists already. Faild to signup.");
                        return false;
                    }

                }
            }
        });
    }

    function checkUserLogin()
    {
        var url = 'https://passport.oasgames.com/' + "index.php?m=getLoginUser";

        var loginCb = function(data)
        {
            if(data.status == 'ok')
            {
                window.top.location.href = "/?a=newucenter";
            }
            else
            {
                OAS_GAMES_JS.tool._p('No login status');
            }
        }

        OAS_GAMES_JS.tool.ajaxRequest(url,loginCb);
    }

    //兼容ie7 ie8 ie9 placeholder
    if (!('placeholder' in document.createElement('input'))) {

        $('input[placeholder],textarea[placeholder]').each(function () {
            var that = $(this);
            if (that.attr('type') != 'password') {
                var text = that.attr('placeholder');
                if (that.val() == "") {
                    that.val(text);
                }
                that.focus(function () {
                    text = that.attr('placeholder');
                    if (that.val() == text) {
                        that.val("");
                    }
                });
                that.blur(function () {
                    text = that.attr('placeholder');
                    if (that.val() == "") {
                        that.val(text)
                    }
                });
                that.closest('form').submit(function () {
                    text = that.attr('placeholder');
                    if (that.val() == text) {
                        that.val('');
                    }
                });
            }
        });
    }

    //type为password的特殊处理
    $('#fake_pass_01').focus(function(){
        $(this).hide();
        $('#user_password').show().focus();
    });

    $('#user_password').blur(function(){
        if($(this).val() == ""){
            $(this).hide();
            $('#fake_pass_01').show();
        }
    });

    $('#r_user_password_fake').focus(function(){
        $(this).hide();
        $('#r_user_password').show().focus();
    });

    $('#r_user_password').blur(function(){
        if($(this).val() == ""){
            $(this).hide();
            $('#r_user_password_fake').show();
        }
    });

    $('#c_user_password_fake').focus(function(){
        $(this).hide();
        $('#c_user_password').show().focus();
    });

    $('#c_user_password').blur(function(){
        if($(this).val() == ""){
            $(this).hide();
            $('#c_user_password_fake').show();
        }
    });

    $('#agreed').click(function(){
        if(!$(this).attr('checked')){
            _ga_track_event_new('btnclick','ucenter-register-uncheck','en-us');
            $('#reg_btn').removeClass().addClass('regsiter_btn_hui');
        }else{
            _ga_track_event_new('btnclick','ucenter-register-check','en-us');
            $('#reg_btn').removeClass().addClass('regsiter_btn');
        }
    });
    //第三方登录，打点
    $('#third_login a').click(function(){
        var tip = $(this).attr('tip');
        if(login_third_tip == 1){
            if(tip == 1){
                _ga_track_event_new('btnclick','ucenter-login-f','en-us');
            }else if(tip == 2){
                _ga_track_event_new('btnclick','ucenter-login-g','en-us');
            }else if(tip == 3){
                _ga_track_event_new('btnclick','ucenter-login-y','en-us');
            }else if(tip == 4){
                _ga_track_event_new('btnclick','ucenter-login-t','en-us');
            }
        }else{
            if(tip == 1){
                _ga_track_event_new('btnclick','ucenter-register-f','en-us');
            }else if(tip == 2){
                _ga_track_event_new('btnclick','ucenter-register-g','en-us');
            }else if(tip == 3){
                _ga_track_event_new('btnclick','ucenter-register-y','en-us');
            }else if(tip == 4){
                _ga_track_event_new('btnclick','ucenter-register-t','en-us');
            }
        }
    });</script><div class="footer wrap clearfix"id=langs_list_box><iframe style="width: 700px;"allowtransparency frameborder=0 framemargin=0 height=110 id=newcenter_iframe scrolling=no src=/?a=widget&m=footer&lang=en></iframe><a class=lang_chang href=javascript:void(0)> English </a><p><a href=javascript:void(0) lang=en-us onclick=log_change_lang('/?a=ucenter&m=login&lang=en-us','en-us')> English </a> <a href=javascript:void(0) lang=tr-tr onclick=log_change_lang('/?a=ucenter&m=login&lang=tr-tr','tr-tr')> Türkçe </a> <a href=javascript:void(0) lang=pt-br onclick=log_change_lang('/?a=ucenter&m=login&lang=pt-br','pt-br')> Português </a> <a href=javascript:void(0) lang=es-es onclick=log_change_lang('/?a=ucenter&m=login&lang=es-es','es-es')> Español </a> <a href=javascript:void(0) lang=pl-pl onclick=log_change_lang('/?a=ucenter&m=login&lang=pl-pl','pl-pl')> Polski </a> <a href=javascript:void(0) lang=ar-ar onclick=log_change_lang('/?a=ucenter&m=login&lang=ar-ar','ar-ar')> العربية </a> <a href=javascript:void(0) lang=nl-nl onclick=log_change_lang('/?a=ucenter&m=login&lang=nl-nl','nl-nl')> Nederlands </a> <a href=javascript:void(0) lang=sv-se onclick=log_change_lang('/?a=ucenter&m=login&lang=sv-se','sv-se')> Svenska </a> <a href=javascript:void(0) lang=de-de onclick=log_change_lang('/?a=ucenter&m=login&lang=de-de','de-de')> Deutsch </a> <a href=javascript:void(0) lang=el-el onclick=log_change_lang('/?a=ucenter&m=login&lang=el-el','el-el')> Ελληνική </a> <a href=javascript:void(0) lang=ru-ru onclick=log_change_lang('/?a=ucenter&m=login&lang=ru-ru','ru-ru')> Pусский </a> <a href=javascript:void(0) lang=it-it onclick=log_change_lang('/?a=ucenter&m=login&lang=it-it','it-it')> Italiano </a> <a href=javascript:void(0) lang=fr-fr onclick=log_change_lang('/?a=ucenter&m=login&lang=fr-fr','fr-fr')> Français </a></div><script>var language = "en";
    //鼠标移开当前语言时，语言列表隐藏
    $('#langs_list_box').hover(function(){},function(){
        $(this).find('p').hide();
    })
    var log_langchage_url = '/?a=Ucenter&m=log_change_lang';
    function log_change_lang(url,lang){
        $.post(log_langchage_url,{lang:lang},function(data){},'json');
        window.location.href = url;
    }
    if(language == 'el' || language == 'ru'){
        $('#newcenter_iframe').css({
            'width':'850px'
        })
    }</script><script>(function (i, s, o, g, r, a, m) {
        i['GoogleAnalyticsObject'] = r;
        i[r] = i[r] || function () {
            (i[r].q = i[r].q || []).push(arguments)
        }, i[r].l = 1 * new Date();
        a = s.createElement(o),
                m = s.getElementsByTagName(o)[0];
        a.async = 1;
        a.src = g;
        m.parentNode.insertBefore(a, m)
    })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
    ga('create', 'UA-33361405-1', { 'userId': '' });
    ga('send', 'pageview');

    function _ga_track_pageview_new(trackUrl) {
        ga('send', 'pageview', {page: trackUrl});
    }

    function _ga_track_event_new(category, action, lang) {
        ga('send', 'event', category, action, lang);
    }</script>