summaryrefslogtreecommitdiff
path: root/html/app/config/app_constants.php
diff options
context:
space:
mode:
authorGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-03-17 02:19:27 +0200
committerGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-03-17 02:19:27 +0200
commit26229c110fb92646b36c7b2f48ac7518fd3810a5 (patch)
tree72b2f2e0e0c789853ceb815fd5b513ad31672cac /html/app/config/app_constants.php
parent1e438654005bd408447dc19c8a96099d228bb1aa (diff)
downloadclassroom-26229c110fb92646b36c7b2f48ac7518fd3810a5.tar.gz
classroom-26229c110fb92646b36c7b2f48ac7518fd3810a5.tar.bz2
classroom-26229c110fb92646b36c7b2f48ac7518fd3810a5.zip
set algorithns for user authentication and authorization
Diffstat (limited to 'html/app/config/app_constants.php')
-rw-r--r--html/app/config/app_constants.php75
1 files changed, 75 insertions, 0 deletions
diff --git a/html/app/config/app_constants.php b/html/app/config/app_constants.php
new file mode 100644
index 0000000..3dac5ec
--- /dev/null
+++ b/html/app/config/app_constants.php
@@ -0,0 +1,75 @@
+<?php
+
+// DEFAULT VALUES //////////////////////////////////////////////////////////////
+// -----------------------------------------------------------------------------
+
+// default privileges (for the subscribed user)
+// (array of privilege aliases)
+// ---
+define('DEFAULT_PRIVILEGES', [
+ 'e.1', // economics, level 1
+ 'p.1' // programming. level 1
+]);
+
+
+
+
+// ACCESS HISTORY //////////////////////////////////////////////////////////////
+// -----------------------------------------------------------------------------
+// (user-)access types
+
+define('TRACK_LOGIN', 1); // login / logout
+define('TRACK_ACCOUNT', 2); // create user / activate account
+define('TRACK_PAYMENTS', 3); // order / payment / refund etc...
+
+// access type strings
+// ---
+define('USER_ACCESS_TYPE', [
+ 1 => 'Login',
+ 2 => 'Account',
+ 3 => 'Payment'
+]);
+
+
+
+// ASSETS: PATHS USED HEAVILY //////////////////////////////////////////////////
+// -----------------------------------------------------------------------------
+// these paths are used in order to easily find and autoload useful elemets
+
+
+// JAVASCRIPT LIBRARY PATHS
+// -----------------------------------------------------------------------------
+define('JS_DIR', '/content/'); // <base> path to contruct link
+define('JS_LIBRARIES', array( // path after <base> to the actual file
+ 'jquery' => 'lib/jquery/dist/jquery.min.js',
+
+ 'require/files' => 'lib/require/require.files.js',
+ 'require/slim' => 'lib/require/require.slim.js',
+
+ 'plugins' => 'lib/plugins/plugins.min.js',
+ 'plugins/setup' => 'lib/plugins/plugins.setup.js'
+ )
+);
+
+
+// CSS ASSET PATHS
+// -----------------------------------------------------------------------------
+define('CSS_DIR', '/content/css/'); // <base> path to contruct link
+define('CSS_FILES', array( // path after <base> to the actual file
+ 'main' => 'main.min.css',
+ 'filter' => 'filter.css',
+ 'overides' => 'overides.css',
+ )
+);
+
+
+// FONTS
+// -----------------------------------------------------------------------------
+define('FONTS_DIR', '/content/fonts/');
+define('FONT_FILES', array(
+ 'iconfont' => 'iconfont.woff2',
+ 'CFAstyStdBold' => 'CFAstyStd-Bold.woff2',
+ 'CFAstyStdBook' => 'CFAstyStd-Book.woff2',
+ 'CFAstyStdMedium' => 'CFAstyStd-Medium.woff2'
+ )
+);