Platform
3.1
PHP API documentation
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
CORE_init.php
Go to the documentation of this file.
1
<?php
2
/*
3
* @author Anakeen
4
* @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
5
* @package FDL
6
*/
7
/**
8
* @mainpage Dynacase Platform Documentation
9
* @brief
10
* @author Anakeen Dynacase Labs
11
* @version 3.1.13-0.20131023.101132
12
* @date 2011
13
*
14
*
15
*
16
* @par Reference manual:
17
* The Dynacase Reference Manual gives you all informations you need to design, code, test your applications.
18
ation. This manual should be your daily companion, with all answers to all questions when developping on Dynacase Platform.
19
* ==> http://docs.anakeen.com
20
*
21
*
22
*/
23
/**
24
* Application parameters
25
*
26
* @author Anakeen
27
* @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
28
* @package FDL
29
* @subpackage CORE
30
*/
31
/**
32
*/
33
/**
34
* Application parameters
35
* @name $app_const
36
* @global array $GLOBALS['app_const']
37
*/
38
global
$app_const
;
39
$app_const
= array(
40
"INIT"
=>
"yes"
,
41
"CORE_LOGLEVEL"
=>
"IWEF"
,
42
"VERSION"
=> array(
43
"val"
=>
"3.1.13-0.20131023.101132"
,
44
"descr"
=>
N_
(
"application version"
) ,
45
"kind"
=>
"static"
46
) ,
47
"CORE_FRONTPAGE"
=> array(
48
"val"
=>
""
,
49
"descr"
=>
N_
(
"Dynacase frontpage description"
) ,
50
"kind"
=>
"text"
51
) ,
52
"WVERSION"
=> array(
53
"val"
=>
"3.1.13-0.20131023.101132"
,
54
"descr"
=>
N_
(
"version identificator"
) ,
55
"kind"
=>
"static"
,
56
"global"
=>
"Y"
57
) ,
58
"USE_FREEDOM_USER"
=> array(
59
"val"
=>
"yes"
,
60
"descr"
=>
N_
(
"use dynacase user management"
) ,
61
"kind"
=>
"enum(yes|no)"
,
62
"global"
=>
"Y"
63
) ,
64
"STYLE"
=> array(
65
"val"
=>
"MODERN"
,
66
"descr"
=>
N_
(
"default style"
) ,
67
"user"
=>
"Y"
68
) ,
69
"FONTSIZE"
=> array(
70
"val"
=>
"normal"
,
71
"descr"
=>
N_
(
"font size"
) ,
72
"user"
=>
"Y"
,
73
"kind"
=>
"enum(small|normal|large|x-large)"
74
) ,
75
"CORE_PUBDIR"
=>
"/usr/share/what"
,
76
"CORE_DB"
=>
""
,
77
"CORE_TMPDIR"
=>
"/tmp"
,
78
79
"CORE_DBCONNECT"
=> array(
80
"val"
=>
"unpersistent"
,
81
"descr"
=>
N_
(
"connection type"
) ,
82
"user"
=>
"N"
,
83
"style"
=>
"N"
,
84
"kind"
=>
"enum(unpersistent|persistent)"
,
85
"global"
=>
"Y"
86
) ,
87
88
"CORE_LCDATE"
=> array(
89
"val"
=>
"dmy : french notation use only for compatibility with old version"
, #
default
is dmy
for
update , it is reset by info.xml when install
90
"descr"
=>
N_
(
"database record date style"
) ,
91
"user"
=>
"N"
,
92
"style"
=>
"N"
,
93
"kind"
=>
"readonly"
,
94
"global"
=>
"Y"
95
) ,
96
97
"CORE_QUERYPREPARE"
=> array(
98
"val"
=>
"yes"
,
99
"descr"
=>
N_
(
"use prepare statement in select queries"
) ,
100
"user"
=>
"N"
,
101
"style"
=>
"N"
,
102
"kind"
=>
"enum(yes|no)"
,
103
"global"
=>
"Y"
104
) ,
105
// Layout Param
106
"CORE_BGCOLOR"
=> array(
107
"val"
=>
"url('CORE/Images/bg.gif')"
,
108
"descr"
=>
N_
(
"background color or image"
) ,
109
"user"
=>
"N"
,
110
"kind"
=>
"color"
,
111
"style"
=>
"N"
,
112
"global"
=>
"N"
113
) ,
114
"CORE_SSLBGCOLOR"
=> array(
115
"val"
=>
"url('CORE/Images/bgssl.gif')"
,
116
"descr"
=>
N_
(
"background color or image in security mode"
) ,
117
"user"
=>
"N"
,
118
"kind"
=>
"color"
,
119
"style"
=>
"Y"
,
120
"global"
=>
"N"
121
) ,
122
"CORE_FGIMG"
=> array(
123
"val"
=>
"none"
,
124
"descr"
=>
N_
(
"background image for bar"
) ,
125
"user"
=>
"N"
,
126
"style"
=>
"Y"
,
127
"global"
=>
"N"
128
) ,
129
"CORE_FGIMGMENU"
=> array(
130
"val"
=>
"none"
,
131
"descr"
=>
N_
(
"background image for menu"
) ,
132
"user"
=>
"N"
,
133
"style"
=>
"Y"
,
134
"global"
=>
"N"
135
) ,
136
"CORE_BGCELLCOLOR"
=> array(
137
"val"
=>
"snow"
,
138
"descr"
=>
N_
(
"background color for table cells"
) ,
139
"user"
=>
"N"
,
140
"kind"
=>
"color"
,
141
"style"
=>
"Y"
,
142
"global"
=>
"N"
143
) ,
// normal bg in cells
144
"CORE_BGCOLORALTERN"
=> array(
145
"val"
=>
"#DEDEEF"
,
146
"descr"
=>
N_
(
"second background color"
) ,
147
"user"
=>
"N"
,
148
"kind"
=>
"color"
,
149
"style"
=>
"Y"
,
150
"global"
=>
"N"
151
) ,
152
"CORE_BGCOLORHIGH"
=> array(
153
"val"
=>
"lightsteelblue"
,
154
"descr"
=>
N_
(
"highlight background color"
) ,
155
"user"
=>
"N"
,
156
"kind"
=>
"color"
,
157
"style"
=>
"Y"
,
158
"global"
=>
"N"
159
) ,
160
"CORE_FGCOLOR"
=> array(
161
"val"
=>
"darkslateblue"
,
162
"descr"
=>
N_
(
"inverse video background color"
) ,
163
"user"
=>
"N"
,
164
"kind"
=>
"color"
,
165
"style"
=>
"Y"
,
166
"global"
=>
"N"
167
) ,
// inverse video bg
168
"CORE_TEXTFGCOLOR"
=> array(
169
"val"
=>
"black"
,
170
"descr"
=>
N_
(
"text color"
) ,
171
"user"
=>
"N"
,
172
"kind"
=>
"color"
,
173
"style"
=>
"Y"
,
174
"global"
=>
"N"
175
) ,
// normal text
176
"CORE_TEXTBGCOLOR"
=> array(
177
"val"
=>
"white"
,
178
"descr"
=>
N_
(
"inverse video color text"
) ,
179
"user"
=>
"N"
,
180
"kind"
=>
"color"
,
181
"style"
=>
"Y"
,
182
"global"
=>
"N"
183
) ,
// inverse video text
184
"CORE_INPUTBGCOLOR"
=> array(
185
"val"
=>
"#b8ceef"
,
186
"descr"
=>
N_
(
"input color bg"
) ,
187
"user"
=>
"N"
,
188
"kind"
=>
"color"
,
189
"style"
=>
"Y"
,
190
"global"
=>
"N"
191
) ,
// input color bg
192
"CORE_ACOLOR"
=> array(
193
"val"
=>
"dodgerblue"
,
194
"descr"
=>
N_
(
"anchor color"
) ,
195
"user"
=>
"N"
,
196
"kind"
=>
"color"
,
197
"style"
=>
"Y"
,
198
"global"
=>
"N"
199
) ,
// anchor color
200
"CORE_ERRORCOLOR"
=> array(
201
"val"
=>
"#E51616"
,
202
"descr"
=>
N_
(
"error color"
) ,
203
"user"
=>
"N"
,
204
"kind"
=>
"color"
,
205
"style"
=>
"Y"
,
206
"global"
=>
"N"
207
) ,
208
209
"HELP_PUBURL"
=> array(
210
"val"
=>
"doc"
,
211
"descr"
=>
N_
(
"top url to find help documentation"
) ,
212
"user"
=>
"N"
,
213
"style"
=>
"N"
,
214
"global"
=>
"N"
215
) ,
216
217
"CORE_FULLWIDTH"
=> array(
218
"val"
=>
"100%"
,
219
"descr"
=>
N_
(
"frame size"
) ,
220
"user"
=>
"N"
,
221
"style"
=>
"Y"
,
222
"global"
=>
"N"
223
) ,
224
"CORE_SEPWIDTH"
=> array(
225
"val"
=>
"5"
,
226
"descr"
=>
N_
(
"frame border size"
) ,
227
"user"
=>
"N"
,
228
"style"
=>
"Y"
,
229
"global"
=>
"N"
230
) ,
231
232
"CORE_CLIENT"
=> array(
233
"val"
=>
"<N O M D U C L I E N T>"
,
234
"descr"
=>
N_
(
"client name"
) ,
235
"user"
=>
"N"
,
236
"style"
=>
"N"
,
237
"global"
=>
"Y"
238
) ,
239
"DYNACASE_FAVICO"
=> array(
240
"val"
=>
"CORE/Images/dynacase.ico"
,
241
"descr"
=>
N_
(
"Dynacase pages favico"
) ,
242
"user"
=>
"N"
,
243
"style"
=>
"N"
,
244
"global"
=>
"Y"
245
) ,
246
"CORE_LOGOCLIENT"
=> array(
247
"val"
=>
"CORE/Images/logo-mini.png"
,
248
"descr"
=>
N_
(
"client logo"
) ,
249
"user"
=>
"N"
,
250
"style"
=>
"N"
,
251
"global"
=>
"Y"
252
) ,
253
"CORE_ANAKEEN"
=> array(
254
"val"
=>
"Anakeen 2005"
,
255
"descr"
=>
N_
(
"anakeen"
) ,
256
"user"
=>
"N"
,
257
"style"
=>
"N"
,
258
"global"
=>
"Y"
259
) ,
260
"CORE_URLINDEX"
=> array(
261
"val"
=>
""
,
262
"descr"
=>
N_
(
"url to reach http server index"
) ,
263
"user"
=>
"N"
,
264
"style"
=>
"N"
,
265
"global"
=>
"Y"
266
) ,
267
"CORE_OPENURL"
=> array(
268
"val"
=>
""
,
269
"descr"
=>
N_
(
"url to reach http server index in open mode"
) ,
270
"user"
=>
"N"
,
271
"style"
=>
"N"
,
272
"global"
=>
"Y"
273
) ,
274
"MEMORY_LIMIT"
=> array(
275
"val"
=>
"64"
,
276
"descr"
=>
N_
(
"memory max for PHP in Mo"
) ,
277
"user"
=>
"N"
,
278
"style"
=>
"N"
,
279
"global"
=>
"Y"
280
) ,
281
"GATE_URL"
=> array(
282
"val"
=>
""
,
283
"descr"
=>
N_
(
"gate urls"
) ,
284
"user"
=>
"Y"
,
285
"style"
=>
"N"
,
286
"global"
=>
"Y"
287
) ,
288
"GATE_GEO"
=> array(
289
"val"
=>
""
,
290
"descr"
=>
N_
(
"gate geometry"
) ,
291
"user"
=>
"Y"
,
292
"style"
=>
"N"
,
293
"global"
=>
"Y"
294
) ,
295
"CORE_SOCSTYLE"
=> array(
296
"val"
=>
""
,
297
"descr"
=>
N_
(
"society style"
) ,
298
"style"
=>
"N"
,
299
"global"
=>
"Y"
300
) ,
301
"CORE_PLUGZONE"
=> array(
302
"val"
=>
""
,
303
"descr"
=>
N_
(
"plug inserted in footer"
) ,
304
"style"
=>
"N"
,
305
"global"
=>
"Y"
306
) ,
307
"CORE_PASSWDDELAY"
=> array(
308
"val"
=>
"0"
,
309
"descr"
=>
N_
(
"default delay before expiration of password in day"
) ,
310
"style"
=>
"N"
,
311
"global"
=>
"Y"
312
) ,
313
"CORE_RFOOT"
=> array(
314
"val"
=>
"<B>Dynacase</B>"
,
315
"descr"
=>
N_
(
"name displayed in the right of the foot"
) ,
316
"style"
=>
"N"
,
317
"global"
=>
"Y"
318
) ,
319
"CORE_REALM"
=> array(
320
"val"
=>
"Dynacase Connection"
,
321
"descr"
=>
N_
(
"realm name for http authenticate"
) ,
322
"style"
=>
"N"
,
323
"global"
=>
"Y"
324
) ,
325
"CORE_MOTD"
=> array(
326
"val"
=>
""
,
327
"descr"
=>
N_
(
"mot of the day"
) ,
328
"style"
=>
"N"
,
329
"global"
=>
"Y"
330
) ,
331
"CORE_ICONSIZE"
=> array(
332
"val"
=>
"small"
,
333
"descr"
=>
N_
(
"icon size"
) ,
334
"user"
=>
"Y"
,
335
"style"
=>
"N"
,
336
"kind"
=>
"enum(small|normal)"
,
337
"global"
=>
"Y"
338
) ,
339
"CORE_LOGDURATION"
=> array(
340
"val"
=>
"30"
,
341
"descr"
=>
N_
(
"duration for log conservation (in days)"
) ,
342
"style"
=>
"N"
,
343
"global"
=>
"Y"
344
) ,
345
// Mail link production, see setMailAnchor in Lib.Common.php
346
"CORE_MAIL_LINK"
=> array(
347
"val"
=>
"optimal"
,
348
"descr"
=>
N_
(
"produce link for"
) ,
349
"user"
=>
"Y"
,
350
"kind"
=>
"enum(optimal|mailto|squirrel)"
,
351
"global"
=>
"Y"
352
) ,
353
"CORE_MAIL_SQUIRRELBASE"
=> array(
354
"val"
=>
"squirrel"
,
355
"descr"
=>
N_
(
"squirrelmail install dir (relative)"
) ,
356
"user"
=>
"N"
,
357
"global"
=>
"Y"
358
) ,
359
"CORE_START_APP"
=> array(
360
"val"
=>
"WEBDESK"
,
361
"descr"
=>
N_
(
"default start application"
) ,
362
"user"
=>
"N"
,
363
"global"
=>
"Y"
364
) ,
365
// Session
366
"CORE_SESSIONTTL"
=> array(
367
"val"
=>
"0"
,
368
"descr"
=>
N_
(
"core_sessionttl"
) ,
369
"user"
=>
"N"
,
370
"global"
=>
"Y"
371
) ,
372
"CORE_GUEST_SESSIONTTL"
=> array(
373
"val"
=>
"3600"
,
374
"descr"
=>
N_
(
"core_guest_sessionttl"
) ,
375
"user"
=>
"N"
,
376
"global"
=>
"Y"
,
377
"kind"
=>
"static"
378
) ,
379
"CORE_SESSIONMAXAGE"
=> array(
380
"val"
=>
"1 week"
,
381
"descr"
=>
N_
(
"core_sessionmaxage"
) ,
382
"user"
=>
"N"
,
383
"global"
=>
"Y"
,
384
"kind"
=>
"enum(1 day|1 week|1 month)"
385
) ,
386
"CORE_SESSIONGCPROBABILITY"
=> array(
387
"val"
=>
"0.01"
,
388
"descr"
=>
N_
(
"core_sessiongcprobability"
) ,
389
"user"
=>
"N"
,
390
"global"
=>
"Y"
391
) ,
392
// Layout->execute recursion limit
393
"CORE_LAYOUT_EXECUTE_RECURSION_LIMIT"
=> array(
394
"val"
=>
"30"
,
395
"descr"
=>
N_
(
"core_layout_execute_recursion_limit"
) ,
396
"user"
=>
"N"
,
397
"global"
=>
"Y"
398
) ,
399
400
"DYNACASECONTROL_URL"
=> array(
401
"val"
=>
""
,
402
"descr"
=>
N_
(
"dynacase control URL"
) ,
403
"user"
=>
"N"
,
404
"global"
=>
"Y"
405
) ,
406
"DYNACASECONTROL_PATH"
=> array(
407
"val"
=>
""
,
408
"descr"
=>
N_
(
"dynacase control PATH"
) ,
409
"user"
=>
"N"
,
410
"global"
=>
"Y"
411
)
412
);
413
414
@include_once (
'WHAT/Lib.Prefix.php'
);
415
@include_once (
"CORE/lang.php"
);
416
if
(isset(
$lang
)) {
417
foreach
(
$lang
as $k => $v) {
418
$tl[] = $k;
419
}
420
$ll = implode(
"|"
, $tl);
421
$app_const
[
"CORE_LANG"
] = array(
422
"val"
=>
"fr_FR"
,
423
"descr"
=>
N_
(
"language"
) ,
424
"user"
=>
"Y"
,
425
"style"
=>
"N"
,
426
"kind"
=>
"enum("
. $ll .
")"
,
427
"global"
=>
"Y"
428
);
429
}
430
?>
← centre documentaire
© anakeen
- published under
CC License
-
Dynacase