first upload
This commit is contained in:
42
config.php
Normal file
42
config.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
/**
|
||||
* File di Configurazione
|
||||
* Territory Manager
|
||||
*/
|
||||
|
||||
// Configurazione Database
|
||||
define('DB_HOST', 'localhost');
|
||||
define('DB_NAME', 'territoryassigner');
|
||||
define('DB_USER', 'demo-termanager');
|
||||
define('DB_PASS', 'Z.p8ibwg4jri');
|
||||
define('DB_CHARSET', 'utf8mb4');
|
||||
|
||||
// Configurazione Applicazione
|
||||
define('APP_NAME', 'Territory Manager');
|
||||
define('APP_VERSION', '1.0.0');
|
||||
define('TIMEZONE', 'Europe/Rome');
|
||||
|
||||
// Percorsi
|
||||
define('BASE_PATH', __DIR__);
|
||||
define('UPLOAD_PATH', BASE_PATH . '/uploads');
|
||||
define('UPLOAD_URL', '/uploads');
|
||||
|
||||
// Configurazione Upload Immagini
|
||||
define('MAX_FILE_SIZE', 5 * 1024 * 1024); // 5 MB
|
||||
define('ALLOWED_EXTENSIONS', ['jpg', 'jpeg', 'png', 'gif', 'pdf']);
|
||||
|
||||
// Configurazione Sessione
|
||||
define('SESSION_LIFETIME', 3600 * 8); // 8 ore
|
||||
|
||||
// Impostazioni Timezone
|
||||
date_default_timezone_set(TIMEZONE);
|
||||
|
||||
// Gestione Errori (disattivare in produzione)
|
||||
ini_set('display_errors', 1);
|
||||
ini_set('display_startup_errors', 1);
|
||||
error_reporting(E_ALL);
|
||||
|
||||
// Avvio Sessione
|
||||
if (session_status() === PHP_SESSION_NONE) {
|
||||
session_start();
|
||||
}
|
||||
Reference in New Issue
Block a user