Changeset - 8f5f454f9dd4
[Not reviewed]
default
0 2 0
Ethan Zonca - 15 years ago 2011-03-29 21:33:19
ez@ethanzonca.com
Added feedback logging to disk
2 files changed with 17 insertions and 0 deletions:
0 comments (0 inline, 0 general)
feedback-submit.php
Show inline comments
 
@@ -91,10 +91,15 @@ Deployment = $fromdom
 
    /* $feedback_emails has its default set in inc/class.page.inc, can be set in config.inc */
 
    foreach($feedback_emails as $toaddr)
 
      {
 
	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 '<p>Thanks for helping make SlatePermutate better. Your feedback is greatly appreciated.</p>';
 
    echo '<p>We will attempt to respond via email if your feedback lends itself to a response.</p>';
 
  }
 
    $feedbackpage->foot();
inc/config.inc.example
Show inline comments
 
@@ -119,6 +119,18 @@
 
 * The qTip is the little black box which tells a user to enter a
 
 * course number into the input page. For casual users, it directs the
 
 * attention to where the user should start. For advanced users, the
 
 * 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"; */
0 comments (0 inline, 0 general)