Commit 289c349b authored by Franco Fichtner's avatar Franco Fichtner

www: switch to absolute redirects #1168

parent 9b0ed8f8
...@@ -76,7 +76,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { ...@@ -76,7 +76,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
} }
} }
} }
header(url_safe('Location: carp_status.php?savemsg=%s', array($savemsg))); header(url_safe('Location: /carp_status.php?savemsg=%s', array($savemsg)));
exit; exit;
} elseif ($_SERVER['REQUEST_METHOD'] === 'GET') { } elseif ($_SERVER['REQUEST_METHOD'] === 'GET') {
if (!empty($_GET['savemsg'])) { if (!empty($_GET['savemsg'])) {
......
...@@ -45,7 +45,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -45,7 +45,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$rwlif = escapeshellarg(get_real_interface($if)); $rwlif = escapeshellarg(get_real_interface($if));
if(!empty($_POST['rescanwifi'])) { if(!empty($_POST['rescanwifi'])) {
mwexecf_bg('/sbin/ifconfig %s scan', $rwlif); mwexecf_bg('/sbin/ifconfig %s scan', $rwlif);
header(url_safe('Location: status_wireless.php?if=%s&savemsg=rescan', $if)); header(url_safe('Location: /status_wireless.php?if=%s&savemsg=rescan', array($if)));
exit; exit;
} }
} }
......
...@@ -173,7 +173,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -173,7 +173,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
unset($a_user[$id]); unset($a_user[$id]);
write_config(); write_config();
$savemsg = sprintf(gettext('The user "%s" was successfully removed.'), $userdeleted); $savemsg = sprintf(gettext('The user "%s" was successfully removed.'), $userdeleted);
header(url_safe('Location: system_usermanager.php?savemsg=%s', $savemsg)); header(url_safe('Location: /system_usermanager.php?savemsg=%s', array($savemsg)));
exit; exit;
} }
} elseif ($act == "delcert" && isset($id)) { } elseif ($act == "delcert" && isset($id)) {
...@@ -183,7 +183,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -183,7 +183,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
unset($a_user[$id]['cert'][$pconfig['certid']]); unset($a_user[$id]['cert'][$pconfig['certid']]);
write_config(); write_config();
$savemsg = sprintf(gettext('The certificate association "%s" was successfully removed.'), $certdeleted); $savemsg = sprintf(gettext('The certificate association "%s" was successfully removed.'), $certdeleted);
header(url_safe('Location: system_usermanager.php?savemsg=%s&act=edit&userid=%s', array($savemsg, $id))); header(url_safe('Location: /system_usermanager.php?savemsg=%s&act=edit&userid=%s', array($savemsg, $id)));
exit; exit;
} elseif ($act == "newApiKey" && isset($id)) { } elseif ($act == "newApiKey" && isset($id)) {
// every action is using the sequence of the user, to keep it understandable, we will use // every action is using the sequence of the user, to keep it understandable, we will use
...@@ -209,7 +209,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -209,7 +209,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$savemsg = gettext('No API key found'); $savemsg = gettext('No API key found');
} }
// redirect // redirect
header(url_safe('Location: system_usermanager.php?savemsg=%s&act=edit&userid=%s', array($savemsg, $id))); header(url_safe('Location: /system_usermanager.php?savemsg=%s&act=edit&userid=%s', array($savemsg, $id)));
exit; exit;
} elseif (isset($pconfig['save'])) { } elseif (isset($pconfig['save'])) {
// save user // save user
...@@ -351,17 +351,17 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -351,17 +351,17 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
if (!empty($pconfig['chkNewCert'])) { if (!empty($pconfig['chkNewCert'])) {
// redirect to cert manager when a new cert is requested for this user // redirect to cert manager when a new cert is requested for this user
header(url_safe('Location: system_certmanager.php?act=new&userid=%s', count($a_user) - 1)); header(url_safe('Location: /system_certmanager.php?act=new&userid=%s', array(count($a_user) - 1)));
} else { } else {
header(url_safe('Location: system_usermanager.php')); header(url_safe('Location: /system_usermanager.php'));
exit; exit;
} }
} }
} elseif (isset($id)) { } elseif (isset($id)) {
header(url_safe('Location: system_usermanager.php?userid=%s', $id)); header(url_safe('Location: /system_usermanager.php?userid=%s', array($id)));
exit; exit;
} else { } else {
header(url_safe('Location: system_usermanager.php')); header(url_safe('Location: /system_usermanager.php'));
exit; exit;
} }
} }
......
...@@ -52,7 +52,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -52,7 +52,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$input_type = "group"; $input_type = "group";
$id = $_GET['groupid']; $id = $_GET['groupid'];
} else { } else {
header(url_safe('Location: system_usermanager.php')); header(url_safe('Location: /system_usermanager.php'));
exit; exit;
} }
if ($input_type == "group") { if ($input_type == "group") {
...@@ -80,7 +80,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -80,7 +80,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$retval = write_config(); $retval = write_config();
$savemsg = get_std_save_message(); $savemsg = get_std_save_message();
header(url_safe('Location: system_usermanager.php?act=edit&userid=%s&savemsg=%s', array($userid, $savemsg))); header(url_safe('Location: /system_usermanager.php?act=edit&userid=%s&savemsg=%s', array($userid, $savemsg)));
exit; exit;
} elseif ($_POST['input_type'] == 'group' && isset($config['system']['group'][$pconfig['id']]['name'])) { } elseif ($_POST['input_type'] == 'group' && isset($config['system']['group'][$pconfig['id']]['name'])) {
$groupid = $_POST['id']; $groupid = $_POST['id'];
...@@ -101,11 +101,11 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -101,11 +101,11 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
} }
write_config(); write_config();
header(url_safe('Location: system_groupmanager.php?act=edit&groupid=%s', $groupid)); header(url_safe('Location: /system_groupmanager.php?act=edit&groupid=%s', array($groupid)));
exit; exit;
} }
} }
header(url_safe('Location: system_usermanager.php')); header(url_safe('Location: /system_usermanager.php'));
exit; exit;
} }
......
...@@ -92,7 +92,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { ...@@ -92,7 +92,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
ipsec_configure(); ipsec_configure();
filter_configure(); filter_configure();
clear_subsystem_dirty('ipsec'); clear_subsystem_dirty('ipsec');
header(url_safe('Location: vpn_ipsec.php')); header(url_safe('Location: /vpn_ipsec.php'));
exit; exit;
} elseif (!empty($_POST['act']) && $_POST['act'] == "delphase1" ) { } elseif (!empty($_POST['act']) && $_POST['act'] == "delphase1" ) {
$del_items = array(); $del_items = array();
...@@ -119,7 +119,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { ...@@ -119,7 +119,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
write_config(); write_config();
mark_subsystem_dirty('ipsec'); mark_subsystem_dirty('ipsec');
header(url_safe('Location: vpn_ipsec.php')); header(url_safe('Location: /vpn_ipsec.php'));
exit; exit;
} elseif (!empty($_POST['act']) && $_POST['act'] == "delphase2" ) { } elseif (!empty($_POST['act']) && $_POST['act'] == "delphase2" ) {
if (isset($_POST['id']) && isset($config['ipsec']['phase2'][$_POST['id']])){ if (isset($_POST['id']) && isset($config['ipsec']['phase2'][$_POST['id']])){
...@@ -131,7 +131,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { ...@@ -131,7 +131,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
} }
write_config(); write_config();
mark_subsystem_dirty('ipsec'); mark_subsystem_dirty('ipsec');
header(url_safe('Location: vpn_ipsec.php')); header(url_safe('Location: /vpn_ipsec.php'));
exit; exit;
} elseif (!empty($_POST['act']) && $_POST['act'] == "movep1" ) { } elseif (!empty($_POST['act']) && $_POST['act'] == "movep1" ) {
// move phase 1 records // move phase 1 records
...@@ -146,7 +146,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { ...@@ -146,7 +146,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
} }
write_config(); write_config();
mark_subsystem_dirty('ipsec'); mark_subsystem_dirty('ipsec');
header(url_safe('Location: vpn_ipsec.php')); header(url_safe('Location: /vpn_ipsec.php'));
exit; exit;
} elseif (!empty($_POST['act']) && $_POST['act'] == "movep2" ) { } elseif (!empty($_POST['act']) && $_POST['act'] == "movep2" ) {
// move phase 2 records // move phase 2 records
...@@ -161,7 +161,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { ...@@ -161,7 +161,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
} }
write_config(); write_config();
mark_subsystem_dirty('ipsec'); mark_subsystem_dirty('ipsec');
header(url_safe('Location: vpn_ipsec.php')); header(url_safe('Location: /vpn_ipsec.php'));
exit; exit;
} elseif (!empty($_POST['act']) && $_POST['act'] == "togglep1" && isset($a_phase1[$_POST['id']]) ) { } elseif (!empty($_POST['act']) && $_POST['act'] == "togglep1" && isset($a_phase1[$_POST['id']]) ) {
// toggle phase 1 record // toggle phase 1 record
...@@ -172,7 +172,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { ...@@ -172,7 +172,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
} }
write_config(); write_config();
mark_subsystem_dirty('ipsec'); mark_subsystem_dirty('ipsec');
header(url_safe('Location: vpn_ipsec.php')); header(url_safe('Location: /vpn_ipsec.php'));
exit; exit;
} elseif (!empty($_POST['act']) && $_POST['act'] == "togglep2" && isset($a_phase2[$_POST['id']]) ) { } elseif (!empty($_POST['act']) && $_POST['act'] == "togglep2" && isset($a_phase2[$_POST['id']]) ) {
// toggle phase 2 record // toggle phase 2 record
...@@ -183,7 +183,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { ...@@ -183,7 +183,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
} }
write_config(); write_config();
mark_subsystem_dirty('ipsec'); mark_subsystem_dirty('ipsec');
header(url_safe('Location: vpn_ipsec.php')); header(url_safe('Location: /vpn_ipsec.php'));
exit; exit;
} }
} }
......
...@@ -51,7 +51,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { ...@@ -51,7 +51,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
unset($config['ipsec']['mobilekey'][$_POST['id']]); unset($config['ipsec']['mobilekey'][$_POST['id']]);
write_config('Deleted pre-shared IPsec key'); write_config('Deleted pre-shared IPsec key');
mark_subsystem_dirty('ipsec'); mark_subsystem_dirty('ipsec');
header(url_safe('Location: vpn_ipsec_keys.php')); header(url_safe('Location: /vpn_ipsec_keys.php'));
exit; exit;
} }
} elseif (isset($_POST['apply'])) { } elseif (isset($_POST['apply'])) {
...@@ -62,7 +62,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { ...@@ -62,7 +62,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
clear_subsystem_dirty('ipsec'); clear_subsystem_dirty('ipsec');
} else { } else {
// nothing to post, redirect // nothing to post, redirect
header(url_safe('Location: vpn_ipsec_keys.php')); header(url_safe('Location: /vpn_ipsec_keys.php'));
exit; exit;
} }
} }
......
...@@ -111,7 +111,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -111,7 +111,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
write_config("{$config_write_text} IPsec Pre-Shared Keys"); write_config("{$config_write_text} IPsec Pre-Shared Keys");
mark_subsystem_dirty('ipsec'); mark_subsystem_dirty('ipsec');
header(url_safe('Location: vpn_ipsec_keys.php')); header(url_safe('Location: /vpn_ipsec_keys.php'));
exit; exit;
} }
} }
......
...@@ -85,14 +85,14 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -85,14 +85,14 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$pconfig = $_POST; $pconfig = $_POST;
if (isset($_POST['create'])) { if (isset($_POST['create'])) {
// create new phase1 entry // create new phase1 entry
header(url_safe('Location: vpn_ipsec_phase1.php?mobile=true')); header(url_safe('Location: /vpn_ipsec_phase1.php?mobile=true'));
exit; exit;
} elseif (isset($_POST['apply'])) { } elseif (isset($_POST['apply'])) {
// apply changes // apply changes
ipsec_configure(); ipsec_configure();
$savemsg = get_std_save_message(); $savemsg = get_std_save_message();
clear_subsystem_dirty('ipsec'); clear_subsystem_dirty('ipsec');
header(url_safe('Location: vpn_ipsec_mobile.php?savemsg=%s', $savemsg)); header(url_safe('Location: /vpn_ipsec_mobile.php?savemsg=%s', array($savemsg)));
exit; exit;
} elseif (isset($_POST['submit'])) { } elseif (isset($_POST['submit'])) {
// save form changes // save form changes
...@@ -172,7 +172,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -172,7 +172,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
write_config(); write_config();
mark_subsystem_dirty('ipsec'); mark_subsystem_dirty('ipsec');
header(url_safe('Location: vpn_ipsec_mobile.php')); header(url_safe('Location: /vpn_ipsec_mobile.php'));
exit; exit;
} }
} }
......
...@@ -397,7 +397,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -397,7 +397,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
write_config(); write_config();
mark_subsystem_dirty('ipsec'); mark_subsystem_dirty('ipsec');
header(url_safe('Location: vpn_ipsec.php')); header(url_safe('Location: /vpn_ipsec.php'));
exit; exit;
} }
} }
......
...@@ -445,7 +445,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -445,7 +445,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
write_config(); write_config();
mark_subsystem_dirty('ipsec'); mark_subsystem_dirty('ipsec');
header(url_safe('Location: vpn_ipsec.php')); header(url_safe('Location: /vpn_ipsec.php'));
exit; exit;
} }
} }
......
...@@ -137,7 +137,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -137,7 +137,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
unset($a_client[$id]); unset($a_client[$id]);
write_config(); write_config();
} }
header(url_safe('Location: vpn_openvpn_client.php')); header(url_safe('Location: /vpn_openvpn_client.php'));
exit; exit;
} elseif ($act == "del_x") { } elseif ($act == "del_x") {
if (!empty($pconfig['rule']) && is_array($pconfig['rule'])) { if (!empty($pconfig['rule']) && is_array($pconfig['rule'])) {
...@@ -149,7 +149,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -149,7 +149,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
} }
write_config(); write_config();
} }
header(url_safe('Location: vpn_openvpn_client.php')); header(url_safe('Location: /vpn_openvpn_client.php'));
exit; exit;
} elseif ($act == "move"){ } elseif ($act == "move"){
// move selected items // move selected items
...@@ -159,7 +159,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -159,7 +159,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
} }
$a_client = legacy_move_config_list_items($a_client, $id, $pconfig['rule']); $a_client = legacy_move_config_list_items($a_client, $id, $pconfig['rule']);
write_config(); write_config();
header(url_safe('Location: vpn_openvpn_client.php')); header(url_safe('Location: /vpn_openvpn_client.php'));
exit; exit;
} elseif ($act == "toggle") { } elseif ($act == "toggle") {
if (isset($id)) { if (isset($id)) {
...@@ -171,7 +171,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -171,7 +171,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
openvpn_resync('client', $a_client[$id]); openvpn_resync('client', $a_client[$id]);
write_config(); write_config();
} }
header(url_safe('Location: vpn_openvpn_client.php')); header(url_safe('Location: /vpn_openvpn_client.php'));
exit; exit;
} else { } else {
// update client (after validation) // update client (after validation)
...@@ -339,7 +339,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -339,7 +339,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
openvpn_resync('client', $client); openvpn_resync('client', $client);
write_config(); write_config();
header(url_safe('Location: vpn_openvpn_client.php')); header(url_safe('Location: /vpn_openvpn_client.php'));
exit; exit;
} }
} }
......
...@@ -90,7 +90,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -90,7 +90,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
unset($a_csc[$id]); unset($a_csc[$id]);
write_config(); write_config();
} }
header(url_safe('Location: vpn_openvpn_csc.php')); header(url_safe('Location: /vpn_openvpn_csc.php'));
exit; exit;
} elseif ($act == "del_x") { } elseif ($act == "del_x") {
if (!empty($pconfig['rule']) && is_array($pconfig['rule'])) { if (!empty($pconfig['rule']) && is_array($pconfig['rule'])) {
...@@ -102,7 +102,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -102,7 +102,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
} }
write_config(); write_config();
} }
header(url_safe('Location: vpn_openvpn_csc.php')); header(url_safe('Location: /vpn_openvpn_csc.php'));
exit; exit;
} elseif ($act == "move"){ } elseif ($act == "move"){
// move selected items // move selected items
...@@ -112,7 +112,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -112,7 +112,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
} }
$a_csc = legacy_move_config_list_items($a_csc, $id, $pconfig['rule']); $a_csc = legacy_move_config_list_items($a_csc, $id, $pconfig['rule']);
write_config(); write_config();
header(url_safe('Location: vpn_openvpn_csc.php')); header(url_safe('Location: /vpn_openvpn_csc.php'));
exit; exit;
} elseif ($act == "toggle") { } elseif ($act == "toggle") {
if (isset($id)) { if (isset($id)) {
...@@ -124,7 +124,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -124,7 +124,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
write_config(); write_config();
openvpn_resync_csc(); openvpn_resync_csc();
} }
header(url_safe('Location: vpn_openvpn_csc.php')); header(url_safe('Location: /vpn_openvpn_csc.php'));
exit; exit;
} else { } else {
/* perform validations */ /* perform validations */
...@@ -225,7 +225,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -225,7 +225,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
write_config(); write_config();
openvpn_resync_csc(); openvpn_resync_csc();
header(url_safe('Location: vpn_openvpn_csc.php')); header(url_safe('Location: /vpn_openvpn_csc.php'));
exit; exit;
} }
} }
......
...@@ -112,7 +112,7 @@ if (isset($config['openvpn']['openvpn-server'])) { ...@@ -112,7 +112,7 @@ if (isset($config['openvpn']['openvpn-server'])) {
$usrid = isset($_GET['usrid']) ? $_GET['usrid'] : false; $usrid = isset($_GET['usrid']) ? $_GET['usrid'] : false;
$crtid = isset($_GET['crtid']) ? $_GET['crtid'] : false; $crtid = isset($_GET['crtid']) ? $_GET['crtid'] : false;
if ($srvid === false) { if ($srvid === false) {
header(url_safe('Location: vpn_openvpn_export.php')); header(url_safe('Location: /vpn_openvpn_export.php'));
exit; exit;
} }
......
...@@ -141,7 +141,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -141,7 +141,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
unset($a_server[$id]); unset($a_server[$id]);
write_config(); write_config();
} }
header(url_safe('Location: vpn_openvpn_server.php')); header(url_safe('Location: /vpn_openvpn_server.php'));
exit; exit;
} elseif ($act == "toggle") { } elseif ($act == "toggle") {
if (isset($id)) { if (isset($id)) {
...@@ -153,7 +153,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -153,7 +153,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
openvpn_resync('server', $a_server[$id]); openvpn_resync('server', $a_server[$id]);
write_config(); write_config();
} }
header(url_safe('Location: vpn_openvpn_server.php')); header(url_safe('Location: /vpn_openvpn_server.php'));
exit; exit;
} else { } else {
// action add/update // action add/update
...@@ -406,7 +406,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -406,7 +406,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
write_config(); write_config();
openvpn_resync_csc(); // dump client specific overrides, the required set may have changed openvpn_resync_csc(); // dump client specific overrides, the required set may have changed
header(url_safe('Location: vpn_openvpn_server.php')); header(url_safe('Location: /vpn_openvpn_server.php'));
exit; exit;
} elseif (!empty($pconfig['authmode'])) { } elseif (!empty($pconfig['authmode'])) {
$pconfig['authmode'] = implode(",", $pconfig['authmode']); $pconfig['authmode'] = implode(",", $pconfig['authmode']);
......
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