From 52bdd3c703087ce055bc3983dabc8db1786eddf5 Mon Sep 17 00:00:00 2001 From: Seph Date: Thu, 27 Jun 2024 23:08:34 +0200 Subject: [PATCH] Notifications --- theme/inc/config-routing.php | 7 +++++++ 1 file changed, 7 insertions(+) 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";