"GALETTE_CARD_ROWS",
"GALETTE_CARD_WIDTH",
"GALETTE_COMPAT_VERSION",
+ "GALETTE_SYSCONFIG_PATH",
"GALETTE_CONFIG_PATH",
"GALETTE_DATA_PATH",
"GALETTE_DB_VERSION",
global repo, tag_commit
versions_file = repo.git.execute(
- ["git", "show", f"{tag_commit}:{os.path.join('galette', 'config', 'versions.inc.php')}"])
+ ["git", "show", f"{tag_commit}:{os.path.join('galette', 'includes', 'sys_config', 'versions.inc.php')}"])
file_version = re.search("^define\\('GALETTE_VERSION', 'v(?P<version>.+)'\\)", versions_file, re.MULTILINE)
if file_version.group('version') != ver:
print_err('Trying to release %s, but bumped version is %s!' % (ver, file_version.group('version')))
galette.close()
# set galette nightly version
- config_dir = os.path.join(src_dir, rel_name, 'galette', 'config')
+ config_dir = os.path.join(src_dir, rel_name, 'galette', 'includes', 'sys_config')
if nightly_version != None:
sed_cmd = 'sed -e "s/GALETTE_NIGHTLY\', false/GALETTE_NIGHTLY\', \'%s\'/" -i versions.inc.php' % nightly_version
print(sed_cmd)
+++ /dev/null
-- cotisations:
- # Model: List all cotisations amounts, begin and end dates with adherent name and town
- name: Cotisations
- description: Export de l'état des cotisations pour l'ensemble des adhérents
- filename: galette_cotisations.csv
- query: |-
- SELECT nom_adh, prenom_adh, ville_adh, montant_cotis, date_debut_cotis, date_fin_cotis
- FROM galette_cotisations
- INNER JOIN galette_adherents
- ON (galette_cotisations.id_adh=galette_adherents.id_adh)
- headers:
- - Name
- - Surname
- - Town
- - Amount
- - Begin date
- - End date
- separator: ;
- quote: \"
+++ /dev/null
-<?php
-/**
- * Copyright © 2003-2024 The Galette Team
- *
- * This file is part of Galette (https://galette.eu).
- *
- * Galette 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.
- *
- * Galette 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 Galette. If not, see <http://www.gnu.org/licenses/>.
- */
-
-//============================================================+
-// File name : tcpdf_config.php
-// Begin : 2004-06-11
-// Last Update : 2013-05-16
-//
-// Description : Configuration file for TCPDF.
-// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
-// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
-// -------------------------------------------------------------------
-// Copyright (C) 2004-2013 Nicola Asuni - Tecnick.com LTD
-//
-// This file is part of TCPDF software library.
-//
-// TCPDF is free software: you can redistribute it and/or modify it
-// under the terms of the GNU Lesser General Public License as
-// published by the Free Software Foundation, either version 3 of the
-// License, or (at your option) any later version.
-//
-// TCPDF 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 Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public License
-// along with TCPDF. If not, see <http://www.gnu.org/licenses/>.
-//
-// See LICENSE.TXT file for more information.
-//============================================================+
-
-/**
- * Alternative configuration file for TCPDF.
- * @author Nicola Asuni
- * @package com.tecnick.tcpdf
- * @version 4.9.005
- * @since 2004-10-27
- */
-
-/**
- * Define the following constant to ignore the default configuration file.
- */
-define('K_TCPDF_EXTERNAL_CONFIG', true);
-
-/**
- * Installation path (/var/www/tcpdf/).
- * By default it is automatically calculated but you can also set it as a fixed string to improve performances.
- */
-define('K_PATH_MAIN', GALETTE_TCPDF_PATH);
-
-/**
- * URL path to tcpdf installation folder (http://localhost/tcpdf/).
- * By default it is automatically set but you can also set it as a fixed string to improve performances.
- */
-//define ('K_PATH_URL', '');
-
-/**
- * Path for PDF fonts.
- * By default it is automatically set but you can also set it as a fixed string to improve performances.
- */
-define('K_PATH_FONTS', GALETTE_TCPDF_PATH . '/fonts/');
-
-/**
- * Default images directory.
- * By default it is automatically set but you can also set it as a fixed string to improve performances.
- */
-define('K_PATH_IMAGES', GALETTE_PHOTOS_PATH);
-
-/**
- * Deafult image logo used be the default Header() method.
- * Please set here your own logo or an empty string to disable it.
- */
-//define ('PDF_HEADER_LOGO', '');
-
-/**
- * Header logo image width in user units.
- */
-//define ('PDF_HEADER_LOGO_WIDTH', 0);
-
-/**
- * Cache directory for temporary files (full path).
- */
-define('K_PATH_CACHE', GALETTE_CACHE_DIR);
-
-/**
- * Generic name for a blank image.
- */
-define('K_BLANK_IMAGE', '_blank.png');
-
-/**
- * Page format.
- */
-define('PDF_PAGE_FORMAT', 'A4');
-
-/**
- * Page orientation (P=portrait, L=landscape).
- */
-define('PDF_PAGE_ORIENTATION', 'P');
-
-/**
- * Document creator.
- */
-define('PDF_CREATOR', 'TCPDF');
-
-/**
- * Document author.
- */
-define('PDF_AUTHOR', 'TCPDF');
-
-/**
- * Header title.
- */
-define('PDF_HEADER_TITLE', 'TCPDF Example');
-
-/**
- * Header description string.
- */
-define('PDF_HEADER_STRING', "by Nicola Asuni - Tecnick.com\nwww.tcpdf.org");
-
-/**
- * Document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch].
- */
-define('PDF_UNIT', 'mm');
-
-/**
- * Header margin.
- */
-define('PDF_MARGIN_HEADER', 5);
-
-/**
- * Footer margin.
- */
-define('PDF_MARGIN_FOOTER', 10);
-
-/**
- * Top margin.
- */
-define('PDF_MARGIN_TOP', 27);
-
-/**
- * Bottom margin.
- */
-define('PDF_MARGIN_BOTTOM', 25);
-
-/**
- * Left margin.
- */
-define('PDF_MARGIN_LEFT', 15);
-
-/**
- * Right margin.
- */
-define('PDF_MARGIN_RIGHT', 15);
-
-/**
- * Default main font name.
- */
-define('PDF_FONT_NAME_MAIN', 'DejaVuSans');
-
-/**
- * Default main font size.
- */
-define('PDF_FONT_SIZE_MAIN', 10);
-
-/**
- * Default data font name.
- */
-define('PDF_FONT_NAME_DATA', 'DejaVuSans');
-
-/**
- * Default data font size.
- */
-define('PDF_FONT_SIZE_DATA', 8);
-
-/**
- * Default monospaced font name.
- */
-define('PDF_FONT_MONOSPACED', 'courier');
-
-/**
- * Ratio used to adjust the conversion of pixels to user units.
- */
-define('PDF_IMAGE_SCALE_RATIO', 1.25);
-
-/**
- * Magnification factor for titles.
- */
-define('HEAD_MAGNIFICATION', 1.1);
-
-/**
- * Height of cell respect font height.
- */
-define('K_CELL_HEIGHT_RATIO', 1.25);
-
-/**
- * Title magnification respect main font size.
- */
-define('K_TITLE_MAGNIFICATION', 1.3);
-
-/**
- * Reduction factor for small font.
- */
-define('K_SMALL_RATIO', 2 / 3);
-
-/**
- * Set to true to enable the special procedure used to avoid the overlappind of symbols on Thai language.
- */
-define('K_THAI_TOPCHARS', true);
-
-/**
- * If true allows to call TCPDF methods using HTML syntax
- * IMPORTANT: For security reason, disable this feature if you are printing user HTML content.
- */
-define('K_TCPDF_CALLS_IN_HTML', true);
-
-/**
- * If true and PHP version is greater than 5, then the Error() method throw new exception instead of terminating the execution.
- */
-define('K_TCPDF_THROW_EXCEPTION_ERROR', false);
-
-/**
- * Default timezone for datetime functions
- */
-define('K_TIMEZONE', 'UTC');
-
-//============================================================+
-// END OF FILE
-//============================================================+
+++ /dev/null
-<?php
-/**
- * Copyright © 2003-2024 The Galette Team
- *
- * This file is part of Galette (https://galette.eu).
- *
- * Galette 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.
- *
- * Galette 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 Galette. If not, see <http://www.gnu.org/licenses/>.
- */
-
-/**
- * Various paths
- * Path to external libraries, logs files, exports directory, ...
- *
- * @author Johan Cwiklinski <johan@x-tnd.be>
- */
-
-if (file_exists(GALETTE_ROOT . 'config/local_paths.inc.php')) {
- include GALETTE_ROOT . 'config/local_paths.inc.php';
-}
-
-//3rd party libs paths
-if (!defined('GALETTE_TCPDF_PATH')) {
- define(
- 'GALETTE_TCPDF_PATH',
- GALETTE_ROOT . '/vendor/tecnickcom/tcpdf'
- );
-}
-if (!defined('GALETTE_XHPROF_PATH')) {
- define('GALETTE_XHPROF_PATH', '/usr/share/xhprof/');
-}
-
-//Galette paths
-if (!defined('GALETTE_CONFIG_PATH')) {
- define('GALETTE_CONFIG_PATH', GALETTE_ROOT . 'config/');
-}
-if (!defined('GALETTE_PLUGINS_PATH')) {
- define('GALETTE_PLUGINS_PATH', GALETTE_ROOT . 'plugins/');
-}
-if (!defined('GALETTE_DATA_PATH')) {
- define('GALETTE_DATA_PATH', GALETTE_ROOT . 'data/');
-}
-if (!defined('GALETTE_THEMES_PATH')) {
- define('GALETTE_THEMES_PATH', GALETTE_ROOT . 'webroot/themes/');
-}
-if (!defined('GALETTE_LOGS_PATH')) {
- define('GALETTE_LOGS_PATH', GALETTE_DATA_PATH . 'logs/');
-}
-if (!defined('GALETTE_CACHE_DIR')) {
- define('GALETTE_CACHE_DIR', GALETTE_DATA_PATH . 'cache/' . GALETTE_VERSION . '/');
-}
-if (!defined('GALETTE_EXPORTS_PATH')) {
- define('GALETTE_EXPORTS_PATH', GALETTE_DATA_PATH . 'exports/');
-}
-if (!defined('GALETTE_IMPORTS_PATH')) {
- define('GALETTE_IMPORTS_PATH', GALETTE_DATA_PATH . 'imports/');
-}
-if (!defined('GALETTE_PHOTOS_PATH')) {
- define('GALETTE_PHOTOS_PATH', GALETTE_DATA_PATH . 'photos/');
-}
-if (!defined('GALETTE_DOCUMENTS_PATH')) {
- define('GALETTE_DOCUMENTS_PATH', GALETTE_DATA_PATH . 'documents/');
-}
-if (!defined('GALETTE_ATTACHMENTS_PATH')) {
- define('GALETTE_ATTACHMENTS_PATH', GALETTE_DATA_PATH . 'attachments/');
-}
-if (!defined('GALETTE_FILES_PATH')) {
- define('GALETTE_FILES_PATH', GALETTE_DATA_PATH . 'files/');
-}
-if (!defined('GALETTE_TEMPIMAGES_PATH')) {
- define('GALETTE_TEMPIMAGES_PATH', GALETTE_DATA_PATH . 'tempimages/');
-}
-if (!defined('GALETTE_TELEMETRY_URI')) {
- define('GALETTE_TELEMETRY_URI', 'https://telemetry.galette.eu/');
-}
-
-if (!defined('GALETTE_TPL_THEME_DIR')) {
- define('GALETTE_TPL_THEME_DIR', GALETTE_ROOT . 'templates/default/');
-}
-
-if (!defined('GALETTE_DOWNLOADS_URI')) {
- define('GALETTE_DOWNLOADS_URI', 'https://galette.eu/download/');
-}
+++ /dev/null
-<?php
-/**
- * Copyright © 2003-2024 The Galette Team
- *
- * This file is part of Galette (https://galette.eu).
- *
- * Galette 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.
- *
- * Galette 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 Galette. If not, see <http://www.gnu.org/licenses/>.
- */
-
-/**
- * External libraries versions
- * Defines various library versions, to avoid use of problematic symlinks under windows or via FTP.
- *
- * @author Johan Cwiklinski <johan@x-tnd.be>
- */
-
-define('GALETTE_PHP_MIN', '8.1');
-define('GALETTE_MYSQL_MIN', '5.7');
-define('GALETTE_MARIADB_MIN', '10.4');
-define('GALETTE_PGSQL_MIN', '11') ;
-define('GALETTE_NIGHTLY', false);
-define('GALETTE_VERSION', 'v1.1.0-dev');
-define('GALETTE_COMPAT_VERSION', '1.1.0');
-define('GALETTE_DB_VERSION', '1.100');
\ No newline at end of file
define('GALETTE_ROOT', __DIR__ . '/../');
}
-require_once GALETTE_ROOT . 'config/versions.inc.php';
-require_once GALETTE_ROOT . 'config/paths.inc.php';
+require_once GALETTE_ROOT . '/includes/sys_config/versions.inc.php';
+require_once GALETTE_ROOT . '/includes/sys_config/paths.inc.php';
// check required PHP version...
if (version_compare(PHP_VERSION, GALETTE_PHP_MIN, '<')) {
--- /dev/null
+- cotisations:
+ # Model: List all cotisations amounts, begin and end dates with adherent name and town
+ name: Cotisations
+ description: Export de l'état des cotisations pour l'ensemble des adhérents
+ filename: galette_cotisations.csv
+ query: |-
+ SELECT nom_adh, prenom_adh, ville_adh, montant_cotis, date_debut_cotis, date_fin_cotis
+ FROM galette_cotisations
+ INNER JOIN galette_adherents
+ ON (galette_cotisations.id_adh=galette_adherents.id_adh)
+ headers:
+ - Name
+ - Surname
+ - Town
+ - Amount
+ - Begin date
+ - End date
+ separator: ;
+ quote: \"
--- /dev/null
+<?php
+
+/**
+ * Copyright © 2003-2024 The Galette Team
+ *
+ * This file is part of Galette (https://galette.eu).
+ *
+ * Galette 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.
+ *
+ * Galette 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 Galette. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+//============================================================+
+// File name : tcpdf_config.php
+// Begin : 2004-06-11
+// Last Update : 2013-05-16
+//
+// Description : Configuration file for TCPDF.
+// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
+// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
+// -------------------------------------------------------------------
+// Copyright (C) 2004-2013 Nicola Asuni - Tecnick.com LTD
+//
+// This file is part of TCPDF software library.
+//
+// TCPDF is free software: you can redistribute it and/or modify it
+// under the terms of the GNU Lesser General Public License as
+// published by the Free Software Foundation, either version 3 of the
+// License, or (at your option) any later version.
+//
+// TCPDF 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 Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with TCPDF. If not, see <http://www.gnu.org/licenses/>.
+//
+// See LICENSE.TXT file for more information.
+//============================================================+
+
+/**
+ * Alternative configuration file for TCPDF.
+ * @author Nicola Asuni
+ * @package com.tecnick.tcpdf
+ * @version 4.9.005
+ * @since 2004-10-27
+ */
+
+/**
+ * Define the following constant to ignore the default configuration file.
+ */
+define('K_TCPDF_EXTERNAL_CONFIG', true);
+
+/**
+ * Installation path (/var/www/tcpdf/).
+ * By default it is automatically calculated but you can also set it as a fixed string to improve performances.
+ */
+define('K_PATH_MAIN', GALETTE_TCPDF_PATH);
+
+/**
+ * URL path to tcpdf installation folder (http://localhost/tcpdf/).
+ * By default it is automatically set but you can also set it as a fixed string to improve performances.
+ */
+//define ('K_PATH_URL', '');
+
+/**
+ * Path for PDF fonts.
+ * By default it is automatically set but you can also set it as a fixed string to improve performances.
+ */
+define('K_PATH_FONTS', GALETTE_TCPDF_PATH . '/fonts/');
+
+/**
+ * Default images directory.
+ * By default it is automatically set but you can also set it as a fixed string to improve performances.
+ */
+define('K_PATH_IMAGES', GALETTE_PHOTOS_PATH);
+
+/**
+ * Deafult image logo used be the default Header() method.
+ * Please set here your own logo or an empty string to disable it.
+ */
+//define ('PDF_HEADER_LOGO', '');
+
+/**
+ * Header logo image width in user units.
+ */
+//define ('PDF_HEADER_LOGO_WIDTH', 0);
+
+/**
+ * Cache directory for temporary files (full path).
+ */
+define('K_PATH_CACHE', GALETTE_CACHE_DIR);
+
+/**
+ * Generic name for a blank image.
+ */
+define('K_BLANK_IMAGE', '_blank.png');
+
+/**
+ * Page format.
+ */
+define('PDF_PAGE_FORMAT', 'A4');
+
+/**
+ * Page orientation (P=portrait, L=landscape).
+ */
+define('PDF_PAGE_ORIENTATION', 'P');
+
+/**
+ * Document creator.
+ */
+define('PDF_CREATOR', 'TCPDF');
+
+/**
+ * Document author.
+ */
+define('PDF_AUTHOR', 'TCPDF');
+
+/**
+ * Header title.
+ */
+define('PDF_HEADER_TITLE', 'TCPDF Example');
+
+/**
+ * Header description string.
+ */
+define('PDF_HEADER_STRING', "by Nicola Asuni - Tecnick.com\nwww.tcpdf.org");
+
+/**
+ * Document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch].
+ */
+define('PDF_UNIT', 'mm');
+
+/**
+ * Header margin.
+ */
+define('PDF_MARGIN_HEADER', 5);
+
+/**
+ * Footer margin.
+ */
+define('PDF_MARGIN_FOOTER', 10);
+
+/**
+ * Top margin.
+ */
+define('PDF_MARGIN_TOP', 27);
+
+/**
+ * Bottom margin.
+ */
+define('PDF_MARGIN_BOTTOM', 25);
+
+/**
+ * Left margin.
+ */
+define('PDF_MARGIN_LEFT', 15);
+
+/**
+ * Right margin.
+ */
+define('PDF_MARGIN_RIGHT', 15);
+
+/**
+ * Default main font name.
+ */
+define('PDF_FONT_NAME_MAIN', 'DejaVuSans');
+
+/**
+ * Default main font size.
+ */
+define('PDF_FONT_SIZE_MAIN', 10);
+
+/**
+ * Default data font name.
+ */
+define('PDF_FONT_NAME_DATA', 'DejaVuSans');
+
+/**
+ * Default data font size.
+ */
+define('PDF_FONT_SIZE_DATA', 8);
+
+/**
+ * Default monospaced font name.
+ */
+define('PDF_FONT_MONOSPACED', 'courier');
+
+/**
+ * Ratio used to adjust the conversion of pixels to user units.
+ */
+define('PDF_IMAGE_SCALE_RATIO', 1.25);
+
+/**
+ * Magnification factor for titles.
+ */
+define('HEAD_MAGNIFICATION', 1.1);
+
+/**
+ * Height of cell respect font height.
+ */
+define('K_CELL_HEIGHT_RATIO', 1.25);
+
+/**
+ * Title magnification respect main font size.
+ */
+define('K_TITLE_MAGNIFICATION', 1.3);
+
+/**
+ * Reduction factor for small font.
+ */
+define('K_SMALL_RATIO', 2 / 3);
+
+/**
+ * Set to true to enable the special procedure used to avoid the overlappind of symbols on Thai language.
+ */
+define('K_THAI_TOPCHARS', true);
+
+/**
+ * If true allows to call TCPDF methods using HTML syntax
+ * IMPORTANT: For security reason, disable this feature if you are printing user HTML content.
+ */
+define('K_TCPDF_CALLS_IN_HTML', true);
+
+/**
+ * If true and PHP version is greater than 5, then the Error() method throw new exception instead of terminating the execution.
+ */
+define('K_TCPDF_THROW_EXCEPTION_ERROR', false);
+
+/**
+ * Default timezone for datetime functions
+ */
+define('K_TIMEZONE', 'UTC');
+
+//============================================================+
+// END OF FILE
+//============================================================+
--- /dev/null
+<?php
+
+/**
+ * Copyright © 2003-2024 The Galette Team
+ *
+ * This file is part of Galette (https://galette.eu).
+ *
+ * Galette 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.
+ *
+ * Galette 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 Galette. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+/**
+ * Various paths
+ * Path to external libraries, logs files, exports directory, ...
+ *
+ * @author Johan Cwiklinski <johan@x-tnd.be>
+ */
+
+if (file_exists(GALETTE_ROOT . 'config/local_paths.inc.php')) {
+ include GALETTE_ROOT . 'config/local_paths.inc.php';
+}
+
+//3rd party libs paths
+if (!defined('GALETTE_TCPDF_PATH')) {
+ define(
+ 'GALETTE_TCPDF_PATH',
+ GALETTE_ROOT . '/vendor/tecnickcom/tcpdf'
+ );
+}
+if (!defined('GALETTE_XHPROF_PATH')) {
+ define('GALETTE_XHPROF_PATH', '/usr/share/xhprof/');
+}
+
+//Galette paths
+const GALETTE_SYSCONFIG_PATH = GALETTE_ROOT . 'includes/sys_config/';
+if (!defined('GALETTE_CONFIG_PATH')) {
+ define('GALETTE_CONFIG_PATH', GALETTE_ROOT . 'config/');
+}
+
+if (!defined('GALETTE_PLUGINS_PATH')) {
+ define('GALETTE_PLUGINS_PATH', GALETTE_ROOT . 'plugins/');
+}
+if (!defined('GALETTE_DATA_PATH')) {
+ define('GALETTE_DATA_PATH', GALETTE_ROOT . 'data/');
+}
+if (!defined('GALETTE_THEMES_PATH')) {
+ define('GALETTE_THEMES_PATH', GALETTE_ROOT . 'webroot/themes/');
+}
+if (!defined('GALETTE_LOGS_PATH')) {
+ define('GALETTE_LOGS_PATH', GALETTE_DATA_PATH . 'logs/');
+}
+if (!defined('GALETTE_CACHE_DIR')) {
+ define('GALETTE_CACHE_DIR', GALETTE_DATA_PATH . 'cache/' . GALETTE_VERSION . '/');
+}
+if (!defined('GALETTE_EXPORTS_PATH')) {
+ define('GALETTE_EXPORTS_PATH', GALETTE_DATA_PATH . 'exports/');
+}
+if (!defined('GALETTE_IMPORTS_PATH')) {
+ define('GALETTE_IMPORTS_PATH', GALETTE_DATA_PATH . 'imports/');
+}
+if (!defined('GALETTE_PHOTOS_PATH')) {
+ define('GALETTE_PHOTOS_PATH', GALETTE_DATA_PATH . 'photos/');
+}
+if (!defined('GALETTE_DOCUMENTS_PATH')) {
+ define('GALETTE_DOCUMENTS_PATH', GALETTE_DATA_PATH . 'documents/');
+}
+if (!defined('GALETTE_ATTACHMENTS_PATH')) {
+ define('GALETTE_ATTACHMENTS_PATH', GALETTE_DATA_PATH . 'attachments/');
+}
+if (!defined('GALETTE_FILES_PATH')) {
+ define('GALETTE_FILES_PATH', GALETTE_DATA_PATH . 'files/');
+}
+if (!defined('GALETTE_TEMPIMAGES_PATH')) {
+ define('GALETTE_TEMPIMAGES_PATH', GALETTE_DATA_PATH . 'tempimages/');
+}
+if (!defined('GALETTE_TELEMETRY_URI')) {
+ define('GALETTE_TELEMETRY_URI', 'https://telemetry.galette.eu/');
+}
+
+if (!defined('GALETTE_TPL_THEME_DIR')) {
+ define('GALETTE_TPL_THEME_DIR', GALETTE_ROOT . 'templates/default/');
+}
+
+if (!defined('GALETTE_DOWNLOADS_URI')) {
+ define('GALETTE_DOWNLOADS_URI', 'https://galette.eu/download/');
+}
--- /dev/null
+<?php
+
+/**
+ * Copyright © 2003-2024 The Galette Team
+ *
+ * This file is part of Galette (https://galette.eu).
+ *
+ * Galette 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.
+ *
+ * Galette 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 Galette. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+/**
+ * External libraries versions
+ * Defines various library versions, to avoid use of problematic symlinks under windows or via FTP.
+ *
+ * @author Johan Cwiklinski <johan@x-tnd.be>
+ */
+
+define('GALETTE_PHP_MIN', '8.1');
+define('GALETTE_MYSQL_MIN', '5.7');
+define('GALETTE_MARIADB_MIN', '10.4');
+define('GALETTE_PGSQL_MIN', '11') ;
+define('GALETTE_NIGHTLY', false);
+define('GALETTE_VERSION', 'v1.1.0-dev');
+define('GALETTE_COMPAT_VERSION', '1.1.0');
+define('GALETTE_DB_VERSION', '1.100');
*
* Install the pecl/xhprof extension
*
- * Add XHPROF_PATH and XHPROF_URL in config/config_path.php (if needed)
+ * Add XHPROF_PATH and XHPROF_URL in config/local_paths.inc.php (if needed)
*
* Before the code
* $prof = new XHProf("something useful");
{
public const DEFAULT_DIRECTORY = GALETTE_EXPORTS_PATH;
- private string $parameted_path;
private string $legacy_parameted_file = 'exports.xml';
private string $parameted_file = 'exports.yaml';
public function __construct()
{
parent::__construct(self::DEFAULT_DIRECTORY);
- $this->parameted_path = GALETTE_CONFIG_PATH;
- $this->parameted_file = $this->parameted_path . $this->parameted_file;
- $this->legacy_parameted_file = $this->parameted_path . $this->legacy_parameted_file;
+ if (file_exists(GALETTE_CONFIG_PATH . $this->parameted_file)) {
+ $this->parameted_file = GALETTE_CONFIG_PATH . $this->parameted_file;
+ } else {
+ $this->parameted_file = GALETTE_SYSCONFIG_PATH . $this->parameted_file;
+ }
+ $this->legacy_parameted_file = GALETTE_CONFIG_PATH . $this->legacy_parameted_file;
}
/**
/*
* TCPDF configuration file for Galette
*/
-require_once GALETTE_CONFIG_PATH . 'galette_tcpdf_config.php';
+require_once GALETTE_SYSCONFIG_PATH . 'galette_tcpdf_config.php';
/**
* PDF class for galette
*/
define('GALETTE_ROOT', __DIR__ . '/../');
-require_once GALETTE_ROOT . 'config/versions.inc.php';
-require_once GALETTE_ROOT . 'config/paths.inc.php';
+require_once GALETTE_ROOT . 'includes/sys_config/versions.inc.php';
+require_once GALETTE_ROOT . 'includes/sys_config/paths.inc.php';
$phpok = !version_compare(PHP_VERSION, GALETTE_PHP_MIN, '<');
$php_message = PHP_VERSION;
define('GALETTE_ROOT', __DIR__ . '/../');
// check PHP version
-require_once GALETTE_ROOT . 'config/versions.inc.php';
+require_once GALETTE_ROOT . 'includes/sys_config/versions.inc.php';
if (version_compare(PHP_VERSION, GALETTE_PHP_MIN, '<')) {
header('location: ' . GALETTE_BASE_PATH . 'compat_test.php');
die(1);
// check PHP modules
require_once GALETTE_ROOT . '/vendor/autoload.php';
-require_once GALETTE_ROOT . 'config/versions.inc.php';
+require_once GALETTE_ROOT . 'includes/sys_config/versions.inc.php';
if (version_compare(PHP_VERSION, GALETTE_PHP_MIN, '<') || !extension_loaded('intl')) {
header('location: compat_test.php');
paths:
- galette/lib/
scanFiles:
- - galette/config/paths.inc.php
- - galette/config/versions.inc.php
+ - galette/includes/sys_config/paths.inc.php
+ - galette/includes/sys_config/versions.inc.php
- galette/config/config.inc.php.dist
- - galette/config/galette_tcpdf_config.php
+ - galette/includes/sys_config/galette_tcpdf_config.php
scanDirectories:
- galette/includes/
dynamicConstantNames: