mirror of
https://github.com/ShaYmez/FreeSTAR-Status-Engine.git
synced 2024-11-08 12:35:59 -05:00
added really simple privacy policy and install proccedure
This commit is contained in:
parent
d2c28e6ae7
commit
a56e6ae8ef
12
install.php
12
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))
|
||||
<div class=""><label for="who_we_are"><?php echo _("Who we are");?>: </label><textarea class="form-control" id="who_we_are" rows="3" name="who_we_are" placeholder="<?php echo _("Some info about yourself");?>" value="<?php echo ((isset($_POST['who_we_are']))?htmlspecialchars($_POST['who_we_are'], ENT_QUOTES):'');?>"></textarea></div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="install-section clearfix">
|
||||
<h2><?php echo _("Telegram");?></h2>
|
||||
<summary><?php echo _("You can provide a subscription feature through telegram.");?></summary>
|
||||
|
||||
<div class="form-group clearfix">
|
||||
<div class="col-sm-6"><label for="tgtoken"><?php echo _("Telegram bot API Token");?>: </label><input type="text" name="tgtoken" value="<?php echo ((isset($_POST['tgtoken']))?htmlspecialchars($_POST['tgtoken'], ENT_QUOTES):'');?>" id="tgtoken" placeholder="<?php echo _("Telegram Bot API Token");?>" class="form-control" required></div>
|
||||
<div class="col-sm-6"><label for="tgbot"><?php echo _("Telegram Bot Username");?>: </label><input type="text" name="tgbot" value="<?php echo ((isset($_POST['tgbot']))?htmlspecialchars($_POST['tgbot'], ENT_QUOTES):'');?>" id="tgbot" placeholder="<?php echo _("Telegram Bot Username");?>" class="form-control" required></div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</section>
|
||||
<section class="install-section clearfix">
|
||||
<div class="form-group clearfix">
|
||||
<div class="col-sm-12"><label for="url"><?php echo _("External Policy Url");?>: </label>
|
||||
|
21
policy.php
21
policy.php
@ -38,5 +38,26 @@
|
||||
echo "<h2>" . _("Contact") . "</h2>";
|
||||
echo "##name## <br>";
|
||||
echo "##email## <br>";
|
||||
echo '<h2>' . _("Privacy Policy") . '</h2>';
|
||||
echo '<h3>' . _("General") . "</h3>";
|
||||
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.
|
||||
") . "<br><br>";
|
||||
echo _("In collaboration with our hosting provider we try our best to protect our
|
||||
databases against access from third parties, losses, misuse or forgery.
|
||||
") . "<br><br>";
|
||||
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.
|
||||
") . "<br><br>";
|
||||
echo "<h3>" . _("Cookies") . "</h3>";
|
||||
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();
|
||||
|
Loading…
Reference in New Issue
Block a user