diff options
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/status_captiveportal.php | 26 |
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]; |