diff --git a/theme/inc/config-routing.php b/theme/inc/config-routing.php index d978169..c41f2c2 100644 --- a/theme/inc/config-routing.php +++ b/theme/inc/config-routing.php @@ -15,6 +15,7 @@ add_filter('generate_rewrite_rules', function ($wp_rewrite) { ['sks/?$' => 'index.php?wowpress_page=sks'], ['sks/([A-Za-z-0-9 ]+)?$' => 'index.php?wowpress_page=sks&list_name=$matches[1]'], ['logs/?$' => 'index.php?wowpress_page=logs'], + ['db/?$' => 'index.php?wowpress_page=db'], ['kummerkasten/?$' => 'index.php?wowpress_page=complaints'], ['kummerkasten/(\d+)/?$' => 'index.php?wowpress_page=complaints&complaint_id=$matches[1]'], @@ -41,6 +42,12 @@ add_action('template_redirect', function () { switch ($page) { + case 'db': + isAllowed('wowpress_edit_site'); + wowpress_database(); + header('Location: /'); + die; + break; case 'complaints': isAllowed('wowpress_view_complaints'); $GLOBALS['wowpress']['page_title'] = "Kummerkasten";