Commit 157e8f24 authored by Franco Fichtner's avatar Franco Fichtner

pptp: improve edit page like l2tp already does

(cherry picked from commit 40516e54)
parent d6e54811
......@@ -44,6 +44,8 @@ function pptpd_users_sort()
}
require_once('guiconfig.inc');
require_once('services.inc');
require_once('plugins.inc.d/vpn.inc');
if (!is_array($config['pptpd']['user'])) {
$config['pptpd']['user'] = array();
......@@ -123,16 +125,18 @@ if ($_POST) {
} else {
$a_secret[] = $secretent;
}
pptpd_users_sort();
pptpd_users_sort();
write_config();
mark_subsystem_dirty('pptpusers');
vpn_pptpd_configure();
header("Location: vpn_pptp_users.php");
exit;
}
}
$service_hook = 'pptpd';
include("head.inc");
?>
......
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