Esempio n. 1
0
/**
 * opidr()
 *
 * @param mixed $openid_info
 * @return void
 */
function opidr($openid_info)
{
    global $lang_module, $nv_Request, $nv_redirect;
    $nv_Request->unset_request('openid_attribs', 'session');
    $openid_info['redirect'] = nv_redirect_decrypt($nv_redirect);
    $contents = openid_callback($openid_info);
    include NV_ROOTDIR . '/includes/header.php';
    echo nv_site_theme($contents, false);
    include NV_ROOTDIR . '/includes/footer.php';
    exit;
}
Esempio n. 2
0
function opidr($openid_info)
{
    global $lang_module;
    if ($openid_info == 1) {
        $openid_info = array('status' => 'error', 'mess' => $lang_module['canceled_authentication']);
    } elseif ($openid_info == 2) {
        $openid_info = array('status' => 'error', 'mess' => $lang_module['not_logged_in']);
    } elseif ($openid_info == 3) {
        $openid_info = array('status' => 'error', 'mess' => $lang_module['logged_in_failed']);
    } elseif ($openid_info == 4) {
        $openid_info = array('status' => 'error', 'mess' => $lang_module['openid_is_exists']);
    } elseif ($openid_info == 5 or $openid_info == 6) {
        $openid_info = array('status' => 'error', 'mess' => $lang_module['email_is_exists']);
    } else {
        $openid_info = array('status' => 'success', 'mess' => $lang_module['openid_added']);
    }
    $contents = openid_callback($openid_info);
    include NV_ROOTDIR . '/includes/header.php';
    echo nv_site_theme($contents, false);
    include NV_ROOTDIR . '/includes/footer.php';
    exit;
}