-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathinc.core.php
More file actions
executable file
·88 lines (70 loc) · 2.28 KB
/
Copy pathinc.core.php
File metadata and controls
executable file
·88 lines (70 loc) · 2.28 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
77
78
79
80
81
82
83
84
85
86
87
88
<?php
/*
* Configuration du noyau
*
* Les constantes suivantes devront déjà être définie
*
* DB_DRIVER, DB_NAME, DB_USER, DB_PASS,DB_HOST // pour les connexions bases de données
*/
if(defined('ATM_CORE_INCLUDED')) {
null;
}
else {
define('OBJETSTD_MASTERKEY', 'rowid');
define('OBJETSTD_DATECREATE', 'date_cre');
define('OBJETSTD_DATEUPDATE', 'date_maj');
define('OBJETSTD_DATEMASK', 'date_');
if(!defined('ROOT')){
define('ROOT',dol_buildpath('/abricot/'));
define('HTTP',dol_buildpath('/abricot/',2));
}
if(!defined('COREROOT')) {
define('COREROOT',ROOT);
define('COREHTTP',HTTP);
}
define('CORECLASS',COREROOT.'includes/class/');
define('COREFCT',COREROOT.'includes/lib/');
/*
* Inclusion des classes Core
* Le require_once permet de surcharger préalablement ces classes
*/
if(!defined('NO_CORE_DB')){
require_once(CORECLASS.'class.pdo.db.php');
}
require_once(CORECLASS.'class.objet_std.php');
if(DOL_PACKAGE) {
require_once(CORECLASS.'class.objet_std_dolibarr.php');
}
require_once(CORECLASS.'class.trigger.php');
require_once(CORECLASS.'class.reponse.mail.php');
require_once(CORECLASS.'class.cache_file.php');
require_once(CORECLASS.'class.requete.core.php');
require_once(CORECLASS.'class.tools.php');
/* Construction page */
require_once(CORECLASS.'class.form.core.php');
require_once(CORECLASS.'class.tbl.php');
/* templating TBS */
require_once(CORECLASS.'tbs_class.php');
require_once(CORECLASS.'tbs_plugin_opentbs.php');
require_once(CORECLASS.'plugins/tbs_plugin_bypage.php');
require_once(CORECLASS.'plugins/tbs_plugin_navbar.php');
require_once(CORECLASS.'class.template.tbs.php');
require_once(CORECLASS.'class.list.tbs.php');
if(defined('USE_EXTEND_CLASS')) {
require_once(CORECLASS.'class.photo.php');
}
if(defined('USE_SOAP')) {
require_once(CORECLASS.'class.soap.php');
}
if(defined('USE_CALENDAR')) {
require_once(CORECLASS.'class.iCalReader.php');
}
/*
* Inclusion des fonctions
*/
if(!defined('NO_USE_FONCTION')) {
require_once(COREFCT.'abricot.lib.php');
}
define('ATM_CORE_INCLUDED', true);
define('ABRICOT_VERSION',1.2);
}