IncludeUIFile($FileName); } # the HTML below will define a CryptPw javascript function # to encrypt the user-supplied password, pad it with 2 random bytes, # then base64 the result for transmission # (pages/UserLogin.php contains the companion decryption code) } else { # if we don't have a valid key to use, fall back to standard # login $UseSecureLogin = FALSE; } } ?>
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]."" ."
"); } }