Commit 7ef57e6a authored by Leigh Stoller's avatar Leigh Stoller

Seeing as Mike's club is now up to three members, lets add a confirm button.

parent 7deb603b
......@@ -11,28 +11,45 @@ include("defs.php3");
#
PAGEHEADER("Page Not Working Properly!");
$optargs = OptionalPageArguments("confirmed", PAGEARG_BOOLEAN,
"referrer", PAGEARG_STRING);
$this_user = CheckLogin($check_status);
$referrer = $_SERVER['HTTP_REFERER'];
$referrer = (isset($referrer) ? $referrer : $_SERVER['HTTP_REFERER']);
if ($this_user) {
$uid_name = $this_user->name();
$uid_email = $this_user->email();
$uid_uid = $this_user->uid();
TBMAIL($TBMAIL_OPS,
"Page Not Working Properly",
"$uid_name ($uid_uid) is reporting that page:\n\n".
" $referrer\n\n".
"is not working properly",
"From: $uid_name <$uid_email>\n".
"Errors-To: $TBMAIL_WWW");
echo "<br>
if (!isset($confirmed)) {
echo "Are you sure you want to report that something is wrong with
<b>$referrer</b><br><br>";
echo "<center>\n";
echo "<form action='pagenotworking.php' method=get>";
echo "<b><input type=hidden name=confirmed value=1></b>";
echo "<b><input type=hidden name=referrer value='$referrer'></b>";
echo "<b><input type=submit name=tag value='Submit'></b>";
echo "</form>";
echo "</center>\n";
}
else {
$uid_name = $this_user->name();
$uid_email = $this_user->email();
$uid_uid = $this_user->uid();
TBMAIL($TBMAIL_OPS,
"Page Not Working Properly",
"$uid_name ($uid_uid) is reporting that page:\n\n".
" $referrer\n\n".
"is not working properly",
"From: $uid_name <$uid_email>\n".
"Errors-To: $TBMAIL_WWW");
echo "<br>
Thanks! A message has been sent to $TBMAILADDR to let us know
something might be wrong with <b>$referrer</b>";
echo "<br><br><br>\n";
}
}
echo "<br><br><br>\n";
echo "Back to <a href='$referrer'>previous page</a>\n";
echo "<br>\n";
......
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