diff options
author | Ermal <eri@pfsense.org> | 2010-10-04 13:00:49 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-10-04 13:00:49 +0000 |
commit | 9cc0dd730ec8194de137732278a5b2ea63242cd3 (patch) | |
tree | d6031153424baeed65c0c4ae08053a4344cb9625 /usr/local/www | |
parent | 54b78cc1391890496332a51cdd23d456cfb99aec (diff) | |
download | pfsense-9cc0dd730ec8194de137732278a5b2ea63242cd3.zip pfsense-9cc0dd730ec8194de137732278a5b2ea63242cd3.tar.gz |
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
Diffstat (limited to 'usr/local/www')
-rw-r--r-- | usr/local/www/vpn_l2tp_users.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/vpn_l2tp_users.php b/usr/local/www/vpn_l2tp_users.php index 4156583..3393b6e 100644 --- a/usr/local/www/vpn_l2tp_users.php +++ b/usr/local/www/vpn_l2tp_users.php @@ -56,8 +56,8 @@ if ($_POST) { } $savemsg = get_std_save_message($retval); if ($retval == 0) { - if (file_exists($d_l2tpuserdirty_path)) - unlink($d_l2tpuserdirty_path); + if (is_subsystem_dirty('l2tpusers')) + clear_subsystem_dirty('l2tpusers'); } } } @@ -66,7 +66,7 @@ if ($_GET['act'] == "del") { if ($a_secret[$_GET['id']]) { unset($a_secret[$_GET['id']]); write_config(); - touch($d_l2tpuserdirty_path); + mark_subsystem_dirty('l2tpusers'); pfSenseHeader("vpn_l2tp_users.php"); exit; } @@ -82,7 +82,7 @@ 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 (file_exists($d_l2tpuserdirty_path)): ?><p> +<?php if (is_subsystem_dirty('l2tpusers')): ?><p> <?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; ?> <table width="100%" border="0" cellpadding="0" cellspacing="0"> |