' . lang('Speedtest_Results') . ''; if ($returnCode !== 0 || empty($output)) { $errorMessage = $returnCode === 127 ? 'speedtest-cli command not found. Checked paths: ' . $safePath : (empty($output) ? 'speedtest-cli returned no output.' : implode("\n", $output)); echo '
';
foreach ($output as $line) {
echo htmlspecialchars($line, ENT_QUOTES, 'UTF-8') . "\n";
}
echo '';
?>