2017-08-04 16:28:16 +02:00
|
|
|
<?php
|
2020-09-07 15:04:06 +02:00
|
|
|
/*
|
|
|
|
* OpenSTAManager: il software gestionale open source per l'assistenza tecnica e la fatturazione
|
2021-01-20 15:08:51 +01:00
|
|
|
* Copyright (C) DevCode s.r.l.
|
2020-09-07 15:04:06 +02:00
|
|
|
*
|
|
|
|
* 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/>.
|
|
|
|
*/
|
2017-08-04 16:28:16 +02:00
|
|
|
|
2017-09-04 11:53:30 +02:00
|
|
|
// Impostazioni di base per l'accesso al database
|
2017-08-04 16:28:16 +02:00
|
|
|
$db_host = '|host|';
|
|
|
|
$db_username = '|username|';
|
|
|
|
$db_password = '|password|';
|
|
|
|
$db_name = '|database|';
|
2024-01-15 15:30:45 +01:00
|
|
|
// $port = '|port|';
|
2022-12-05 17:44:20 +01:00
|
|
|
$db_options = [
|
2024-01-15 15:30:45 +01:00
|
|
|
// 'sort_buffer_size' => '2M',
|
2022-12-05 17:44:20 +01:00
|
|
|
];
|
|
|
|
|
2017-09-04 11:53:30 +02:00
|
|
|
// Percorso della cartella di backup
|
2017-08-04 16:28:16 +02:00
|
|
|
$backup_dir = __DIR__.'/backup/';
|
|
|
|
|
2017-09-04 11:53:30 +02:00
|
|
|
// Tema selezionato per il front-end
|
2017-08-04 16:28:16 +02:00
|
|
|
$theme = 'default';
|
|
|
|
|
2018-09-21 15:50:42 +02:00
|
|
|
// Impostazioni di sicurezza
|
|
|
|
$redirectHTTPS = false; // Redirect automatico delle richieste da HTTP a HTTPS
|
2018-11-20 17:47:56 +01:00
|
|
|
$disableCSRF = true; // Protezione contro CSRF
|
2017-08-04 16:28:16 +02:00
|
|
|
|
2017-09-04 11:53:30 +02:00
|
|
|
// Impostazioni di debug
|
2017-08-04 16:28:16 +02:00
|
|
|
$debug = false;
|
|
|
|
|
2023-03-31 15:09:27 +02:00
|
|
|
// Permette di eseguire il cron anche se OSM è installato su localhost
|
|
|
|
$forza_cron_localhost = false;
|
|
|
|
|
2023-09-04 14:37:52 +02:00
|
|
|
// Permette di disabilitare i cron e gli hooks
|
|
|
|
$disable_cron = false;
|
|
|
|
$disable_hooks = false;
|
|
|
|
|
|
|
|
// Permette di accedere solo con un ip (da utilizzare per manutenzione)
|
|
|
|
$maintenance_ip = '';
|
|
|
|
|
2017-09-04 11:53:30 +02:00
|
|
|
// Personalizzazione dei gestori dei tag personalizzati
|
2017-08-04 16:28:16 +02:00
|
|
|
$HTMLWrapper = null;
|
|
|
|
$HTMLHandlers = [];
|
|
|
|
$HTMLManagers = [];
|
|
|
|
|
2017-09-19 18:14:23 +02:00
|
|
|
// Lingua del progetto (per la traduzione e la conversione numerica)
|
2019-08-02 13:21:21 +02:00
|
|
|
$lang = '|lang|';
|
2017-09-19 18:14:23 +02:00
|
|
|
// Personalizzazione della formattazione di timestamp, date e orari
|
2017-09-20 12:14:33 +02:00
|
|
|
$formatter = [
|
2019-08-02 13:21:21 +02:00
|
|
|
'timestamp' => '|timestamp|',
|
|
|
|
'date' => '|date|',
|
|
|
|
'time' => '|time|',
|
2017-09-20 12:14:33 +02:00
|
|
|
'number' => [
|
2019-08-02 13:21:21 +02:00
|
|
|
'decimals' => '|decimals|',
|
|
|
|
'thousands' => '|thousands|',
|
2017-09-20 12:14:33 +02:00
|
|
|
],
|
|
|
|
];
|
2018-02-14 11:10:03 +01:00
|
|
|
|
|
|
|
// Ulteriori file CSS e JS da includere
|
|
|
|
$assets = [
|
|
|
|
'css' => [],
|
2018-06-23 15:41:32 +02:00
|
|
|
'print' => [],
|
2018-02-14 11:10:03 +01:00
|
|
|
'js' => [],
|
|
|
|
];
|
2024-10-04 08:38:22 +02:00
|
|
|
|
|
|
|
// Configura il limite di tempo di esecuzione del file cron.php
|
|
|
|
$php_time_limit = '';
|