dragon-forks/kernel/init.php
2025-03-28 22:55:00 +01:00

42 lines
No EOL
1.3 KiB
PHP

<?php // The initialisation of the kernel of dragon-fork
// Dragon Fork version
define('DRAGONFORK_VERSION', '0.0.1');
define('DRAGONFORK_CODENAME', '');
define('DRAGONFORK_RELEASE_DATE', '2024-08-23');
define('DRAGONFORK_BUILD', '20240806');
// Change to TRUE for debugging
define('DEBUG_MODE', TRUE);
define('DEBUG_TYPE', 'INFO'); // INFO, TRACE
// This determines whether errors should be printed to the screen as part of the output or if they should be hidden from the user.
ini_set("display_errors", 0);
// Even when display_errors is on, errors that occur during PHP's startup sequence are not displayed.
// It's strongly recommended to keep display_startup_errors off, except for debugging.
ini_set('display_startup_errors', 0);
// If disabled, error message will be solely plain text instead HTML code.
ini_set("html_errors", 0);
// Tells whether script error messages should be logged to the server's error log or error_log.
ini_set('log_errors', 1);
if (DEBUG_MODE) {
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
} else {
error_reporting(E_ERROR);
}
include(PATH_KERNEL . 'lib.php');
include(PATH_KERNEL . 'cookies.php');
include(PATH_KERNEL . 'renderer.php');
include(PATH_KERNEL . 'namespace.php');
include(PATH_KERNEL . 'router.php');
$starttime = getmicrotime();
$numqueries = 0;
$link = opendb();