(\d+)\. kolo<\\/span>/", $matches, $ms) or fatal("Žádná kola nenalezena"); $last_round = end($ms[1]); preg_match("//", $matches, $m) or fatal("Žádné URL zápasu nenalezeno"); $some_match_id = $m[1]; $some_match_url = "$cf_url/match/detail/info/$some_match_id"; $some_match = wget($some_match_url, "zápas"); preg_match("/Kód:<\\/td>\s+(\w+)\d\d\d\d\\/\d\d\d\d-/msu", $some_match, $m) or fatal("Kód soutěže nenalezen"); $competition_code = $m[1]; $competition_url = "$cf_url/competition/detail/overview/$competition_code?competitionFisId=$competition_id"; $competition = wget($competition_url, "soutěž"); preg_match("/
  • \s*]+>\s*Koše <\\/span>$last_round/smu", $competition, $m) or fatal("Kolo nesedí"); private_page_header($title); ?> SKV Zápasy