break; case "requestDetails": # require_once __DIR__ . '/include/RequestDetailsHtmlSnippet.php'; $requestDetailsSnippet = new RequestDetailsHtmlSnippet($testInfo, $stepResult, $useLinks); echo $requestDetailsSnippet->create(); break; case "requestHeaders": require_once __DIR__ . '/include/RequestHeadersHtmlSnippet.php'; $requestHeadersSnippet = new RequestHeadersHtmlSnippet($stepResult, $useLinks); echo $requestHeadersSnippet->create(); break; case "mimetypeBreakdown": require_once __DIR__ . '/include/MimetypeBreakdownHtmlSnippet.php'; $snippetRv = new MimetypeBreakdownHtmlSnippet($testInfo, $stepResult); echo $snippetRv->create(); break; case "domainBreakdown": require_once __DIR__ . '/include/DomainBreakdownHtmlSnippet.php'; $snippetRv = new DomainBreakdownHtmlSnippet($testInfo, $stepResult); echo $snippetRv->create(); break; case "performanceOptimization": require_once __DIR__ . '/include/PerformanceOptimizationHtmlSnippet.php'; $snippet = new PerformanceOptimizationHtmlSnippet($testInfo, $stepResult); echo $snippet->create(); break; default: header($_SERVER["SERVER_PROTOCOL"] . " 404 Not Found", true, 404); exit(0); }
} ?> </table> </div> <br> <?php include './ads/optimization_middle.inc'; ?> <br> <?php // still multistep $accordionHelper = new AccordionHtmlHelper($testRunResults); echo $accordionHelper->createAccordion("review", "performanceOptimization"); } else { // singlestep $snippet = new PerformanceOptimizationHtmlSnippet($testInfo, $testRunResults->getStepResult(1)); $snippet->setAdsFile(__DIR__ . '/ads/optimization_middle.inc'); echo $snippet->create(); } ?> <?php echo '<p></p><br>'; include './ads/optimization_bottom.inc'; echo '<br>'; dumpOptimizationGlossary($settings); ?> <?php include 'footer.inc'; ?>