$file) { if (preg_match('#' . $route . '#', $path, $matches)) { for ($i = 1; $i < sizeof($file); ++$i) $_GET[$file[$i]] = $matches[$i]; if (!preg_match("#php$#", $file[0])) { header("Content-Type: " . $file[1]); readfile($file[0]); exit(); } /** @noinspection PhpIncludeInspection */ require $file[0]; exit(); } } require_once "server_files/404.php";