summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-06-15 11:30:50 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-06-15 11:30:50 -0400
commitd564f9002e831d3e8a0dd3539e1a14689d34b624 (patch)
tree5fc229e146fb87fe855e3b21c8bb2f8f291005a6
parent88a92fc07979d229bd71719a52c3cbb6539e54fb (diff)
downloadthemesite-d564f9002e831d3e8a0dd3539e1a14689d34b624.tar.gz
themesite-d564f9002e831d3e8a0dd3539e1a14689d34b624.zip
themes: Make outbound email address configurable.
-rw-r--r--private/config.inc.php4
-rw-r--r--private/themesite.class.php2
2 files changed, 4 insertions, 2 deletions
diff --git a/private/config.inc.php b/private/config.inc.php
index 69f7680..46abf71 100644
--- a/private/config.inc.php
+++ b/private/config.inc.php
@@ -32,7 +32,7 @@ class config {
// Fully qualified hostname of your server. Without trailing slash or path.
// Including http://
- const hostname = "http://themes.rockbox.org";
+ const hostname = "https://themes.rockbox.org";
// Path to the theme site, relative to your server's document root, without trailing slash (might be '')
const path = "";
@@ -66,6 +66,8 @@ class config {
// Public key for recaptcha
const recaptchakey = "6LfwAQsAAAAAAPrqZMNC_G_gKbFNf2gP2P2YmXQs";
+ // Outbound email address
+ const outboundemail = "rockbox-themes-noreply@shaftnet.org";
}
?>
diff --git a/private/themesite.class.php b/private/themesite.class.php
index 1b10833..8e6bc6d 100644
--- a/private/themesite.class.php
+++ b/private/themesite.class.php
@@ -548,7 +548,7 @@ END;
private function send_mail($subject, $to, $msg) {
$msg = wordwrap($msg, 78);
- $headers = 'From: themes@rockbox.org';
+ $headers = sprintf("From: %s", config::outboundemail);
mail($to, $subject, $msg, $headers);
}