Vollständiges, schlankes PHP/SQLite-CMS für IT-, KI- und Gaming-Inhalte: - Core: DB-Singleton, Auth mit Passwort-Hashing, Session-Cookies, CSRF-Schutz, Login-Rate-Limit, Bild-Upload mit serverseitiger Validierung - Admin: Dashboard, Artikel/Seiten-Verwaltung mit Quill WYSIWYG-Editor, Kategorien, Navigation (Drag & Drop), Medienbibliothek, Profil - Frontend: Responsive Dark-Theme, Artikel-Grid, Kategorie-Filter, Archiv, Paginierung, SEO-Meta-Tags - Sicherheit: Prepared Statements, HTML-Sanitizer, .htaccess-Schutz für sensible Verzeichnisse, PHP-Ausführungsschutz im Upload-Ordner - Installation: install.php erstellt DB-Schema und Admin-Account https://claude.ai/code/session_01Xsg4j2t4S9goMuWVpF3ezG
16 lines
574 B
PHP
16 lines
574 B
PHP
<?php if ($pag['total_pages'] > 1): ?>
|
|
<nav class="pagination">
|
|
<?php if ($pag['current_page'] > 1): ?>
|
|
<a href="?page=<?= $pag['current_page'] - 1 ?>">« Zurück</a>
|
|
<?php endif; ?>
|
|
|
|
<?php for ($i = 1; $i <= $pag['total_pages']; $i++): ?>
|
|
<a href="?page=<?= $i ?>" class="<?= $i === $pag['current_page'] ? 'active' : '' ?>"><?= $i ?></a>
|
|
<?php endfor; ?>
|
|
|
|
<?php if ($pag['current_page'] < $pag['total_pages']): ?>
|
|
<a href="?page=<?= $pag['current_page'] + 1 ?>">Weiter »</a>
|
|
<?php endif; ?>
|
|
</nav>
|
|
<?php endif; ?>
|