52 lines
No EOL
3.8 KiB
PHP
52 lines
No EOL
3.8 KiB
PHP
<?php require_once __DIR__ . '/../inc/admin_header.php'; ?>
|
|
<?php
|
|
$baseUrl = rtrim(Config::get('BASE_URL', 'https://philippurbschat.de/'), '/');
|
|
?>
|
|
<div class="max-w-7xl w-full mx-auto flex flex-col md:flex-row gap-6 p-4 sm:p-6">
|
|
<!-- Sidebar Navigation -->
|
|
<aside class="w-full md:w-56 bg-slate-900/60 backdrop-blur-md border border-slate-800 rounded-2xl p-4 h-fit shrink-0">
|
|
<div class="mb-4 pb-3 border-b border-slate-800">
|
|
<h2 class="text-xs font-mono uppercase tracking-[0.2em] text-slate-400 font-bold">Navigation</h2>
|
|
</div>
|
|
<nav class="flex flex-col gap-1.5 font-mono text-xs">
|
|
<a href="<?= $baseUrl ?>/admin" class="px-3 py-2 text-slate-400 hover:text-slate-200 hover:bg-slate-800/60 rounded-xl transition-all">Dashboard</a>
|
|
<a href="<?= $baseUrl ?>/admin/users?tab=users" class="px-3 py-2 text-slate-400 hover:text-slate-200 hover:bg-slate-800/60 rounded-xl transition-all">Benutzer</a>
|
|
<a href="<?= $baseUrl ?>/admin/users?tab=invites" class="px-3 py-2 text-slate-400 hover:text-slate-200 hover:bg-slate-800/60 rounded-xl transition-all">Einladungslinks</a>
|
|
<a href="<?= $baseUrl ?>/admin/settings" class="px-3 py-2 bg-cyan-500/10 text-cyan-400 border border-cyan-500/30 rounded-xl transition-all">Einstellungen</a>
|
|
</nav>
|
|
</aside>
|
|
|
|
<main class="flex-1 min-w-0 bg-slate-900/60 backdrop-blur-md border border-slate-800 rounded-3xl p-6 sm:p-8 shadow-2xl relative overflow-hidden flex flex-col">
|
|
<div class="absolute top-0 left-0 w-full h-1 bg-gradient-to-r from-transparent via-cyan-500/40 to-transparent"></div>
|
|
|
|
<header class="mb-8 border-b border-slate-800 pb-6">
|
|
<h1 class="text-xl sm:text-2xl font-black text-slate-100 font-mono tracking-tight">
|
|
<span class="text-cyan-400">/</span> System-Einstellungen
|
|
</h1>
|
|
<p class="text-slate-400 font-mono text-xs mt-1">Konfiguration und Umgebungsvariablen.</p>
|
|
</header>
|
|
|
|
<div class="space-y-6">
|
|
<div class="p-6 bg-slate-950/80 rounded-2xl border border-slate-800 space-y-4">
|
|
<h3 class="text-slate-400 font-mono text-xs uppercase tracking-wider font-bold">Umgebungsvariablen (.env)</h3>
|
|
|
|
<div class="space-y-4">
|
|
<div>
|
|
<label class="block text-slate-400 font-mono text-xs mb-1.5 uppercase tracking-wider">APP_NAME</label>
|
|
<input type="text" value="<?= htmlspecialchars(Config::get('APP_NAME', 'philippurbschat.de')) ?>" class="w-full bg-slate-900 border border-slate-800 rounded-xl p-3 text-cyan-400 font-mono text-xs focus:outline-none" readonly>
|
|
</div>
|
|
<div>
|
|
<label class="block text-slate-400 font-mono text-xs mb-1.5 uppercase tracking-wider">BASE_URL</label>
|
|
<input type="text" value="<?= htmlspecialchars(Config::get('BASE_URL', 'https://philippurbschat.de/')) ?>" class="w-full bg-slate-900 border border-slate-800 rounded-xl p-3 text-slate-300 font-mono text-xs focus:outline-none" readonly>
|
|
</div>
|
|
<div>
|
|
<label class="block text-slate-400 font-mono text-xs mb-1.5 uppercase tracking-wider">GEMINI_API_KEY</label>
|
|
<input type="text" value="<?= substr(Config::get('GEMINI_API_KEY', ''), 0, 6) ?>*******************" class="w-full bg-slate-900 border border-slate-800 rounded-xl p-3 text-cyan-400 font-mono text-xs focus:outline-none" readonly>
|
|
<p class="text-[11px] text-slate-500 mt-2 font-mono">// Änderungen direkt in der .env-Datei auf dem Server vornehmen.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
</div>
|
|
<?php require_once __DIR__ . '/../inc/admin_footer.php'; ?>
|