Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloud.com.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJos Poortvliet <jospoortvliet@gmail.com>2020-12-09 13:53:36 +0300
committerJos Poortvliet <jospoortvliet@gmail.com>2020-12-09 13:53:36 +0300
commit44959bf965b678fca2c4f7751aed3ac30909483d (patch)
tree6855e85ef13d6b12ac992571ca8ce6a6ab72b65d /page-whitepaper-submit.php
parentbdbacdbb644f50640f04a22b5b5464080aef8a56 (diff)
Disable logging, no need
Signed-off-by: Jos Poortvliet <jospoortvliet@gmail.com>
Diffstat (limited to 'page-whitepaper-submit.php')
-rw-r--r--page-whitepaper-submit.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/page-whitepaper-submit.php b/page-whitepaper-submit.php
index 416018af..0fab97cf 100644
--- a/page-whitepaper-submit.php
+++ b/page-whitepaper-submit.php
@@ -82,14 +82,14 @@ try {
$headers = "From: ".$email_from."\r\n".
'Reply-To: '.$email_from."\r\n" .
'Content-Type: text/plain; charset=UTF-8'."\r\n";
-// store in log
- $data = [
- 'to' => $email_to,
- 'subject' => $email_subject,
- 'message' => $email_message,
- 'headers' => $headers,
- ];
- file_put_contents('/var/log/whitepapers.txt', json_encode($data) . PHP_EOL, FILE_APPEND | LOCK_EX);
+// store in log (we could enable this for debugging but it is otherwise not really useful so let's keep it off)
+// $data = [
+// 'to' => $email_to,
+// 'subject' => $email_subject,
+// 'message' => $email_message,
+// 'headers' => $headers,
+// ];
+// file_put_contents('/var/log/whitepapers.txt', json_encode($data) . PHP_EOL, FILE_APPEND | LOCK_EX);
// Send the email
@mail($email_to, $email_subject, $email_message, $headers);