"Metadata Field Editor",
"index.php?P=MetadataFieldOrdering" => "Metadata Field Ordering",
"index.php?P=AddQualifier" => "Qualifier Editor",
"index.php?P=EditSearchConfig" => "Search Configuration",
"index.php?P=ConfirmRebuildSearchDB" => "Rebuild Search Database",
"index.php?P=ConfirmRebuildRecommenderDB" => "Rebuild Recommender Database",
"index.php?P=ImportData" => "Import Tab-Delimited Data",
"index.php?P=PurgeSampleData" => "Purge Sample Records",
];
$UserAdminMenuEntries = [
"index.php?P=UserList" => "Edit Users",
"index.php?P=TrackUserComments" => "Track User Comments",
"index.php?P=ImportUsers" => "Import User Accounts",
"index.php?P=ExportUsers" => "Export User Accounts",
];
$SystemAdminMenuEntries = [
"index.php?P=EditSystemConfig" => "System Configuration",
"index.php?P=EditInterfaceConfig" => "Interface Configuration",
"index.php?P=FixityChecks" => "File Integrity Report",
"index.php?P=EditPrivilegeNames" => "Edit Custom Privilege Flags",
"index.php?P=Plugins" => "Plugins",
"index.php?P=TaskQueue" => "Task Queue",
];
# ----- LOCAL FUNCTIONS ------------------------------------------------------
/**
* Display menu entries in two columns.
* @param array $MenuEntries Entries with links for the index and labels
* for the values.
*/
function displayMenu(array $MenuEntries): void
{
?>
HasPriv(PRIV_SYSADMIN)) {
if ($AF->GetOrphanedTaskCount()) {
?>
-
WARNING: There are currently orphaned tasks.Please visit the
Task Queue page and re-queue or
delete the tasks as appropriate.
TaskExecutionEnabled()) {
?>
-
PLEASE NOTE: Automatic task execution is currently disabled,
which means that background tasks like search database updates and
periodic mailings will not run.Visit the
Task Queue page to re-enable task
execution.
HasPriv(PRIV_SYSADMIN, PRIV_COLLECTIONADMIN)) {
?>
Collection Administration
HasPriv(PRIV_SYSADMIN, PRIV_USERADMIN)) {
?>
User Administration
HasPriv(PRIV_SYSADMIN)) {
?>
System Administration
Plugin Administration
$MenuEntries) {
$Plugin = $PluginMgr->getPlugin($BaseName);
if (!$Plugin->isReady()) {
continue;
}
?>
= $Plugin->getName() ?>
HasPriv(PRIV_SYSADMIN, PRIV_USERADMIN)) {
?>
Users Currently Logged In
Users Recently Logged In
HasPriv(PRIV_SYSADMIN)) { ?>
Recent Log Messages
GetLogEntries(10);
if (count($SysLogEntries)) {
$LevelStrings = [
ApplicationFramework::LOGLVL_FATAL => "Fatal",
ApplicationFramework::LOGLVL_ERROR => "Error",
ApplicationFramework::LOGLVL_WARNING => "Warn",
ApplicationFramework::LOGLVL_INFO => "Info",
ApplicationFramework::LOGLVL_DEBUG => "Debug",
ApplicationFramework::LOGLVL_TRACE => "Trace",
];
foreach ($SysLogEntries as $Entry) {
# linkify any URLs in the message
$Msg = htmlspecialchars($Entry["Message"]);
$MaxDisplayedUrlLen = 50;
$Msg = preg_replace(
"~([[:alpha:]]+://[^<>[:space:]]{1,"
.$MaxDisplayedUrlLen."})([^<>[:space:]]*)~",
"\\1",
$Msg
);
$RowClasses = "mv-content-sysadmin-logmsgs-row"
." mv-content-sysadmin-logmsgs-row-"
.strtolower($LevelStrings[$Entry["Level"]]);
?>
= StdLib::getPrettyTimestamp($Entry["Time"]); ?>
|
= $LevelStrings[$Entry["Level"]]; ?> |
= $Msg; ?> |
= $Entry["Background"] ? "(B)" : "" ?> |
(no log messages found) |
System Information
Metavus Version |
= METAVUS_VERSION; ?> |
PHP Version |
= PHP_VERSION; ?> |
MySQL Version |
= $DatabaseServerVersion ?> |
Database Name |
DBName();
?> |
Supported Image Formats |
= $SupportedImageFormats ?> |
PHP Configuration Summary |
phpinfo() |
Server Time |
= date("g:i:sa")." "
.date("F j, Y"); ?> |
Server Load Average |
= $LoadAverageString ?> (1/5/15 minutes) |
Page Cache |
PageCacheEnabled()) {
$CacheInfo = $AF->GetPageCacheInfo();
print number_format($CacheInfo["NumberOfEntries"])." entries";
if ($CacheInfo["NumberOfEntries"]) {
print ", oldest from "
.StdLib::getPrettyTimestamp($CacheInfo["OldestTimestamp"])
." "
."CLEAR";
}
} else {
print "(disabled)";
}
?> |
SignalEvent("EVENT_SYSTEM_INFO_LIST");
if (count($SignalResult)) {
foreach ($SignalResult as $HandlerName => $Items) {
foreach ($Items as $Label => $Content) {
?>
= $Label; ?> |
= $Content; ?> |