2012-03-12 Vanessa Gil <vanessa.gil@artica.es>

* index.php: Fixed problem to display "sec2" in menu.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5736 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
vgilc 2012-03-12 14:53:20 +00:00
parent 25aba79c97
commit 633bb9296b
3 changed files with 16 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2012-03-12 Vanessa Gil <vanessa.gil@artica.es>
* index.php: Fixed problem to display "sec2" in menu.
2012-03-12 Vanessa Gil <vanessa.gil@artica.es>
* index.php: Fixed problem to display "sec" in menu.

View File

@ -184,26 +184,32 @@ elseif (! isset ($config['id_user']) && isset ($_GET["login"])) {
break;
case __('Group view'):
$_GET["sec"] = "estado";
$_GET["sec2"] = "operation/agentes/group_view";
break;
case __('Alert detail'):
$_GET["sec"] = "estado";
$_GET["sec2"] = "operation/agentes/alerts_status";
break;
case __('Tactical view'):
$_GET["sec"] = "estado";
$_GET["sec2"] = "operation/agentes/tactical";
break;
case __('Default'):
$_GET["sec"] = "general/logon_ok";
break;
case __('Dashboard'):
$_GET["sec"] = "dashboard";
$_GET["sec2"] = ENTERPRISE_DIR.'/dashboard/main_dashboard';
break;
case __('Visual console'):
$_GET["sec"] = "visualc";
$_GET["sec2"] = "operation/visual_console/index";
break;
case __('Other'):
$home_url = io_safe_output($home_url);
parse_str ($home_url, $res);
$_GET["sec"] = $res["sec"];
$_GET["sec2"] = $res["sec2"];
break;
}
@ -342,12 +348,15 @@ else {
break;
case __('Visual console'):
$id_visualc = db_get_value('id', 'tlayout', 'name', $home_url);
if (($home_url == '') || ($id_visualc == false)) {
$str = 'sec=visualc&sec2=operation/visual_console/index&refr=60';
} else
$str = 'sec=visualc&sec2=operation/visual_console/render_view&id='.$id_visualc .'&refr=60';
parse_str($str, $res);
foreach ($res as $key => $param) {
$_GET[$key] = $param;
}
require('operation/visual_console/render_view.php');
require($_GET["sec2"].'.php');
break;
case __('Other'):
$home_url = io_safe_output($home_url);

View File

@ -258,8 +258,9 @@ if ($dashboards === false) {
echo html_print_select ($dashboards_aux, 'dashboard', $user_info["data_section"], '', '', '', true);
$layouts = visual_map_get_user_layouts ($user_info['id_user'], true);
$layouts_aux = array();
if ($layouts === false) {
$layouts = array('None'=>'None');
$layouts_aux = array('None'=>'None');
} else {
foreach ($layouts as $layout) {
$layouts_aux[$layout] = $layout;