Commit deca74d5 authored by Leigh Stoller's avatar Leigh Stoller

Minor changes in error termination to make sure page footers are spit

out.
parent c6a53c77
......@@ -68,7 +68,6 @@ function GENKEY ($name) {
function TBERROR ($message, $death) {
global $TBMAIL_WWW;
if (1) {
mail($TBMAIL_WWW,
"TESTBED ERROR REPORT",
"\n".
......@@ -77,20 +76,21 @@ function TBERROR ($message, $death) {
"Testbed WWW\n",
"From: $TBMAIL_WWW\n".
"Errors-To: $TBMAIL_WWW");
}
# Allow sendmail to run.
sleep(2);
if ($death) {
ENDPAGE();
echo "</body>
</html>";
die("<br><br><h3>".
"$message <p>".
"Could not continue. Please contact ".
"<a href=\"mailto:testbed-www@flux.cs.utah.edu\">".
"Testbed WWW (testbed-www@flux.cs.utah.edu)</a>.".
"</h3><p>");
echo "<h3><br><br>
$message
<br>
</h3>";
echo "<p><p>
Could not continue. Please contact $TBMAILADDR\n";
PAGEFOOTER();
die("");
}
return 0;
}
......@@ -110,9 +110,7 @@ function USERERROR($message, $death) {
if you feel this message is an error.";
if ($death) {
ENDPAGE();
echo "</body>
</html>";
PAGEFOOTER();
die("");
}
}
......
......@@ -43,7 +43,7 @@
// the web-server again (such as where the document contents
// change dynamically) we would pass the argument as 'true'.
//
window.location.reload( false );
window.location.reload( true );
}
//-->
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment