Турнирная
CreateTournament("Еженедельные турниры");
}
if ($_POST['preptournament']) {
$Tournament->PrepearTournir();
}
if ($_POST['addzayvka']) {
$Tournament->AddUserInTournament($_POST['idtur']);
}
if ($_POST['dellzayvka']) {
$Tournament->DellUserInTournament($_POST['idtur']);
}
if ($_POST['expenemy']) {
$Tournament->expectationenemy((int)$_POST['expenemy']);
}
}
$dateD = Db::getInstance()->fetch('select datetime from turnament where old = 0 limit 1');
if (mktime() >= ($dateD['dt'] + 10)) {
$Tournament->UpdateTournir();
}
$Tournament->showAllTurnament();
if (mktime() >= ($dateD['dt'] + 10)) {
$Tournament->StartTournir();
}
$Tournament->ShowTournirFinaliats();
?>