2) { $ctt = $ct - 3; $domain = strtolower($domainarr[$ctt]); } else { $domain = "nrao"; // we can't figure this out, should not happen } switch ($domain) { case gb: // print "GB"; $email = "wbaudler@nrao.edu"; break; case cv: // print "CV"; $email = "pmurphy@nrao.edu"; break; case aoc: // print "AOC"; $email = "switz@nrao.edu"; break; case vla: // print "VLA"; $email = "switz@nrao.edu"; break; case vlba: // print "VLBA"; $email = "switz@nrao.edu"; break; case archive: // print "archive"; $email = "switz@nrao.edu"; break; case tuc: // print "tuc"; $email = "jmangum@nrao.edu"; break; case casa: // print "casa"; $email = "jott@nrao.edu"; break; default: // print "default"; $email = "pmurphy@nrao.edu"; break; } mail($email, "Dead Link", "machine: " . $_POST["machine"] . "\n" . "badurl: " . $_POST["badurl"] . "\n" . "refurl: " . $_POST["refurl"] . "\n" . "email: " . $_POST["email"] . "\n" . "comments:\n\n" . $_POST["comments"] . "\n\n" . "PROTOCOL: " . $_SERVER["SERVER_PROTOCOL"] . "\n" . "REMOTE IP: " . $_SERVER["REMOTE_ADDR"] . "\n" . "Debug: hostname=" . $hostname . "\n", // " ct=" . $ct . "\n" . // " ctt=" . $ctt . "\n" . // " domain=" . $domain . "\n" , empty($_POST["email"]) ? "" : "Reply-To: " . $_POST["email"] . "\r\n" ); include_once "nrao-header.html"; print "Bug Report Received"; include_once "nrao-nav1.html"; print ""; include_once "nrao-nav2nomenu.html"; print "

Bug Report Received

"; print "

Your error report has been sent.

"; print "

It should be fixed shortly. Thank you.

"; # for testing only, remove for production print ""; include_once "nrao-trailer.html"; include_once "nrao-end.html"; } // else // { print "Nasty spammer."; // } curl_close ($ch); } else { include_once "nrao-header.html"; print "Broken Link"; include_once "nrao-nav1.html"; // Does Page have referrer? if ( isset($_SERVER["HTTP_REFERER"]) ) { print ""; include_once "nrao-nav2nomenu.html"; // check if referer is one of ours $url = parse_url($_SERVER["HTTP_REFERER"]); $refdom = strtolower($url["host"]); if ( strpos($refdom, "nrao.edu") || strpos($refdom, "aui.edu") ) { // dead NRAO URL ?>

Broken Link

You have encountered a dead link or another problem with this NRAO web server. Please submit a short bug report including the URL that caused this error to show up.

Note: If you want feedback about this problem, you have to enter your email address as well. According to our privacy policy, your email address will only be used to address this problem. Thanks.

"> "> ">


Your browser:

Bad URL:

Referring URL:

Your email address (if you want a response):

Comments (optional):

Page unavailable"; include_once "nrao-nav1.html"; print ""; include_once "nrao-nav2nomenu.html"; print "

This URL does no longer exist.

"; print "

Most likely the page was moved/removed a while ago. You may want to contact the owner"; print " of the page that sent you here that his/her page contains outdated links."; ?>

Your browser:

Bad URL:

Referring URL:

Not Found"; include_once "nrao-nav1.html"; print ""; include_once "nrao-nav2nomenu.html"; print "

This URL does not exist

"; print "

The URL you typed does not exist. Please check that you typed your URL correctly."; } include_once "nrao-trailer.html"; include_once "nrao-end.html"; } ?>