11<?php
22/* ----------------------------------------------------------------------------
33
4- Open DMARC Analyzer - Open Source DMARC Analyzer
4+ Open Report Analyzer
55Copyright (C) 2023 - John Bradley (userjack6880)
66
77config.php
88 configuration file
99
10- Available at: https://github.com/userjack6880/Open-DMARC -Analyzer
10+ Available at: https://github.com/userjack6880/Open-Report -Analyzer
1111
1212-------------------------------------------------------------------------------
1313
14- This file is part of Open DMARC Analyzer.
14+ This file is part of Open Report Analyzer.
1515
16- Open DMARC Analyzer is free software: you can redistribute it and/or modify it under
16+ Open Report Analyzer is free software: you can redistribute it and/or modify it under
1717the terms of the GNU General Public License as published by the Free Software
1818Foundation, either version 3 of the License, or (at your option) any later
1919version.
@@ -27,18 +27,18 @@ this program. If not, see <https://www.gnu.org/licenses/>.
2727
2828---------------------------------------------------------------------------- */
2929
30- // Cache env
31- $env = getenv();
32-
3330// Database Settings
3431
3532define('DB_HOST', isset($env['DB_HOST']) ? $env['DB_HOST'] : 'localhost');
36- define('DB_USER', isset($env['DB_USER']) ? $env['DB_USER'] : 'dmarc ');
33+ define('DB_USER', isset($env['DB_USER']) ? $env['DB_USER'] : 'openreport ');
3734define('DB_PASS', isset($env['DB_PASS']) ? $env['DB_PASS'] : 'password');
38- define('DB_NAME', isset($env['DB_NAME']) ? $env['DB_NAME'] : 'dmarc ');
35+ define('DB_NAME', isset($env['DB_NAME']) ? $env['DB_NAME'] : 'openreport ');
3936define('DB_PORT', isset($env['DB_PORT']) ? $env['DB_PORT'] : '3306'); // default port 3306, 5432 for pgsql
4037define('DB_TYPE', isset($env['DB_TYPE']) ? $env['DB_TYPE'] : 'mysql'); // supported mysql and pgsql
4138
39+ // Report Type Settings
40+ define('REPORT_TYPE', isset($env['REPORT_TYPE']) ? $env['REPORT_TYPE'] : 'dmarc'); // supported dmarc, tls, all
41+
4242// Debug Settings
4343
4444define('DEBUG', isset($env['DEBUG']) ? intval($env['DEBUG']) : 1);
@@ -48,9 +48,11 @@ define('DEBUG', isset($env['DEBUG']) ? intval($env['DEBUG']) : 1);
4848define('TEMPLATE', isset($env['TEMPLATE']) ? $env['TEMPLATE'] : 'openda');
4949
5050// Package Loader
51+
5152define('AUTO_LOADER', isset($env['AUTO_LOADER']) ? $env['AUTO_LOADER'] : 'vendor/autoload.php'); // autoloader for composer installed libraries
5253
5354// GeoIP2 Settings
55+
5456define('GEO_ENABLE', isset($env['GEO_ENABLE']) ? intval($env['GEO_ENABLE']) : 1); // 0 - disable GeoIP2, 1 - enable GeoIP2
5557define('GEO_DB', isset($env['GEO_DB']) ? $env['GEO_DB'] : 'includes/geolite2.mmdb'); // location of GeoIP2 database
5658
0 commit comments