<commit_before><?php
#
# EMULAB-COPYRIGHT
# Copyright (c) 2007 University of Utah and the Flux Group.
# All rights reserved.
#
include("defs.php3");

#
# Standard Testbed Header
#
PAGEHEADER("Page Not Working Properly!");

$this_user = CheckLogin($check_status);
$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>
         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 "Back to <a href='$referrer'>previous page</a>\n";
echo "<br>\n";

#
# Standard Testbed Footer
# 
PAGEFOOTER();
?>
<commit_msg>Seeing as Mike's club is now up to three members, lets add a confirm button.<commit_after><?php
#
# EMULAB-COPYRIGHT
# Copyright (c) 2007 University of Utah and the Flux Group.
# All rights reserved.
#
include("defs.php3");

#
# Standard Testbed Header
#
PAGEHEADER("Page Not Working Properly!");

$optargs = OptionalPageArguments("confirmed", PAGEARG_BOOLEAN,
				 "referrer",  PAGEARG_STRING);

$this_user = CheckLogin($check_status);
$referrer  = (isset($referrer) ? $referrer : $_SERVER['HTTP_REFERER']);

if ($this_user) {
    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 "Back to <a href='$referrer'>previous page</a>\n";
echo "<br>\n";

#
# Standard Testbed Footer
# 
PAGEFOOTER();
?>

{'fraction_non_alphanumeric': 0.17061068702290078, 'fraction_numerical': 0.004198473282442748, 'mean_word_length': 3.70556552962298, 'pattern_counts': {'":': 0, '<': 42, '<?xml version=': 0, '>': 48, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6164367', 'n_tokens_mistral': 958, 'n_tokens_neox': 934, 'n_words': 243}