settings load from database and i18n from config files

This commit is contained in:
xiaomlove
2021-01-12 21:14:02 +08:00
parent f763eeac98
commit 9934c312b7
16 changed files with 374 additions and 360 deletions

View File

@@ -3,9 +3,6 @@ if(!defined('IN_TRACKER'))
die('Hacking attempt!');
error_reporting(E_ALL);
require $rootpath . 'include/functions.php';
require $rootpath . 'include/globalfunctions.php';
require $rootpath . 'include/database/interface_db.php';
require $rootpath . 'include/database/class_db_mysqli.php';
require $rootpath . 'include/database/class_db.php';
@@ -14,12 +11,10 @@ require $rootpath . 'include/database/class_exception.php';
require $rootpath . 'classes/class_advertisement.php';
require $rootpath . 'classes/class_cache_redis.php';
require $rootpath . 'include/config.php';
require $rootpath . get_langfile_path("functions.php");
ini_set('display_errors', $TWEAK['display_errors']);
$Cache = new RedisCache(); //Load the caching class
$Cache->setLanguageFolderArray(get_langfolder_list());
define('TIMENOW', time());