battle) { header('location: fbattle.php'); exit; } $Tournament = new Tournament(); ?>
Турнирная

0) { if ($_POST['newtournament']) { $Tournament->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']); } } //$Tournir->CreateHTML(7); //echo $dateTime=mktime(20, 20, 0, 03, 31, 2010); //$Tournir->PrepearTournir(); $dateD = mysql_fetch_row(mysql_query("select datetime from turnament where old=0 limit 1")); if (mktime() >= ($dateD[0] + 10)) { $Tournament->UpdateTournir(); } $Tournament->showAllTurnament(); if (mktime() >= ($dateD[0] + 10)) { $Tournament->StartTournir(); } $Tournament->ShowTournirFinaliats(); ?>
Добавление нового турнира Приготовить турнир и запустить