1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
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 / modidy profile
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'
)
);
|