Added safeOutputValue()

This commit is contained in:
billz
2025-02-19 01:25:07 -08:00
parent 23e0a6601a
commit 20fdd9024d

View File

@@ -629,6 +629,13 @@ function mb_escapeshellarg($arg)
}
}
function safeOutputValue($def, $arr)
{
if (array_key_exists($def, $arr)) {
echo htmlspecialchars($arr[$def], ENT_QUOTES);
}
}
function dnsServers()
{
$data = json_decode(file_get_contents("./config/dns-servers.json"));