Page non trouv??e');
}
$user_data_dir = rtrim(FACTORY_USER_DIRECTORY, '/') . '/' . $login;
if (!is_dir($user_data_dir)) {
mkdir($user_data_dir, 0700, true);
//http_response_code(404);
//die("
Cette association n'existe pas.
");
}
// D??finir le dossier o?? sont stock??s les donn??es
define('Paheko\DATA_ROOT', $user_data_dir);
const PREFER_HTTPS = false;
const SMTP_HOST = "__SMTP_HOST__.__DOMAIN__";
const SMTP_USER = null;
const API_USER = "__PAHEKO_API_USER__";
const API_PASSWORD = "__PAHEKO_API_PASSWORD__";
const SMTP_PASSWORD = null;
const SMTP_PORT = 25;
const SMTP_SECURITY = 'NONE';
const ROOT = __DIR__;
const DB_FILE = DATA_ROOT . '/association.sqlite';
//const PLUGINS_ROOT = DATA_ROOT . '/plugins';
const PLUGINS_ROOT = __DIR__ . '/data/plugins';
// D??finir l'URL
//original
//define('Garradin\WWW_URL', 'https://' . $login . FACTORY_USER_DIRECTORY . '/');
//maj kaz
define('Paheko\WWW_URL', "__HTTP_PROTO__://".$login."-paheko.__DOMAIN__/");
define('Paheko\WWW_URI', '/');
// Désactiver le log des erreurs visible dans l'interface (sécurité)
define('Paheko\ERRORS_ENABLE_LOG_VIEW', true);
// Ne pas afficher les erreurs de code
define('Paheko\SHOW_ERRORS', true);
#add by fab le 21/04/2022
//const PDF_COMMAND = 'prince';
# const PDF_COMMAND = 'auto';
const PDF_COMMAND = 'chromium --no-sandbox --headless --disable-dev-shm-usage --autoplay-policy=no-user-gesture-required --no-first-run --disable-gpu --disable-features=DefaultPassthroughCommandDecoder --use-fake-ui-for-media-stream --use-fake-device-for-media-stream --disable-sync --print-to-pdf=%2$s %1$s';