summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/status_openvpn.php
diff options
context:
space:
mode:
authorHari <hari289@outlook.com>2015-09-15 16:24:01 +0530
committerHari <hari289@outlook.com>2015-09-15 16:24:01 +0530
commit9f605c1c305b124e7694c17f6d6689e3008b11d0 (patch)
tree0e141c9f3ce7f2e97e00822d66b92a8475408662 /src/usr/local/www/status_openvpn.php
parentfa43d464f119abe586012406a4dabd120348d6c4 (diff)
downloadpfsense-9f605c1c305b124e7694c17f6d6689e3008b11d0.zip
pfsense-9f605c1c305b124e7694c17f6d6689e3008b11d0.tar.gz
Used bootstrap progress bar for queues' stats and used glyphicons
Diffstat (limited to 'src/usr/local/www/status_openvpn.php')
-rw-r--r--src/usr/local/www/status_openvpn.php23
1 files changed, 13 insertions, 10 deletions
diff --git a/src/usr/local/www/status_openvpn.php b/src/usr/local/www/status_openvpn.php
index 829f659..4416d79 100644
--- a/src/usr/local/www/status_openvpn.php
+++ b/src/usr/local/www/status_openvpn.php
@@ -163,10 +163,11 @@ include("head.inc"); ?>
</tr>
</thead>
<tbody>
-
-<?php
- foreach ($server['conns'] as $conn):
-?>
+
+ <?php
+ echo sizeof($server['conns']);
+ foreach ($server['conns'] as $conn):
+ ?>
<tr id="<?php echo "r:{$server['mgmt']}:{$conn['remote_host']}"; ?>">
<td><?=$conn['common_name'];?></td>
<td><?=$conn['remote_host'];?></td>
@@ -175,15 +176,17 @@ include("head.inc"); ?>
<td><?=format_bytes($conn['bytes_sent']);?></td>
<td><?=format_bytes($conn['bytes_recv']);?></td>
<td>
- <img src="/themes/<?php echo $g['theme']; ?>/images/icons/icon_x.gif"
+ <a
onclick="killClient('<?php echo $server['mgmt']; ?>', '<?php echo $conn['remote_host']; ?>');" style="cursor:pointer;"
id="<?php echo "i:{$server['mgmt']}:{$conn['remote_host']}"; ?>"
- title="<?php echo gettext("Kill client connection from") . " " . $conn['remote_host']; ?>" alt="delete" />
+ title="<?php echo gettext("Kill client connection from") . " " . $conn['remote_host']; ?>">
+ <i class="icon icon-remove"></i>
+ </a>
</td>
</tr>
-<?php
- endforeach;
-?>
+ <?php
+ endforeach;
+ ?>
</tbody>
<tfoot>
<tr>
@@ -366,7 +369,7 @@ include("head.inc"); ?>
}
if ($DisplayNote) {
- print_info_box("<br /><b>" . gettext("NOTE") . ":</b> " . gettext("If you have custom options that override the management features of OpenVPN on a client or server, they will cause that OpenVPN instance to not work correctly with this status page."));
+ print_info_box(gettext("If you have custom options that override the management features of OpenVPN on a client or server, they will cause that OpenVPN instance to not work correctly with this status page."));
}
if ((empty($clients)) && (empty($servers)) && (empty($sk_servers))) {
OpenPOWER on IntegriCloud