Your IP : 216.73.216.93


Current Path : /home/users/unlimited/www/facebook.codeskitter.site/sources/
Upload File :
Current File : /home/users/unlimited/www/facebook.codeskitter.site/sources/unusual-login.php

<?php
if (empty($_SESSION['code_id'])) {
    header("Location: " . Wo_SeoLink('index.php?link1=welcome'));
    exit();
}
$wo['description'] = '';
$wo['keywords']    = '';
$wo['page']        = 'welcome';
$wo['title']       = $wo['lang']['confirm_your_account'];
if (!empty($_GET['type'])) {
    if ($_GET['type'] == 'two-factor') {
        $wo['lang']['confirm_your_account'] = $wo['lang']['two_factor'];
        $wo['lang']['sign_in_attempt']      = $wo['lang']['to_log_in_two_factor'];
        if ($wo['config']['two_factor_type'] == 'both') {
            $wo['lang']['we_have_sent_you_code'] = $wo['lang']['sent_two_factor_both'];
        } else if ($wo['config']['two_factor_type'] == 'email') {
            $wo['lang']['we_have_sent_you_code'] = $wo['lang']['sent_two_factor_email'];
        } else if ($wo['config']['two_factor_type'] == 'phone') {
            $wo['lang']['we_have_sent_you_code'] = $wo['lang']['sent_two_factor_phone'];
        }
    } else {
        header("Location: " . Wo_SeoLink('index.php?link1=welcome'));
        exit();
    }
}
$wo['two_factor_method'] = '';
if (!empty($_COOKIE['two_factor_method']) && in_array($_COOKIE['two_factor_method'],array('two_factor','google','authy'))) {
    $wo['two_factor_method'] = $_COOKIE['two_factor_method'];
}

if ($wo['two_factor_method'] == 'authy') {
    $wo['lang']['we_have_sent_you_code'] = $wo['lang']['use_authy_app'];
}
else if ($wo['two_factor_method'] == 'google') {
    $wo['lang']['we_have_sent_you_code'] = $wo['lang']['use_google_authenticator_app'];
}
$wo['content'] = Wo_LoadPage('welcome/unusual-login');