Skip to content

Commit 23dc109

Browse files
committed
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
1 parent 5a275f3 commit 23dc109

File tree

2 files changed

+1
-30
lines changed

2 files changed

+1
-30
lines changed

config.php.template

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -31,26 +31,10 @@ define("POLICY_MAIL", "##policy_mail##"); //contact email in policy
3131
define("POLICY_PHONE", "##policy_phone##");
3232
define("WHO_WE_ARE","##who_we_are##");
3333
define("POLICY_URL","##policy_url##");
34-
define('SUBSCRIBE_EMAIL', true);
35-
define('SUBSCRIBE_TELEGRAM', false);
36-
define("TG_BOT_API_TOKEN", "##tg_bot_token##"); //Telegram Bot Token
37-
define("TG_BOT_USERNAME", "##tg_bot_username##"); //Telegram Bot username
3834
define("INSTALL_OVERRIDE", false);
3935
define("DEFAULT_LANGUAGE", "en_GB");
40-
define("GOOGLE_RECAPTCHA", false);
41-
define("GOOGLE_RECAPTCHA_SITEKEY", "##google_site_key##");
42-
define("GOOGLE_RECAPTCHA_SECRET", "##google_secret##");
43-
define("PHP_MAILER", false); // Enable if we are to use extenral PHPMailer() library
44-
define("PHP_MAILER_PATH", "##phpmailer_path##"); // Path to src folder of PHPMailer() library - without ending /
45-
define("PHP_MAILER_SMTP", false); // Set to true if we are to use SMTP
46-
define("PHP_MAILER_HOST", "##phpmailer_host##"); // SMTP host
47-
define("PHP_MAILER_PORT", "##phpmailer_port##"); // SMTP Port
48-
define("PHP_MAILER_SECURE", ""); // Set to TLS or SSL or leave blank for plaintext
49-
define("PHP_MAILER_USER", "##phpmailer_user##"); // SMTP Authentication user
50-
define("PHP_MAILER_PASS", "##phpmailer_pass##"); // SMTP authenticatin password
5136
define("CUSTOM_LOGO_URL",""); // This will use the default logo if left empty
5237
define("COPYRIGHT_TEXT",""); // Leave this empty if you don't want your copyright displayed
53-
define("CRON_SERVER_IP",""); // IP Address that will be used to call cron task. Leave empty if not used!
5438
// Without COPYRIGHT_TEXT Set
5539
// 2020 Server Status Project Contributors
5640
// With COPYRIGHT_TEXT Set

install.php

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
define("POLICY_URL", "policy.php"); //Default policy URL
77
define("CUSTOM_LOGO_URL","");
88
define("COPYRIGHT_TEXT","");
9-
define('SUBSCRIBE_EMAIL', false);
10-
define('SUBSCRIBE_TELEGRAM', false);
119
require_once("classes/locale-negotiator.php");
1210
require_once("classes/db-class.php");
1311

@@ -141,9 +139,7 @@
141139
$config = str_replace("##who_we_are##", htmlspecialchars($_POST['who_we_are'], ENT_QUOTES), $config);
142140
$policy_url_conf = ( ! empty($_POST['policy_url']) ) ? htmlspecialchars($_POST['policy_url'], ENT_QUOTES) : $_POST['url']."/policy.php";
143141
$config = str_replace("##policy_url##", $policy_url_conf, $config);
144-
$config = str_replace("##tg_bot_token##", htmlspecialchars($_POST['tgtoken'], ENT_QUOTES), $config);
145-
$config = str_replace("##tg_bot_username##", htmlspecialchars($_POST['tgbot'], ENT_QUOTES), $config);
146-
142+
147143
file_put_contents("config.php", $config);
148144

149145
include_once "create-server-config.php";
@@ -247,15 +243,6 @@
247243
<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>
248244
</div>
249245
</section>
250-
<section class="install-section clearfix">
251-
<h2><?php echo _("Telegram");?></h2>
252-
<summary><?php echo _("You can provide a subscription feature through telegram.");?></summary>
253-
254-
<div class="form-group clearfix">
255-
<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>
256-
<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>
257-
</div>
258-
</section>
259246
<section class="install-section clearfix">
260247
<h2><?php echo _("Privacy Policy");?></h2>
261248
<summary><?php echo _("Since you are collecting personal information, the GDPR needs you to have a privacy policy. Enter the details below.");?></summary>

0 commit comments

Comments
 (0)