From 44ac224fcea2611ce37a4c155c57104df63ce578 Mon Sep 17 00:00:00 2001 From: alexhigh Date: Mon, 11 Nov 2013 19:06:43 +0000 Subject: [PATCH] 2013-11-11 Alejandro Gallardo * mobile/operation/home.php: Added an option to hide the logout button. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9053 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/mobile/operation/home.php | 16 +++++++++++++--- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 0c4245043f..680a4de441 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2013-11-11 Alejandro Gallardo + + * mobile/operation/home.php: Added an option to hide the + logout button. + 2013-11-11 Sergio Martin * include/javascript/OpenLayers/OpenLayers.js: Fix layer diff --git a/pandora_console/mobile/operation/home.php b/pandora_console/mobile/operation/home.php index af7ec7c3c8..214a3c99e7 100644 --- a/pandora_console/mobile/operation/home.php +++ b/pandora_console/mobile/operation/home.php @@ -25,9 +25,19 @@ class Home { require_once ($config["homedir"] . '/include/functions_graph.php'); $ui = Ui::getInstance(); - + $system = System::getInstance(); + $ui->createPage(); - $ui->createDefaultHeader(__("PandoraFMS: Home")); + if ($system->getRequest('hide_logout', 0)) { + $left_button = null; + } else { + $left_button = $ui->createHeaderButton( + array('icon' => 'back', + 'pos' => 'left', + 'text' => __('Logout'), + 'href' => 'index.php?action=logout')); + } + $ui->createHeader(__("PandoraFMS: Home"), $left_button); $ui->showFooter(false); $ui->beginContent(); $ui->beginForm("index.php?page=agents"); @@ -80,4 +90,4 @@ class Home { return; } } -?> \ No newline at end of file +?>