This commit is contained in:
2021-04-06 16:34:12 +02:00
parent dac3dc2331
commit a51b427c2e
3 changed files with 104 additions and 10 deletions

View File

@@ -14,16 +14,6 @@ if (!is_readable(getClassPath(Configuration::class))) {
die(json_encode(array( "success" => false, "msg" => "Configuration directory is not readable, check permissions before proceeding." )));
}
spl_autoload_extensions(".php");
spl_autoload_register(function($class) {
$full_path = getClassPath($class, true);
if(file_exists($full_path)) {
include_once $full_path;
} else {
include_once getClassPath($class, false);
}
});
$config = new Configuration();
$user = new Objects\User($config);
$sql = $user->getSQL();