<?php
defined('BASEPATH') OR exit('No direct script access allowed');

/*
|--------------------------------------------------------------------------
| CONFIGURATION PRINCIPALE SYSTÈME MARITIME
|--------------------------------------------------------------------------
*/

// URL de base - À MODIFIER selon votre installation
$config['base_url'] = 'http://127.0.0.1/ferryOps/';

$config['index_page'] = '';
$config['uri_protocol']	= 'REQUEST_URI';
$config['url_suffix'] = '';
//$config['language']	= '';
$config['charset'] = 'UTF-8';





// Configuration des sessions
$config['sess_driver'] = 'files';
$config['sess_cookie_name'] = 'ferryops_session';
$config['sess_expiration'] = 28800; // 8 heures
$config['sess_save_path'] = NULL;
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;

// Configuration des cookies
$config['cookie_prefix']	= '';
$config['cookie_domain']	= '';
$config['cookie_path']		= '/';
$config['cookie_secure']	= FALSE;
$config['cookie_httponly'] 	= FALSE;

// Configuration de sécurité
$config['allow_get_array'] = TRUE;
$config['enable_query_strings'] = FALSE;
$config['controller_trigger'] = 'c';
$config['function_trigger'] = 'm';
$config['directory_trigger'] = 'd';

$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
$config['enable_hooks'] = FALSE;
$config['subclass_prefix'] = 'MY_';
$config['composer_autoload'] = FALSE;

/*
|--------------------------------------------------------------------------
| LOGGING ET ERREURS
|--------------------------------------------------------------------------
*/

$config['log_threshold'] = (ENVIRONMENT == 'production') ? 1 : 4;
$config['log_path'] = '';
$config['log_file_extension'] = '';
$config['log_file_permissions'] = 0644;
$config['log_date_format'] = 'Y-m-d H:i:s';

/*
|--------------------------------------------------------------------------
| CACHE ET COMPRESSION
|--------------------------------------------------------------------------
*/

$config['cache_path'] = '';
$config['cache_query_string'] = FALSE;
$config['encryption_key'] = 'maritime_encryption_key_2024_v1_secure';

/*
|--------------------------------------------------------------------------
| CONFIGURATION EMAIL
|--------------------------------------------------------------------------
*/

$config['mailtype'] = 'html';
$config['charset'] = 'utf-8';
$config['wordwrap'] = TRUE;

