mc-cms-namelessmc/modules/Core/init.php

23 lines
522 B
PHP
Raw Permalink Normal View History

2020-11-09 20:50:16 +01:00
<?php
/*
2022-05-27 11:54:24 +03:00
* Made by Samerton
* https://github.com/NamelessMC/Nameless/
* NamelessMC version 2.0.0-pr10
*
* License: MIT
*
* Core initialisation file
*/
// Ensure module has been installed
$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!');
}
2020-11-09 20:50:16 +01: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);