-
Notifications
You must be signed in to change notification settings - Fork 3
/
ext_localconf.php
executable file
·34 lines (27 loc) · 1.33 KB
/
ext_localconf.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
27
28
29
30
31
32
33
34
<?php
use Mindscreen\JsonReports\Command\ReportsCommandController;
use Mindscreen\JsonReports\Controller\ReportsController;
use Mindscreen\JsonReports\Output\Json;
use Mindscreen\JsonReports\Output\Nagios;
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
// Access to the reports script via HTTP is only granted to the allowed IP addresses or address range
if (!isset($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['json_reports']['allowedIpAddresses'])) {
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['json_reports']['allowedIpAddresses'] = '';
}
if (!isset($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['json_reports']['output'])) {
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['json_reports']['output'] = [];
}
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['json_reports']['output']['json'] = Json::class;
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['json_reports']['output']['nagios'] = Nagios::class;
// Define default report group that does not exclude any reports
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['json_reports']['groups']['default'] = [
'include' => ['*'],
'exclude' => [],
];
// Register eID Script
$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['json_reports'] = ReportsController::class . '::indexAction';
if (TYPO3_MODE === 'BE') {
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'][] = ReportsCommandController::class;
}