コード例 #1
0
                    displayRegisatrationForms($data, $messages);
                }
            }
        }
    }
}
// }}}
function runSelect()
{
    setupFromAddress();
    $user = $_GET['select'];
    if (in_array($user, $_SESSION['openid_userlist'])) {
        loginUser($user);
    } else {
        displayError(tra('The selected account is not associated with your identity.'));
    }
}
// }}}
if (isset($_GET['action'])) {
    if ($_GET['action'] == 'return') {
        runFinish();
    } elseif ($_GET['action'] == 'select' && isset($_GET['select'])) {
        runSelect();
    } elseif ($_GET['action'] == 'force') {
        runAuth();
    } else {
        displayError(tra('unknown action'));
    }
} else {
    runAuth();
}
コード例 #2
0
			if (count($list) == 1) {
				// Login the user
				loginUser($list[0]);
			} else {
			// Else Multiple account
				// Display user selection list
				displaySelectionList($list);
			}
		} else {
			$messages = array();
			// Check for entries that already exist in the database and filter them out
			filterExistingInformation($data, $messages);
			// Display register and attach forms
			displayRegisatrationForms($data, $messages);
		}
	}
} // }}}
function runSelect() // {{{
{
	setupFromAddress();
	$user = $_GET['select'];
	if (in_array($user, $_SESSION['openid_userlist'])) loginUser($user);
	else displayError(tra('The selected account is not associated with your identity.'));
} // }}}
if (isset($_GET['action'])) {
	if ($_GET['action'] == 'return') runFinish();
	elseif ($_GET['action'] == 'select' && isset($_GET['select'])) runSelect();
	elseif ($_GET['action'] == 'force') runAuth();
	else displayError(tra('unknown action'));
} else runAuth();