summaryrefslogtreecommitdiff
path: root/core/config/anom_settings.php
diff options
context:
space:
mode:
authorGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-03-31 05:49:40 +0300
committerGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-03-31 05:49:40 +0300
commitc95daba5206cb4bd55b5685e8141311f23606e1a (patch)
treedcf3ab236cbf60c4d2ffc8af9a520804f504a437 /core/config/anom_settings.php
parent4f2d900af7636e6744ae14aeeefdf2d6080ac50a (diff)
downloadclassroom-c95daba5206cb4bd55b5685e8141311f23606e1a.tar.gz
classroom-c95daba5206cb4bd55b5685e8141311f23606e1a.tar.bz2
classroom-c95daba5206cb4bd55b5685e8141311f23606e1a.zip
added advances and secure confifuratin parametres
Diffstat (limited to 'core/config/anom_settings.php')
-rw-r--r--core/config/anom_settings.php16
1 files changed, 7 insertions, 9 deletions
diff --git a/core/config/anom_settings.php b/core/config/anom_settings.php
index 76c7c62..399c180 100644
--- a/core/config/anom_settings.php
+++ b/core/config/anom_settings.php
@@ -12,7 +12,7 @@
*/
if (file_exists("../core/auth/.env")) {
- $ini_array = parse_ini_file("../core/auth/.env");
+ $ini = parse_ini_file("../core/auth/.env");
}
// DEFINE WHETTHER THE APP RUNS ON PRODUCTION
@@ -30,7 +30,7 @@ if (file_exists("../core/auth/.env")) {
# }
# define by .env file
-define('PRODUCTION', ($ini_array['ENVIRONMENT'] == 'production') );
+define('PRODUCTION', ($ini['ENVIRONMENT'] == 'production') );
@@ -243,15 +243,13 @@ define('CSRF_EXCLUDE_URIS', array()); // Array of URIs which ignore CSRF check
* -----------------------------------------------------------------------------
*/
- $ini_array = parse_ini_file("../core/auth/.env");
-
- define('DB_NAME', $ini_array['DB_NAME']);
+define('DB_NAME', $ini['DB_NAME']);
- define('DB_USER', $ini_array['DB_USER']);
+define('DB_USER', $ini['DB_USER']);
- define('DB_PASS', $ini_array['DB_PASS']);
+define('DB_PASS', $ini['DB_PASS']);
- define('PDO_HOST', $ini_array['PDO_HOST']);
+define('PDO_HOST', $ini['PDO_HOST']);
/** This is just good enough
@@ -286,7 +284,7 @@ define('CSRF_EXCLUDE_URIS', array()); // Array of URIs which ignore CSRF check
#
# }
- define('DB_TIMEZONE', "SET time_zone = 'Europe/Athens'");
+define('DB_TIMEZONE', "SET time_zone = 'Europe/Athens'");
/** NOTE:
* Both Redis and Memcached configurations are given as a template to work on;