mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
@@ -60,7 +60,7 @@ require_once "scripts/pi-hole/php/gravity.php";
|
||||
<!-- small box -->
|
||||
<div class="small-box bg-red no-user-select" title="<?php echo gravity_last_update(); ?>">
|
||||
<div class="inner">
|
||||
<p>Domains on Blocklist</p>
|
||||
<p>Domains on Adlists</p>
|
||||
<h3 class="statistic"><span id="domains_being_blocked">---</span></h3>
|
||||
</div>
|
||||
<div class="icon">
|
||||
|
||||
+3
-3
@@ -50,9 +50,9 @@ else if(isset($_GET["client"]))
|
||||
}
|
||||
else if(isset($_GET["forwarddest"]))
|
||||
{
|
||||
if($_GET["forwarddest"] === "blocklist")
|
||||
$showing .= " queries answered from blocklists";
|
||||
elseif($_GET["forwarddest"] === "cache")
|
||||
if($_GET["forwarddest"] === "blocked")
|
||||
$showing .= " queries blocked by Pi-hole";
|
||||
elseif($_GET["forwarddest"] === "cached")
|
||||
$showing .= " queries answered from cache";
|
||||
else
|
||||
$showing .= " queries for upstream destination ".htmlentities($_GET["forwarddest"]);
|
||||
|
||||
@@ -47,15 +47,15 @@ function gravity_last_update($raw = false)
|
||||
if($gravitydiff->d > 1)
|
||||
{
|
||||
// String output (more than one day ago)
|
||||
return $gravitydiff->format("Blocking list updated %a days, %H:%I (hh:mm) ago");
|
||||
return $gravitydiff->format("Adlists updated %a days, %H:%I (hh:mm) ago");
|
||||
}
|
||||
elseif($gravitydiff->d == 1)
|
||||
{
|
||||
// String output (one day ago)
|
||||
return $gravitydiff->format("Blocking list updated one day, %H:%I (hh:mm) ago");
|
||||
return $gravitydiff->format("Adlists updated one day, %H:%I (hh:mm) ago");
|
||||
}
|
||||
|
||||
// String output (less than one day ago)
|
||||
return $gravitydiff->format("Blocking list updated %H:%I (hh:mm) ago");
|
||||
return $gravitydiff->format("Adlists updated %H:%I (hh:mm) ago");
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user