Core  3.2
PHP API documentation
 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  * @package FDL
5 */
6 /**
7  * @mainpage Dynacase Core Documentation
8  * @brief
9  * @author Anakeen <labs@anakeen.com>
10  *
11  *
12  *
13  * @par Reference manual:
14  * The Dynacase Reference Manual gives you all informations you need to design, code, test your applications.
15  This manual should be your daily companion, with all answers to all questions when developping on Dynacase Platform.
16  * ==> http://docs.anakeen.com
17  *
18  * @par Explanation of related pages
19  * @li Methods for document menus@n These methods are tagged with @@apiExpose tag@n List methods which can be called by FDL:FDL_METHOD action
20  * @li Error codes@n List all code's error which are returned when a problem appear. Most of them are send when import families definition's
21  * @li Methods used as search conditions@n These methods results can be used as criteria to filter document's searches@n They are tagged with @@searchLabel tag
22  * @li Supported Apis@n These methods are described in reference documentation. Their signature (argument and return) are maintained from one version to another
23  * @li Deprecated List@n These methods are no longer supported. They can be removed in the next version
24  *
25  * @note Build
26  * 3.2.26-1.20191010.152903
27  *
28  */
29 /**
30  * Application parameters
31  *
32  * @author Anakeen
33  * @package FDL
34  * @subpackage CORE
35  */
36 /**
37  */
38 /**
39  * Application parameters
40  * @name $app_const
41  * @global array $GLOBALS['app_const']
42  */
43 global $app_const;
44 $app_const = array(
45  "INIT" => "yes",
46  "CORE_LOGLEVEL" => "WEF",
47  "VERSION" => array(
48  "val" => "3.2.26-1.20191010.152903",
49  "descr" => N_("application version") ,
50  "kind" => "static"
51  ) ,
52  "CORE_FRONTPAGE" => array(
53  "val" => "",
54  "descr" => N_("Dynacase frontpage description") ,
55  "kind" => "text"
56  ) ,
57  "WVERSION" => array(
58  "val" => "3.2.26-1.20191010.152903",
59  "descr" => N_("version identificator") ,
60  "kind" => "static",
61  "global" => "Y"
62  ) ,
63  "USE_FREEDOM_USER" => array(
64  "val" => "yes",
65  "descr" => N_("use dynacase user management") ,
66  "kind" => "enum(yes|no)",
67  "global" => "Y"
68  ) ,
69  "STYLE" => array(
70  "val" => "MODERN",
71  "descr" => N_("default style") ,
72  "kind" => "readonly",
73  "user" => "N"
74  ) ,
75  "FONTSIZE" => array(
76  "val" => "normal",
77  "descr" => N_("font size") ,
78  "user" => "N",
79  "kind" => "enum(small|normal|large|x-large)"
80  ) ,
81  "CORE_TMPDIR" => "./var/tmp",
82  "CORE_TMPDIR_MAXAGE" => array(
83  "val" => "2",
84  "descr" => N_("core_tmpdir_maxage") ,
85  "user" => "N",
86  "global" => "Y"
87  ) ,
88  "CORE_TMPDOC_MAXAGE" => array(
89  "val" => "1",
90  "descr" => N_("core_tmpdoc_maxage") ,
91  "user" => "N",
92  "global" => "Y"
93  ) ,
94  "CORE_DBCONNECT" => array(
95  "val" => "unpersistent",
96  "descr" => N_("connection type") ,
97  "user" => "N",
98  "style" => "N",
99  "kind" => "readonly",
100  "global" => "Y"
101  ) ,
102  "CORE_SQLSTRICT" => array(
103  "val" => "yes",
104  "descr" => N_("stop on sql error") ,
105  "user" => "N",
106  "style" => "N",
107  "kind" => "enum(yes|no)",
108  "global" => "Y"
109  ) ,
110  // Layout Param
111  "CORE_BGCOLOR" => array(
112  "val" => "url('CORE/Images/bg.gif')",
113  "descr" => N_("background color or image") ,
114  "user" => "N",
115  "kind" => "readonly",
116  "style" => "N",
117  "global" => "N"
118  ) ,
119  "CORE_SSLBGCOLOR" => array(
120  "val" => "url('CORE/Images/bgssl.gif')",
121  "descr" => N_("background color or image in security mode") ,
122  "user" => "N",
123  "kind" => "readonly",
124  "style" => "Y",
125  "global" => "N"
126  ) ,
127  "CORE_FGIMG" => array(
128  "val" => "none",
129  "descr" => N_("background image for bar") ,
130  "user" => "N",
131  "style" => "Y",
132  "global" => "N",
133  "kind" => "readonly"
134  ) ,
135  "CORE_FGIMGMENU" => array(
136  "val" => "none",
137  "descr" => N_("background image for menu") ,
138  "user" => "N",
139  "style" => "Y",
140  "global" => "N",
141  "kind" => "readonly"
142  ) ,
143  "CORE_BGCELLCOLOR" => array(
144  "val" => "snow",
145  "descr" => N_("background color for table cells") ,
146  "user" => "N",
147  "kind" => "readonly",
148  "style" => "Y",
149  "global" => "N"
150  ) , // normal bg in cells
151  "CORE_BGCOLORALTERN" => array(
152  "val" => "#DEDEEF",
153  "descr" => N_("second background color") ,
154  "user" => "N",
155  "kind" => "readonly",
156  "style" => "Y",
157  "global" => "N"
158  ) ,
159  "CORE_BGCOLORHIGH" => array(
160  "val" => "lightsteelblue",
161  "descr" => N_("highlight background color") ,
162  "user" => "N",
163  "kind" => "readonly",
164  "style" => "Y",
165  "global" => "N"
166  ) ,
167  "CORE_FGCOLOR" => array(
168  "val" => "darkslateblue",
169  "descr" => N_("inverse video background color") ,
170  "user" => "N",
171  "kind" => "readonly",
172  "style" => "Y",
173  "global" => "N"
174  ) , // inverse video bg
175  "CORE_TEXTFGCOLOR" => array(
176  "val" => "black",
177  "descr" => N_("text color") ,
178  "user" => "N",
179  "kind" => "readonly",
180  "style" => "Y",
181  "global" => "N"
182  ) , // normal text
183  "CORE_TEXTBGCOLOR" => array(
184  "val" => "white",
185  "descr" => N_("inverse video color text") ,
186  "user" => "N",
187  "kind" => "readonly",
188  "style" => "Y",
189  "global" => "N"
190  ) , // inverse video text
191  "CORE_INPUTBGCOLOR" => array(
192  "val" => "#b8ceef",
193  "descr" => N_("input color bg") ,
194  "user" => "N",
195  "kind" => "readonly",
196  "style" => "Y",
197  "global" => "N"
198  ) , // input color bg
199  "CORE_ACOLOR" => array(
200  "val" => "dodgerblue",
201  "descr" => N_("anchor color") ,
202  "user" => "N",
203  "kind" => "readonly",
204  "style" => "Y",
205  "global" => "N"
206  ) , // anchor color
207  "CORE_ERRORCOLOR" => array(
208  "val" => "#E51616",
209  "descr" => N_("error color") ,
210  "user" => "N",
211  "kind" => "readonly",
212  "style" => "Y",
213  "global" => "N"
214  ) ,
215 
216  "HELP_PUBURL" => array(
217  "val" => "doc",
218  "descr" => N_("top url to find help documentation") ,
219  "user" => "N",
220  "style" => "N",
221  "global" => "N"
222  ) ,
223 
224  "CORE_FULLWIDTH" => array(
225  "val" => "100%",
226  "descr" => N_("frame size") ,
227  "user" => "N",
228  "style" => "Y",
229  "global" => "N"
230  ) ,
231  "CORE_SEPWIDTH" => array(
232  "val" => "5",
233  "descr" => N_("frame border size") ,
234  "user" => "N",
235  "style" => "Y",
236  "global" => "N"
237  ) ,
238 
239  "CORE_CLIENT" => array(
240  "val" => "&lt;N O M&nbsp;&nbsp;&nbsp;&nbsp;D U&nbsp;&nbsp;&nbsp;&nbsp;C L I E N T&gt;",
241  "descr" => N_("client name") ,
242  "user" => "N",
243  "style" => "N",
244  "global" => "Y"
245  ) ,
246  "DYNACASE_FAVICO" => array(
247  "val" => "CORE/Images/dynacase.ico",
248  "descr" => N_("Dynacase pages favico") ,
249  "user" => "N",
250  "style" => "N",
251  "global" => "Y"
252  ) ,
253  "CORE_LOGOCLIENT" => array(
254  "val" => "CORE/Images/logo-mini.png",
255  "descr" => N_("client logo") ,
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  "CORE_SOCSTYLE" => array(
282  "val" => "",
283  "descr" => N_("society style") ,
284  "style" => "N",
285  "global" => "Y"
286  ) ,
287  "CORE_PLUGZONE" => array(
288  "val" => "",
289  "descr" => N_("plug inserted in footer") ,
290  "style" => "N",
291  "global" => "Y"
292  ) ,
293  "CORE_PASSWDDELAY" => array(
294  "val" => "0",
295  "descr" => N_("default delay before expiration of password in day") ,
296  "style" => "N",
297  "global" => "Y"
298  ) ,
299  "CORE_REALM" => array(
300  "val" => "Dynacase",
301  "descr" => N_("realm name for http authenticate") ,
302  "style" => "N",
303  "global" => "Y"
304  ) ,
305  "CORE_MOTD" => array(
306  "val" => "",
307  "descr" => N_("mot of the day") ,
308  "style" => "N",
309  "global" => "Y"
310  ) ,
311  "CORE_ICONSIZE" => array(
312  "val" => "small",
313  "descr" => N_("icon size") ,
314  "user" => "Y",
315  "style" => "N",
316  "kind" => "readonly",
317  "global" => "Y"
318  ) ,
319  "CORE_LOGDURATION" => array(
320  "val" => "30",
321  "descr" => N_("duration for log conservation (in days)") ,
322  "style" => "N",
323  "global" => "Y"
324  ) ,
325  // Mail link production, see setMailAnchor in Lib.Common.php
326  "CORE_MAIL_LINK" => array(
327  "val" => "optimal",
328  "descr" => N_("produce link for") ,
329  "user" => "Y",
330  "kind" => "enum(optimal|mailto)",
331  "global" => "Y"
332  ) ,
333  "CORE_START_APP" => array(
334  "val" => "CORE",
335  "descr" => N_("default start application") ,
336  "user" => "N",
337  "global" => "Y"
338  ) ,
339  // Session
340  "CORE_SESSIONTTL" => array(
341  "val" => "0",
342  "descr" => N_("core_sessionttl") ,
343  "user" => "N",
344  "global" => "Y"
345  ) ,
346  "CORE_GUEST_SESSIONTTL" => array(
347  "val" => "3600",
348  "descr" => N_("core_guest_sessionttl") ,
349  "user" => "N",
350  "global" => "Y",
351  "kind" => "static"
352  ) ,
353  "CORE_SESSIONMAXAGE" => array(
354  "val" => "1 week",
355  "descr" => N_("core_sessionmaxage") ,
356  "user" => "N",
357  "global" => "Y",
358  "kind" => "enum(1 day|1 week|1 month)"
359  ) ,
360  "CORE_SESSIONGCPROBABILITY" => array(
361  "val" => "0.01",
362  "descr" => N_("core_sessiongcprobability") ,
363  "user" => "N",
364  "global" => "Y"
365  ) ,
366  "CORE_SESSION_BYTE_LENGTH" => array(
367  "val" => "16",
368  "descr" => N_("core_session_byte_length") ,
369  "user" => "N",
370  "global" => "Y"
371  ) ,
372  // Layout->execute recursion limit
373  "CORE_LAYOUT_EXECUTE_RECURSION_LIMIT" => array(
374  "val" => "30",
375  "descr" => N_("core_layout_execute_recursion_limit") ,
376  "user" => "N",
377  "global" => "Y"
378  ) ,
379  // Allow use of guest.php
380  "CORE_ALLOW_GUEST" => array(
381  "val" => "yes",
382  "descr" => N_("Allow guest access") ,
383  "kind" => "enum(yes|no)",
384  "global" => "Y"
385  ) ,
386  "CORE_MAILACTION" => array(
387  "val" => "",
388  "descr" => N_("Mail action URL") ,
389  "user" => "N",
390  "global" => "Y"
391  ) ,
392  "CORE_NOTIFY_SENDMAIL" => array(
393  "val" => "always",
394  "descr" => N_("Show a notification when a mail is sent") ,
395  "kind" => "enum(always|errors only|never)",
396  "user" => "N",
397  "global" => "Y"
398  ) ,
399  // WSH error mail
400  "CORE_WSH_MAILTO" => array(
401  "val" => "",
402  "descr" => N_("WSH error mail recipients (comma-separated list of mail addresses)") ,
403  "user" => "N",
404  "global" => "Y"
405  ) ,
406  "CORE_WSH_MAILSUBJECT" => array(
407  "val" => "[%h](%c) Script error: %m",
408  "descr" => N_("WSH error mail subject") ,
409  "user" => "N",
410  "global" => "Y"
411  ),
412  "CORE_DISPLAY_ERROR" => array(
413  "val" => "no",
414  "descr" => N_("Display errors in request response") ,
415  "user" => "N",
416  "kind" => "enum(yes|no)",
417  "global" => "Y"
418  )
419 );
420 
421 if (file_exists('WHAT/Lib.Prefix.php')) {
422  include_once ('WHAT/Lib.Prefix.php');
423 }
424 if (file_exists('CORE/lang.php')) {
425  include_once ("CORE/lang.php");
426 }
427 
428 if (isset($lang)) {
429  $tl = array();
430  foreach ($lang as $k => $v) {
431  $tl[] = $k;
432  }
433  $ll = implode("|", $tl);
434  $app_const["CORE_LANG"] = array(
435  "val" => "fr_FR",
436  "descr" => N_("language") ,
437  "user" => "Y",
438  "style" => "N",
439  "kind" => "enum(" . $ll . ")",
440  "global" => "Y"
441  );
442 }
$lang
Definition: lang.php:18
global $app_const
Definition: CORE_init.php:43
N_($s)
Definition: Lib.Common.php:18
← centre documentaire © anakeen