SignalEvent($EventName);
$AdditionalMenuItems = array();
foreach ($SignalResult as $HandlerName => $Results)
{
$HandlerNamePieces = preg_split("/::/", $HandlerName);
$HandlerBaseName = $HandlerNamePieces[0];
foreach ($Results as $ItemLink => $ItemLabel)
{
if (!preg_match("/\.php/", $ItemLink))
{
$ItemLink = "index.php?P=P_".$HandlerBaseName."_".$ItemLink;
}
$AdditionalMenuItems[$ItemLink] = $ItemLabel;
}
}
asort($AdditionalMenuItems);
return $AdditionalMenuItems;
}
function DisplayAddedMenuItems($EventName)
{
$MenuItems = GetAddedMenuItemsFromEventSignal($EventName);
if (count($MenuItems))
{
?>
HasPriv(PRIV_SYSADMIN))
{
if ($AF->GetOrphanedTaskCount())
{
?>
TaskExecutionEnabled())
{
?>
HasPriv(PRIV_SYSADMIN, PRIV_COLLECTIONADMIN)) { ?>
Collection Administration
HasPriv(PRIV_SYSADMIN, PRIV_USERADMIN)) { ?>
User Administration
HasPriv(PRIV_SYSADMIN)) { ?>
System Administration
HasPriv(PRIV_SYSADMIN)) { ?>
Developer Support
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 = array(
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 = "cw-content-sysadmin-logmsgs-row"
." cw-content-sysadmin-logmsgs-row-"
.strtolower($LevelStrings[$Entry["Level"]]);
?>
|
|
|
|
(no log messages found) |
System Information