Address changes.
This commit is contained in:
parent
a5949e0401
commit
635b3ddcbc
59 changed files with 7249 additions and 2745 deletions
|
@ -4,10 +4,13 @@
|
|||
<div class="row mb-3">
|
||||
<div class="col text-center">
|
||||
<ul class="list-inline">
|
||||
<li class="list-inline-item"><a href="/contact">Contact Us</a></li>
|
||||
<li class="list-inline-item"><a href="/privacy">Privacy Policy</a></li>
|
||||
<li class="list-inline-item"><a href="/contact"><?php echo $locale['contactus'];?></a></li>
|
||||
<li class="list-inline-item"><a href="/privacy"><?php echo $locale['privacyPolicy']?></a></li>
|
||||
<!-- Uncomment the following line once you have a Terms & Conditions page -->
|
||||
<!-- <li class="list-inline-item"><a href="/terms">Terms & Conditions</a></li> -->
|
||||
<!-- <li class="list-inline-item"><a href="/terms"><?php
|
||||
// echo $locale['termsAndConditions'];
|
||||
?>
|
||||
</a></li> -->
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -15,16 +18,18 @@
|
|||
<!-- Copyright Text -->
|
||||
<div class="row mb-2">
|
||||
<div class="col text-center">
|
||||
<p><?php echo "© 2008 - " . date('Y') . " " . $locale['allrightsreserved']; ?></p>
|
||||
<p><?php echo "© " . $config['app']['copyright_start_date'] . " - " . date('Y') . " " . $locale['allrightsreserved']; ?></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Software Credit -->
|
||||
<?php if ($config['app']['made_using']){?>
|
||||
<div class="row">
|
||||
<div class="col text-center">
|
||||
<p>Created using <a href="https://gitea.threefifteen.info/cody/dj_mix_hosting_software">DJ Mix Hosting Software</a></p>
|
||||
<p><?php echo $locale['createdUsing']?> <a href="https://gitea.threefifteen.info/cody/dj_mix_hosting_software"><?php echo $locale['djmixhostingsoftware'];?></a></p>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// read toml config file
|
||||
require_once 'vendor/autoload.php';
|
||||
|
||||
use Random\RandomException;
|
||||
use Yosymfony\Toml\Toml;
|
||||
use DJMixHosting\SessionManager;
|
||||
|
||||
|
@ -11,6 +12,14 @@ require_once 'functions/i18n.php';
|
|||
// Instead of including sessions.php, start the session via SessionManager:
|
||||
SessionManager::start();
|
||||
|
||||
if (empty($_SESSION['csrf_token'])) {
|
||||
try {
|
||||
$_SESSION['csrf_token'] = bin2hex(random_bytes(32));
|
||||
} catch (RandomException $e) {
|
||||
die("An error occurred. Please try again.");
|
||||
}
|
||||
}
|
||||
|
||||
require_once 'includes/lang_loader.php';
|
||||
|
||||
$mixshowsPages = ["/mixshows", "/mixshows/", "/mixshows.php"];
|
||||
|
|
|
@ -36,9 +36,8 @@ $current_lang = $_SESSION['lang'] ?? $config['app']['locale'];
|
|||
|
||||
<div class="d-flex align-items-center">
|
||||
<!-- Search form remains outside the dropdown -->
|
||||
<form class="d-flex me-3" role="search">
|
||||
<input class="form-control me-2" type="search" placeholder="<?php echo $locale['search']; ?>"
|
||||
aria-label="<?php echo $locale['search']; ?>">
|
||||
<form class="d-flex me-3" role="search" action="/search.php" method="get">
|
||||
<input class="form-control me-2" type="search" name="q" placeholder="<?php echo $locale['search']; ?>" aria-label="<?php echo $locale['search']; ?>">
|
||||
<button class="btn btn-outline-success" type="submit"><?php echo $locale['search']; ?></button>
|
||||
</form>
|
||||
|
||||
|
@ -62,7 +61,7 @@ $current_lang = $_SESSION['lang'] ?? $config['app']['locale'];
|
|||
<label for="languageSelect" class="visually-hidden">Language Selector</label>
|
||||
<select class="form-select" id="languageSelect" onchange="location = this.value;">
|
||||
<?php
|
||||
if (isset($_SERVER["REQUIEST_URI"])) {
|
||||
if (isset($_SERVER["REQUEST_URI"])) {
|
||||
$currentUrl = strtok($_SERVER["REQUEST_URI"], '?') ?? '/';
|
||||
} else {
|
||||
$currentUrl = '/';
|
||||
|
@ -94,7 +93,7 @@ $current_lang = $_SESSION['lang'] ?? $config['app']['locale'];
|
|||
<script>
|
||||
// Dark mode toggle script
|
||||
function toggleDarkMode() {
|
||||
var html = document.documentElement;
|
||||
const html = document.documentElement;
|
||||
if (html.getAttribute('data-bs-theme') === 'dark') {
|
||||
html.removeAttribute('data-bs-theme'); // Switch to light mode
|
||||
localStorage.setItem('darkmode', 'false');
|
||||
|
@ -107,7 +106,7 @@ $current_lang = $_SESSION['lang'] ?? $config['app']['locale'];
|
|||
}
|
||||
|
||||
function updateDarkModeOnServer(value) {
|
||||
var xhr = new XMLHttpRequest();
|
||||
const xhr = new XMLHttpRequest();
|
||||
xhr.open('POST', '/settings.php', true);
|
||||
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
||||
xhr.onload = function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue