2026-02-19 21:29:20 +00:00
< ? php
/* Copyright ( C ) 2026 Laurent Destailleur < eldy @ users . sourceforge . net >
*
* This program 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
* ( at your option ) 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 < https :// www . gnu . org / licenses />.
*/
/**
2026-02-21 10:44:43 +00:00
* \file htdocs / versionmod . inc . php
2026-02-19 21:29:20 +00:00
* \ingroup core
2026-02-20 18:21:34 +00:00
* \brief File included by main files of the Unalterable Log module
2026-02-19 21:29:20 +00:00
*/
2026-08-13 18:13:30 +00:00
// The name of the module to manage the Unalterable Log.
// If you develop a different application, your can change this name.
define ( 'DOLCERT_NAME' , 'BlockedLog' ); // Blockedlog = "Log inalterables" in french.
2026-06-07 11:55:52 +00:00
// The version of the POS system (Immutable Log system)
2026-08-13 17:21:32 +00:00
// Can be: 3.0.0-beta (beta can't be certified)
2026-08-13 17:25:07 +00:00
// Or for stable: 3.0.0 (certification mechanism or french attestation mechanism).
2026-08-13 17:58:44 +00:00
// This is the constant used to build answer of function getBlockedLogVersionToShow().
2026-08-13 17:25:07 +00:00
define ( 'DOLCERT_VERSION' , '3.0.0' );
2026-02-19 21:29:20 +00:00
2026-06-07 11:55:52 +00:00
// 1 was used for beta version candidate for certification, or for stable version that has been certified.
2026-06-16 01:21:00 +00:00
// 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.
2026-06-07 11:55:52 +00:00
// 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
// the the software is compliant. WARNING: In this case, you must find an IT company that give you the attestation of conformity.
2026-02-19 21:29:20 +00:00
if ( ! defined ( 'CERTIF_LNE' )) {
2026-07-15 17:31:58 +00:00
define ( 'CERTIF_LNE' , '0' );
2026-02-19 21:29:20 +00:00
}
2026-05-26 15:10:30 +00:00
2026-06-07 11:55:52 +00:00
// Array of dir/files to include in the signature of the scope of the certification files.
2026-06-19 21:40:38 +00:00
// This array will be used by the script: dev/buikd/generate_filelist_xml.php release=auto
// to generate the filelist.xml file.
2026-05-26 15:10:30 +00:00
$arrayofunalterablefiles = array (
//array('dir' => dirname(__FILE__).'/../../htdocs/', 'file' => 'version.inc.php'),
2026-06-19 21:40:38 +00:00
array ( 'dir' => dirname ( dirname ( dirname ( __FILE__ ))) . '/htdocs/blockedlog' , 'file' => 'all' , 'regextoinclude' => '(\.php|\.sql)$' , 'regextoexclude' => '' ),
array ( 'dir' => dirname ( dirname ( dirname ( __FILE__ ))) . '/htdocs/compta/cashcontrol/class' , 'file' => 'cashcontrol.class.php' ),
array ( 'dir' => dirname ( dirname ( dirname ( __FILE__ ))) . '/htdocs/core/class' , 'file' => 'all' , 'regextoinclude' => '(interfaces.class.php|commontrigger.class.php)$' , 'regextoexclude' => '' ),
array ( 'dir' => dirname ( dirname ( dirname ( __FILE__ ))) . '/htdocs/core/modules' , 'file' => 'modBlockedLog.class.php' ),
2026-06-20 00:05:37 +00:00
array ( 'dir' => dirname ( dirname ( dirname ( __FILE__ ))) . '/htdocs/core/triggers' , 'file' => 'interface_99_modBlockedlog_ActionsBlockedLog.class.php' ),
2026-06-19 21:40:38 +00:00
array ( 'dir' => dirname ( dirname ( dirname ( __FILE__ ))) . '/htdocs/install/mysql/tables' , 'file' => 'all' , 'regextoinclude' => 'llx_blockedlog.*(\.php|\.sql)$' , 'regextoexclude' => '' ),
array ( 'dir' => dirname ( dirname ( dirname ( __FILE__ ))) . '/htdocs/takepos' , 'file' => 'all' , 'regextoinclude' => '(receipt|send.php).php' )
2026-05-26 15:10:30 +00:00
);