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-15 13:15:22 +0300
committerJos Poortvliet <jospoortvliet@gmail.com>2020-12-15 13:15:22 +0300
commit3895f0992d35b21a684897036b0ac1f5604d87bd (patch)
tree7d5d8a5997e3db7e5d4168054fbb0cba648c2c9a /page-whitepaper-submit.php
parent270431fd7721b1f07c92100f3b5588362c1f4a6c (diff)
enable logging (no personal data!)
Signed-off-by: Jos Poortvliet <jospoortvliet@gmail.com>
Diffstat (limited to 'page-whitepaper-submit.php')
-rw-r--r--page-whitepaper-submit.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/page-whitepaper-submit.php b/page-whitepaper-submit.php
index b548cafb..d3a9f9a6 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 (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,
+// store in log, to track how much and what is downloaded
+ $data = [
+// 'to' => $email_to, // we could enable this for debugging but it is otherwise not really useful so let's keep it off
+ 'subject' => $email_subject,
// 'message' => $email_message,
// 'headers' => $headers,
-// ];
-// file_put_contents('/var/log/whitepapers.txt', json_encode($data) . PHP_EOL, FILE_APPEND | LOCK_EX);
+ ];
+ 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);