From ef3882181f06f7f956f64a2fe5560501056b5254 Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Thu, 29 May 2014 07:52:07 +0000 Subject: [PATCH] 2014-05-29 Sergio Martin * mobile/index.php: Disable the mobile console when ACL Enterprise is enabled git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10035 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/mobile/index.php | 14 ++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index bf7c86f37b..52850e0fcc 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2014-05-29 Sergio Martin + + * mobile/index.php: Disable the mobile console when + ACL Enterprise is enabled + 2014-05-28 Alejandro Gallardo * include/functions.php: Improved the Windows diff --git a/pandora_console/mobile/index.php b/pandora_console/mobile/index.php index 3b54226ed3..f63737da2b 100644 --- a/pandora_console/mobile/index.php +++ b/pandora_console/mobile/index.php @@ -58,6 +58,20 @@ if ($action != "ajax") { } } +// Disable mobile console if ALC enterprise is enabled +if ($system->getConfig('enterprise_installed') == 1 && $system->getConfig('acl_enterprise') == 1) { + $ui = Ui::getInstance(); + $system = System::getInstance(); + $ui->createPage(); + $ui->createHeader(__('Mobile console disabled')); + $ui->showFooter(false); + $ui->beginContent(); + $ui->contentAddHtml(ui_print_info_message(array('title' => '', 'message' => __('Mobile console is not available with ACL enterprise enabled. Please contact with the administrator.'), 'no_close' => true, 'force_style' => 'margin: 0 auto;'), '', true)); + $ui->endContent(); + $ui->showPage(); + return; +} + switch ($action) { case 'ajax': $parameter1 = $system->getRequest('parameter1', false);