diff options
Diffstat (limited to 'html/app/config/app_constants.php')
| -rw-r--r-- | html/app/config/app_constants.php | 75 |
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' + ) +); |
