IsLoggedIn()) { ?> You are logged in.
Welcome, Get("UserName")); ?>

SignalEvent("EVENT_REQUEST_SIDEBAR_CONTENT"); if (is_array($SideContent) && count($SideContent)) { foreach ($SideContent as $HandlerName => $Content) { print $Content; } } $AF->SignalEvent("EVENT_HTML_INSERTION_POINT", array($GLOBALS["AF"]->GetPageName(), "Sidebar Content")); ?>
SignalEvent("EVENT_APPEND_HTML_TO_FORM", array("PageName" => "", "FormName"=>"LoginForm", "Labels" => array(), "InputElements" => array(), "Notes" => array())); # Extract the results. $Labels = $Data["Labels"]; $InputElements = $Data["InputElements"]; $Notes = $Data["Notes"]; # Append them where required. for ($Index = 0; $Index < count($Labels); $Index++) { print("
" ."".$Labels[$Index]."" ."".$InputElements[$Index]."" ."
"); } } /** * Check whether secure login is enabled, and print out necessary JavaScript * setup if it has. * @return array Array with two boolean values, the first indicating whether * secure login is enabled at all, and the second indicating whether * secure login is optional. */ function SetUpSecureLogin() { $UseSecureLogin = FALSE; $SecureLoginOptional = ($GLOBALS["G_SysConfig"]->SecureLogin() == 1) ? TRUE : FALSE; # if secure login has been enabled if ($GLOBALS["G_SysConfig"]->SecureLogin() > 0) { # retrieve the most recently generated cryptographic keypair $KeyPair = SPTUser::GetCryptKey(); # get the public key portion from the keypair $PubKeyParams = SPTUser::ExtractPubKeyParameters($KeyPair); # Check to make sure that we were able to generate a pubkey and # extract params from it. If that went poorly, fall back to # the regular login procedure if (strlen($PubKeyParams["Modulus"]) && strlen($PubKeyParams["Exponent"])) { # include the 'jsbn' javascript encryption library $JsbnFiles = array("prng4.js", "rng.js", "jsbn.js", "rsa.js", "base64.js"); foreach ($JsbnFiles as $FileName) { ?>