define ROOT_PATH a little cleaner

This commit is contained in:
mischa 2023-10-15 07:58:50 +00:00
parent 7b738eb453
commit 57705772b4
1 changed files with 3 additions and 2 deletions

View File

@ -12,8 +12,9 @@ if (preg_match("/functions.inc.php/", $_SERVER['SCRIPT_NAME'])) {
die(); die();
} }
require_once (dirname(__FILE__) . DIRECTORY_SEPARATOR . 'conf.php'); DEFINE("VERSION", "version 1.0.1");
define("VERSION", "version 1.0.1"); DEFINE('ROOT_PATH', dirname(__FILE__) . DIRECTORY_SEPARATOR);
require_once ROOT_PATH . 'conf.php';
// //
// Check if debug is enabled or not // Check if debug is enabled or not