2010-11-11 Raúl Mateos <raulofpandora@gmail.com>
* general/error_install.php, general/error_perms.php, general/header.php, general/logon_menu.php, general/logon_ok.php, include/functions_menu.php, include/functions_ui.php, extensions/agents_modules.php, operation/menu.php, godmode/menu.php, operation/estado_agente.php, operation/agentes/estado_agente.php, operation/agentes/status_monitor.php, operation/agentes/estado_monitores.php, operation/agentes/estado_ultimopaquete.php, operation/agentes/estado_generalagente.php, pandoradb_data.sql: Closed some HTML tags, autoclose others, added alt to images, and changed some & to "&" to help validation for XHTML 1.0 Transitional. Tested and not error found, but needs more tests... git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3572 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
9e1a220245
commit
c80d6420b7
|
@ -1,3 +1,17 @@
|
|||
2010-11-11 Raúl Mateos <raulofpandora@gmail.com>
|
||||
|
||||
* general/error_install.php, general/error_perms.php, general/header.php,
|
||||
general/logon_menu.php, general/logon_ok.php, include/functions_menu.php,
|
||||
include/functions_ui.php, extensions/agents_modules.php,
|
||||
operation/menu.php, godmode/menu.php, operation/estado_agente.php,
|
||||
operation/agentes/estado_agente.php, operation/agentes/status_monitor.php,
|
||||
operation/agentes/estado_monitores.php,
|
||||
operation/agentes/estado_ultimopaquete.php,
|
||||
operation/agentes/estado_generalagente.php, pandoradb_data.sql: Closed
|
||||
some HTML tags, autoclose others, added alt to images, and changed some
|
||||
& to "&" to help validation for XHTML 1.0 Transitional. Tested and
|
||||
not error found, but needs more tests...
|
||||
|
||||
2010-11-11 Junichi Satoh <junichi@rworks.jp>
|
||||
|
||||
* godmode/setup/gis_step_2.php: Added UTF-8 charset to htmlentities().
|
||||
|
|
|
@ -78,11 +78,11 @@ function mainAgentsModules() {
|
|||
$comborefr .= "</form>";
|
||||
|
||||
if ($config["pure"] == 0) {
|
||||
$fullscreen = '<a href="index.php?extension_in_menu=estado&sec=extensions&sec2=extensions/agents_modules&pure=1&offset='.$offset.'&group_id='.$group_id.'&modulegroup='.$modulegroup.'">'
|
||||
$fullscreen = '<a href="index.php?extension_in_menu=estado&sec=extensions&sec2=extensions/agents_modules&pure=1&offset='.$offset.'&group_id='.$group_id.'&modulegroup='.$modulegroup.'">'
|
||||
. print_image ("images/fullscreen.png", true, array ("title" => __('Full screen mode')))
|
||||
. "</a>";
|
||||
} else {
|
||||
$fullscreen = '<a href="index.php?extension_in_menu=estado&sec=extensions&sec2=extensions/agents_modules&refr=0&offset='.$offset.'&group_id='.$group_id.'&modulegroup='.$modulegroup.'">'
|
||||
$fullscreen = '<a href="index.php?extension_in_menu=estado&sec=extensions&sec2=extensions/agents_modules&refr=0&offset='.$offset.'&group_id='.$group_id.'&modulegroup='.$modulegroup.'">'
|
||||
. print_image ("images/normalscreen.png", true, array ("title" => __('Back to normal mode')))
|
||||
. "</a>";
|
||||
$config['refr'] = $refr;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
// Pandora FMS - http://pandorafms.com
|
||||
// ==================================================
|
||||
// Copyright (c) 2005-2009 Artica Soluciones Tecnologicas
|
||||
// Copyright (c) 2005-2010 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
|
||||
|
@ -37,7 +37,7 @@
|
|||
<div id='login_f'>
|
||||
<h1 id="log_f" class="error">Installer active</h1>
|
||||
<div>
|
||||
<img src="images/pandora_logo.png" border="0"><br><font size="1">
|
||||
<img src="images/pandora_logo.png" border="0" alt="Pandora FMS"><br><font size="1">
|
||||
</font>
|
||||
</div>
|
||||
<div class="msg"><br><br>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
// Pandora FMS - http://pandorafms.com
|
||||
// ==================================================
|
||||
// Copyright (c) 2005-2009 Artica Soluciones Tecnologicas
|
||||
// Copyright (c) 2005-2010 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
|
||||
|
@ -35,7 +35,7 @@
|
|||
<div id='login_f'>
|
||||
<h1 id="log_f" class="error">Bad permission for include/config.php</h1>
|
||||
<div>
|
||||
<img src="images/pandora_logo.png" border="0"><br>
|
||||
<img src="images/pandora_logo.png" border="0" alt="Pandora FMS"><br>
|
||||
</div>
|
||||
<div class="msg"><br><br>
|
||||
For security reasons, <i>config.php</i> must have restrictive permissions, and "other" users
|
||||
|
|
|
@ -24,16 +24,16 @@ $msg_cnt = 0;
|
|||
<a href="index.php?sec=main">
|
||||
<?php
|
||||
if (!defined ('PANDORA_ENTERPRISE')){
|
||||
echo "<img border='0' src='images/pandora_header_logo.png' alt='Pandora FMS Opensource'>";
|
||||
echo "<img border='0' src='images/pandora_header_logo.png' alt='Pandora FMS Opensource' />";
|
||||
} else {
|
||||
echo "<img border='0' src='images/pandora_header_logo_enterprise.png' alt='Pandora FMS Enterprise'>";
|
||||
echo "<img border='0' src='images/pandora_header_logo_enterprise.png' alt='Pandora FMS Enterprise' />";
|
||||
}
|
||||
?>
|
||||
</a>
|
||||
</td>
|
||||
<td width="20%">
|
||||
<img src="images/user_<?php if (is_user_admin ($config["id_user"]) == 1) echo 'suit'; else echo 'green'; ?>.png" class="bot" alt="user" />
|
||||
<a href="index.php?sec=usuarios&sec2=operation/users/user_edit" class="white"> [<b><?php echo $config["id_user"];?></b>]</a>
|
||||
<a href="index.php?sec=usuarios&sec2=operation/users/user_edit" class="white"> [<b><?php echo $config["id_user"];?></b>]</a>
|
||||
<?php
|
||||
|
||||
if ($config["metaconsole"] == 0){
|
||||
|
@ -59,7 +59,7 @@ $msg_cnt = 0;
|
|||
|
||||
<?php
|
||||
if ($config["metaconsole"] == 0){
|
||||
echo '<a class="white_bold" href="index.php?sec=estado_server&sec2=operation/servers/view_server&refr=60">';
|
||||
echo '<a class="white_bold" href="index.php?sec=estado_server&sec2=operation/servers/view_server&refr=60">';
|
||||
|
||||
$servers["all"] = (int) get_db_value ('COUNT(id_server)','tserver');
|
||||
$servers["up"] = (int) check_server_status ();
|
||||
|
@ -118,7 +118,8 @@ $msg_cnt = 0;
|
|||
echo "<td width='20%' rowspan='2'>";
|
||||
echo "<a href='index.php?sec=main'>";
|
||||
if (isset($config["custom_logo"]))
|
||||
echo "<img height='60' width='139' src='images/custom_logo/" . $config["custom_logo"] . "'>";
|
||||
echo "<img height='60' width='139' src='images/custom_logo/" . $config["custom_logo"] . "' alt='Logo' />";
|
||||
echo "</a>";
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -128,7 +129,7 @@ $msg_cnt = 0;
|
|||
<?php
|
||||
if ($config["metaconsole"] == 0){
|
||||
?>
|
||||
<form method="get" style="" name="quicksearch">
|
||||
<form method="get" style="" name="quicksearch" action="">
|
||||
<script type="text/javascript" language="javascript">
|
||||
var fieldKeyWordEmpty = true;
|
||||
</script>
|
||||
|
@ -143,7 +144,7 @@ if ($config["metaconsole"] == 0){
|
|||
onfocus="javascript: if (fieldKeyWordEmpty) $('#keywords').val('');"
|
||||
size="100" style="background: white url('images/lupa_15x15.png') no-repeat right; padding: 0; padding-left:0px; margin: 0; width: 90%; height: 19px; margin-bottom: 5px; margin-left: 2px;" />
|
||||
<!-- onClick="javascript: document.quicksearch.submit()" -->
|
||||
<input type='hidden' name='head_search_keywords' value='abc'>
|
||||
<input type='hidden' name='head_search_keywords' value='abc' />
|
||||
</form>
|
||||
<?php
|
||||
}
|
||||
|
@ -152,7 +153,7 @@ if ($config["metaconsole"] == 0){
|
|||
<td>
|
||||
<?php
|
||||
if ($config["metaconsole"] == 0){
|
||||
echo '<a class="white_bold" href="index.php?sec=eventos&sec2=operation/events/events&refr=5"><img src="images/lightning_go.png" alt="lightning_go" class="bot"> '.__('Events').'</a>';
|
||||
echo '<a class="white_bold" href="index.php?sec=eventos&sec2=operation/events/events&refr=5"><img src="images/lightning_go.png" alt="lightning_go" class="bot" /> '.__('Events').'</a>';
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
|
|
|
@ -135,7 +135,7 @@ foreach ($cells as $key => $row) {
|
|||
echo '</tbody></table>';
|
||||
echo "</div>";
|
||||
echo '<div id="activity" style="width:700px;">';
|
||||
echo "<br><br>";
|
||||
echo "<br /><br />";
|
||||
|
||||
// Show last activity from this user
|
||||
echo "<h2>" . __('This is your last activity in Pandora FMS console') . "</h2>";
|
||||
|
|
|
@ -49,11 +49,11 @@ if (give_acl ($config['id_user'], 0, "AW")) {
|
|||
$menu["gmassive"]["id"] = "god-massive";
|
||||
|
||||
$sub = array ();
|
||||
$sub["godmode/massive/massive_operations&tab=massive_agents"]["text"] = __('Agents operations');
|
||||
$sub["godmode/massive/massive_operations&tab=massive_agents"]["text"] = __('Agents operations');
|
||||
|
||||
$sub["godmode/massive/massive_operations&tab=massive_modules"]["text"] = __('Modules operations');
|
||||
$sub["godmode/massive/massive_operations&tab=massive_modules"]["text"] = __('Modules operations');
|
||||
|
||||
$sub["godmode/massive/massive_operations&tab=massive_alerts"]["text"] = __('Alerts operations');
|
||||
$sub["godmode/massive/massive_operations&tab=massive_alerts"]["text"] = __('Alerts operations');
|
||||
|
||||
enterprise_hook('massivepolicies_submenu');
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
// Pandora FMS - http://pandorafms.com
|
||||
// ==================================================
|
||||
// Copyright (c) 2005-2009 Artica Soluciones Tecnologicas
|
||||
// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas
|
||||
// Please see http://pandorafms.org for full contribution list
|
||||
|
||||
// This program is free software; you can redistribute it and/or
|
||||
|
@ -150,7 +150,7 @@ function print_menu (&$menu) {
|
|||
if (array_key_exists('sec',$sub)) $secExtension = $sub["sec"];
|
||||
if (strlen($secExtension) > 0) {
|
||||
$secUrl = $secExtension;
|
||||
$extensionInMenu = 'extension_in_menu='.$mainsec.'&';
|
||||
$extensionInMenu = 'extension_in_menu='.$mainsec.'&';
|
||||
}
|
||||
else {
|
||||
$secUrl = $mainsec;
|
||||
|
|
|
@ -437,7 +437,7 @@ function format_alert_row ($alert, $compound = false, $agent = true, $url = '')
|
|||
else {
|
||||
$img = 'images/policies.png';
|
||||
|
||||
$data[$index['policy']] = '<a href="?sec=gpolicies&sec2=enterprise/godmode/policies/policies&id=' . $policyInfo['id'] . '">' .
|
||||
$data[$index['policy']] = '<a href="?sec=gpolicies&sec2=enterprise/godmode/policies/policies&id=' . $policyInfo['id'] . '">' .
|
||||
print_image($img,true, array('title' => $policyInfo['name'])) .
|
||||
'</a>';
|
||||
}
|
||||
|
@ -456,11 +456,11 @@ function format_alert_row ($alert, $compound = false, $agent = true, $url = '')
|
|||
if (! $compound) {
|
||||
if ($alert["force_execution"] == 0) {
|
||||
$data[$index['force_execution']] =
|
||||
'<a href="'.$url.'&id_alert='.$alert["id"].'&force_execution=1&refr=60"><img src="images/target.png" ></a>';
|
||||
'<a href="'.$url.'&id_alert='.$alert["id"].'&force_execution=1&refr=60"><img src="images/target.png" /></a>';
|
||||
}
|
||||
else {
|
||||
$data[$index['force_execution']] =
|
||||
'<a href="'.$url.'&id_alert='.$alert["id"].'&refr=60"><img src="images/refresh.png" /></a>';
|
||||
'<a href="'.$url.'&id_alert='.$alert["id"].'&refr=60"><img src="images/refresh.png" /></a>';
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -499,7 +499,7 @@ function format_alert_row ($alert, $compound = false, $agent = true, $url = '')
|
|||
if ($action["fires_min"] != $action["fires_max"]){
|
||||
$actionText .= " (".$action["fires_min"] . " / ". $action["fires_max"] . ")";
|
||||
}
|
||||
$actionText .= '</li></span><br></div>';
|
||||
$actionText .= '</li></span><br /></div>';
|
||||
}
|
||||
$actionText .= '</div></ul>';
|
||||
}
|
||||
|
@ -1389,7 +1389,7 @@ if($hidde_default) {
|
|||
$image_b = "images/go.png";
|
||||
}
|
||||
// Link to toggle
|
||||
echo '<a href="#" id="tgl_ctrl_'.$uniqid.'"><b>'.$name.'</b> '.print_image ($image_b, true, array ("title" => $title, "id" => "image_".$uniqid)).'</a><br><br>';
|
||||
echo '<a href="#" id="tgl_ctrl_'.$uniqid.'"><b>'.$name.'</b> '.print_image ($image_b, true, array ("title" => $title, "id" => "image_".$uniqid)).'</a><br /><br />';
|
||||
|
||||
// Code into a div
|
||||
echo "<div id='tgl_div_".$uniqid."' style='".$style."'>\n";
|
||||
|
@ -1571,11 +1571,11 @@ function print_page_header ($title, $icon = "", $return = false, $help = "", $go
|
|||
$buffer = '<div id="'.$type2.'" style=""><div id="menu_tab_left">';
|
||||
|
||||
|
||||
$buffer .= '<ul class="mn"><li class="'.$type.'"> <img src="'.$icon.'" style="margin-bottom: -3px;" class="bottom" border="0"> ';
|
||||
$buffer .= '<ul class="mn"><li class="'.$type.'"> <img src="'.$icon.'" style="margin-bottom: -3px;" class="bottom" border="0" alt="" /> ';
|
||||
$buffer .= $title;
|
||||
if ($help != "")
|
||||
$buffer .= " " . print_help_icon ($help, true);
|
||||
$buffer .= '</ul></div>';
|
||||
$buffer .= '</li></ul></div>';
|
||||
|
||||
if (is_array($options)) {
|
||||
$buffer .= '<div id="menu_tab"><ul class="mn">';
|
||||
|
@ -1610,7 +1610,7 @@ function print_page_header ($title, $icon = "", $return = false, $help = "", $go
|
|||
}
|
||||
}
|
||||
|
||||
$buffer .= '</div><br><br><br>';
|
||||
$buffer .= '</div><br /><br /><br />';
|
||||
|
||||
if (!$return)
|
||||
echo $buffer;
|
||||
|
|
|
@ -247,23 +247,23 @@ $table->class = "databox";
|
|||
|
||||
$table->head = array ();
|
||||
$table->head[0] = __('Agent'). ' ' .
|
||||
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=' . $refr . '&offset=' . $offset . '&group_id=' . $group_id . '&search=' . $search . '&sort_field=name&sort=up"><img src="images/sort_up.png" style="' . $selectNameUp . '" /></a>' .
|
||||
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=' . $refr . '&offset=' . $offset . '&group_id=' . $group_id . '&search=' . $search . '&sort_field=name&sort=down"><img src="images/sort_down.png" style="' . $selectNameDown . '" /></a>';
|
||||
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=' . $refr . '&offset=' . $offset . '&group_id=' . $group_id . '&search=' . $search . '&sort_field=name&sort=up"><img src="images/sort_up.png" style="' . $selectNameUp . '" alt="up" /></a>' .
|
||||
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=' . $refr . '&offset=' . $offset . '&group_id=' . $group_id . '&search=' . $search . '&sort_field=name&sort=down"><img src="images/sort_down.png" style="' . $selectNameDown . '" alt="down" /></a>';
|
||||
$table->head[1] = __('OS'). ' ' .
|
||||
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=' . $refr . '&offset=' . $offset . '&group_id=' . $group_id . '&search=' . $search . '&sort_field=os&sort=up"><img src="images/sort_up.png" style="' . $selectOsUp . '" /></a>' .
|
||||
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=' . $refr . '&offset=' . $offset . '&group_id=' . $group_id . '&search=' . $search . '&sort_field=os&sort=down"><img src="images/sort_down.png" style="' . $selectOsDown . '" /></a>';
|
||||
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=' . $refr . '&offset=' . $offset . '&group_id=' . $group_id . '&search=' . $search . '&sort_field=os&sort=up"><img src="images/sort_up.png" style="' . $selectOsUp . '" alt="up" /></a>' .
|
||||
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=' . $refr . '&offset=' . $offset . '&group_id=' . $group_id . '&search=' . $search . '&sort_field=os&sort=down"><img src="images/sort_down.png" style="' . $selectOsDown . '" alt="down" /></a>';
|
||||
$table->head[2] = __('Interval'). ' ' .
|
||||
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=' . $refr . '&offset=' . $offset . '&group_id=' . $group_id . '&search=' . $search . '&sort_field=interval&sort=up"><img src="images/sort_up.png" style="' . $selectIntervalUp . '" /></a>' .
|
||||
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=' . $refr . '&offset=' . $offset . '&group_id=' . $group_id . '&search=' . $search . '&sort_field=interval&sort=down"><img src="images/sort_down.png" style="' . $selectIntervalDown . '" /></a>';
|
||||
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=' . $refr . '&offset=' . $offset . '&group_id=' . $group_id . '&search=' . $search . '&sort_field=interval&sort=up"><img src="images/sort_up.png" style="' . $selectIntervalUp . '" alt="up" /></a>' .
|
||||
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=' . $refr . '&offset=' . $offset . '&group_id=' . $group_id . '&search=' . $search . '&sort_field=interval&sort=down"><img src="images/sort_down.png" style="' . $selectIntervalDown . '" alt="down" /></a>';
|
||||
$table->head[3] = __('Group'). ' ' .
|
||||
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=' . $refr . '&offset=' . $offset . '&group_id=' . $group_id . '&search=' . $search . '&sort_field=group&sort=up"><img src="images/sort_up.png" style="' . $selectGroupUp . '" /></a>' .
|
||||
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=' . $refr . '&offset=' . $offset . '&group_id=' . $group_id . '&search=' . $search . '&sort_field=group&sort=down"><img src="images/sort_down.png" style="' . $selectGroupDown . '" /></a>';
|
||||
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=' . $refr . '&offset=' . $offset . '&group_id=' . $group_id . '&search=' . $search . '&sort_field=group&sort=up"><img src="images/sort_up.png" style="' . $selectGroupUp . '" alt="up" /></a>' .
|
||||
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=' . $refr . '&offset=' . $offset . '&group_id=' . $group_id . '&search=' . $search . '&sort_field=group&sort=down"><img src="images/sort_down.png" style="' . $selectGroupDown . '" alt="down" /></a>';
|
||||
$table->head[4] = __('Modules');
|
||||
$table->head[5] = __('Status');
|
||||
$table->head[6] = __('Alerts');
|
||||
$table->head[7] = __('Last contact'). ' ' .
|
||||
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=' . $refr . '&offset=' . $offset . '&group_id=' . $group_id . '&search=' . $search . '&sort_field=last_contact&sort=up"><img src="images/sort_up.png" style="' . $selectLastContactUp . '" /></a>' .
|
||||
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=' . $refr . '&offset=' . $offset . '&group_id=' . $group_id . '&search=' . $search . '&sort_field=last_contact&sort=down"><img src="images/sort_down.png" style="' . $selectLastContactDown . '" /></a>';
|
||||
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=' . $refr . '&offset=' . $offset . '&group_id=' . $group_id . '&search=' . $search . '&sort_field=last_contact&sort=up"><img src="images/sort_up.png" style="' . $selectLastContactUp . '" alt="up" /></a>' .
|
||||
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=' . $refr . '&offset=' . $offset . '&group_id=' . $group_id . '&search=' . $search . '&sort_field=last_contact&sort=down"><img src="images/sort_down.png" style="' . $selectLastContactDown . '" alt="down" /></a>';
|
||||
|
||||
$table->align = array ();
|
||||
$table->align[1] = "center";
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
// Pandora FMS - http://pandorafms.com
|
||||
// ==================================================
|
||||
// Copyright (c) 2005-2009 Artica Soluciones Tecnologicas
|
||||
// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas
|
||||
// Please see http://pandorafms.org for full contribution list
|
||||
|
||||
// This program is free software; you can redistribute it and/or
|
||||
|
@ -75,8 +75,8 @@ else {
|
|||
$cellName = print_agent_name ($agent["id_agente"], true, "upper");
|
||||
}
|
||||
echo '<td class="datos"><b>'.$cellName.'</b></td>';
|
||||
echo '<td class="datos" width="40"><a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$id_agente.'&refr=60"><img src="images/refresh.png" border="0" title="'.__('Refresh data').'" /></a> ';
|
||||
echo '<a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&flag_agent=1&id_agente='.$id_agente.'"><img src="images/target.png" border="0" title="'.__('Flag').'" /></a></td></tr>';
|
||||
echo '<td class="datos" width="40"><a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$id_agente.'&refr=60"><img src="images/refresh.png" border="0" title="'.__('Refresh data').'" alt="" /></a> ';
|
||||
echo '<a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&flag_agent=1&id_agente='.$id_agente.'"><img src="images/target.png" border="0" title="'.__('Flag').'" alt="" /></a></td></tr>';
|
||||
|
||||
//Addresses
|
||||
echo '<tr><td class="datos2"><b>'.__('IP Address').'</b></td>';
|
||||
|
@ -100,7 +100,7 @@ echo ' <i><span title="'.$agent["os_version"].'">'.substr($agent["os_versio
|
|||
|
||||
// Parent
|
||||
echo '<tr><td class="datos2"><b>'.__('Parent').'</b></td>';
|
||||
echo '<td class="datos2" colspan="2"><a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$agent["id_parent"].'">'.get_agent_name ($agent["id_parent"]).'</a></td></tr>';
|
||||
echo '<td class="datos2" colspan="2"><a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$agent["id_parent"].'">'.get_agent_name ($agent["id_parent"]).'</a></td></tr>';
|
||||
|
||||
// Agent Interval
|
||||
echo '<tr><td class="datos"><b>'.__('Interval').'</b></td>';
|
||||
|
@ -132,7 +132,7 @@ if ($config['activate_gis']) {
|
|||
echo __('There is no GIS data.');
|
||||
}
|
||||
else {
|
||||
echo '<a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&tab=gis&id_agente='.$id_agente.'">'.$dataPositionAgent['stored_longitude'].', '.$dataPositionAgent['stored_latitude'].'</a>';
|
||||
echo '<a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&tab=gis&id_agente='.$id_agente.'">'.$dataPositionAgent['stored_longitude'].', '.$dataPositionAgent['stored_latitude'].'</a>';
|
||||
}
|
||||
echo '</td></tr>';
|
||||
}
|
||||
|
@ -158,7 +158,7 @@ if ($agent['timezone_offset'] != 0) {
|
|||
$progress = getNextAgentContact($id_agente);
|
||||
|
||||
echo '<tr><td class="datos"><b>'.__('Next agent contact').'</b></td>';
|
||||
echo '<td class="datos f9" colspan="2"><img src="include/fgraph.php?tipo=progress&percent='.$progress.'&height=20&width=200"></td></tr>';
|
||||
echo '<td class="datos f9" colspan="2"><img src="include/fgraph.php?tipo=progress&percent='.$progress.'&height=20&width=200"></td></tr>';
|
||||
|
||||
// Custom fields
|
||||
$fields = get_db_all_rows_filter('tagent_custom_fields', array('display_on_front' => 1));
|
||||
|
|
|
@ -25,7 +25,7 @@ if (!isset ($id_agente)) {
|
|||
}
|
||||
|
||||
$id_agent = get_parameter('id_agente');
|
||||
$url = 'index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=' . $id_agent;
|
||||
$url = 'index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=' . $id_agent;
|
||||
$selectTypeUp = '';
|
||||
$selectTypeDown = '';
|
||||
$selectNameUp = '';
|
||||
|
@ -151,22 +151,22 @@ if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) {
|
|||
}
|
||||
|
||||
$table->head[2] = __('Type') . ' ' .
|
||||
'<a href="' . $url . '&sort_field=type&sort=up"><img src="images/sort_up.png" style="' . $selectTypeUp . '" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=type&sort=down"><img src="images/sort_down.png" style="' . $selectTypeDown . '" /></a>';
|
||||
'<a href="' . $url . '&sort_field=type&sort=up"><img src="images/sort_up.png" style="' . $selectTypeUp . '" alt="up" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=type&sort=down"><img src="images/sort_down.png" style="' . $selectTypeDown . '" alt="down" /></a>';
|
||||
$table->head[3] = __('Module name') . ' ' .
|
||||
'<a href="' . $url . '&sort_field=name&sort=up"><img src="images/sort_up.png" style="' . $selectNameUp . '" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=name&sort=down"><img src="images/sort_down.png" style="' . $selectNameDown . '" /></a>';
|
||||
'<a href="' . $url . '&sort_field=name&sort=up"><img src="images/sort_up.png" style="' . $selectNameUp . '" alt="up" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=name&sort=down"><img src="images/sort_down.png" style="' . $selectNameDown . '" alt="down" /></a>';
|
||||
$table->head[4] = __('Description');
|
||||
$table->head[5] = __('Status') . ' ' .
|
||||
'<a href="' . $url . '&sort_field=status&sort=up"><img src="images/sort_up.png" style="' . $selectStatusUp . '" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=status&sort=down"><img src="images/sort_down.png" style="' . $selectStatusDown . '" /></a>';
|
||||
'<a href="' . $url . '&sort_field=status&sort=up"><img src="images/sort_up.png" style="' . $selectStatusUp . '" alt="up" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=status&sort=down"><img src="images/sort_down.png" style="' . $selectStatusDown . '" /></a>';
|
||||
$table->head[6] = __('Data') . ' ' .
|
||||
'<a href="' . $url . '&sort_field=data&sort=up"><img src="images/sort_up.png" style="' . $selectDataUp . '" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=data&sort=down"><img src="images/sort_down.png" style="' . $selectDataDown . '" /></a>';
|
||||
'<a href="' . $url . '&sort_field=data&sort=up"><img src="images/sort_up.png" style="' . $selectDataUp . '" alt="up" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=data&sort=down"><img src="images/sort_down.png" style="' . $selectDataDown . '" alt="down" /></a>';
|
||||
$table->head[7] = __('Graph');
|
||||
$table->head[8] = __('Last contact') . ' ' .
|
||||
'<a href="' . $url . '&sort_field=last_contact&sort=up"><img src="images/sort_up.png" style="' . $selectLastContactUp . '" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=last_contact&sort=down"><img src="images/sort_down.png" style="' . $selectLastContactDown . '" /></a>';
|
||||
'<a href="' . $url . '&sort_field=last_contact&sort=up"><img src="images/sort_up.png" style="' . $selectLastContactUp . '" alt="up" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=last_contact&sort=down"><img src="images/sort_down.png" style="' . $selectLastContactDown . '" alt="down" /></a>';
|
||||
|
||||
$table->align = array("left","left","left","left","left","center");
|
||||
|
||||
|
@ -191,10 +191,10 @@ foreach ($modules as $module) {
|
|||
$data = array ();
|
||||
if (($module["id_modulo"] != 1) && ($module["id_tipo_modulo"] != 100)) {
|
||||
if ($module["flag"] == 0) {
|
||||
$data[0] = '<a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$id_agente.'&id_agente_modulo='.$module["id_agente_modulo"].'&flag=1&refr=60"><img src="images/target.png" border="0" /></a>';
|
||||
$data[0] = '<a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$id_agente.'&id_agente_modulo='.$module["id_agente_modulo"].'&flag=1&refr=60"><img src="images/target.png" border="0" alt="target" /></a>';
|
||||
}
|
||||
else {
|
||||
$data[0] = '<a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$id_agente.'&id_agente_modulo='.$module["id_agente_modulo"].'&refr=60"><img src="images/refresh.png" border="0"></a>';
|
||||
$data[0] = '<a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$id_agente.'&id_agente_modulo='.$module["id_agente_modulo"].'&refr=60"><img src="images/refresh.png" border="0" alt="refresh" /></a>';
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
@ -234,7 +234,7 @@ foreach ($modules as $module) {
|
|||
}
|
||||
}
|
||||
|
||||
$data[1] = '<a href="?sec=gpolicies&sec2=enterprise/godmode/policies/policies&id=' . $id_policy . '">' .
|
||||
$data[1] = '<a href="?sec=gpolicies&sec2=enterprise/godmode/policies/policies&id=' . $id_policy . '">' .
|
||||
print_image($img,true, array('title' => $title)) .
|
||||
'</a>';
|
||||
}
|
||||
|
@ -246,7 +246,7 @@ foreach ($modules as $module) {
|
|||
$data[2] = show_server_type ($module['id_modulo']);
|
||||
|
||||
if (give_acl ($config['id_user'], $id_grupo, "AW"))
|
||||
$data[2] .= '<a href="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&id_agente='.$id_agente.'&tab=module&id_agent_module='.$module["id_agente_modulo"].'&edit_module='.$module["id_modulo"].'"><img src="images/config.png"></a>';
|
||||
$data[2] .= '<a href="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&id_agente='.$id_agente.'&tab=module&id_agent_module='.$module["id_agente_modulo"].'&edit_module='.$module["id_modulo"].'"><img src="images/config.png" alt="" border="0" /></a>';
|
||||
|
||||
$data[3] = print_string_substr ($module["nombre"], 25, true);
|
||||
$data[4] = print_string_substr ($module["descripcion"], 30, true);
|
||||
|
@ -323,11 +323,11 @@ foreach ($modules as $module) {
|
|||
$url = 'include/procesos.php?agente='.$module["id_agente_modulo"];
|
||||
$win_handle=dechex(crc32($module["id_agente_modulo"].$module["nombre"]));
|
||||
|
||||
$link ="winopeng('operation/agentes/stat_win.php?type=$graph_type&period=86400&id=".$module["id_agente_modulo"]."&label=".$module["nombre"]."&refresh=600','day_".$win_handle."')";
|
||||
$link ="winopeng('operation/agentes/stat_win.php?type=$graph_type&period=86400&id=".$module["id_agente_modulo"]."&label=".$module["nombre"]."&refresh=600','day_".$win_handle."')";
|
||||
|
||||
// if ($nombre_tipo_modulo != "log4x")
|
||||
$data[7] .= '<a href="javascript:'.$link.'"><img src="images/chart_curve.png" border=0></a>';
|
||||
$data[7] .= " <a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=$id_agente&tab=data_view&period=86400&id=".$module["id_agente_modulo"]."'><img border=0 src='images/binary.png'></a>";
|
||||
$data[7] .= '<a href="javascript:'.$link.'"><img src="images/chart_curve.png" border="0" alt="" /></a>';
|
||||
$data[7] .= " <a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=$id_agente&tab=data_view&period=86400&id=".$module["id_agente_modulo"]."'><img border='0' src='images/binary.png' alt='' /></a>";
|
||||
}
|
||||
|
||||
if ($module['estado'] == 3) {
|
||||
|
|
|
@ -44,13 +44,13 @@ $last_label = "";
|
|||
|
||||
// Title
|
||||
echo "<h3>".__('Display of last data modules received by agent');
|
||||
echo " <a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=$id_agente&tab=data'><img src='images/refresh.png'></A>";
|
||||
echo " <a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=$id_agente&tab=data'><img src='images/refresh.png' alt='' /></a>";
|
||||
echo "</h3>";
|
||||
|
||||
$sortField = get_parameter('sort_field');
|
||||
$sort = get_parameter('sort', 'none');
|
||||
$selected = 'border: 1px solid black;';
|
||||
$url = 'index.php?sec=estado&sec2=operation/agentes/ver_agente&tab=data&id_agente=' . $id_agente;
|
||||
$url = 'index.php?sec=estado&sec2=operation/agentes/ver_agente&tab=data&id_agente=' . $id_agente;
|
||||
$selectNameUp = '';
|
||||
$selectNameDown = '';
|
||||
$selectTypeUp = '';
|
||||
|
@ -159,27 +159,27 @@ if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) {
|
|||
echo "<th><span title='" . __('Policy') . "'>".__('P.')."</span></th>";
|
||||
}
|
||||
echo "<th>".__('Module name') . ' ' .
|
||||
'<a href="' . $url . '&sort_field=name&sort=up"><img src="images/sort_up.png" style="' . $selectNameUp . '" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=name&sort=down"><img src="images/sort_down.png" style="' . $selectNameDown . '" /></a>';
|
||||
'<a href="' . $url . '&sort_field=name&sort=up"><img src="images/sort_up.png" style="' . $selectNameUp . '" alt="up" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=name&sort=down"><img src="images/sort_down.png" style="' . $selectNameDown . '" alt="down" /></a>';
|
||||
echo "</th>";
|
||||
echo "<th>".__('Type') . ' ' .
|
||||
'<a href="' . $url . '&sort_field=type&sort=up"><img src="images/sort_up.png" style="' . $selectTypeUp . '" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=type&sort=down"><img src="images/sort_down.png" style="' . $selectTypeDown . '" /></a>';
|
||||
'<a href="' . $url . '&sort_field=type&sort=up"><img src="images/sort_up.png" style="' . $selectTypeUp . '" alt="up" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=type&sort=down"><img src="images/sort_down.png" style="' . $selectTypeDown . '" alt="down" /></a>';
|
||||
echo "</th>";
|
||||
echo "<th>".__('int') . ' ' .
|
||||
'<a href="' . $url . '&sort_field=interval&sort=up"><img src="images/sort_up.png" style="' . $selectIntervalUp . '" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=interval&sort=down"><img src="images/sort_down.png" style="' . $selectIntervalDown . '" /></a>';
|
||||
'<a href="' . $url . '&sort_field=interval&sort=up"><img src="images/sort_up.png" style="' . $selectIntervalUp . '" alt="up" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=interval&sort=down"><img src="images/sort_down.png" style="' . $selectIntervalDown . '" alt="down" /></a>';
|
||||
echo "</th>";
|
||||
echo "<th>".__('Description') . "</th>";
|
||||
echo "<th>".__('Data') . ' ' .
|
||||
'<a href="' . $url . '&sort_field=data&sort=up"><img src="images/sort_up.png" style="' . $selectDataUp . '" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=data&sort=down"><img src="images/sort_down.png" style="' . $selectDataDown . '" /></a>';
|
||||
'<a href="' . $url . '&sort_field=data&sort=up"><img src="images/sort_up.png" style="' . $selectDataUp . '" alt="up" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=data&sort=down"><img src="images/sort_down.png" style="' . $selectDataDown . '" alt="down" /></a>';
|
||||
echo "</th>";
|
||||
echo "<th>".__('Graph')."</th>";
|
||||
echo "<th>".__('Raw Data')."</th>";
|
||||
echo "<th>".__('Timestamp') . ' ' .
|
||||
'<a href="' . $url . '&sort_field=timestamp&sort=up"><img src="images/sort_up.png" style="' . $selectTimestampUp . '" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=timestamp&sort=down"><img src="images/sort_down.png" style="' . $selectTimestampDown . '" /></a>';
|
||||
'<a href="' . $url . '&sort_field=timestamp&sort=up"><img src="images/sort_up.png" style="' . $selectTimestampUp . '" alt="up" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=timestamp&sort=down"><img src="images/sort_down.png" style="' . $selectTimestampDown . '" alt="down" /></a>';
|
||||
echo "</th>";
|
||||
$texto=''; $last_modulegroup = 0;
|
||||
$color = 1;
|
||||
|
@ -212,9 +212,9 @@ foreach ($modules as $module) {
|
|||
// Has flag = 0
|
||||
if ($write && $module["id_modulo"] > 1 && $module["id_tipo_modulo"] < 100) {
|
||||
if ($module["flag"] == 0) {
|
||||
echo "<a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=".$id_agente."&id_agente_modulo=".$module["id_agente_modulo"]."&flag=1&tab=data&refr=60'><img src='images/target.png' border='0'></a>";
|
||||
echo "<a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=".$id_agente."&id_agente_modulo=".$module["id_agente_modulo"]."&flag=1&tab=data&refr=60'><img src='images/target.png' border='0' alt='' /></a>";
|
||||
} else {
|
||||
echo "<a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=".$id_agente."&id_agente_modulo=".$module["id_agente_modulo"]."&tab=data&refr=60'><img src='images/refresh.png' border='0'></a>";
|
||||
echo "<a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=".$id_agente."&id_agente_modulo=".$module["id_agente_modulo"]."&tab=data&refr=60'><img src='images/refresh.png' border='0' alt='' /></a>";
|
||||
}
|
||||
}
|
||||
echo "</td>";
|
||||
|
@ -254,7 +254,7 @@ foreach ($modules as $module) {
|
|||
|
||||
echo "<td>";
|
||||
|
||||
echo'<a href="?sec=gpolicies&sec2=enterprise/godmode/policies/policies&id=' . $id_policy . '">' .
|
||||
echo'<a href="?sec=gpolicies&sec2=enterprise/godmode/policies/policies&id=' . $id_policy . '">' .
|
||||
print_image($img,true, array('title' => $title)) .
|
||||
'</a>';
|
||||
echo "</td>";
|
||||
|
@ -339,16 +339,16 @@ foreach ($modules as $module) {
|
|||
echo "<td class=".$tdcolor." width='78'>";
|
||||
$graph_label = output_clean_strict ($module["nombre"]);
|
||||
|
||||
echo "<a href='javascript:winopeng(\"operation/agentes/stat_win.php?type=$graph_type&period=2419200&id=".$module["id_agente_modulo"]."&label=".$graph_label."&refresh=180000\", \"month_".$win_handle."\")'><img src='images/grafica_m.png' border=0></a> ";
|
||||
echo "<a href='javascript:winopeng(\"operation/agentes/stat_win.php?type=$graph_type&period=2419200&id=".$module["id_agente_modulo"]."&label=".$graph_label."&refresh=180000\", \"month_".$win_handle."\")'><img src='images/grafica_m.png' border='0' alt='' /></a> ";
|
||||
|
||||
$link ="winopeng('operation/agentes/stat_win.php?type=$graph_type&period=604800&id=".$module["id_agente_modulo"]."&label=".$graph_label."&refresh=6000','week_".$win_handle."')";
|
||||
echo '<a href="javascript:'.$link.'"><img src="images/grafica_w.png" border=0></a> ';
|
||||
echo '<a href="javascript:'.$link.'"><img src="images/grafica_w.png" border='0' alt='' /></a> ';
|
||||
|
||||
$link ="winopeng('operation/agentes/stat_win.php?type=$graph_type&period=86400&id=".$module["id_agente_modulo"]."&label=".$graph_label."&refresh=600','day_".$win_handle."')";
|
||||
echo '<a href="javascript:'.$link.'"><img src="images/grafica_d.png" border=0></a> ';
|
||||
echo '<a href="javascript:'.$link.'"><img src="images/grafica_d.png" border='0' alt='' /></a> ';
|
||||
|
||||
$link ="winopeng('operation/agentes/stat_win.php?type=$graph_type&period=3600&id=".$module["id_agente_modulo"]."&label=".$graph_label."&refresh=60','hour_".$win_handle."')";
|
||||
echo '<a href="javascript:'.$link.'"><img src="images/grafica_h.png" border=0></a>';
|
||||
echo '<a href="javascript:'.$link.'"><img src="images/grafica_h.png" border='0' alt='' /></a>';
|
||||
|
||||
}
|
||||
|
||||
|
@ -356,9 +356,9 @@ foreach ($modules as $module) {
|
|||
if ($module['history_data'] == 1){
|
||||
// RAW Table data
|
||||
echo "<td class=".$tdcolor." width=70>";
|
||||
echo "<a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=$id_agente&tab=data_view&period=2592000&id=".$module["id_agente_modulo"]."'><img border=0 src='images/data_m.png'></a> ";
|
||||
echo "<a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=$id_agente&tab=data_view&period=604800&id=".$module["id_agente_modulo"]."'><img border=0 src='images/data_w.png'></a> ";
|
||||
echo "<a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=$id_agente&tab=data_view&period=86400&id=".$module["id_agente_modulo"]."'><img border=0 src='images/data_d.png'></a>";
|
||||
echo "<a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=$id_agente&tab=data_view&period=2592000&id=".$module["id_agente_modulo"]."'><img src='images/data_m.png'border='0' alt='' /></a> ";
|
||||
echo "<a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=$id_agente&tab=data_view&period=604800&id=".$module["id_agente_modulo"]."'><img src='images/data_w.png'border='0' alt='' /></a> ";
|
||||
echo "<a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=$id_agente&tab=data_view&period=86400&id=".$module["id_agente_modulo"]."'><img src='images/data_d.png'border='0' alt='' /></a>";
|
||||
} else {
|
||||
echo "<td class=".$tdcolor."></td>";
|
||||
}
|
||||
|
|
|
@ -40,7 +40,7 @@ $offset = (int) get_parameter ('offset');
|
|||
$status = (int) get_parameter ('status', 4);
|
||||
$modulegroup = (int) get_parameter ('modulegroup');
|
||||
|
||||
echo '<form method="post" action="index.php?sec=estado&sec2=operation/agentes/status_monitor&refr=60">';
|
||||
echo '<form method="post" action="index.php?sec=estado&sec2=operation/agentes/status_monitor&refr=60">';
|
||||
|
||||
echo '<table cellspacing="4" cellpadding="4" width="750" class="databox">';
|
||||
echo '<tr><td valign="middle">'.__('Group').'</td>';
|
||||
|
@ -68,7 +68,7 @@ echo '<td valign="middle">';
|
|||
print_select_from_sql ("SELECT * FROM tmodule_group ORDER BY name",
|
||||
'modulegroup', $modulegroup, '',__('All'), 0, false, false, true, false, 'width: 100px;');
|
||||
|
||||
echo '</tr><tr><td valign="middle">'.__('Module name').'</td>';
|
||||
echo '</td></tr><tr><td valign="middle">'.__('Module name').'</td>';
|
||||
echo '<td valign="middle">';
|
||||
|
||||
$user_groups = implode (",", array_keys (get_user_groups ()));
|
||||
|
@ -86,8 +86,9 @@ print_input_text ("ag_freestring", $ag_freestring, '', 15,30, false);
|
|||
echo '</td><td valign="middle">';
|
||||
print_submit_button (__('Show'), "uptbutton", false, 'class="sub search"');
|
||||
|
||||
echo "</form>";
|
||||
echo "</td><tr>";
|
||||
echo "</table>";
|
||||
echo "</form>";
|
||||
|
||||
// Begin Build SQL sentences
|
||||
$sql = " FROM tagente, tagente_modulo, tagente_estado
|
||||
|
@ -249,13 +250,13 @@ foreach ($result as $row) {
|
|||
}
|
||||
}
|
||||
|
||||
$data[0] = '<a href="?sec=gpolicies&sec2=enterprise/godmode/policies/policies&id=' . $policyInfo['id_policy'] . '">' .
|
||||
$data[0] = '<a href="?sec=gpolicies&sec2=enterprise/godmode/policies/policies&id=' . $policyInfo['id_policy'] . '">' .
|
||||
print_image($img,true, array('title' => $title)) .
|
||||
'</a>';
|
||||
}
|
||||
}
|
||||
|
||||
$data[1] = '<strong><a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$row["id_agent"].'">';
|
||||
$data[1] = '<strong><a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$row["id_agent"].'">';
|
||||
$data[1] .= substr ($row["agent_name"], 0, 25);
|
||||
$data[1] .= '</a></strong>';
|
||||
|
||||
|
@ -305,8 +306,8 @@ foreach ($result as $row) {
|
|||
|
||||
$link ="winopeng('operation/agentes/stat_win.php?type=$graph_type&period=86400&id=".$row["id_agente_modulo"]."&label=".$row["module_name"]."&refresh=600','day_".$win_handle."')";
|
||||
|
||||
$data[6] = '<a href="javascript:'.$link.'"><img src="images/chart_curve.png" border=0></a>';
|
||||
$data[6] .= " <a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=".$row["id_agent"]."&tab=data_view&period=86400&id=".$row["id_agente_modulo"]."'><img border=0 src='images/binary.png'></a>";
|
||||
$data[6] = '<a href="javascript:'.$link.'"><img src="images/chart_curve.png" border="0" alt="" /></a>';
|
||||
$data[6] .= " <a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=".$row["id_agent"]."&tab=data_view&period=86400&id=".$row["id_agente_modulo"]."'><img src='images/binary.png' border='0' alt='' /></a>";
|
||||
}
|
||||
|
||||
if (is_numeric($row["datos"]))
|
||||
|
|
|
@ -134,7 +134,7 @@ if (give_acl ($config['id_user'], 0, "PM")) {
|
|||
}
|
||||
|
||||
foreach ($servers as $serverItem) {
|
||||
$sub["operation/servers/view_server_detail&server_id=".$serverItem["id_server"]]["text"] = $serverItem["name"];
|
||||
$sub["operation/servers/view_server_detail&server_id=".$serverItem["id_server"]]["text"] = $serverItem["name"];
|
||||
}
|
||||
|
||||
$menu["estado_server"]["sub"] = $sub;
|
||||
|
@ -173,8 +173,8 @@ if (give_acl ($config['id_user'], 0, "AR")) {
|
|||
$pss = get_user_info($config['id_user']);
|
||||
$hashup = md5($config['id_user'].$pss['password']);
|
||||
|
||||
$sub["operation/events/events_rss.php?user=".$config['id_user']."&hashup=".$hashup]["text"] = __('RSS');
|
||||
$sub["operation/events/events_rss.php?user=".$config['id_user']."&hashup=".$hashup]["type"] = "direct";
|
||||
$sub["operation/events/events_rss.php?user=".$config['id_user']."&hashup=".$hashup]["text"] = __('RSS');
|
||||
$sub["operation/events/events_rss.php?user=".$config['id_user']."&hashup=".$hashup]["type"] = "direct";
|
||||
|
||||
//CSV
|
||||
$sub["operation/events/export_csv.php"]["text"] = __('CSV File');
|
||||
|
|
|
@ -170,9 +170,9 @@ LOCK TABLES `tlink` WRITE;
|
|||
INSERT INTO `tlink` VALUES
|
||||
(1,'Pandora FMS Manual','https://openideas.info/wiki/index.php?title=Pandora_3.x:Documentation'),
|
||||
(2,'Pandora FMS','http://pandorafms.org'),
|
||||
(3,'Report a bug','https://sourceforge.net/tracker/?func=add&group_id=155200&atid=794852'),
|
||||
(4,'Suggest new feature','http://sourceforge.net/tracker/?group_id=155200&atid=794855'),
|
||||
(5,'Module library','http://pandorafms.org/?sec=community&sec2=repository&lng=es');
|
||||
(3,'Report a bug','https://sourceforge.net/tracker/?func=add&group_id=155200&atid=794852'),
|
||||
(4,'Suggest new feature','http://sourceforge.net/tracker/?group_id=155200&atid=794855'),
|
||||
(5,'Module library','http://pandorafms.org/?sec=community&sec2=repository&lng=es');
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
|
|
Loading…
Reference in New Issue