From 67a327cfda19e0a11399a036917a3d00d5b12904 Mon Sep 17 00:00:00 2001 From: Joey Schulze Date: Thu, 28 Jun 2018 14:32:52 +0200 Subject: [PATCH] Add configuration to display data protection statement --- lib/functions.inc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/functions.inc b/lib/functions.inc index fb3b453..19c83c8 100644 --- a/lib/functions.inc +++ b/lib/functions.inc @@ -27,6 +27,7 @@ $pages = array('logout.html' => array('lib' => 'login.inc', 'func' => 'process_new'), 'bookmark.html' => array('lib' => 'bookmarks.inc', 'func' => 'process_bookmark'), + 'datenschutz.html' => array('func' => 'show_datenschutz'), 'contact.html' => array('func' => 'process_contact'), 'sitemap.html' => array('lib' => 'layout.inc', 'func' => 'layout_sitemap'), @@ -103,6 +104,13 @@ function dispatch() return layout_page($body); } +function show_datenschutz() +{ + $body = load_template('datenschutz.html'); + + return $body; +} + function tagcloud_min() { $query = 'SELECT count(uid) AS count FROM zeitung_tags GROUP BY zeitung,tag ORDER BY count ASC LIMIT 1'; -- 2.20.1