myslwebmaster@michigansoccer.com“);
}
else if (!$_GET[hash])
{
echo(“Invalid link, no submission code supplied.

Please notify myslwebmaster@michigansoccer.com“);
}
else if (!$_GET[approve] && !$_GET[deny])
{
echo(“Invalid link, no action supplied.

Please notify myslwebmaster@michigansoccer.com“);
}
else
{
if($_GET[approve])
{
if($_GET[approve] == 1)
{
if($wpdb->query($wpdb->prepare(“select * from wp_mysl_scoreSubmissions where teamDeleted = 1 and gameID=%d and hashCode=’%s'”,
$_GET[gameID],
$_GET[hash])) > 0)
{
echo(“This score has previously been denied. If you wish to now approve the score, please contact myslstat@comcast.net“);
}
else if ($wpdb->query($wpdb->prepare(“select * from wp_mysl_scoreSubmissions where teamValidated = 1 and gameID=%d and hashCode=’%s'”,
$_GET[gameID],
$_GET[hash])) > 0)
{
echo(“This score has already been previously approved.”);
}
else
{

if($wpdb->query($wpdb->prepare(“update wp_mysl_scoreSubmissions set teamValidated=1, teamValidatedDate=%s where gameID=%d and hashCode=’%s'”,
date(‘Y-m-d H:i:s’),
$_GET[gameID],
$_GET[hash])) == FALSE)
{
echo(“There was a problem approving the score.

Please notify myslwebmaster@michigansoccer.com“);
}
else
{
echo(“Game score successfully approved!”);
}
}
}
}
else if ($_GET[deny])
{
if($_GET[deny] == 1)
{
if($wpdb->query($wpdb->prepare(“select * from wp_mysl_scoreSubmissions where teamDeleted = 1 and gameID=%d and hashCode=’%s'”,
$_GET[gameID],
$_GET[hash])) > 0)
{
echo(“This score has already been previously denied.”);
}
else if ($wpdb->query($wpdb->prepare(“select * from wp_mysl_scoreSubmissions where teamValidated = 1 and gameID=%d and hashCode=’%s'”,
$_GET[gameID],
$_GET[hash])) > 0)
{
echo(“This score has been previously approved. In order to change the score, please submit a new score report.”);
}
else
{
if($wpdb->query($wpdb->prepare(“update wp_mysl_scoreSubmissions set teamDeleted=1, teamDeletedDate=%s where gameID=%d and hashCode=’%s'”,
date(‘Y-m-d H:i:s’),
$_GET[gameID],
$_GET[hash])) == FALSE)
{
echo(“There was a problem denying the score.

Please notify myslwebmaster@michigansoccer.com“);

}
else
{
echo(“Game score successfully denied.”);
}
}
}

}
}

?>