summaryrefslogtreecommitdiff
path: root/public/app/config/app_constants.php
diff options
context:
space:
mode:
authorGeo Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-05-08 17:21:17 +0300
committerGeo Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-05-08 17:21:17 +0300
commitd5936455d6d5d32a5e0ca88096d663bade444549 (patch)
treea3afef704c64c2b2133c0e6408c997f86c6731aa /public/app/config/app_constants.php
parent7e22b5bc5328652ae7e91ad799b48820474660ed (diff)
downloadgyraf1gov-d5936455d6d5d32a5e0ca88096d663bade444549.tar.gz
gyraf1gov-d5936455d6d5d32a5e0ca88096d663bade444549.tar.bz2
gyraf1gov-d5936455d6d5d32a5e0ca88096d663bade444549.zip
refactoring anom-parametres setup
Diffstat (limited to 'public/app/config/app_constants.php')
-rw-r--r--public/app/config/app_constants.php70
1 files changed, 47 insertions, 23 deletions
diff --git a/public/app/config/app_constants.php b/public/app/config/app_constants.php
index f788946..cabd0b8 100644
--- a/public/app/config/app_constants.php
+++ b/public/app/config/app_constants.php
@@ -1,7 +1,15 @@
<?php
-// Contents
-// Central Defaults (name)
-// Default Values (user-privileges and user-roles)
+/** Custom Application Constants
+ * -----------------------------------------------------------------------------
+ *
+ * Constants defined for your own application
+ *
+ * Here you may fing
+ *
+ * It is rec
+ *
+ * -----------------------------------------------------------------------------
+ */
// read ini file if exist
@@ -11,37 +19,53 @@ if (file_exists("../core/auth/.env")) {
}
+/** Main default constants / strings / names / etc
+ * -----------------------------------------------------------------------------
+ */
+define('SITE_TITLE', 'schoolGov'); // Site Title (the end-users' title)
-// CENTRAL DEFAULTS ////////////////////////////////////////////////////////////
-// -----------------------------------------------------------------------------
-// NOTE:
-// if .env file exists ... do not touch anything
-// else ... replace $env[*] values with your setup
-// WEB-APP name and url
-// --- -- -- - - -
-define('SITE_TITLE', 'Classroom');
-define('SITE_URL', $env['ANOM_HOSTNAME']);
+/** Autoload paths
+ * -----------------------------------------------------------------------------
+ *
+ * CLASSPATHS : array of paths where classes are saved
+ * Needed only when the custom autoloader is used
+ *
+ * NOTE:
+ * if the custom autoloader is used (instead of composer's)
+ * then you need to defing CLASSPATHS constant-array too;
+ *
+ * In most cases you won't need this,
+ * so comment the next lines out of the code-base
+ *
+ * -----------------------------------------------------------------------------
+ */
+
+# define('CLASSPATHS', array(
+# '/../core/classes/',
+# '/app/controllers/',
+# '/app/models/',
+# '/../vendor/'
+# )
+# );
+
+
+// if FileSession is selected, a path for session-files is needed
+#define('FILESESSION_PATH', '../storage/session');
+
+
+
+
// Session and cookie names
// --- -- -- - - -
define('SESSION_NAME', 'offticket'); // cookie for session (office ticket)
define('CONNECTION_COOKIE', 'con'); // cookie for connection
define('MAX_SESSION_LIFE', 2*60*60); // maximum session lifetime (2 hours)
-// Cookie Policy
-// --- -- -- - - -
-# define('COOKIE_DOMAIN', $env['ANOM_HOSTNAME']); // domain to be visible on
-define('COOKIE_SECURE', false); // Secure cookie policy [true|false]
-define('COOKIE_SAMESITE', 'Strict'); // SameSite cookie policy [Strict|Lax|None]
- // recomended values:
- // COOKIE_SECURE=true, COOKIE_SAMESITE='Strict'
- // --- -- -- - - -
- // for more info about cookie policy read:
- // https://www.php.net/manual/en/function.session-set-cookie-params.php
-
+
// email setup