//Updating scores if ($_POST["updateScores"]) { $matches; foreach ($_POST as $key => $data) { if (preg_match("/^R[0-9]+/", $key)) { $matches[substr($key, 1)]["Score"] = $data; } if (preg_match("/^Regl[0-9]+/", $key)) { $matches[substr($key, 4)]["Reglementair"] = $data; } if (preg_match("/^Rapp[0-9]+/", $key)) { $matches[substr($key, 4)]["ExcludeRating"] = $data; } } foreach ($matches as $matchId => $match) { $competitie->setMatch($matchId, $match["Score"], $match["Reglementair"], $match["ExcludeRating"]); } } $compRounds = $competitie->getRounds(); $compDate; if (is_array($compRounds)) { foreach ($compRounds as $round) { if ($round["ronde"] == $_GET["ronde"]) { $compData = date("d/m/Y", strtotime($round["datum"])); } } } //Processing PGN if ($init->repository->get_data("pgnText") && $init->repository->get_data("matchId")) { include_once '../../includes/class.match.php'; $pgnMatch = new match($settings, $init->errorClass, $init->notificationClass, $init->repository->get_data("matchId"));