diff --git a/feedback-submit.php b/feedback-submit.php --- a/feedback-submit.php +++ b/feedback-submit.php @@ -94,6 +94,11 @@ Deployment = $fromdom mail($toaddr, $subject, $message, $from); } + if($feedback_disk_log) { + $file = fopen($feedback_disk_log_file,'a') or die("Can't open file."); + fwrite($file, $message . "----------------------------------------\n"); + fclose($file); + } echo '

Thanks for helping make SlatePermutate better. Your feedback is greatly appreciated.

'; echo '

We will attempt to respond via email if your feedback lends itself to a response.

'; } diff --git a/inc/config.inc.example b/inc/config.inc.example --- a/inc/config.inc.example +++ b/inc/config.inc.example @@ -122,3 +122,15 @@ * whole concept may appear silly ;-). */ /* $qtips_always = FALSE; */ + + +/** + * \brief + * Specify whether or not to log feedback to disk + * + * Set to TRUE to log to file in addition to email logging (if available). + * $feedback_disk_log_file must be set to a fully-qualified filepath. + * + */ +/* $feedback_disk_log = TRUE; */ +/* $feedback_disk_log_file = "/var/log/sp-feedback.log"; */