dolibarr 25.0.0-alpha
versionmod.inc.php
1<?php
2/* Copyright (C) 2026 Laurent Destailleur <eldy@users.sourceforge.net>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17
24// The name of the module to manage the Unalterable Log.
25// If you develop a different application, your can change this name.
26define('DOLCERT_NAME', 'BlockedLog'); // Blockedlog = "Log inalterables" in french.
27
28// The version of the POS system (Immutable Log system)
29// Can be: 3.0.0-beta (beta can't be certified)
30// Or for stable: 3.0.0 (certification mechanism or french attestation mechanism).
31// This is the constant used to build answer of function getBlockedLogVersionToShow().
32define('DOLCERT_VERSION', '3.0.0');
33
34// 1 was used for beta version candidate for certification, or for stable version that has been certified.
35// 2 to force LNE features for debug purposes (integrity of files will be broken). It just has one difference with 1: https is not required in this mode helping to work in development environment.
36// 0 was used for old version, for version not certified but compliant with the law by using an attestation of an IT provider that guarantee
37// the the software is compliant. WARNING: In this case, you must find an IT company that give you the attestation of conformity.
38if (!defined('CERTIF_LNE')) {
39 define('CERTIF_LNE', '0');
40}
41
42// Array of dir/files to include in the signature of the scope of the certification files.
43// This array will be used by the script: dev/buikd/generate_filelist_xml.php release=auto
44// to generate the filelist.xml file.
45$arrayofunalterablefiles = array(
46 //array('dir' => dirname(__FILE__).'/../../htdocs/', 'file' => 'version.inc.php'),
47 array('dir' => dirname(dirname(dirname(__FILE__))).'/htdocs/blockedlog', 'file' => 'all', 'regextoinclude' => '(\.php|\.sql)$', 'regextoexclude' => ''),
48 array('dir' => dirname(dirname(dirname(__FILE__))).'/htdocs/compta/cashcontrol/class', 'file' => 'cashcontrol.class.php'),
49 array('dir' => dirname(dirname(dirname(__FILE__))).'/htdocs/core/class', 'file' => 'all', 'regextoinclude' => '(interfaces.class.php|commontrigger.class.php)$', 'regextoexclude' => ''),
50 array('dir' => dirname(dirname(dirname(__FILE__))).'/htdocs/core/modules', 'file' => 'modBlockedLog.class.php'),
51 array('dir' => dirname(dirname(dirname(__FILE__))).'/htdocs/core/triggers', 'file' => 'interface_99_modBlockedlog_ActionsBlockedLog.class.php'),
52 array('dir' => dirname(dirname(dirname(__FILE__))).'/htdocs/install/mysql/tables', 'file' => 'all', 'regextoinclude' => 'llx_blockedlog.*(\.php|\.sql)$', 'regextoexclude' => ''),
53 array('dir' => dirname(dirname(dirname(__FILE__))).'/htdocs/takepos', 'file' => 'all', 'regextoinclude' => '(receipt|send.php).php')
54);