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 ($i=0; $i< count($Labels); $i++) { print("
" ."".$Labels[$i]."" ."".$InputElements[$i]."" ."
"); } } function PrintMenuEntry($Label, $Link, $PositionString = NULL) { $PositionString = $PositionString ? $PositionString : "5px 10px 0px 0px"; ?>
" style="margin-bottom: -2px;" border="0" alt="" height="12" width="12">
>
IsLoggedIn()) { ?> You are logged in.
Welcome, Get("UserName")); ?>
Nav Item Link "Register" => "RegisterPortal", "Preferences" => "Preferences", "Accessibility" => "AccessPreferences", "Metadata Tool" => "MDHome", "Administration" => "SysAdmin", "Edit User Account" => "SelectEditUser", "Log Out" => "UserLogout", ); $SecondaryNavExclusions = array( # Nav Item Link => Whether to Display "RegisterPortal" => ($G_User->HasPriv(PRIV_SYSADMIN) && !$G_SysConfig->HasRegistered()), "AccessPreferences" => $G_SysConfig->AccessibilityWizardEnabled(), "MDHome" => $User->HasPriv(PRIV_RESOURCEADMIN, PRIV_CLASSADMIN, PRIV_MYRESOURCEADMIN, PRIV_NAMEADMIN, PRIV_RELEASEADMIN), "SysAdmin" => $User->HasPriv(PRIV_SYSADMIN, PRIV_COLLECTIONADMIN, PRIV_USERADMIN), "SelectEditUser" => $User->HasPriv(PRIV_SYSADMIN, PRIV_USERADMIN), ); function DisplaySecondaryNavItem($Link, $Label) { PrintMenuEntry($Label, $Link); } # (DisplayNavItems() is in StdPageStart.html) DisplayNavItems($SecondaryNavItems, $SecondaryNavExclusions, "EVENT_MODIFY_SECONDARY_NAV", "DisplaySecondaryNavItem"); ?> SecureLogin() > 0 ) { ?>
SecureLogin()>0) { ?> onsubmit="HashPw();" >

Log In:

User name:
SecureLogin()>0) { ?> onchange="FetchSalt();" >
Password:
" style="margin: 0px 0px -5px 4px;">
SecureLogin()>0) { ?> SecureLogin()==1) { ?> Use Secure Login: "> SecureLogin()>0){ ?>
HasPriv(PRIV_RESOURCEADMIN, PRIV_CLASSADMIN, PRIV_NAMEADMIN, PRIV_SYSADMIN, PRIV_MYRESOURCEADMIN, PRIV_RELEASEADMIN)) { if ($User->HasPriv(PRIV_RESOURCEADMIN, PRIV_MYRESOURCEADMIN)) { PrintMDTMenuEntry("Add New Resource", "index.php?P=EditResource&ID=NEW"); } if ($User->HasPriv(PRIV_RESOURCEADMIN, PRIV_MYRESOURCEADMIN, PRIV_RELEASEADMIN)) { PrintMDTMenuEntry("Edit Resources", "index.php?P=Advanced&Editing=1"); } if ($User->HasPriv(PRIV_NAMEADMIN)) { PrintMDTMenuEntry("Add New Controlled Name", "index.php?P=AddControlledName"); PrintMDTMenuEntry("Edit Controlled Names", "index.php?P=EditControlledName&FieldId=0"); PrintMDTMenuEntry("Edit Option Lists", "index.php?P=EditOptionList"); } if ($User->HasPriv(PRIV_CLASSADMIN)) { PrintMDTMenuEntry("Add/Edit Classifications", "index.php?P=BrowseResources&Editing=1"); } print("
"); PrintMDTMenuEntry("Metadata Tool Help", "index.php?P=MetadataHelp", TRUE); } ?>
Id()); if (count($Searches)) { ?>
My Searches Manage
· GetSearchGroupsAsTextDescription(NULL, FALSE, FALSE, 30))); ?>">SearchName()); ?>
IsLoggedIn()) { $EventLog->LimitFindToUser(); $Searches = $EventLog->FindEvents(NULL, NULL, 0, 5, SptEventLog::SPTEVENT_SEARCH, SptEventLog::SPTEVENT_ADVANCEDSEARCH); } elseif (FALSE) // (need to add system configuration option to disable before allowing this) { $EventLog->AddSqlConditionForFind("UserId >= 0"); $Searches = $EventLog->FindEvents(NULL, NULL, 0, 5, SptEventLog::SPTEVENT_SEARCH); } if (isset($Searches) && count($Searches)) { ?>
Recent Searches
· ">
Query("SELECT * FROM RSSFeeds"); $HaveLoadedFeedFromSite = FALSE; while ($FeedInfo = $DB->FetchRow()) { if ($FeedInfo["Enabled"]) { # if we are on a page that this feed should be displayed on if (($FeedInfo["DisplayLocations"] & RSSDISP_ALLPAGES) || (($FeedInfo["DisplayLocations"] & RSSDISP_FRONTPAGE) && (basename($_SERVER["SCRIPT_NAME"]) == "index.php?P=Home")) || (($FeedInfo["DisplayLocations"] & RSSDISP_ADMINPAGE) && (basename($_SERVER["SCRIPT_NAME"]) == "index.php?P=SysAdmin")) || (($FeedInfo["DisplayLocations"] & RSSDISP_MTOOLPAGE) && (basename($_SERVER["SCRIPT_NAME"]) == "index.php?P=MDHome"))) { $RefreshTime = $HaveLoadedFeedFromSite ? 999999 : $FeedInfo["RefreshRate"]; $Feed = new RSSClient($FeedInfo["URL"], $RFeedDB, "", $RefreshTime); $Items = $Feed->GetItems($FeedInfo["NumberItemsToDisplay"]); if ($Feed->UsedCachedData() != TRUE) { $HaveLoadedFeedFromSite = TRUE; } $Title = $FeedInfo["Title"]; if (!strlen($Title)) { $Title = strip_tags($Feed->GetChannelTitle()); } $TitleLink = strip_tags($Feed->GetChannelLink()); $NewWindow = $SysConfig->ResourceLaunchesNewWindowEnabled() ? " target=\"_blank\"" : ""; ?>
>
· ">
HasPriv(PRIV_SYSADMIN)) { ?>
page gen time: GetElapsedExecutionTime()); ?> seconds CWIS version: database name: db cache rate: CacheHitRate(), $DB->NumCacheHits(), $DB->NumQueries()); ?>