-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.php
160 lines (135 loc) · 3.46 KB
/
config.php
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<?php
/**
* =================================================================================
*
* DEFAULT CONFIGURATION
*
* ---------------------------------------------------------------------------------
*
* This configuration can be overwritten by file 'config-override.php'
* placed in main directory.
* It is strongly recommended to avoid modyfying this file.
*
* =================================================================================
*/
class Config {
/**
* Site name displayed in administration panel and login screen.
* @var String
*/
static $SITE_NAME = 'VIZU';
/**
* VIZU module that will be loaded by default (if there is no parameters in URL)
* @var String
*/
static $DEFAULT_MODULE = 'page';
/**
* Language that will be set by default when entering the website.
* @var String{2}
*/
static $DEFAULT_LANG = 'en';
/**
* Decide whether the app should detect user system language or not.
* If set to true user will be redirected to url with language that matches his
* system/browser language - only if this language exists and is active.
* @var Boolean
*/
static $DETECT_LANG = true;
/**
* This is the name of direcory of your theme. Default: "default".
* @var String
*/
static $THEME_NAME = 'default';
/**
* Turn true only if you are sure that you will use HTTPS.
* When turned on you will not be able to log into admin panel
* on non-https connections.
* @var Boolean
*/
static $FORCE_HTTPS = false;
/**
* Application directory location
* @var String
*/
static $APP_DIR = 'app/';
/**
* Themes directory location
* @var String
*/
static $THEMES_DIR = 'themes/';
/**
* Storage directory location
* @var String
*/
static $STORAGE_DIR = 'storage/';
/**
* IP addresses of development environments.
* If the page is launched on one of them, the debug mode
* will be enabled automatically.
* @var Array
*/
static $DEV_ENV_IP = ['127.0.0.1', '0.0.0.0', '::1'];
/**
* Forces debug mode for everybody.
* @var Boolean
*/
static $DEBUG = false;
/**
* Auto redirecting from http://domain.com to http://www.domain.com
* @var Boolean
*/
static $REDIRECT_TO_WWW = false;
/**
* Block requests to admin script if they are not made with AJAX.
* @var Boolean
*/
static $BLOCK_AJAX = true;
/**
* Password salt.
* @var String
*/
static $PASSWORD_SALT = 'SomeRand0mString';
/**
* Field types that are allowed to be edited in admin panel.
* @example {{ fieldtype id='foo' }}
* @var Array
*/
static $EDITABLE_FIELD_TYPES = ['simple', 'rich', 'repeatable'];
/**
* Field types that has its start and end tag.
* @example {{ paired }}Foo{{ /paired }}
*/
static $PAIRED_FIELD_TYPES = ['repeatable'];
/**
* Other acceptable field types that can be used in template files.
* @var Array
*/
static $OTHER_FIELD_TYPES = ['lang'];
/**
* Name of the library class name that will handle SQL queries
* @var String - SQLite | MySQL
*/
static $DB_TYPE = 'SQLite';
/**
* MySQLI database file name. You can change this file name to something more
* complex if you want to be more sure no one will access it from browser.
* @var String
*/
static $SQLITE_FILE_NAME = 'db.sqlite';
/**
* MySQL database host name
*/
static $MYSQL_HOST = 'localhost';
/**
* MySQL database name
*/
static $MYSQL_NAME = 'vizu';
/**
* MySQL database user name
*/
static $MYSQL_USER = 'root';
/**
* MySQL database password
*/
static $MYSQL_PASS = 'root';
}