2010-11-04 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_db.php: in function __ fixed when the Pandora don't have extensions. * operation/events/events_rss.php: cleaned source code. * operation/events/events_list.php: added more info in the hidden expanded row. Fixes: #3102826 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3523 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
f300fd0a1f
commit
2bd122e423
|
@ -1,3 +1,15 @@
|
||||||
|
2010-11-04 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* include/functions_db.php: in function __ fixed when the Pandora don't
|
||||||
|
have extensions.
|
||||||
|
|
||||||
|
* operation/events/events_rss.php: cleaned source code.
|
||||||
|
|
||||||
|
* operation/events/events_list.php: added more info in the hidden expanded
|
||||||
|
row.
|
||||||
|
|
||||||
|
Fixes: #3102826
|
||||||
|
|
||||||
2010-11-04 Miguel de Dios <miguel.dedios@artica.es>
|
2010-11-04 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* extensions/module_groups.php: fixed a unset $fired var.
|
* extensions/module_groups.php: fixed a unset $fired var.
|
||||||
|
|
|
@ -3018,6 +3018,7 @@ function __ ($string /*, variable arguments */) {
|
||||||
global $l10n;
|
global $l10n;
|
||||||
|
|
||||||
$extensions = get_extensions();
|
$extensions = get_extensions();
|
||||||
|
if (empty($extensions)) $extensions = array();
|
||||||
|
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
|
|
|
@ -478,26 +478,36 @@ foreach ($result as $event) {
|
||||||
|
|
||||||
if ($event["id_agentmodule"] != 0) {
|
if ($event["id_agentmodule"] != 0) {
|
||||||
$string .= '<td align="left" valign="top" width="15%">';
|
$string .= '<td align="left" valign="top" width="15%">';
|
||||||
$string .= '<a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$event["id_agente"].'&tab=data">';
|
|
||||||
$string .= '<b>' . __('Agent module source') . ':</b></td><td align="left">';
|
$string .= '<b>' . __('Agent module source') . ':</b></td><td align="left">';
|
||||||
$string .= print_image ("images/bricks.png", true,
|
$string .= '<a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$event["id_agente"].'&tab=data">';
|
||||||
array ("title" => __('Go to data overview')));
|
$string .= get_db_value('nombre', 'tagente_modulo', 'id_agente_modulo', $event["id_agentmodule"]);
|
||||||
$string .= '</a></td></tr><tr>';
|
$string .= '</a></td></tr><tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($event["id_alert_am"] != 0) {
|
if ($event["id_alert_am"] != 0) {
|
||||||
$string .= '<td align="left" valign="top" width="15%">';
|
$string .= '<td align="left" valign="top" width="15%">';
|
||||||
$string .= '<a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$event["id_agente"].'&tab=alert">';
|
|
||||||
$string .= '<b>' . __('Alert source') . ':</b></td><td align="left">';
|
$string .= '<b>' . __('Alert source') . ':</b></td><td align="left">';
|
||||||
|
$string .= '<a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$event["id_agente"].'&tab=alert">';
|
||||||
$standby = get_db_value('standby', 'talert_template_modules', 'id', $event["id_alert_am"]);
|
$standby = get_db_value('standby', 'talert_template_modules', 'id', $event["id_alert_am"]);
|
||||||
if(!$standby) {
|
if(!$standby) {
|
||||||
$string .= print_image ("images/bell.png", true,
|
$string .= print_image ("images/bell.png", true,
|
||||||
array ("title" => __('Go to data overview')));
|
array ("title" => __('Go to data overview')));
|
||||||
}else {
|
}
|
||||||
|
else {
|
||||||
$string .= print_image ("images/bell_pause.png", true,
|
$string .= print_image ("images/bell_pause.png", true,
|
||||||
array ("title" => __('Go to data overview')));
|
array ("title" => __('Go to data overview')));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$sql = 'SELECT name
|
||||||
|
FROM talert_templates
|
||||||
|
WHERE id IN (SELECT id_alert_template
|
||||||
|
FROM talert_template_modules
|
||||||
|
WHERE id = ' . $event["id_alert_am"] . ');';
|
||||||
|
|
||||||
|
$templateName = get_db_sql($sql);
|
||||||
|
|
||||||
|
$string .= $templateName;
|
||||||
|
|
||||||
$string .= '</a></td></tr><tr>';
|
$string .= '</a></td></tr><tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,7 @@ require_once "../../include/functions.php";
|
||||||
require_once "../../include/functions_db.php";
|
require_once "../../include/functions_db.php";
|
||||||
require_once "../../include/functions_api.php";
|
require_once "../../include/functions_api.php";
|
||||||
|
|
||||||
|
ini_set ('display_errors', 0); //Don't display other errors, messes up XML
|
||||||
|
|
||||||
$ipOrigin = $_SERVER['REMOTE_ADDR'];
|
$ipOrigin = $_SERVER['REMOTE_ADDR'];
|
||||||
|
|
||||||
|
@ -176,7 +177,8 @@ $selfurl = $base.$_SERVER['PHP_SELF'].'?'.$_SERVER['QUERY_STRING'];
|
||||||
|
|
||||||
if (empty ($result)) {
|
if (empty ($result)) {
|
||||||
$lastbuild = 0; //Last build in 1970
|
$lastbuild = 0; //Last build in 1970
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
$lastbuild = (int) $result[0]['unix_timestamp'];
|
$lastbuild = (int) $result[0]['unix_timestamp'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue