diff --git a/sources/Controller/AjaxRenderController.php b/sources/Controller/AjaxRenderController.php
index e1a0b822c6..ff253ce92c 100644
--- a/sources/Controller/AjaxRenderController.php
+++ b/sources/Controller/AjaxRenderController.php
@@ -772,13 +772,51 @@ class AjaxRenderController
self::DisplayUserAboutBox($oPage);
}
+ /**
+ * display list of licenses in "About iTop" popup
+ * @param \AjaxPage $oPage
+ *
+ * @throws \Exception
+ */
+ private static function DisplayAboutLicenses( AjaxPage $oPage): void
+ {
+ $sCurrEnv = utils::GetCurrentEnvironment();
+ require_once(APPROOT.'setup/setuputils.class.inc.php');
+ $aLicenses = SetupUtils::GetLicenses($sCurrEnv);
+ $oPage->add("
");
+ $oPage->add('
');
+ $oPage->add("
");
+ }
+ /**
+ * Display about iTop for all user non admin
+ * @param \AjaxPage $oPage
+ *
+ * @throws \Exception
+ */
private static function DisplayUserAboutBox(AjaxPage $oPage): void
{
$sDialogTitle = addslashes(Dict::S('UI:About:Title'));
$oPage->add_ready_script(
<<add('
');
$oPage->add(''.$sVersionString.'
');
$oPage->add("");
+ self::DisplayAboutLicenses( $oPage);
$oPage->add("");
}
+ /**
+ * Display about iTop for admin user
+ * @param \AjaxPage $oPage
+ *
+ * @throws \Exception
+ */
private static function DisplayAdminAboutBox(AjaxPage $oPage): void
{
$sDialogTitle = addslashes(Dict::S('UI:About:Title'));
@@ -841,8 +886,7 @@ EOF
}
$aAvailableModules = $oRuntimeEnv->AnalyzeInstallation(MetaModel::GetConfig(), $aSearchDirs);
- require_once(APPROOT.'setup/setuputils.class.inc.php');
- $aLicenses = SetupUtils::GetLicenses($sCurrEnv);
+
$aItopSettings = array('cron_max_execution_time', 'timezone');
$aPHPSettings = array('memory_limit', 'max_execution_time', 'upload_max_filesize', 'post_max_size');
@@ -881,26 +925,7 @@ EOF
$oPage->add('');
$oPage->add("");
- $oPage->add("");
- $oPage->add('
');
- $oPage->add("
");
+ self::DisplayAboutLicenses($oPage);
$oPage->add('