2008-07-27 Sancho Lerena <slerena@gmail.com>
* events_marquee.php: I forget to commit this file in my prev. commit. This is a new file because I lost it :-( * planned_downtime.php: It is LOST :(. I need to code from scratch, probably this stuff don't see the light in weeks. Server code works. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@978 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
26fa4599dc
commit
4acf215dc0
|
@ -1,3 +1,11 @@
|
|||
2008-07-27 Sancho Lerena <slerena@gmail.com>
|
||||
|
||||
* events_marquee.php: I forget to commit this file in my prev.
|
||||
commit. This is a new file because I lost it :-(
|
||||
|
||||
* planned_downtime.php: It is LOST :(. I need to code from scratch,
|
||||
probably this stuff don't see the light in weeks. Server code works.
|
||||
|
||||
2008-07-26 Raul Mateos <raulofpandora@gmail.com>
|
||||
|
||||
* general/error_noconfig.php, error_install.php, error_perms.php: Updated headers, solved
|
||||
|
|
|
@ -0,0 +1,62 @@
|
|||
<?php
|
||||
// Pandora FMS - the Flexible monitoring system
|
||||
// ============================================
|
||||
// Copyright (c) 2004-2008 Sancho Lerena, slerena@openideas.info
|
||||
// Copyright (c) 2005-2008 Artica Soluciones Tecnologicas
|
||||
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation version 2
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
error_reporting(E_ALL);
|
||||
|
||||
// Local settings for marquee extension
|
||||
|
||||
$MAX_MARQUEE_EVENTS=5;
|
||||
$MARQUEE_INTERVAL=90;
|
||||
$MARQUEE_FONT_SIZE="32px";
|
||||
$MARQUEE_SPEED=12;
|
||||
|
||||
$output = "";
|
||||
require "../../include/config.php";
|
||||
require_once "../../include/functions.php";
|
||||
require_once "../../include/functions_db.php";
|
||||
|
||||
$sql = "SELECT evento, timestamp FROM tevento ORDER BY utimestamp DESC LIMIT 0 , $MAX_MARQUEE_EVENTS";
|
||||
|
||||
$result=mysql_query($sql);
|
||||
while($row=mysql_fetch_array($result,MYSQL_ASSOC)) {
|
||||
$output .= $row["evento"]. " ( ". human_time_comparation($row["timestamp"]). " ) ";
|
||||
$output .= ". . . . . . . ";
|
||||
}
|
||||
|
||||
|
||||
echo "<html>";
|
||||
echo "<head>";
|
||||
echo "<title>Pandora FMS - Latest events </title>";
|
||||
|
||||
$query = 'http' . (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == TRUE ? 's': '') . '://' . $_SERVER['SERVER_NAME'];
|
||||
if ($_SERVER['SERVER_PORT'] != 80)
|
||||
$query .= ":" . $_SERVER['SERVER_PORT'];
|
||||
$query .= $_SERVER['SCRIPT_NAME'];
|
||||
echo '<meta http-equiv="refresh" content="' . $MARQUEE_INTERVAL . '; URL=' . $query . '">';
|
||||
echo '<link rel="icon" href="../../images/pandora.ico" type="image/ico">';
|
||||
echo "</head>";
|
||||
|
||||
echo "<body bgcolor='#000000' >";
|
||||
echo "<br><br>";
|
||||
echo "<center>";
|
||||
echo "<div style='font-size:$MARQUEE_FONT_SIZE; color: #fff'>";
|
||||
echo "<marquee width=95% scrollamount=$MARQUEE_SPEED>$output</marquee>";
|
||||
echo "</center>";
|
||||
echo "</div>";
|
||||
echo "</body>";
|
||||
|
||||
?>
|
Loading…
Reference in New Issue