forked from ATM-Consulting/dolibarr_module_abricot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinc.core.php
executable file
·116 lines (89 loc) · 3.39 KB
/
inc.core.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
<?php
/*
Copyright (C) 2003-2013 Alexis Algoud <azriel68@gmail.com>
Copyright (C) 2013-2015 ATM Consulting <support@atm-consulting.fr>
This program and all files within this directory and sub directory
is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the
Free Software Foundation, either version 3 of the License, or any
later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* 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/',1));
}
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');
require_once(CORECLASS.'class.objet_std_dolibarr.php');
require_once(CORECLASS.'class.trigger.php');
require_once(CORECLASS.'class.observer.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');
/* Début de la fin pour PDOdb */
require_once(CORECLASS.'class.listview.php'); // remplace TListviewTBS pour un objet Dolibarr
require_once(CORECLASS.'class.seedobject.php'); // remplace l'extend TObjetStd pour nos class
/* wkhtmltopdf */
require_once(CORECLASS.'Wkhtmltopdf.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',3.0);
}