<?php
	if (isset ($clicked)) {
		StripSlashes ($message);
		StripSlashes ($subject);

		if (!$subject)
			$subject = "No subject!";

		mail ("quakeforge-users@lists.quakeforge.net", StripSlashes ($subject), StripSlashes ($message), "From: $sender\r\nReply-To: $sender\r\n");
		header ("Location: http://www.quakeforge.net/thanks.php");
		exit;
	}

	// Preamble
	$pageName = "Contact Us";

	require "parts/preamble.php";		// Load most of document
?>
<!--SEARCHME-->
<H4>Electronic Mail</H4>

<P>Please direct support questions to the
<A href="mailto:quakeforge-users@lists.quakeforge.net">QuakeForge Users</A> mailing list.

<P>If you have ideas about new features for QuakeForge or wish to help in
development, you can contact the QuakeForge developers via the
<A href="mailto:quakeforge-devel@lists.quakeforge.net">QuakeForge Development</A>
mailing list.

<H4>Internet Relay Chat</H4>

<P>The QuakeForge developers maintain an IRC 
<A href ="irc://irc.quakeforge.net/quakeforge">channel</A>,
#QuakeForge, on irc.quakeforge.net (irc.oftc.net).

<H4>Contact form</H4>

<P>Send a message to the QuakeForge team. Be sure to include a valid email address
if you expect a reply.<br>

<FORM>
	<TABLE cellPadding="0" cellSpacing="0">
		<TR>
			<TD>
				<P>Your email address: <BR>
				<SPAN class="smallText">(will not be used for any purpose other than to send this email)</SPAN><BR>
				<INPUT type="text" name="sender" size="32">
			</TD>
			<TD vAlign="bottom" align="right">
				<DIV align="right"><INPUT type="submit" name="clicked" value="Send Message"></DIV>
			</TD>
		</TR>
		<TR>
			<TD colSpan="2">
				<P>Subject:<BR>
				<INPUT type="text" name="subject" size="66" maxLength="72">

				<P>Message:<BR>
				<TEXTAREA name="message" cols="64" rows="16"></TEXTAREA>
			</TD>
		</TR>
	</TABLE>
</FORM>
