From 4c5460011c6887b0fe0e92ee5d37b744ae365af2 Mon Sep 17 00:00:00 2001 From: Banana Date: Sat, 12 Nov 2022 11:10:55 +0100 Subject: [PATCH] php 8 syntax --- webroot/config/config.php.default | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/webroot/config/config.php.default b/webroot/config/config.php.default index b8e8a60..e02e4cd 100644 --- a/webroot/config/config.php.default +++ b/webroot/config/config.php.default @@ -16,35 +16,34 @@ */ # set to true if you need debug messages in error log file -define('DEBUG',true); +const DEBUG = true; # set to ture if you need query log messages in error log file. -define('QUERY_DEBUG',true); +const QUERY_DEBUG = true; # timezone settings -define('TIMEZONE','Europe/Berlin'); +const TIMEZONE = 'Europe/Berlin'; # path settings -define('PATH_ABSOLUTE','/absolute/path/scientia/webroot'); -define('PATH_SYSTEMOUT',PATH_ABSOLUTE.'/systemout'); -define('PATH_WEBROOT','/absolute/path'); +const PATH_ABSOLUTE = '/home/banana/code/scientia/webroot'; +const PATH_SYSTEMOUT = PATH_ABSOLUTE . '/systemout'; +const PATH_WEBROOT = '/code/scientia/webroot'; # database config -define('DB_HOST','127.0.0.1'); -define('DB_USERNAME','user'); -define('DB_PASSWORD','test'); -define('DB_NAME','scientia'); -define('DB_PREFIX','sc'); # a _ is added automatically as separation +const DB_HOST = '127.0.0.1'; +const DB_USERNAME = 'user'; +const DB_PASSWORD = 'test'; +const DB_NAME = 'scientia'; +const DB_PREFIX = 'sc'; # a _ is added automatically as separation # username and password for authentication -define('FRONTEND_USERNAME','user'); -define('FRONTEND_PASSWORD','pass'); +const FRONTEND_USERNAME = 'user'; +const FRONTEND_PASSWORD = 'pass'; # API config # this is your installation secret. Could be anything. # Think of it as a key. Change it often to avoid any abuse. # The description will be used in the log files -define('UPLOAD_SECRET', - array( +const UPLOAD_SECRET = array( 'PLEASE CHANGE YOUR SECRET' => 'Your description for this secret #1', 'PLEASE CHANGE YOUR SECRET' => 'Your description for this secret #2' ) -- 2.39.5