Index update

This commit is contained in:
flash 2022-02-15 20:40:53 +00:00
parent 8673bc0728
commit 50d49de806
2 changed files with 3 additions and 9 deletions

@ -1 +1 @@
Subproject commit 03067e70b1c30bf4f69aa6f18392279f2a6cca49 Subproject commit e322527cf5aa76596edf1e5d1282886c4e88e9ed

View file

@ -3,6 +3,7 @@ namespace Makai;
use ErrorException; use ErrorException;
use Index\Autoloader; use Index\Autoloader;
use Index\Environment;
use Index\Data\ConnectionFailedException; use Index\Data\ConnectionFailedException;
use Index\Data\MariaDB\MariaDBBackend; use Index\Data\MariaDB\MariaDBBackend;
use Index\Data\MariaDB\MariaDBConnectionInfo; use Index\Data\MariaDB\MariaDBConnectionInfo;
@ -18,17 +19,10 @@ define('MKI_DIR_PUB', MKI_ROOT . '/public');
define('MKI_DIR_PAGES', MKI_ROOT . '/pages'); define('MKI_DIR_PAGES', MKI_ROOT . '/pages');
define('MKI_DIR_CONFIG', MKI_ROOT . '/config'); define('MKI_DIR_CONFIG', MKI_ROOT . '/config');
if(MKI_DEBUG) {
ini_set('display_errors', 'on');
error_reporting(-1);
} else {
ini_set('display_errors', 'off');
error_reporting(0);
}
require_once MKI_DIR_LIB . '/index/index.php'; require_once MKI_DIR_LIB . '/index/index.php';
Autoloader::addNamespace(__NAMESPACE__, MKI_DIR_SRC); Autoloader::addNamespace(__NAMESPACE__, MKI_DIR_SRC);
Environment::setDebug(MKI_DEBUG);
try { try {
$dbConfig = parse_ini_file(MKI_DIR_CONFIG . DIRECTORY_SEPARATOR . 'database.ini'); $dbConfig = parse_ini_file(MKI_DIR_CONFIG . DIRECTORY_SEPARATOR . 'database.ini');