2014-05-29 Sergio Martin <sergio.martin@artica.es>

* 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
This commit is contained in:
zarzuelo 2014-05-29 07:52:07 +00:00
parent fac3b123d6
commit ef3882181f
2 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2014-05-29 Sergio Martin <sergio.martin@artica.es>
* mobile/index.php: Disable the mobile console when
ACL Enterprise is enabled
2014-05-28 Alejandro Gallardo <alejandro.gallardo@artica.es> 2014-05-28 Alejandro Gallardo <alejandro.gallardo@artica.es>
* include/functions.php: Improved the Windows * include/functions.php: Improved the Windows

View File

@ -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) { switch ($action) {
case 'ajax': case 'ajax':
$parameter1 = $system->getRequest('parameter1', false); $parameter1 = $system->getRequest('parameter1', false);