Upload
This commit is contained in:
parent
c79cde1afd
commit
27373f0c61
16 changed files with 345 additions and 52 deletions
16
dj.php
16
dj.php
|
@ -9,8 +9,7 @@ require_once 'classes/DJ.php';
|
|||
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';
|
||||
// if there's a query parameter named 'dj', load the DJ class
|
||||
$db = new Database($config);
|
||||
$djFound = false;
|
||||
|
@ -24,15 +23,10 @@ if (isset($_GET['dj']) && $_GET['dj'] != "") {
|
|||
|
||||
?>
|
||||
<!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'; ?>
|
||||
|
@ -309,6 +303,6 @@ if (isset($_GET['dj']) && $_GET['dj'] != "") {
|
|||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<?php require 'footer.php'; ?>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue