|
@@ -9,7 +9,7 @@ discard block |
|
|
block discarded – undo |
|
9
|
9
|
* ****************************************************************************** |
|
10
|
10
|
*/ |
|
11
|
11
|
|
|
12
|
|
-require_once dirname(dirname(dirname(dirname(__FILE__)))) . "/config/_config.php"; |
|
|
12
|
+require_once dirname(dirname(dirname(dirname(__FILE__))))."/config/_config.php"; |
|
13
|
13
|
|
|
14
|
14
|
$auth = new \web\lib\admin\Authentication(); |
|
15
|
15
|
$auth->authenticate(); |
|
@@ -37,21 +37,21 @@ discard block |
|
|
block discarded – undo |
|
37
|
37
|
?> |
|
38
|
38
|
|
|
39
|
39
|
<h1><?php $tablecaption = _("Deployment Usage Records"); echo $tablecaption; ?></h1> |
|
40
|
|
-<p><?php echo _("(AP Identifier is a /-separated tuple of NAS-Identifier/NAS-IP-Address/NAS-IPv6-Address/Called-Station-Id)");?></p> |
|
|
40
|
+<p><?php echo _("(AP Identifier is a /-separated tuple of NAS-Identifier/NAS-IP-Address/NAS-IPv6-Address/Called-Station-Id)"); ?></p> |
|
41
|
41
|
<table class='authrecord'> |
|
42
|
|
- <caption><?php echo $tablecaption;?></caption> |
|
|
42
|
+ <caption><?php echo $tablecaption; ?></caption> |
|
43
|
43
|
<tr> |
|
44
|
|
- <th scope="col"><strong><?php echo _("Timestamp (UTC)");?></strong></th> |
|
45
|
|
- <th scope="col"><strong><?php echo _("Realm");?></strong></th> |
|
46
|
|
- <th scope="col"><strong><?php echo _("MAC Address");?></strong></th> |
|
47
|
|
- <th scope="col"><strong><?php echo _("Chargeable-User-Identity");?></strong></th> |
|
48
|
|
- <th scope="col"><strong><?php echo _("Result");?></strong></th> |
|
49
|
|
- <th scope="col"><strong><?php echo _("AP Identifier");?></strong></th> |
|
|
44
|
+ <th scope="col"><strong><?php echo _("Timestamp (UTC)"); ?></strong></th> |
|
|
45
|
+ <th scope="col"><strong><?php echo _("Realm"); ?></strong></th> |
|
|
46
|
+ <th scope="col"><strong><?php echo _("MAC Address"); ?></strong></th> |
|
|
47
|
+ <th scope="col"><strong><?php echo _("Chargeable-User-Identity"); ?></strong></th> |
|
|
48
|
+ <th scope="col"><strong><?php echo _("Result"); ?></strong></th> |
|
|
49
|
+ <th scope="col"><strong><?php echo _("AP Identifier"); ?></strong></th> |
|
50
|
50
|
</tr> |
|
51
|
51
|
<?php |
|
52
|
52
|
$userAuthData = $deployment->retrieveStatistics($backlogTime); |
|
53
|
53
|
foreach ($userAuthData as $oneRecord) { |
|
54
|
|
- echo "<tr class='".($oneRecord['result'] == "OK" ? "auth-success" : "auth-fail" )."'>" |
|
|
54
|
+ echo "<tr class='".($oneRecord['result'] == "OK" ? "auth-success" : "auth-fail")."'>" |
|
55
|
55
|
. "<td>".$oneRecord['activity_time']."</td>" |
|
56
|
56
|
// $oneRecord['CN'] is a simple string, not an array, so disable Scrutinizer type check here |
|
57
|
57
|
. "<td>".$oneRecord['realm']."</td>" |