Notifications
parent
8bf81bcea2
commit
52bdd3c703
|
@ -15,6 +15,7 @@ add_filter('generate_rewrite_rules', function ($wp_rewrite) {
|
||||||
['sks/?$' => 'index.php?wowpress_page=sks'],
|
['sks/?$' => 'index.php?wowpress_page=sks'],
|
||||||
['sks/([A-Za-z-0-9 ]+)?$' => 'index.php?wowpress_page=sks&list_name=$matches[1]'],
|
['sks/([A-Za-z-0-9 ]+)?$' => 'index.php?wowpress_page=sks&list_name=$matches[1]'],
|
||||||
['logs/?$' => 'index.php?wowpress_page=logs'],
|
['logs/?$' => 'index.php?wowpress_page=logs'],
|
||||||
|
['db/?$' => 'index.php?wowpress_page=db'],
|
||||||
['kummerkasten/?$' => 'index.php?wowpress_page=complaints'],
|
['kummerkasten/?$' => 'index.php?wowpress_page=complaints'],
|
||||||
['kummerkasten/(\d+)/?$' => 'index.php?wowpress_page=complaints&complaint_id=$matches[1]'],
|
['kummerkasten/(\d+)/?$' => 'index.php?wowpress_page=complaints&complaint_id=$matches[1]'],
|
||||||
|
|
||||||
|
@ -41,6 +42,12 @@ add_action('template_redirect', function () {
|
||||||
|
|
||||||
|
|
||||||
switch ($page) {
|
switch ($page) {
|
||||||
|
case 'db':
|
||||||
|
isAllowed('wowpress_edit_site');
|
||||||
|
wowpress_database();
|
||||||
|
header('Location: /');
|
||||||
|
die;
|
||||||
|
break;
|
||||||
case 'complaints':
|
case 'complaints':
|
||||||
isAllowed('wowpress_view_complaints');
|
isAllowed('wowpress_view_complaints');
|
||||||
$GLOBALS['wowpress']['page_title'] = "Kummerkasten";
|
$GLOBALS['wowpress']['page_title'] = "Kummerkasten";
|
||||||
|
|
Loading…
Reference in New Issue