-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.inc.php
More file actions
76 lines (62 loc) · 1.85 KB
/
Copy pathconfig.inc.php
File metadata and controls
76 lines (62 loc) · 1.85 KB
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
76
<?php
/*
** configs.inc.php need to be rename to configs.php
*/
/*
* SITE_NAME can be user for prefixed title pages, descriptions, ...
*/
define("SITE_NAME", "SWB API");
/*
* SITEVERSION is the config of your site.
*
* dev : Show error in HTML + reset OPcache (for all sites)
* test : No error in HTML + reset OPcache (for all sites)
* prod : No error
*/
define("SITEVERSION", 'dev'); // dev test prod
/* @TODO
* Choose addons to load at eatch requests.
* For better performance choose only the addons who are used.
* For load an addon for a specific request, you can use the function "@TODO" for load it manualy
*/
$GLOBALS['ADDONS_ENABLE'] = [
'apy',
'authentication',
'crypto',
'lang',
'phpar',
'render'
];
/*
* Default file, class and method to load
* This class will be load when 404 error, or no param in the URL
*
*/
define('ERROR404_CLASS', "AppIndex");
define('ERROR404_CLASSFILE', "Index");
define('ERROR404_METHOD', "index");
/*
* Here is the various paths,
* you are not suppose to modify them
*/
define("ROOT_PATH", dirname(__FILE__));
define("ADDON_PATH", ROOT_PATH.'/addons');
define("SOURCES_PATH", ROOT_PATH.'/src');
define("CORE_PATH", ROOT_PATH.'/core');
define("CONTENT", ROOT_PATH.'/content');
define("RESOURCES_PATH", ROOT_PATH.'/res');
define("LOCALE_PATH", RESOURCES_PATH.'/locales');
/*
* Your's Defines
*
*/
define("PHPAR_ADDON_MODEL_DIR", SOURCES_PATH . "/models/");
define("PHPAR_ADDON_DB_DEV", 'mysql://swb_online_b:qleJ3AaHXugpBbAD@192.168.2.20/swb_online_b');
define("PHPAR_ADDON_DB_TEST", 'mysql://database:password@localhost/localhost');
define("PHPAR_ADDON_DB_PROD", 'mysql://database:password@localhost/localhost');
define("PHPAR_ADDON_DB_ENV", 'development');
define("API_VERSION", 3);
define("MIN_PASSWORD_LEN", 5);
define("LOG_ALL", false);
define("DEFAULT_LANG", 'fr');
?>