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

@ -5,13 +5,12 @@ require_once 'vendor/autoload.php';
require_once 'functions/i18n.php';
require_once 'classes/Database.php';
require_once 'classes/Genre.php';
ob_start();
use Yosymfony\Toml\Toml;
$config = Toml::ParseFile('includes/config.toml');
$lang = $_SESSION['lang'] ?? $config['app']['locale'];
$locale = loadLocale($lang);
$genre= null;
require_once 'includes/lang_loader.php';$genre= null;
$genreFound = false;
// if there's a query parameter named 'dj', load the DJ class
$db = new Database($config);
@ -27,15 +26,10 @@ if (isset($_GET['genre']) && $_GET['genre'] != "") {
?>
<!doctype html >
<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'; ?>
@ -198,6 +192,6 @@ if (isset($_GET['genre']) && $_GET['genre'] != "") {
</div>
</section>
<?php require 'footer.php'; ?>
</body>
</html>