summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_captiveportal.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-10-07 22:00:41 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-10-07 22:00:41 +0000
commit93641ef8565832e86d8d4d9272302ebe3a4101ed (patch)
tree1977e3370a08c4ee0ab1e9172ebcc9669e707453 /usr/local/www/status_captiveportal.php
parent6198d330da6ec077e30ba99155de451cadb12d32 (diff)
downloadpfsense-93641ef8565832e86d8d4d9272302ebe3a4101ed.zip
pfsense-93641ef8565832e86d8d4d9272302ebe3a4101ed.tar.gz
Show the current amount of authenticated captive portal users in the Status: Captive Portal line such as:
Status: Captive Portal (250) Used at KCD extensively to see how many students are authenticated.
Diffstat (limited to 'usr/local/www/status_captiveportal.php')
-rwxr-xr-xusr/local/www/status_captiveportal.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/www/status_captiveportal.php b/usr/local/www/status_captiveportal.php
index dd6cf46..c238f11 100755
--- a/usr/local/www/status_captiveportal.php
+++ b/usr/local/www/status_captiveportal.php
@@ -32,7 +32,10 @@
require("guiconfig.inc");
-$pgtitle = "Status: Captive portal";
+$concurrent = `cat /var/db/captiveportal.db | wc -l`;
+
+$pgtitle = "Status: Captive portal ({$concurrent})";
+
include("head.inc");
?>
OpenPOWER on IntegriCloud