2020-11-09 20:50:16 +01:00
|
|
|
<?php
|
2016-11-29 22:27:19 +00:00
|
|
|
/*
|
2022-05-27 11:54:24 +03:00
|
|
|
* Made by Samerton
|
2016-11-29 22:27:19 +00:00
|
|
|
* https://github.com/NamelessMC/Nameless/
|
2021-03-12 23:11:40 +00:00
|
|
|
* NamelessMC version 2.0.0-pr10
|
2016-11-29 22:27:19 +00:00
|
|
|
*
|
|
|
|
|
* License: MIT
|
|
|
|
|
*
|
|
|
|
|
* Core initialisation file
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
// Ensure module has been installed
|
2016-12-08 13:11:44 +00:00
|
|
|
$module_installed = $cache->retrieve('module_core');
|
2020-11-09 20:50:16 +01:00
|
|
|
if (!$module_installed) {
|
|
|
|
|
// Hasn't been installed
|
|
|
|
|
// Need to run the installer
|
|
|
|
|
die('Run the installer first!');
|
2016-11-29 22:27:19 +00:00
|
|
|
}
|
2020-11-09 20:50:16 +01:00
|
|
|
|
2022-01-10 00:53:54 -08:00
|
|
|
require_once ROOT_PATH . '/modules/Core/module.php';
|
2020-11-09 20:50:16 +01:00
|
|
|
|
2022-05-28 14:33:35 +02:00
|
|
|
$module = new Core_Module($language, $pages, $user, $navigation, $cache, $endpoints);
|