summaryrefslogtreecommitdiffstats
path: root/src/usr
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-11-04 15:09:41 -0500
committerStephen Beaver <sbeaver@netgate.com>2015-11-04 15:09:41 -0500
commit85587e7dd2cdbafd4b075b7b0cd892df5172a7d3 (patch)
treeb0082fe06878ff12a0af2870d734fc9dc368ca69 /src/usr
parentaa9cd3a0ceb28432aa142b9800083cf65bd7ce38 (diff)
downloadpfsense-85587e7dd2cdbafd4b075b7b0cd892df5172a7d3.zip
pfsense-85587e7dd2cdbafd4b075b7b0cd892df5172a7d3.tar.gz
Fix save/update messages and format
Diffstat (limited to 'src/usr')
-rw-r--r--src/usr/local/www/vpn_l2tp_users.php26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/usr/local/www/vpn_l2tp_users.php b/src/usr/local/www/vpn_l2tp_users.php
index 1f005ed..b53a2f0 100644
--- a/src/usr/local/www/vpn_l2tp_users.php
+++ b/src/usr/local/www/vpn_l2tp_users.php
@@ -100,19 +100,20 @@ if ($_GET['act'] == "del") {
}
include("head.inc");
-?>
-<?php if ($savemsg) print_info_box($savemsg)?>
-<?php if (isset($config['l2tp']['radius']['enable']))
- print_info_box(gettext("Warning: RADIUS is enabled. The local user database will not be used."))?>
-<?php if (is_subsystem_dirty('l2tpusers')):?><br/>
-<?php print_info_box_np(gettext("The l2tp user list has been modified") . ".<br />" . gettext("You must apply the changes in order for them to take effect") . ".<br /><b>" . gettext("Warning: this will terminate all current l2tp sessions!") . "</b>")?><br />
-<?php endif?>
+if ($savemsg)
+ print_info_box($savemsg, success);
+
+if (isset($config['l2tp']['radius']['enable']))
+ print_info_box(gettext("Warning: RADIUS is enabled. The local user database will not be used."));
+
+if (is_subsystem_dirty('l2tpusers'))
+ print_info_box_np(gettext("The l2tp user list has been modified") . ".<br />" . gettext("You must apply the changes in order for them to take effect") . ".<br /><b>" . gettext("Warning: this will terminate all current l2tp sessions!") . "</b>");
+
-<?php
$tab_array = array();
- $tab_array[0] = array(gettext("Configuration"), false, "vpn_l2tp.php");
- $tab_array[1] = array(gettext("Users"), true, "vpn_l2tp_users.php");
+ $tab_array[] = array(gettext("Configuration"), false, "vpn_l2tp.php");
+ $tab_array[] = array(gettext("Users"), true, "vpn_l2tp_users.php");
display_top_tabs($tab_array);
?>
<div class="table-responsive">
@@ -121,7 +122,7 @@ include("head.inc");
<tr>
<th><?=gettext("Username")?></th>
<th><?=gettext("IP address")?></th>
- <th></th>
+ <th><?=gettext("Actions")?></th>
</tr>
</thead>
<tbody>
@@ -151,5 +152,4 @@ include("head.inc");
</a>
</nav>
-
-<?php include("foot.inc")?>
+<?php include("foot.inc");
OpenPOWER on IntegriCloud