dragon-forks/index.php
2025-02-28 22:53:43 +01:00

31 lines
No EOL
789 B
PHP

<?php
/*
* Dragon Forks
* https://git.kobold.cafe/game-projects/dragon-forks
* Original author Jamin Blount, forked by Kazhnuz
* Some code and structure are forked from Bludit by Diego Najar
* Dragon Forks is opensource software licensed under the MIT license.
*/
// TODO: use a better way to handle security
//if (file_exists('install.php')) { die("Please delete <b>install.php</b> from your Dragon Knight directory before continuing."); }
// Load time init
$loadTime = microtime(true);
// Security constant
define('DRAGONFORK', true);
// Directory separator
define('DS', DIRECTORY_SEPARATOR);
// PHP paths for init
define('PATH_ROOT', __DIR__.DS);
define('PATH_BOOT', PATH_ROOT.'kernel'.DS.'boot'.DS);
// Init
require(PATH_BOOT.'init.php');
require(PATH_BOOT.'site.php');
?>