- new blog cms

This commit is contained in:
Ty Clifford
2026-07-04 19:41:44 -04:00
parent 64cb76a846
commit 782b983bf4
819 changed files with 3103 additions and 88735 deletions
+3 -40
View File
@@ -1,42 +1,5 @@
<?php
declare(strict_types=1);
/*
* Bludit
* https://www.bludit.com
* Author Diego Najar
* Bludit is opensource software licensed under the MIT license.
*/
// Check if Bludit is installed
if (!file_exists('bl-content/databases/site.php')) {
$base = dirname($_SERVER['SCRIPT_NAME']);
$base = rtrim($base, '/');
$base = rtrim($base, '\\'); // Workaround for Windows Servers
header('Location:'.$base.'/install.php');
exit('<a href="./install.php">Install Bludit first.</a>');
}
// Load time init
$loadTime = microtime(true);
// Security constant
define('BLUDIT', true);
// Directory separator
define('DS', DIRECTORY_SEPARATOR);
// PHP paths for init
define('PATH_ROOT', __DIR__.DS);
define('PATH_BOOT', PATH_ROOT.'bl-kernel'.DS.'boot'.DS);
// Init
require(PATH_BOOT.'init.php');
// Admin area
if ($url->whereAmI()==='admin') {
require(PATH_BOOT.'admin.php');
}
// Site
else {
require(PATH_BOOT.'site.php');
}
$app = require __DIR__ . '/app/bootstrap.php';
$app->handle();