Home / 1.888.815.8599 Think Computer Foundation Logo  
Contact Us
$value) { if ($result = detectProblem($field, $value)) { array_push($problem[$i], $result); $issues++; } } } // if ($issues) { if (isset($notify) && $notify) { $string = "Mail Injection Notification\n"; $string .= "---------------------------\n\n"; $string .= 'Attacker: ' . gethostbyaddr($_SERVER['REMOTE_ADDR']) . ' (' . $_SERVER['REMOTE_ADDR'] . ")\n"; $string .= 'Victim: ' . $_SERVER['HTTP_HOST'] . "\n"; $string .= 'Referring Page: ' . $_SERVER['HTTP_REFERER'] . "\n"; $string .= 'User Agent Signature: ' . $_SERVER['HTTP_USER_AGENT'] . "\n"; $string .= 'HTTP Request Method: ' . $_SERVER['REQUEST_METHOD'] . "\n"; $string .= 'HTTP Request URI: ' . $_SERVER['REQUEST_URI'] . "\n"; if (! $_SERVER['HTTP_USER_AGENT']) { $string .= "\n"; $string .= '[No HTTP User Agent Found.]'; } for ($i = 0; $i < count($scan); $i++) { // if (count($problem[$i])) { $string .= "\n\n"; $string .= $display[$i] . ' Affected Fields: ' . implode(', ', $problem[$i]) . "\n"; $string .= $display[$i] . " Contents:\n\n"; $string .= "---\n\n"; $string .= print_r($scan[$i], TRUE) . "\n\n"; $string .= "---\n\n"; // } } mail('Think Computer Corporation ', 'Mail Injection Notification', $string, "From: $notify"); // } if ($issues) return FALSE; } return TRUE; } $table = array('name' => 'contactus'); $form = array('name' => 'contactus', 'fields' => array('firstname', 'lastname', 'organization', 'phone', 'email', 'rating', 'improve', 'information', 'comments'), 'required' => array(TRUE, TRUE, FALSE, TRUE, TRUE, FALSE, FALSE, FALSE, FALSE), 'error' => array('any', 'any', 'any', 'any', 'email', 'drop', 'any', 'any', 'any')); function sendemail() { $message = "Contact Us Form\n"; $numberDashes = strlen($message); for ($i = 1; $i < $numberDashes; $i++) { $message .= "-"; } $message .= "\n\n"; $message .= $_POST['firstname'] . ' ' . $_POST['lastname'] . " filled in the following information on the Contact Us form:\n\n"; $message .= "First Name: $_POST[firstname]\n"; $message .= "Last Name: $_POST[lastname]\n"; $message .= "Organization: $_POST[organization]\n\n"; $message .= "Phone: $_POST[phone]\n"; $message .= "E-Mail: $_POST[email]\n\n"; $message .= "How would you rate this web site?\n"; $message .= "$_POST[rating]\n\n"; $message .= "Is there anything that we could do to improve?\n"; $message .= "$_POST[improve]\n\n"; $message .= "Would you like more information on any particular products or services?\n"; $message .= "$_POST[information]\n\n"; $message .= "Please type in any additional comments.\n"; $message .= "$_POST[comments]\n\n"; $message .= "----------------------------\n"; $message .= "http://www.thinkcomputer.org"; mail("Think Computer Foundation ", "Contact Us Form", $message, "From: $_POST[firstname] $_POST[lastname] <$_POST[email]>"); echo "

\n"; echo " Thank you! We'll get back to you as soon as we can.

\n\n"; echo "

\n"; echo " Use the links on the left-hand side of the page to continue navigating around our web site. Thanks for visiting!

\n\n"; } $security = array('read' => TRUE, 'add' => TRUE); if ($_POST['submit']) { if (! checkInjection() || errorCheck($form['fields'], $form['required'], $form['error'])) { form($form, $table, $security); } else { sendemail(); } } else { form($form, $table, $security); } ?>
 

Foundation Links
Autism / Old PCs / Discuss / Donate / About

 
Copyright © 1998- Think Computer Foundation. All Rights Reserved.