Commit 54d0c429 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) remove global $openvpn_dev_mode and do some minor style fixes in vpn_openvpn_server.php

parent 4dcad144
...@@ -29,9 +29,6 @@ ...@@ -29,9 +29,6 @@
POSSIBILITY OF SUCH DAMAGE. POSSIBILITY OF SUCH DAMAGE.
*/ */
global $openvpn_dev_mode;
$openvpn_dev_mode = array("tun", "tap");
global $openvpn_verbosity_level; global $openvpn_verbosity_level;
$openvpn_verbosity_level = array( $openvpn_verbosity_level = array(
0 => "none", 0 => "none",
......
...@@ -824,7 +824,7 @@ function tuntap_change() { ...@@ -824,7 +824,7 @@ function tuntap_change() {
<td> <td>
<select name="dev_mode" class="form-control" onchange='tuntap_change()'> <select name="dev_mode" class="form-control" onchange='tuntap_change()'>
<?php <?php
foreach ($openvpn_dev_mode as $device) : foreach (array("tun", "tap") as $device) :
$selected = ""; $selected = "";
if (! empty($pconfig['dev_mode'])) { if (! empty($pconfig['dev_mode'])) {
if ($pconfig['dev_mode'] == $device) { if ($pconfig['dev_mode'] == $device) {
...@@ -1709,8 +1709,7 @@ endif; ?> ...@@ -1709,8 +1709,7 @@ endif; ?>
<?php <?php
else : else :
?> ?>
<div class="table-responsive"> <table class="table table-striped">
<table class="table table-striped table-sort sortable">
<thead> <thead>
<tr> <tr>
<td width="10%" class="listhdrr"><?=gettext("Disabled"); ?></td> <td width="10%" class="listhdrr"><?=gettext("Disabled"); ?></td>
...@@ -1735,20 +1734,17 @@ else : ...@@ -1735,20 +1734,17 @@ else :
<?=$disabled;?> <?=$disabled;?>
</td> </td>
<td ondblclick="document.location='vpn_openvpn_server.php?act=edit&amp;id=<?=$i;?>'"> <td ondblclick="document.location='vpn_openvpn_server.php?act=edit&amp;id=<?=$i;?>'">
<?=htmlspecialchars($server['protocol']); <?=htmlspecialchars($server['protocol']);?> / <?=htmlspecialchars($server['local_port']);?>
?> / <?=htmlspecialchars($server['local_port']);?>
</td> </td>
<td ondblclick="document.location='vpn_openvpn_server.php?act=edit&amp;id=<?=$i;?>'"> <td ondblclick="document.location='vpn_openvpn_server.php?act=edit&amp;id=<?=$i;?>'">
<?=htmlspecialchars($server['tunnel_network']);?><br /> <?=htmlspecialchars($server['tunnel_network']);?> <?=!empty($server['tunnel_networkv6']) ? "," :""?>
<?=htmlspecialchars($server['tunnel_networkv6']);?><br /> <?=htmlspecialchars($server['tunnel_networkv6']);?>
</td> </td>
<td ondblclick="document.location='vpn_openvpn_server.php?act=edit&amp;id=<?=$i;?>'"> <td ondblclick="document.location='vpn_openvpn_server.php?act=edit&amp;id=<?=$i;?>'">
<?=htmlspecialchars($server['description']);?> <?=htmlspecialchars($server['description']);?>
</td> </td>
<td valign="middle" class="list nowrap"> <td valign="middle">
<a href="vpn_openvpn_server.php?act=edit&amp;id=<?=$i; <a href="vpn_openvpn_server.php?act=edit&amp;id=<?=$i;?>" title="<?=gettext("edit server"); ?>" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-pencil"></span></a>
?>" title="<?=gettext("edit server"); ?>" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-pencil"></span></a>
&nbsp;
<a id="del_<?=$i;?>" title="<?=gettext("delete server"); ?>" class="act_delete btn btn-default btn-xs"><span class="glyphicon glyphicon-remove"></span></a> <a id="del_<?=$i;?>" title="<?=gettext("delete server"); ?>" class="act_delete btn btn-default btn-xs"><span class="glyphicon glyphicon-remove"></span></a>
</td> </td>
</tr> </tr>
...@@ -1759,7 +1755,6 @@ else : ...@@ -1759,7 +1755,6 @@ else :
<tr style="display:none;"><td></td></tr> <tr style="display:none;"><td></td></tr>
</tbody> </tbody>
</table> </table>
</div>
<?php <?php
endif; ?> endif; ?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment