2006-03-27 05:37:27 +02:00
|
|
|
<?php
|
2007-08-08 20:36:18 +02:00
|
|
|
// Pandora FMS - the Free Monitoring System
|
2007-03-02 18:56:07 +01:00
|
|
|
// ========================================
|
2008-04-01 15:53:11 +02:00
|
|
|
// Copyright (c) 2008 Artica Soluciones Tecnológicas, http://www.artica.es
|
2007-08-08 20:36:18 +02:00
|
|
|
// Please see http://pandora.sourceforge.net for full contribution list
|
2007-03-02 18:56:07 +01:00
|
|
|
|
2006-12-24 23:40:09 +01:00
|
|
|
// This program is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU General Public License
|
2007-08-08 20:36:18 +02:00
|
|
|
// as published by the Free Software Foundation for version 2.
|
2006-12-24 23:40:09 +01:00
|
|
|
// 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.
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2008-08-21 23:07:20 +02:00
|
|
|
echo '<div id="head_r"><span id="logo_text1">Pandora</span> <span id="logo_text2">FMS</span></div>
|
|
|
|
<div id="head_l"><a href="index.php"><img src="images/pandora_logo_head.png" border="0" alt="logo" /></a></div><div id="head_m">';
|
2008-04-03 17:43:34 +02:00
|
|
|
|
2008-08-21 23:07:20 +02:00
|
|
|
if(!isset ($_SESSION["id_usuario"])) {
|
|
|
|
echo "</div>";
|
|
|
|
return;
|
2007-03-02 18:56:07 +01:00
|
|
|
}
|
2008-08-21 23:07:20 +02:00
|
|
|
$table->width=520;
|
|
|
|
$table->border=0;
|
|
|
|
$table->cellpadding=3;
|
|
|
|
$table->size=array("30%");
|
|
|
|
$table->class="inherit";
|
|
|
|
$table->rowclass=array("inherit","inherit");
|
|
|
|
|
|
|
|
$table->data[] = array (
|
|
|
|
// First column
|
2008-08-22 16:28:00 +02:00
|
|
|
'<img src="images/user_'.((dame_admin ($_SESSION["id_usuario"]) == 1) ? 'suit' : 'green' ).'.png" class="bot"> '.'<a class="white">'.__('You are ').'[<b>'.$_SESSION["id_usuario"].'</b>]</a>',
|
2008-08-21 23:07:20 +02:00
|
|
|
// Second column
|
2008-08-22 16:28:00 +02:00
|
|
|
'<a class="white_bold" href="index.php?sec=main"><img src="images/information.png" class="bot"> '.__('General information').'</a>',
|
2008-08-21 23:07:20 +02:00
|
|
|
// Third column
|
|
|
|
// Autorefresh
|
|
|
|
((get_parameter ("refr") != 0) ?
|
2008-08-22 16:28:00 +02:00
|
|
|
'<a class="white_grey_bold" href="'.((substr($_SERVER['REQUEST_URI'],-1) != "/") ? $_SERVER['REQUEST_URI'] : 'index.php?' ).'&refr=0"><img src="images/page_lightning.png" class="bot" /> '. __('Autorefresh').'</a>'
|
2008-08-21 23:07:20 +02:00
|
|
|
:
|
2008-08-22 16:28:00 +02:00
|
|
|
'<a class="white_bold" href="'.((substr($_SERVER['REQUEST_URI'],-1) != "/") ? $_SERVER['REQUEST_URI'] : "index.php?" ).'&refr=5"><img src="images/page_lightning.png" class="bot" /> '.__('Autorefresh').'</a>'
|
2008-08-21 23:07:20 +02:00
|
|
|
)
|
|
|
|
);
|
|
|
|
|
|
|
|
$table->data[] = array (
|
2008-08-22 16:28:00 +02:00
|
|
|
'<a class="white_bold" href="index.php?bye=bye"><img src="images/lock.png" class="bot"> '. __('Logout').'</a>',
|
2008-08-21 23:07:20 +02:00
|
|
|
'<a class="white_bold" href="index.php?sec=estado_server&sec2=operation/servers/view_server&refr=60">'.
|
|
|
|
((check_server_status () == 0) ?
|
2008-08-22 16:28:00 +02:00
|
|
|
'<img src="images/error.png" class="bot" /> '.__('Server status: DOWN')
|
2008-08-21 23:07:20 +02:00
|
|
|
:
|
2008-08-22 16:28:00 +02:00
|
|
|
'<img src="images/ok.png" class="bot" /> '.__('System ready')
|
2008-08-21 23:07:20 +02:00
|
|
|
).'</a>',
|
|
|
|
// Event - refresh
|
2008-08-22 16:28:00 +02:00
|
|
|
'<a class="white_bold" href="index.php?sec=eventos&sec2=operation/events/events&refr=5"><img src="images/lightning_go.png" class="bot" /> '.__('Events').'</a>'
|
2008-08-21 23:07:20 +02:00
|
|
|
);
|
|
|
|
print_table ($table);
|
2008-08-22 16:28:00 +02:00
|
|
|
unset ($table);
|
2007-05-18 14:56:05 +02:00
|
|
|
echo "</div>";
|
2007-05-18 11:29:54 +02:00
|
|
|
|
2007-05-18 14:56:05 +02:00
|
|
|
?>
|