diff options
author | Ermal <eri@pfsense.org> | 2014-09-10 22:38:26 +0200 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2014-09-10 22:39:31 +0200 |
commit | 45dbc75f3e56254c0a81fdaadacb0c0496d23f1c (patch) | |
tree | 6294ae27c7b8cf5e532241f5ea44f8f06f11e4d5 /usr/local/www/widgets | |
parent | 7ab6ad705edc1f539f098fa41d74c9336ac497fa (diff) | |
download | pfsense-45dbc75f3e56254c0a81fdaadacb0c0496d23f1c.zip pfsense-45dbc75f3e56254c0a81fdaadacb0c0496d23f1c.tar.gz |
Try to make the ipsec widget usable again
Diffstat (limited to 'usr/local/www/widgets')
-rw-r--r-- | usr/local/www/widgets/widgets/ipsec.widget.php | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/usr/local/www/widgets/widgets/ipsec.widget.php b/usr/local/www/widgets/widgets/ipsec.widget.php index 9d35e0b..930a560 100644 --- a/usr/local/www/widgets/widgets/ipsec.widget.php +++ b/usr/local/www/widgets/widgets/ipsec.widget.php @@ -163,26 +163,33 @@ if (isset($config['ipsec']['phase1'])){?> <div id="ipsec-mobile" style="display:none;background-color:#EEEEEE;"> <div style="padding: 10px"> <div style="display:table-row;"> - <div class="widgetsubheader" style="display:table-cell;width:140px">User/Time</div> - <div class="widgetsubheader" style="display:table-cell;width:130px">Local/Remote</div> - <div class="widgetsubheader" style="display:table-cell;width:30px"> </div> + <div class="widgetsubheader" style="display:table-cell;width:140px">User</div> + <div class="widgetsubheader" style="display:table-cell;width:130px">IP</div> + <div class="widgetsubheader" style="display:table-cell;width:30px">Status;</div> </div> <div style="max-height:105px;overflow:auto;"> -<?php foreach ($mobile as $muser) : ?> +<?php + if (is_array($mobile['pool'])): + foreach ($mobile['pool'] as $pool): + if (is_array($pool['lease'])): + foreach ($pool['lease'] as $muser) : ?> <div style="display:table-row;"> <div class="listlr" style="display:table-cell;width:139px"> - <?php echo htmlspecialchars($muser['username']);?><br /> - <?php echo htmlspecialchars($muser['logintime']);?> + <?php echo htmlspecialchars($muser['id']);?><br /> </div> <div class="listr" style="display:table-cell;width:130px"> - <?php echo htmlspecialchars($muser['local']);?><br /> - <?php echo htmlspecialchars($muser['remote']);?> + <?php echo htmlspecialchars($muser['host']);?><br /> </div> - <div class="listr" style="display:table-cell;width:30px" align="center"> - <a href="diag_ipsec.php?act=disconnect&user=<?php echo $muser['username']; ?>"><img src='/themes/<?php echo $g['theme']; ?>/images/icons/icon_x.gif' height='17' width='17' border='0' alt='x' /></a> + <div class="listr" style="display:table-cell;width:30px"> + <?php echo htmlspecialchars($muser['status']);?><br/> </div> </div> -<?php endforeach; ?> +<?php + endforeach; + endif; + endforeach; + endif; +?> </div> </div> </div> |