From d5936455d6d5d32a5e0ca88096d663bade444549 Mon Sep 17 00:00:00 2001 From: Geo Halkiadakis Date: Mon, 8 May 2023 17:21:17 +0300 Subject: refactoring anom-parametres setup --- core/config/anom_settings.php | 320 ++++++++++++++++++------------------ public/app/config/app_constants.php | 70 +++++--- public/app/routes/api.php | 28 ++-- tests/settings.php | 27 +++ 4 files changed, 244 insertions(+), 201 deletions(-) create mode 100755 tests/settings.php diff --git a/core/config/anom_settings.php b/core/config/anom_settings.php index 6713771..7dc09b4 100644 --- a/core/config/anom_settings.php +++ b/core/config/anom_settings.php @@ -1,122 +1,168 @@ "; + +print_r([ + 'production' => PRODUCTION ?? 'undefined', + 'app_name' => APP_NAME ?? 'undefined', + 'site_title' => SITE_TITLE ?? 'undefined', + 'appRoot' => APP_ROOT, + 'views' => VIEWS_DIRECTORY, + 'init' => INIT_APPLICATION, + 'site_url' => SITE_URL ?? 'undefined', + 'session_name' => SESSION_NAME ?? 'undefined', + 'session_life' => MAX_SESSION_LIFE ?? 'undefined', + 'cookie_secure' => COOKIE_SECURE ?? 'undefined', + 'cookie_samesite' => COOKIE_SAMESITE ?? 'undefined', + 'default_mai_service' => DEFAULT_MAIL_SERVICE ?? 'undefined', + 'test' => $set['TEST_ME'] ?? 'none', + 'another' => $set['NONONOO'] ?? 'none' +]); + +echo ""; -- cgit v1.2.3