45 lines
No EOL
3.5 KiB
PHP
45 lines
No EOL
3.5 KiB
PHP
<?php require_once __DIR__ . '/../inc/admin_header.php'; ?>
|
|
<div class="max-w-6xl w-full mx-auto flex flex-col md:flex-row gap-6 p-6">
|
|
<aside class="w-full md:w-64 bg-slate-900/80 backdrop-blur-sm border border-slate-700/50 rounded-xl shadow-lg p-4 h-fit">
|
|
<div class="flex items-center gap-2 mb-6 border-b border-slate-700/50 pb-3">
|
|
<span class="text-xl">⚙️</span>
|
|
<h2 class="text-emerald-400 font-mono font-bold text-lg tracking-tight">System_Admin</h2>
|
|
</div>
|
|
<nav class="flex flex-col gap-2 font-mono text-sm">
|
|
<a href="<?= Config::get('BASE_URL', '/') ?>admin" class="px-3 py-2 hover:bg-slate-800 text-slate-400 hover:text-slate-200 rounded-md transition-all">> Dashboard</a>
|
|
<a href="<?= Config::get('BASE_URL', '/') ?>admin/users" class="px-3 py-2 hover:bg-slate-800 text-slate-400 hover:text-slate-200 rounded-md transition-all">> Benutzer</a>
|
|
<a href="<?= Config::get('BASE_URL', '/') ?>admin/settings" class="px-3 py-2 bg-emerald-500/10 text-emerald-400 rounded-md border border-emerald-500/20 transition-all">> Einstellungen</a>
|
|
</nav>
|
|
</aside>
|
|
<main class="flex-1 bg-slate-900/80 backdrop-blur-sm border border-slate-700/50 rounded-xl shadow-2xl overflow-hidden flex flex-col">
|
|
<div class="bg-slate-800/80 px-4 py-3 border-b border-slate-700/50 flex items-center gap-2">
|
|
<div class="w-3 h-3 rounded-full bg-rose-500"></div>
|
|
<div class="w-3 h-3 rounded-full bg-amber-500"></div>
|
|
<div class="w-3 h-3 rounded-full bg-emerald-500"></div>
|
|
<div class="ml-2 font-mono text-xs text-slate-400">philcore-settings.sh</div>
|
|
</div>
|
|
<div class="p-6 sm:p-8 flex-1">
|
|
<header class="mb-8 border-b border-slate-800 pb-6">
|
|
<h1 class="text-3xl font-extrabold text-transparent bg-clip-text bg-linear-to-r from-emerald-400 to-cyan-400 tracking-tight mb-2">> <?= htmlspecialchars($title) ?>_</h1>
|
|
<p class="text-slate-400 font-mono text-sm">Systemkonfiguration anpassen.</p>
|
|
</header>
|
|
<div class="space-y-6">
|
|
<div class="p-5 bg-slate-950/80 rounded-lg border border-slate-800/80 shadow-inner">
|
|
<h3 class="text-slate-500 font-mono text-xs uppercase tracking-wider mb-4">> env_variables</h3>
|
|
<div class="space-y-4">
|
|
<div>
|
|
<label class="block text-slate-400 font-mono text-sm mb-1">APP_NAME</label>
|
|
<input type="text" value="<?= htmlspecialchars(Config::get('APP_NAME', 'PhilCore')) ?>" class="w-full bg-slate-900 border border-slate-700 rounded p-2 text-emerald-400 font-mono text-sm focus:outline-none" readonly>
|
|
</div>
|
|
<div>
|
|
<label class="block text-slate-400 font-mono text-sm mb-1">GEMINI_API_KEY</label>
|
|
<input type="text" value="<?= substr(Config::get('GEMINI_API_KEY', ''), 0, 5) ?>*******************" class="w-full bg-slate-900 border border-slate-700 rounded p-2 text-emerald-400 font-mono text-sm focus:outline-none" readonly>
|
|
<p class="text-xs text-slate-500 mt-2 font-mono tracking-tighter">// Hinweis: Änderungen direkt in der .env vornehmen.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
</div>
|
|
<?php require_once __DIR__ . '/../inc/admin_footer.php'; ?>
|