Renamed new.php to admin.php, fixed redirects

This commit is contained in:
hbrain 2026-06-04 14:33:29 +02:00
parent 5aca0bdbf8
commit ab07d7ab35
6 changed files with 1902 additions and 1887 deletions

View file

@ -1,7 +1,7 @@
<?php
require __DIR__ . '/auth.php';
$err = '';
$next = mvlog_safe_next((string)($_GET['next'] ?? $_POST['next'] ?? 'new.php'));
$next = mvlog_safe_next((string)($_GET['next'] ?? $_POST['next'] ?? '/admin.php'));
if (mvlog_current_user() !== null) {
header('Location: ' . $next);
exit;