-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.php
26 lines (20 loc) · 952 Bytes
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
/**
* @copyright Copyright (C) 2010-2024 Combodo SAS
* @license http://opensource.org/licenses/AGPL-3.0
*/
use Combodo\iTop\Anonymizer\Controller\ConfigAnonymizerController;
use Combodo\iTop\Anonymizer\Helper\AnonymizerHelper;
use Combodo\iTop\Anonymizer\Helper\AnonymizerLog;
require_once(APPROOT.'application/startup.inc.php');
if (version_compare(ITOP_DESIGN_LATEST_VERSION, '3.0') >= 0) {
$sTemplates = MODULESROOT.AnonymizerHelper::MODULE_NAME.DIRECTORY_SEPARATOR.'templates';
} else {
$sTemplates = MODULESROOT.AnonymizerHelper::MODULE_NAME.DIRECTORY_SEPARATOR.'templates/2.7';
}
AnonymizerLog::Enable(AnonymizerLog::DEBUG_FILE);
$oUpdateController = new ConfigAnonymizerController($sTemplates, AnonymizerHelper::MODULE_NAME);
$oUpdateController->SetMenuId(AnonymizerHelper::MENU_ID);
$oUpdateController->SetDefaultOperation('DisplayConfig');
$oUpdateController->DisableInDemoMode();
$oUpdateController->HandleOperation();