diff --git a/index.php b/index.php index 2a324b4..23d418f 100644 --- a/index.php +++ b/index.php @@ -18,6 +18,7 @@ dcPage::check(dcCore::app()->auth->makePermissions([dcAuth::PERMISSION_ADMIN])); $o = new dcAliases(); $aliases = $o->getAliases(); +$part = $_REQUEST['part'] ?? 'list'; # Update aliases if (isset($_POST['a']) && is_array($_POST['a'])) { @@ -49,50 +50,80 @@ if (isset($_POST['alias_url'])) {
'', - __('Aliases') => '', -]) . -dcPage::notices() . - -'' . __('No alias') . '
'; +if ($part == 'new') { + echo + dcPage::breadcrumb([ + __('Plugins') => '', + __('Aliases') => dcCore::app()->adminurl->get('admin.plugin.alias', ['part' => 'list']), + __('New alias') => '', + ]) . + dcPage::notices() . + '' . dcCore::app()->formNonce() . '
' . -'