Allowing normal user to change proxy template

This commit is contained in:
dpeca 2018-01-10 23:15:57 +01:00 committed by GitHub
commit f3907e06ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -230,8 +230,8 @@ if (!empty($_POST['save'])) {
$restart_proxy = 'yes'; $restart_proxy = 'yes';
} }
// Change proxy template / Update extension list (admin only) // Change proxy template / Update extension list
if ((!empty($_SESSION['PROXY_SYSTEM'])) && (!empty($v_proxy)) && (!empty($_POST['v_proxy'])) && (empty($_SESSION['error_msg'])) && ($_SESSION['user'] == 'admin')) { if ((!empty($_SESSION['PROXY_SYSTEM'])) && (!empty($v_proxy)) && (!empty($_POST['v_proxy'])) && (empty($_SESSION['error_msg'])) ) {
$ext = preg_replace("/\n/", " ", $_POST['v_proxy_ext']); $ext = preg_replace("/\n/", " ", $_POST['v_proxy_ext']);
$ext = preg_replace("/,/", " ", $ext); $ext = preg_replace("/,/", " ", $ext);
$ext = preg_replace('/\s+/', ' ',$ext); $ext = preg_replace('/\s+/', ' ',$ext);