forked from fa/breadcrumb-the-shire
baseline
This commit is contained in:
16
pages/admin/index($slug).php
Normal file
16
pages/admin/index($slug).php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
use MintyPHP\Support\Guard;
|
||||
use MintyPHP\Buffer;
|
||||
|
||||
Guard::requireLogin();
|
||||
|
||||
$slug = trim((string) ($slug ?? ''));
|
||||
if ($slug === '') {
|
||||
require __DIR__ . '/index().php';
|
||||
return;
|
||||
}
|
||||
|
||||
http_response_code(404);
|
||||
Buffer::set('title', t('Page not found'));
|
||||
$notFound = true;
|
||||
Reference in New Issue
Block a user