#include <infodrom.style>
#include <linx.style>
#include <addresses.inc>

<?
  if (strpos($_POST['subject'], 'http://') !== false ||
      strpos($_POST['category'], 'http://') !== false ||
      strpos($_POST['keywords'], 'http://') !== false ||
      strpos($_POST['description'], 'http://') !== false) {
    header ("Location: submit.html");
    exit(0);
  }
?>

<page title="Infodrom Linx">
<linxtop>

<h3>Submit a link</h3>

<?

  $header = "From: Infodrom Linx <linx@<joey host>>";
<protect>
  $body = "URL        : " . $_POST['url'] . "\n"
	 ."Subject    : " . $_POST['subject'] . "\n"
	 ."Category   : " . $_POST['category'] . "\n"
	 ."Keywords   : " . $_POST['keywords'] . "\n"
	 ."Description: " . $_POST['description'] . "\n"
	 ."\n"
	 ."HTTP_USER_AGENT: " . $_SERVER['HTTP_USER_AGENT'] . "\n"
	 ."REMOTE_ADDR    : " . $_SERVER['REMOTE_ADDR'] . "\n"
	 ."SCRIPT_URI     : " . $_SERVER['SCRIPT_URI'] . "\n";

</protect>
  mail ("joey@luonnotar.infodrom.org", "Neue URL", $body, $header);

?>

<p>Thanks for your submission.
<p>The URL has been scheduled for inclusion.

<linxbot>
</page>

# Local variables:
# mode: indented-text
# mode: auto-fill
# end:
