Exemplo n.º 1
0
$ipbanObj = new Basic($mysqli, "ipban", "ipaddress");
$tournamentObj = new Tournament($mysqli);
$member = new Member($mysqli);
if ($ipbanObj->select($IP_ADDRESS, false)) {
    $ipbanInfo = $ipbanObj->get_info();
    if (time() < $ipbanInfo['exptime'] or $ipbanInfo['exptime'] == 0) {
        die("<script type='text/javascript'>window.location = '" . $MAIN_ROOT . "banned.php';</script>");
    } else {
        $ipbanObj->delete();
    }
}
if (!is_numeric($_GET['tID']) || !$tournamentObj->select($_GET['tID'])) {
    die("<script type='text/javascript'>window.location = '" . $MAIN_ROOT . "';</script>");
}
$tournamentInfo = $tournamentObj->get_info_filtered();
if ($tournamentInfo['seedtype'] != 3 && !$tournamentObj->checkForPools()) {
    echo "\n\t\t<script type='text/javascript'>\n\t\t\twindow.location = '" . $MAIN_ROOT . "tournaments/bracket.php?tID=" . $_GET['tID'] . "';\n\t\t</script>\n\t";
    exit;
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title><?php 
echo $PAGE_NAME . $CLAN_NAME;
?>
</title>
		<link rel='stylesheet' type='text/css' href='<?php 
echo $MAIN_ROOT;
?>