Revision 9cc0dd73
Added by Ermal LUÇI over 14 years ago
usr/local/www/vpn_l2tp_users.php | ||
---|---|---|
56 | 56 |
} |
57 | 57 |
$savemsg = get_std_save_message($retval); |
58 | 58 |
if ($retval == 0) { |
59 |
if (file_exists($d_l2tpuserdirty_path))
|
|
60 |
unlink($d_l2tpuserdirty_path);
|
|
59 |
if (is_subsystem_dirty('l2tpusers'))
|
|
60 |
clear_subsystem_dirty('l2tpusers');
|
|
61 | 61 |
} |
62 | 62 |
} |
63 | 63 |
} |
... | ... | |
66 | 66 |
if ($a_secret[$_GET['id']]) { |
67 | 67 |
unset($a_secret[$_GET['id']]); |
68 | 68 |
write_config(); |
69 |
touch($d_l2tpuserdirty_path);
|
|
69 |
mark_subsystem_dirty('l2tpusers');
|
|
70 | 70 |
pfSenseHeader("vpn_l2tp_users.php"); |
71 | 71 |
exit; |
72 | 72 |
} |
... | ... | |
82 | 82 |
<?php if ($savemsg) print_info_box($savemsg); ?> |
83 | 83 |
<?php if (isset($config['l2tp']['radius']['enable'])) |
84 | 84 |
print_info_box(gettext("Warning: RADIUS is enabled. The local user database will not be used.")); ?> |
85 |
<?php if (file_exists($d_l2tpuserdirty_path)): ?><p>
|
|
85 |
<?php if (is_subsystem_dirty('l2tpusers')): ?><p>
|
|
86 | 86 |
<?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 /> |
87 | 87 |
<?php endif; ?> |
88 | 88 |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
Also available in: Unified diff
Bring l2tp users page back to latest world of 2.0 to avoid errors. Reported-by: http://forum.pfsense.org/index.php/topic,28829.0.html