Show the CP User count in the page title, as on 1.2.3.

This commit is contained in:
jim-p 2011-08-08 09:34:31 -04:00
parent 4f163cb886
commit 985d6e18eb

View File

@ -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];