mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 01:24:38 +00:00
(legacy) redirect after apply in vpn_ipsec_mobile.php
This commit is contained in:
parent
3d765c028e
commit
258831f4dd
@ -52,6 +52,10 @@ $form_fields = "user_source,group_source,pool_address,pool_netbits,net_list
|
||||
,dns_server4,wins_server1,wins_server2,pfs_group,login_banner";
|
||||
|
||||
if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
// pass savemessage
|
||||
if (isset($_GET['savemsg'])) {
|
||||
$savemsg = htmlspecialchars($_GET['savemsg']);
|
||||
}
|
||||
$pconfig = array();
|
||||
// defaults
|
||||
$pconfig['pool_netbits'] = 24;
|
||||
@ -92,6 +96,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
clear_subsystem_dirty('ipsec');
|
||||
}
|
||||
}
|
||||
header("Location: vpn_ipsec_mobile.php?savemsg=".$savemsg);
|
||||
} elseif (isset($_POST['submit'])) {
|
||||
// save form changes
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user