summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-08-08 09:34:31 -0400
committerjim-p <jimp@pfsense.org>2011-08-08 09:37:13 -0400
commitb48b79c2e5cb1855a2c80172fc5e5d392066beb7 (patch)
tree8928212426a6e993df3bb37120a374184d90e66b /usr
parent8a85ab907d1c25bda9a867150fdd32025f576b4a (diff)
downloadpfsense-b48b79c2e5cb1855a2c80172fc5e5d392066beb7.zip
pfsense-b48b79c2e5cb1855a2c80172fc5e5d392066beb7.tar.gz
Show the CP User count in the page title, as on 1.2.3.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/status_captiveportal.php26
1 files changed, 13 insertions, 13 deletions
diff --git a/usr/local/www/status_captiveportal.php b/usr/local/www/status_captiveportal.php
index 8913367..41787f3 100755
--- a/usr/local/www/status_captiveportal.php
+++ b/usr/local/www/status_captiveportal.php
@@ -51,19 +51,6 @@ if ($_GET['act'] == "del") {
exit;
}
-$pgtitle = array(gettext("Status: Captive portal"));
-
-include("head.inc");
-
-?>
-
-<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
-<script src="/javascript/sorttable.js"></script>
-<?php include("fbegin.inc"); ?>
-<?php
-
-flush();
-
function clientcmp($a, $b) {
global $order;
return strcmp($a[$order], $b[$order]);
@@ -79,6 +66,19 @@ if (file_exists("{$g['vardb_path']}/captiveportal.db")) {
$concurrent = count($cpcontents);
+$pgtitle = array(gettext("Status: Captive portal ({$concurrent})"));
+
+include("head.inc");
+
+?>
+
+<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
+<script src="/javascript/sorttable.js"></script>
+<?php include("fbegin.inc"); ?>
+<?php
+
+flush();
+
foreach ($cpcontents as $cpcontent) {
$cpent = explode(",", $cpcontent);
$sessionid = $cpent[5];
OpenPOWER on IntegriCloud