Removed Telegram and email notification setup from install routine.

In prepearing to move the config.php options to db options, the following config
options have been removed from config.php

- SUBSCRIBE_TELEGRAM
- SUBSCRIBE_EMAIL
- TG_BOT_API_TOKEN
- TG_BOT_USERNAME
- GOOGLE_RECAPTCHA
- GOOGLE_RECAPTCHA_SITEKEY
- GOOGLE_RECAPTCHA_SECRET
- PHP_MAILER
- PHP_MAILER_PATH
- PHP_MAILER_SMTP
- PHP_MAILER_HOST
- PHP_MAILER_PORT
- PHP_MAILER_SECURE
- PHP_MAILER_USER
- PHP_MAILER_PASS
- CRON_SERVER_IP
This commit is contained in:
Thomas Nilsen
2020-08-19 23:24:32 +02:00
parent 5a275f32d5
commit 23dc109764
2 changed files with 1 additions and 30 deletions
+1 -14
View File
@@ -6,8 +6,6 @@ define("MINIMUM_PHP_VERSION", "5.4.0");
define("POLICY_URL", "policy.php"); //Default policy URL
define("CUSTOM_LOGO_URL","");
define("COPYRIGHT_TEXT","");
define('SUBSCRIBE_EMAIL', false);
define('SUBSCRIBE_TELEGRAM', false);
require_once("classes/locale-negotiator.php");
require_once("classes/db-class.php");
@@ -141,9 +139,7 @@ if(isset($_POST['server']) && empty($message))
$config = str_replace("##who_we_are##", htmlspecialchars($_POST['who_we_are'], ENT_QUOTES), $config);
$policy_url_conf = ( ! empty($_POST['policy_url']) ) ? htmlspecialchars($_POST['policy_url'], ENT_QUOTES) : $_POST['url']."/policy.php";
$config = str_replace("##policy_url##", $policy_url_conf, $config);
$config = str_replace("##tg_bot_token##", htmlspecialchars($_POST['tgtoken'], ENT_QUOTES), $config);
$config = str_replace("##tg_bot_username##", htmlspecialchars($_POST['tgbot'], ENT_QUOTES), $config);
file_put_contents("config.php", $config);
include_once "create-server-config.php";
@@ -247,15 +243,6 @@ if (!empty($message))
<div class="col-sm-6"><label for="dbpassword"><?php echo _("Password");?>: </label><input type="password" name="dbpassword" value="<?php echo ((isset($_POST['dbpassword']))?htmlspecialchars($_POST['dbpassword'], ENT_QUOTES):'');?>" id="dbpassword" placeholder="<?php echo _("Password");?>" class="form-control" required></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"></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"></div>
</div>
</section>
<section class="install-section clearfix">
<h2><?php echo _("Privacy Policy");?></h2>
<summary><?php echo _("Since you are collecting personal information, the GDPR needs you to have a privacy policy. Enter the details below.");?></summary>