<?php
require "../../mkdp.php";
header ('HTTP/1.1 301 Moved Permanently');

$th = $_REQUEST['th'];
if ($tsn = lib_util::urlconv_from_old ($th, '_onayamifree'))
{
  header ('HTTP/1.1 301 Moved Permanently');
  header ("location: http://".$_SERVER['HTTP_HOST']."/threadres/$tsn/");
  exit;
}
else
{
  header ('HTTP/1.1 301 Moved Permanently');
  header ("location: http://".$_SERVER['HTTP_HOST']."/threadres/".$_REQUEST['thno']."/");
  exit;
}

