<?php
// remove me someday
require_once "../../../../config/settings.inc.php";
require_once "../../../../include/forms.php";

/* Get some stuff from our request */
$year = get_int404("year", 2008);
$wfo = isset($_GET["wfo"]) ? substr(xssafe($_GET["wfo"]),0,3) : "DMX";
$eventid = get_int404("eventid", 13);
$phenomena = isset($_GET["phenomena"]) ? substr(xssafe($_GET["phenomena"]),0,2) : "TO";
$significance = isset($_GET["significance"]) ? substr(xssafe($_GET["significance"]),0,1) : "W";

/* Generate URL for forwarding */
$uri = sprintf("/vtec/?wfo=%s&year=%s&phenomena=%s&significance=%s&eventid=%04d",
  $wfo, $year, $phenomena, $significance, $eventid);

header("Location: $uri");
