コード例 #1
0
function show_eventlog($config)
{
    // Show eventlog
    echo '    <div class="col-md-6 sortable">';
    echo '      <div class="widget widget-table">';
    echo '        <div class="widget-header"><i class="oicon-gear"></i><h3>Eventlog</h3></div>';
    echo '        <div class="widget-content">';
    print_events(array('short' => TRUE, 'pagesize' => 5));
    echo '        </div>';
    echo '      </div>';
    echo '    </div>';
}
コード例 #2
0
ファイル: default.php プロジェクト: Natolumin/observium
function show_splitlog($config)
{
    echo '<div class="row">' . PHP_EOL;
    echo '  <div class="col-sm-6">' . PHP_EOL;
    print_events(array('short' => TRUE, 'pagesize' => $config['frontpage']['eventlog']['items'], 'severity' => $config['frontpage']['eventlog']['severity'], 'header' => array('url' => '/eventlog/', 'title' => 'Recent Events', 'header-border' => TRUE)));
    echo '  </div>';
    echo '  <div class="col-sm-6">' . PHP_EOL;
    print_syslogs(array('short' => TRUE, 'pagesize' => $config['frontpage']['syslog']['items'], 'priority' => $config['frontpage']['syslog']['priority'], 'header' => array('url' => '/syslog/', 'title' => 'Recent Syslog Messages', 'header-border' => TRUE)));
    echo '  </div>';
    echo '</div>';
}
コード例 #3
0
<?php

/**
 * Observium Network Management and Monitoring System
 * Copyright (C) 2006-2014, Adam Armstrong - http://www.observium.org
 *
 * @package    observium
 * @subpackage webui
 * @author     Adam Armstrong <*****@*****.**>
 * @copyright  (C) 2006-2014 Adam Armstrong
 *
 */
/// Pagination
$vars['pagination'] = TRUE;
if (!$vars['pagesize']) {
    $vars['pagesize'] = "100";
}
if (!$vars['pageno']) {
    $vars['pageno'] = "1";
}
print_events($vars);
$pagetitle[] = "事件";
// EOF
コード例 #4
0
function show_splitlog($config)
{
    //Show syslog and eventlog
    echo '<div class="row">' . PHP_EOL;
    echo '  <div class="col-md-6">' . PHP_EOL;
    echo '    <h3 class="bill">最近的事件日志内容</h3>' . PHP_EOL;
    print_events(array('short' => true, 'pagesize' => $config['frontpage']['eventlog']['items']));
    echo '  </div>' . PHP_EOL;
    echo '  <div class="col-md-6">' . PHP_EOL;
    echo '    <h3 class="bill">最近的日志信息</h3>' . PHP_EOL;
    print_syslogs(array('short' => true, 'pagesize' => $config['frontpage']['syslog']['items'], 'priority' => $config['frontpage']['syslog']['priority']));
    echo '  </div>' . PHP_EOL;
    echo '</div>' . PHP_EOL;
}
コード例 #5
0
ファイル: main.php プロジェクト: bmad4ever/LTW
<script type="text/javascript" src="main.js"></script>
</header>

<body>

    <header> 
	<?php 
login_header();
?>
	<h1>Le EventBook</h1> 
	</header>
	
    <br>
		<?php 
/*main_display()*/
print_events(popular_events(), true, "Popular Events");
?>
    <br>
    <br>
    <a href="list_events.php">Check all public events</a>
	<br>
	
	<footer>
        <marquee behavior="scroll" direction="left">
            Welcome to EventBook. Here you can share your events with your friends (or not).
        </marquee>

       	<br>Date  
	<div id="date_display"><?php 
// echo date('l jS \of F Y h:i:s A')
?>
コード例 #6
0
function show_eventlog($config)
{
    // Show eventlog
    echo <<<EVENTS
    <div class="row">
      <div class="col-md-12">
        <h3 class="bill">最近的事件日志条目</h3>
EVENTS;
    print_events(array('pagesize' => $config['frontpage']['eventlog']['items']));
    echo "  </div>\n</div>";
}
コード例 #7
0
ファイル: events.inc.php プロジェクト: Natolumin/observium
<?php

/**
 * Observium Network Management and Monitoring System
 * Copyright (C) 2006-2015, Adam Armstrong - http://www.observium.org
 *
 * @package    observium
 * @subpackage webui
 * @author     Adam Armstrong <*****@*****.**>
 * @copyright  (C) 2006-2013 Adam Armstrong, (C) 2013-2016 Observium Limited
 *
 */
print_events(array('device' => $device['device_id'], 'short' => TRUE, 'pagesize' => '20', 'header' => array('title' => 'Eventlog', 'icon' => 'oicon-clipboard-audit', 'url' => generate_url(array('page' => 'device', 'device' => $device['device_id'], 'tab' => 'logs', 'section' => 'eventlog')))));
// EOF
コード例 #8
0
ファイル: events.inc.php プロジェクト: skive/observium
/**
 * Display short events.
 *
 * This is use function:
 * print_events(array('short' => TRUE))
 *
 * @param array $vars
 * @return none
 *
 */
function print_events_short($var)
{
    $var['short'] = TRUE;
    print_events($var);
}
コード例 #9
0
    include "overview/mempools.inc.php";
}
include "overview/storage.inc.php";
if (is_array($entity_state['group']['c6kxbar'])) {
    include "overview/c6kxbar.inc.php";
}
include "overview/toner.inc.php";
include "overview/sensors/temperatures.inc.php";
include "overview/sensors/humidity.inc.php";
include "overview/sensors/fanspeeds.inc.php";
include "overview/sensors/dbm.inc.php";
include "overview/sensors/voltages.inc.php";
include "overview/sensors/current.inc.php";
include "overview/sensors/power.inc.php";
include "overview/sensors/frequencies.inc.php";
// Start events
?>
   <div class="well info_box">
      <div id="title"><a href="<?php 
echo generate_url(array('page' => 'device', 'device' => $device['device_id'], 'tab' => 'logs', 'section' => 'eventlog'));
?>
">
        <i class="oicon-clipboard-audit"></i> Events</a></div>
      <div id="content">
<?php 
print_events(array('device' => $device['device_id'], 'pagesize' => 15, 'short' => TRUE));
?>
    </div>
  <div>
</div>
コード例 #10
0
ファイル: inbox.php プロジェクト: bmad4ever/LTW
?>

<html>
  <head>
    <title>Invitations Inbox</title>
    <meta charset="utf-8">
    <link rel="stylesheet" href="css/myStyle.css"> 
	<?php 
meta_includes();
?>
  </head>
  
  <body>
    <header>
	<?php 
login_header();
?>
      <h1>Invitations</h1>
    </header>
	
	<div id="invitations">
	<h2> You got invited to </h2>
	<br>
	<?php 
print_events(invited_events(), false, "");
?>
	</div>
	
	</body>

</html>
コード例 #11
0
ファイル: old.php プロジェクト: RomanBogachev/observium
    } else {
        $sql = mysql_query("SELECT * FROM `devices` AS D, bgpPeers AS B, devices_perms AS P WHERE D.device_id = P.device_id AND P.user_id = '" . $_SESSION['user_id'] . "' AND  bgpPeerAdminStatus = 'start' AND bgpPeerState != 'established' AND B.device_id = D.device_id AND D.ignore = 0");
    }
    while ($peer = mysql_fetch_assoc($sql)) {
        generate_front_box("#ffaaaa", "<center><strong>" . generate_device_link($peer, shorthost($peer['hostname'])) . "</strong><br />\n      <span style='font-size: 14px; font-weight: bold; margin: 5px; color: #c00;'>BGP Down</span>\n      <span style='" . (strstr($peer['bgpPeerIdentifier'], ':') ? 'font-size: 10px' : '') . "'><strong>" . $peer['bgpPeerIdentifier'] . "</strong></span><br />\n      <span class=body-date-1>AS" . truncate($peer['bgpPeerRemoteAs'] . " " . $peer['astext'], 14, "") . "</span>\n      </center>");
    }
}
if (filter_var($config['uptime_warning'], FILTER_VALIDATE_FLOAT) !== FALSE && $config['uptime_warning'] > 0) {
    if ($_SESSION['userlevel'] == '10') {
        $sql = mysql_query("SELECT * FROM `devices` AS D WHERE D.status = '1' AND D.uptime > 0 AND D.uptime < '" . $config['uptime_warning'] . "' AND D.ignore = 0");
    } else {
        $sql = mysql_query("SELECT * FROM `devices` AS D, devices_perms AS P WHERE D.device_id = P.device_id AND P.user_id = '" . $_SESSION['user_id'] . "' AND D.status = '1' AND D.uptime > 0 AND D.uptime < '" . $config['uptime_warning'] . "' AND D.ignore = 0");
    }
    while ($device = mysql_fetch_assoc($sql)) {
        generate_front_box("#aaffaa", "<center><strong>" . generate_device_link($device, shorthost($device['hostname'])) . "</strong><br />\n        <span style='font-size: 14px; font-weight: bold; margin: 5px; color: #009;'>Device<br />Rebooted</span><br />\n        <span class=body-date-1>" . formatUptime($device['uptime'], 'short') . "</span>\n        </center>");
    }
}
if ($config['enable_syslog']) {
    // Open Syslog Div
    echo "<div style='margin: 4px; clear: both; padding: 5px;'>\n    <h3>Recent Syslog Messages</h3>\n  ";
    print_syslogs(array('pagesize' => $config['frontpage']['syslog']['items']));
    echo "</div>";
    // Close Syslog Div
} else {
    // Open eventlog Div
    echo "<div style='margin: 4px; clear: both; padding: 5px;'>\n    <h3>Recent Eventlog Entries</h3>\n  ";
    print_events(array('pagesize' => $config['frontpage']['eventlog']['items']));
    echo "</div>";
    // Close eventlog Div
}
echo "</div>";
コード例 #12
0
ファイル: default.php プロジェクト: RomanBogachev/observium
function show_eventlog($config)
{
    // Show eventlog
    $show_event = "<div class=\"row-fluid\">";
    $show_event .= "    <div class=\"span12 \">";
    $show_event .= "        <h3 class=\"bill\">Recent Eventlog Entries</h3>";
    echo $show_event;
    print_events(array('pagesize' => $config['frontpage']['eventlog']['items']));
    $show_event = "    </div>";
    $show_event .= "</div>";
    echo $show_event;
}
コード例 #13
0
ファイル: my_events.php プロジェクト: bmad4ever/LTW
meta_includes();
?>
  </head>
  
  <body>
    <header>
	<?php 
login_header();
?>
      <h1>My Events</h1>
    </header>
	
	<div class="left_float">
	<h2> Events Created </h2>
	<br>
	<?php 
print_events(user_events(), false, "");
?>
	</div>
	
	<div class="right_float" >
	<h2> Participating In </h2>
	<br>
	<?php 
print_events(registered_events(), false, "");
?>
	</div>
	
	</body>

</html>