mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
pptp: improve edit page like l2tp already does
This commit is contained in:
parent
07bafdf64c
commit
40516e542e
@ -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");
|
||||
|
||||
?>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user