From 059e0d95d0c28bc5060e87e146eaf7411f51bf90 Mon Sep 17 00:00:00 2001 From: George Halkiadakis Date: Thu, 27 Apr 2023 03:47:30 +0300 Subject: skeleton commit; based on an anom project --- core/config/anom_settings.php | 325 ++++++++++++++++++++++++++++++++++++++++++ core/config/constants.php | 28 ++++ core/config/init.php | 64 +++++++++ 3 files changed, 417 insertions(+) create mode 100644 core/config/anom_settings.php create mode 100644 core/config/constants.php create mode 100644 core/config/init.php (limited to 'core/config') diff --git a/core/config/anom_settings.php b/core/config/anom_settings.php new file mode 100644 index 0000000..50056bf --- /dev/null +++ b/core/config/anom_settings.php @@ -0,0 +1,325 @@ + 'text/html; charset=UTF-8', + 'html' => 'text/html; charset=UTF-8', + 'json' => 'application/json; charset=utf-8', + 'js' => 'application/javascript; charset=utf-8', + 'css' => 'text/css', + 'png' => 'image/png', + 'jpeg' => 'image/jpeg', + 'webp' => 'image/web' + ) +); + + +// PROXY_FLAGS +// ----------------------------------------------------------------------------- +// These options represend altered/non-default behaviour +// and will be resolved bitwise, so use powers of 2 +// ----------------------------------------------------------------------------- +define('PROXY_CACHE_ERRORS', 1); // cache result even if error +define('PROXY_IGNORE_CACHE', 2); // ignore cache if exist +define('PROXY_DO_NOT_CACHE', 4); // do not cache result diff --git a/core/config/init.php b/core/config/init.php new file mode 100644 index 0000000..589a486 --- /dev/null +++ b/core/config/init.php @@ -0,0 +1,64 @@ +