From 57705772b4484a885941a17fde283f64752ace9a Mon Sep 17 00:00:00 2001 From: mischa Date: Sun, 15 Oct 2023 07:58:50 +0000 Subject: [PATCH] define ROOT_PATH a little cleaner --- functions.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/functions.inc.php b/functions.inc.php index f3eeba7..4fa629f 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -12,8 +12,9 @@ if (preg_match("/functions.inc.php/", $_SERVER['SCRIPT_NAME'])) { 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