get_filename(); foreach ($database->getDB() as $prefix => $rounds) { foreach ($rounds as $round => $boards) { if ($prefix . $round === $roundPrefix) { if (isset($boards[$board])) { foreach($boards[$board] as $table => $deal) { $protocol->set_deal($table, $deal); } echo $protocol->output(); exit(0); } } } } readfile($html_filename); } catch (Exception $e) { header('HTTP/1.0 404 Not Found'); die(); }