<?php 

$utils = "@HTDOCS@/www-util"; 
include "$utils/ipp.php";
include_once "$utils/markdown.php";

// if we come in directly, the top-level directory should be /dvodist
// if we come in from the ippops1 proxy, we need to set the root to /
$realHost = "ipp.ifa.hawaii.edu";

// is the request coming from our proxy?
if ($_SERVER['SERVER_NAME'] == $realHost) {
  $rootdir = "@ROOTWWW@";
} else {
  $rootdir = "@ROOTWWW@@ROOTDIR@";
}

menu("$utils/ippdata.menu.dat", 'Pan-STARRS 1 Data Distribution Server', $rootdir, "$rootdir/ipp.css", '', '');

$script = basename($_SERVER[SCRIPT_NAME]);
do_markdown ($script, $rootdir);

menu_end();
?>
