Project

General

Profile

« Previous | Next » 

Revision 85587e7d

Added by Stephen Beaver almost 10 years ago

Fix save/update messages and format

View differences:

src/usr/local/www/vpn_l2tp_users.php
100 100
}
101 101

  
102 102
include("head.inc");
103
?>
104 103

  
105
<?php if ($savemsg) print_info_box($savemsg)?>
106
<?php if (isset($config['l2tp']['radius']['enable']))
107
	print_info_box(gettext("Warning: RADIUS is enabled. The local user database will not be used."))?>
108
<?php if (is_subsystem_dirty('l2tpusers')):?><br/>
109
<?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 />
110
<?php endif?>
104
if ($savemsg)
105
	print_info_box($savemsg, success);
106
	
107
if (isset($config['l2tp']['radius']['enable']))
108
	print_info_box(gettext("Warning: RADIUS is enabled. The local user database will not be used."));
109
	
110
if (is_subsystem_dirty('l2tpusers'))
111
	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>");
112

  
111 113

  
112
<?php
113 114
	$tab_array = array();
114
	$tab_array[0] = array(gettext("Configuration"), false, "vpn_l2tp.php");
115
	$tab_array[1] = array(gettext("Users"), true, "vpn_l2tp_users.php");
115
	$tab_array[] = array(gettext("Configuration"), false, "vpn_l2tp.php");
116
	$tab_array[] = array(gettext("Users"), true, "vpn_l2tp_users.php");
116 117
	display_top_tabs($tab_array);
117 118
?>
118 119
<div class="table-responsive">
......
121 122
			<tr>
122 123
				<th><?=gettext("Username")?></th>
123 124
				<th><?=gettext("IP address")?></th>
124
				<th></th>
125
				<th><?=gettext("Actions")?></th>
125 126
			</tr>
126 127
		</thead>
127 128
		<tbody>
......
151 152
	</a>
152 153
</nav>
153 154

  
154

  
155
<?php include("foot.inc")?>
155
<?php include("foot.inc");

Also available in: Unified diff