From: Banana Date: Sat, 12 Nov 2022 10:10:55 +0000 (+0100) Subject: php 8 syntax X-Git-Tag: v1.0~4 X-Git-Url: http://91.132.146.200/gitweb/?a=commitdiff_plain;h=4c5460011c6887b0fe0e92ee5d37b744ae365af2;p=scientia.git php 8 syntax --- 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' )