2014-03-13 Miguel de Dios <miguel.dedios@artica.es>
* general/shortcut_bar.php, include/functions_ui.php: fixed the PHP warnings. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9577 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
84bc0b03ed
commit
6f96534060
|
@ -1,3 +1,8 @@
|
||||||
|
2014-03-13 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* general/shortcut_bar.php, include/functions_ui.php: fixed the
|
||||||
|
PHP warnings.
|
||||||
|
|
||||||
2014-03-13 Miguel de Dios <miguel.dedios@artica.es>
|
2014-03-13 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* godmode/reporting/reporting_builder.main.php,
|
* godmode/reporting/reporting_builder.main.php,
|
||||||
|
|
|
@ -19,8 +19,9 @@ global $config;
|
||||||
// Login check
|
// Login check
|
||||||
check_login ();
|
check_login ();
|
||||||
|
|
||||||
|
require_once("include/functions_reporting.php");
|
||||||
|
|
||||||
if (is_ajax()) {
|
if (is_ajax()) {
|
||||||
require_once("include/functions_reporting.php");
|
|
||||||
|
|
||||||
$save_item_shorcut = get_parameter("save_item_shorcut", 0);
|
$save_item_shorcut = get_parameter("save_item_shorcut", 0);
|
||||||
|
|
||||||
|
@ -112,6 +113,8 @@ if (is_ajax()) {
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$shortcut_state = db_get_value_filter('shortcut', 'tusuario', array('id_user' => $config['id_user']));
|
$shortcut_state = db_get_value_filter('shortcut', 'tusuario', array('id_user' => $config['id_user']));
|
||||||
|
|
||||||
// If shortcut bar is disabled return to index.php
|
// If shortcut bar is disabled return to index.php
|
||||||
|
|
|
@ -1197,31 +1197,41 @@ function ui_process_page_head ($string, $bitfield) {
|
||||||
|
|
||||||
$output = '';
|
$output = '';
|
||||||
|
|
||||||
|
$config_refr = -1;
|
||||||
|
if (isset($config["refr"]))
|
||||||
|
$config_refr = $config["refr"];
|
||||||
|
|
||||||
// If user is logged or displayed view is the public view of visual console
|
// If user is logged or displayed view is the public view of visual console
|
||||||
if ($config["refr"] > 0 && (isset($config['id_user']) || $vc_public_view == 1)) {
|
if ($config_refr > 0 &&
|
||||||
if ($config['enable_refr'] || $GET['sec2'] == "operation/agentes/estado_agente" || $GET['sec2'] == "operation/agentes/tactical"||
|
(isset($config['id_user']) || $vc_public_view == 1)) {
|
||||||
$_GET['sec2'] == "operation/agentes/group_view" || $_GET['sec2'] == 'operation/events/events' ||
|
|
||||||
$_GET['sec2'] == "enterprise/dashboard/main_dashboard") {
|
if ($config['enable_refr'] ||
|
||||||
|
$_GET['sec2'] == "operation/agentes/estado_agente" ||
|
||||||
|
$_GET['sec2'] == "operation/agentes/tactical"||
|
||||||
|
$_GET['sec2'] == "operation/agentes/group_view" ||
|
||||||
|
$_GET['sec2'] == 'operation/events/events' ||
|
||||||
|
$_GET['sec2'] == "enterprise/dashboard/main_dashboard") {
|
||||||
|
|
||||||
$query = ui_get_url_refresh (false);
|
$query = ui_get_url_refresh (false);
|
||||||
$output .= '<meta http-equiv="refresh" content="'.$config["refr"].'; URL=' . $query . '" />';
|
$output .= '<meta http-equiv="refresh" content="' .
|
||||||
|
$config_refr . '; URL=' . $query . '" />';
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$output .= "\n\t";
|
$output .= "\n\t";
|
||||||
$output .= '<title>Pandora FMS - '.__('the Flexible Monitoring System').'</title>
|
$output .= '<title>Pandora FMS - '.__('the Flexible Monitoring System').'</title>
|
||||||
<meta http-equiv="expires" content="never" />
|
<meta http-equiv="expires" content="never" />
|
||||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||||
<meta http-equiv="Content-Style-Type" content="text/css" />
|
<meta http-equiv="Content-Style-Type" content="text/css" />
|
||||||
<meta name="resource-type" content="document" />
|
<meta name="resource-type" content="document" />
|
||||||
<meta name="distribution" content="global" />
|
<meta name="distribution" content="global" />
|
||||||
<meta name="author" content="Sancho Lerena" />
|
<meta name="author" content="Sancho Lerena" />
|
||||||
<meta name="copyright" content="This is GPL software. Created by Sancho Lerena and others" />
|
<meta name="copyright" content="This is GPL software. Created by Sancho Lerena and others" />
|
||||||
<meta name="keywords" content="pandora, monitoring, system, GPL, software" />
|
<meta name="keywords" content="pandora, monitoring, system, GPL, software" />
|
||||||
<meta name="robots" content="index, follow" />
|
<meta name="robots" content="index, follow" />
|
||||||
<link rel="icon" href="images/pandora.ico" type="image/ico" />
|
<link rel="icon" href="images/pandora.ico" type="image/ico" />
|
||||||
<link rel="shortcut icon" href="images/pandora.ico" type="image/x-icon" />
|
<link rel="shortcut icon" href="images/pandora.ico" type="image/x-icon" />
|
||||||
<link rel="alternate" href="operation/events/events_rss.php" title="Pandora RSS Feed" type="application/rss+xml" />';
|
<link rel="alternate" href="operation/events/events_rss.php" title="Pandora RSS Feed" type="application/rss+xml" />';
|
||||||
|
|
||||||
if ($config["language"] != "en") {
|
if ($config["language"] != "en") {
|
||||||
//Load translated strings - load them last so they overload all the objects
|
//Load translated strings - load them last so they overload all the objects
|
||||||
|
@ -1287,7 +1297,7 @@ function ui_process_page_head ($string, $bitfield) {
|
||||||
$config['css'] = array_merge (array (
|
$config['css'] = array_merge (array (
|
||||||
"common" => "include/styles/common.css",
|
"common" => "include/styles/common.css",
|
||||||
"menu" => "include/styles/menu.css",
|
"menu" => "include/styles/menu.css",
|
||||||
$config['style'] => "include/styles/".$config['style'].".css"), $config['css']);
|
$config['style'] => "include/styles/" . $config['style'] . ".css"), $config['css']);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add the jquery UI styles CSS
|
// Add the jquery UI styles CSS
|
||||||
|
@ -1631,31 +1641,30 @@ function ui_pagination ($count, $url = false, $offset = 0, $pagination = 0, $ret
|
||||||
*/
|
*/
|
||||||
function ui_print_session_action_icon ($action, $return = false) {
|
function ui_print_session_action_icon ($action, $return = false) {
|
||||||
$key_icon = array(
|
$key_icon = array(
|
||||||
'acl' => 'images/delete.png',
|
'acl' => 'images/delete.png',
|
||||||
'agent' => 'images/agent.png',
|
'agent' => 'images/agent.png',
|
||||||
'module' => 'images/module.png',
|
'module' => 'images/module.png',
|
||||||
'alert' => 'images/bell.png',
|
'alert' => 'images/bell.png',
|
||||||
'incident' => 'images/default_list.png',
|
'incident' => 'images/default_list.png',
|
||||||
'logon' => 'images/house.png',
|
'logon' => 'images/house.png',
|
||||||
'logoff' => 'images/house.png',
|
'logoff' => 'images/house.png',
|
||||||
'massive' => 'images/config.png',
|
'massive' => 'images/config.png',
|
||||||
'hack' => 'images/application_edit.png',
|
'hack' => 'images/application_edit.png',
|
||||||
'event' => 'images/lightning_go.png',
|
'event' => 'images/lightning_go.png',
|
||||||
'policy' => 'images/policies.png',
|
'policy' => 'images/policies.png',
|
||||||
'report' => 'images/reporting.png',
|
'report' => 'images/reporting.png',
|
||||||
'file collection' => 'images/collection_col.png',
|
'file collection' => 'images/collection_col.png',
|
||||||
'user' => 'images/user_green.png',
|
'user' => 'images/user_green.png',
|
||||||
'password' => 'images/lock.png',
|
'password' => 'images/lock.png',
|
||||||
'session' => 'images/heart_col.png',
|
'session' => 'images/heart_col.png',
|
||||||
'snmp' => 'images/snmp.png',
|
'snmp' => 'images/snmp.png',
|
||||||
'command' => 'images/bell.png',
|
'command' => 'images/bell.png',
|
||||||
'category' => 'images/category_col.png',
|
'category' => 'images/category_col.png',
|
||||||
'dashboard' => 'images/dashboard_col.png',
|
'dashboard' => 'images/dashboard_col.png',
|
||||||
'api' => 'images/eye.png',
|
'api' => 'images/eye.png',
|
||||||
'db' => 'images/database.png',
|
'db' => 'images/database.png',
|
||||||
'setup' => 'images/cog.png'
|
'setup' => 'images/cog.png');
|
||||||
);
|
|
||||||
|
|
||||||
$output = '';
|
$output = '';
|
||||||
foreach($key_icon as $key => $icon) {
|
foreach($key_icon as $key => $icon) {
|
||||||
if (stristr($action, $key) !== false) {
|
if (stristr($action, $key) !== false) {
|
||||||
|
|
Loading…
Reference in New Issue