Some cosmetics for fresh installed systems

This commit is contained in:
DL6ER
2017-02-22 11:41:25 +01:00
parent edd52d0de4
commit d58439e0d9
+15 -5
View File
@@ -19,21 +19,27 @@ if(isset($setupVars["API_QUERY_LOG_SHOW"]))
{
if($setupVars["API_QUERY_LOG_SHOW"] === "all")
{
$showing = "(showing all queries";
$showing = "showing all queries";
}
elseif($setupVars["API_QUERY_LOG_SHOW"] === "permittedonly")
{
$showing = "(showing permitted queries only";
$showing = "showing permitted queries only";
}
elseif($setupVars["API_QUERY_LOG_SHOW"] === "blockedonly")
{
$showing = "(showing blocked queries only";
$showing = "showing blocked queries only";
}
elseif($setupVars["API_QUERY_LOG_SHOW"] === "nothing")
{
$showing = "(showing no queries at all";
$showing = "showing no queries at all";
}
}
else
{
// If filter variable is not set, we
// automatically show all queries
$showing = "showing all queries";
}
if(isset($_GET["all"]))
{
@@ -64,7 +70,11 @@ if(isset($setupVars["API_PRIVACY_MODE"]))
$showing .= ", privacy mode enabled";
}
}
$showing .= ")";
if(strlen($showing) > 0)
{
$showing = "(".$showing.")";
}
?>
<!-- Send PHP info to JS -->
<div id="token" hidden><?php echo $token ?></div>