Renamed new.php to admin.php, fixed redirects
This commit is contained in:
parent
5aca0bdbf8
commit
ab07d7ab35
6 changed files with 1902 additions and 1887 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue