<?php
// PyukiWiki PHP wrapper sample
// $Id: index.php,v 1.86 2011/10/30 20:49:52 papu Exp $
// Code: EUC-JP

// URLを変更
define('LOCATION', "http://pyukiwiki.sourceforge.jp/cgi-bin/wiki.cgi");


/////////////////////////////////////////////////
// QUERY_STRINGを取得 from PukiWiki

$arg = '';
if (isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING']) {
	$arg = & $_SERVER['QUERY_STRING'];
} else if (isset($_SERVER['argv']) && ! empty($_SERVER['argv'])) {
	$arg = & $_SERVER['argv'][0];
}

if($arg == "") {
	$url=LOCATION;
} else {
	$url=LOCATION . '?' . $arg;
}
header('HTTP/1.1 302 Moved Temporarily');
header("Location: $url");

?>

