Database conn, users in progress

This commit is contained in:
Dr3amFury
2025-07-17 01:05:46 +02:00
parent d274fa033b
commit ef76dc973a
9 changed files with 149 additions and 8 deletions

View File

@@ -1,7 +1,11 @@
<?php
include($_SERVER['DOCUMENT_ROOT'] . '/inc/php/header.php');
include($_SERVER['DOCUMENT_ROOT'] . '/inc/php/resources.php');
$languages = getLanguages();
include($_SERVER['DOCUMENT_ROOT'] . '/inc/php/header.php');
include($_SERVER['DOCUMENT_ROOT'] . '/inc/php/resources.php');
require_once($_SERVER['DOCUMENT_ROOT'] . '/db.php');
$conn = getConnection();
$languages = getLanguages();
?>
<body>
<div class="container">
@@ -19,13 +23,15 @@
<label for="language">Select Language:</label>
<select name="language" id="language" required>
<?php foreach($languages as $language) :?>
<option value="<?=$language;?>"><?=$language;?></option>
<?php endforeach;?>
<?php foreach ($languages as $language): ?>
<option value="<?= htmlspecialchars($language) ?>"><?= htmlspecialchars($language) ?></option>
<?php endforeach; ?>
</select>
<button type="submit">Generate Email</button>
<button id="darkModeBtn" type="button">Toggle Dark Mode</button>
</form>
</div>
<?php include($_SERVER['DOCUMENT_ROOT'] . '/inc/php/footer.php');
<script src="/inc/js/theme.js"></script>
<?php include($_SERVER['DOCUMENT_ROOT'] . '/inc/php/footer.php'); ?>