2006-11-21 Raul Mateos <raulofpandora@gmail.com>
* general/footer.php: Change time() function to $_SERVER['REQUEST_TIME'] for optimization, Esteban's suggestion. Changed text from Pandora to Pandora FMS. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@268 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
589df51e8b
commit
624c571d23
|
@ -1,3 +1,9 @@
|
|||
2006-11-21 Raul Mateos <raulofpandora@gmail.com>
|
||||
|
||||
* general/footer.php: Change time() function to $_SERVER['REQUEST_TIME']
|
||||
for optimization, Esteban's suggestion. Changed text from Pandora to
|
||||
Pandora FMS.
|
||||
|
||||
2006-11-17 Raul Mateos <raulofpandora@gmail.com>
|
||||
|
||||
* operation/agentes/estado_generalagente.php: Clear code, small adapt to
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?PHP
|
||||
<?PHP
|
||||
// Pandora - the Free monitoring system
|
||||
// ====================================
|
||||
// Copyright (c) 2004-2006 Sancho Lerena, slerena@gmail.com
|
||||
|
@ -26,8 +26,8 @@
|
|||
echo $lang_label["gpl_notice"];
|
||||
echo '</a><br>';
|
||||
if (isset($_SESSION['id_usuario'])) {
|
||||
echo $lang_label["gen_date"]." ".date("D F d, Y H:i:s",time())."<br>";
|
||||
echo $lang_label["gen_date"]." ".date("D F d, Y H:i:s",$_SERVER['REQUEST_TIME'])."<br>";
|
||||
}
|
||||
?>
|
||||
<i>Pandora is a <a target="_new" href="http://pandora.sourceforge.net">SourceForge registered project</a></i>
|
||||
<i>Pandora FMS is a <a target="_new" href="http://pandora.sourceforge.net">SourceForge registered project</a></i>
|
||||
</div>
|
|
@ -82,7 +82,7 @@ if (comprueba_login() == 0) {
|
|||
} else {
|
||||
echo "<form method='post' action='index.php?sec=estado&sec2=operation/agentes/estado_alertas&refr=60'>";
|
||||
}
|
||||
echo "<table border='0'><tr><td valign='middle'>";
|
||||
echo "<table><tr><td valign='middle'>";
|
||||
echo "<select name='ag_group' onChange='javascript:this.form.submit();' class='w130'>";
|
||||
|
||||
if ( $ag_group > 1 ){
|
||||
|
|
|
@ -84,11 +84,11 @@ if (comprueba_login() == 0) {
|
|||
if ( isset($ag_modulename)){
|
||||
echo "<option>".$ag_modulename;
|
||||
}
|
||||
echo "<option>---";
|
||||
echo "<option>ALL</option>";
|
||||
$sql='SELECT DISTINCT nombre FROM tagente_modulo WHERE (id_tipo_modulo = 2) OR (id_tipo_modulo = 9) OR (id_tipo_modulo = 12) OR (id_tipo_modulo = 18) OR (id_tipo_modulo = 6) ';
|
||||
$result=mysql_query($sql);
|
||||
while ($row=mysql_fetch_array($result)){
|
||||
echo "<option>".$row[0];
|
||||
echo "<option>".$row[0]."</option>";
|
||||
}
|
||||
echo "</select>";
|
||||
echo "<td valign='middle'><noscript><input name='uptbutton' type='submit' class='sub' value='".$lang_label["show"]."'></noscript></form>";
|
||||
|
@ -107,7 +107,7 @@ if (comprueba_login() == 0) {
|
|||
if (mysql_num_rows($result)){
|
||||
while ($row=mysql_fetch_array($result)){ //while there are agents
|
||||
if ($row["disabled"] == 0) {
|
||||
if ((isset($ag_modulename)) && ($ag_modulename != "---"))
|
||||
if ((isset($ag_modulename)) && ($ag_modulename != "ALL"))
|
||||
$query_gen='SELECT * FROM tagente_modulo WHERE id_agente = '.$row["id_agente"].' AND nombre = "'.entrada_limpia($_POST["ag_modulename"]).'" AND ( (id_tipo_modulo = 2) OR (id_tipo_modulo = 9) OR (id_tipo_modulo = 12) OR (id_tipo_modulo = 18) OR (id_tipo_modulo = 6))';
|
||||
else
|
||||
$query_gen='SELECT * FROM tagente_modulo WHERE id_agente = '.$row["id_agente"].' AND ( (id_tipo_modulo = 2) OR (id_tipo_modulo = 9) OR (id_tipo_modulo = 12) OR (id_tipo_modulo = 18) OR (id_tipo_modulo = 6))';
|
||||
|
|
Loading…
Reference in New Issue