This commit is contained in:
Cody Cook 2024-04-30 02:10:17 -07:00
commit 27373f0c61
16 changed files with 345 additions and 52 deletions

View file

@ -3,25 +3,18 @@
// read toml config file
require_once 'vendor/autoload.php';
require_once 'functions/i18n.php';
ob_start();
use Yosymfony\Toml\Toml;
$config = Toml::ParseFile('includes/config.toml');
$lang = $_SESSION['lang'] ?? $config['app']['locale'];
$locale = loadLocale($lang);
require_once 'includes/lang_loader.php';
?>
<html lang="en">
<html lang="<?php echo $lang ?>">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php echo $config['app']['name']; ?></title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="fontawesome/css/all.css" rel="stylesheet"/>
<?php require_once 'header.php';
?>
</head>
<body style="background-color: #eee;">
<?php require 'navbar.php'; ?>
@ -38,6 +31,6 @@ $locale = loadLocale($lang);
</div>
</div>
</section>
<script src="js/bootstrap.bundle.min.js"></script>
<?php require 'footer.php'; ?>
</body>
</html>