diff options
| author | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-03-17 02:19:27 +0200 |
|---|---|---|
| committer | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-03-17 02:19:27 +0200 |
| commit | 26229c110fb92646b36c7b2f48ac7518fd3810a5 (patch) | |
| tree | 72b2f2e0e0c789853ceb815fd5b513ad31672cac /html/app/config | |
| parent | 1e438654005bd408447dc19c8a96099d228bb1aa (diff) | |
| download | classroom-26229c110fb92646b36c7b2f48ac7518fd3810a5.tar.gz classroom-26229c110fb92646b36c7b2f48ac7518fd3810a5.tar.bz2 classroom-26229c110fb92646b36c7b2f48ac7518fd3810a5.zip | |
set algorithns for user authentication and authorization
Diffstat (limited to 'html/app/config')
| -rw-r--r-- | html/app/config/app_constants.php (renamed from html/app/config/assets.php) | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/html/app/config/assets.php b/html/app/config/app_constants.php index 9203c47..3dac5ec 100644 --- a/html/app/config/assets.php +++ b/html/app/config/app_constants.php @@ -1,6 +1,38 @@ <?php -// PATHS USED HEAVILY ////////////////////////////////////////////////////////// +// 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 |
