From a56e6ae8ef155278d5d7eaa55f3b470a42fd6558 Mon Sep 17 00:00:00 2001 From: jhuesser Date: Thu, 7 Jun 2018 22:11:28 +0200 Subject: [PATCH] added really simple privacy policy and install proccedure --- install.php | 12 ++++++------ policy.php | 21 +++++++++++++++++++++ 2 files changed, 27 insertions(+), 6 deletions(-) diff --git a/install.php b/install.php index b497da9..3e148bb 100644 --- a/install.php +++ b/install.php @@ -111,12 +111,14 @@ if(isset($_POST['server']) && empty($message)) if (empty($message)) { - //Create config + $fullname = $_POST['surname'] . " " . $_POST['name']; + //Create config & privacy policy $config = file_get_contents("config.php.template"); + $policy = file_get_contents("policy.php"); $config = str_replace("##name##", $_POST['servername'], $config); $config = str_replace("##title##", $_POST['title'], $config); $config = str_replace("##url##", $_POST['url'], $config); - $config = str_replace("##mailer##", $_POST['mailer'], $config); + $policy = str_replace("##mailer##", $_POST['mailer'], $policy); $config = str_replace("##mailer_email##", $_POST['mailer_email'], $config); $config = str_replace("##server##", $_POST['server'], $config); $config = str_replace("##database##", $_POST['database'], $config); @@ -132,6 +134,7 @@ if(isset($_POST['server']) && empty($message)) $config = str_replace("##policy_url##", $policy_url_conf, $config); $config = str_replace("##tg_bot_token##", $_POST['tgtoken'], $config); $config = str_replace("##tg_bot_username##", $_POST['tgbot'], $config); + $policy = str_replace("##name##", $fullname, $policy); file_put_contents("config.php", $config); @@ -248,17 +251,14 @@ if (!empty($message))
-

-
" class="form-control" required>
" class="form-control" required>
-
- +
diff --git a/policy.php b/policy.php index 8b1d41a..d595653 100644 --- a/policy.php +++ b/policy.php @@ -38,5 +38,26 @@ echo "

" . _("Contact") . "

"; echo "##name##
"; echo "##email##
"; + echo '

' . _("Privacy Policy") . '

'; + echo '

' . _("General") . "

"; + echo _("General + Based on article 13 of the Swiss Federal Constitution and the and the data protection provisions of the Swiss Confederation + (Federal Act on Data Protection, FADP), every person has the right to be protected against the misuse of their personal + data and privacy. We stick to this law. Personal information is kept strictly confidential and will not passed or sold to third parties. + ") . "

"; + echo _("In collaboration with our hosting provider we try our best to protect our + databases against access from third parties, losses, misuse or forgery. + ") . "

"; + echo _("If you access our websites, the following informations will be saved: IP-address, Date, Time, Browser queries, + General informations about your browser, operating system and all search queries on the sites. + This user data will be used for anonym user statistics to recognize trends and improve our content. + ") . "

"; + echo "

" . _("Cookies") . "

"; + echo _("This site uses cookies – small text files that are placed on your machine to help the site provide a better user experience. + In general, cookies are used to retain user preferences, store information for things like shopping carts, + and provide anonymised tracking data to third party applications like Google Analytics. + As a rule, cookies will make your browsing experience better. However, you may prefer to disable cookies on this site and on others. + The most effective way to do this is to disable cookies in your browser. We suggest consulting the Help section of your browser + or taking a look at the About Cookies website which offers guidance for all modern browsers"); Template::render_footer();