<?PHP
require('SSI.php');
$DB[hostname] = "localhost";
$DB[username] = "user";
$DB[password] = "pwd";
$DB[dbname] = "database";
$connection = mysql_connect ($DB[hostname], $DB[username], $DB[password]) or die ("Could not connect to the server. The following error has occurred <b>" . mysql_error() . "</b>");
$db = mysql_select_db ($DB[dbname]);
global $username, $ID_MEMBER;
if ($username == "Guest") { LogIn(); exit(); }
$query = mysql_query("select emailAddress, memberGroup from yse_members where ID_MEMBER = '$ID_MEMBER'");
$result = mysql_fetch_array ($query); list ($email, $group) = $result;
if ($group == "Banned") { echo "We're sorry, but this account has been disabled. If you feel that this is an error, please contact <a href=\"mailto:webmaster@mydomain?subject=Account Turned off for $user[name]\">Douglas</a>. Thank you.

"; exit(); }
if (($group == "Administrator") || ($group == "Global Moderator") || ($group == "Moderator")) { header("Location: good.php");
exit; }
else
{
header("Location: bad.php");
exit;
}
?>