File:  [mozdev] / calculator / www / contact.html
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Sat Apr 22 18:12:32 2006 UTC (11 years, 6 months ago) by imarc
Branches: MAIN
CVS tags: HEAD
*** empty log message ***

<!-- $Id: contact.html,v 1.2 2006/04/22 18:12:32 imarc Exp $ -->
<!-- MAIN CONTENT -->
<h5 class="page-header">Contact</h5>
<?php
$header = "Calculator Bug Report";

extract($_POST);

if ($addy && $bdy) {

	// Weak rot13 encryption to keep spam webcrawlers from seeing the real email address in the CVS source.
	$mailto = str_rot13("zbmvyyn@zneporyzbag.pbz");

	// Add the UserAgent info from the submitters browser.
	$bdy .= "\n\nBrowser Info: ".$HTTP_USER_AGENT;
	$bdy .= "\nIP Address: ".$REMOTE_ADDR;

	mail($mailto, $header, $bdy, "From: $addy");
	$error = "Your message has been sent.";
	unset($addy,$header,$bdy);
	$hideform = 1;

}
elseif (!$addy && $bdy) {
	$error = "You must enter a valid email address.";
}


?>

<div id="contact-main-content" class="contact-content">
<form method="post" action="http://calculator.mozdev.org/contact.html">
<script type="text/javascript">
<!--
var submitcount=0;
function checkSubmit() {
        if (submitcount == 0) {
                submitcount++;
                return true;
        }
        else {
                return false;
        }
}
//-->
</script>
<p>The form below allows you to contact the calculator team if you have comments, patches, bug reports, etc.
Please enter your email address and your comment in the box below and we will get back to you as soon as possible.
<p>

<p><fieldset class="contact-fieldset">
<legend><b>Questions, Comments, Suggestions???</b></legend>
<div style="color: red;"><b><?php print $error;?></b></div>
<?php if (!$hideform) { ?>
<br><b>Email Address</b> (Please use a real one):
<br><input type="text" name="addy" size="70" value="<?php print $addy;?>">
<br><br><b>Subject:</b>
<br><input type="text" name="header" size="70" onclick="value='';" value="<?php print $header;?>">
<br><br><b>Please type your comment in the box below:</b>
<br><textarea cols="70" rows="16" name="bdy"><?php print $bdy;?></textarea>
<br><input type="button" value="Submit Comment" onclick="if (checkSubmit()) { this.form.submit(); }">
<?php } ?>
</fieldset>
</form>
</div>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>