Notifications

master
Seph 2024-06-27 23:08:34 +02:00
parent 8bf81bcea2
commit 52bdd3c703
1 changed files with 7 additions and 0 deletions

View File

@ -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";