summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_captiveportal_filemanager.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/services_captiveportal_filemanager.php')
-rwxr-xr-xusr/local/www/services_captiveportal_filemanager.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/services_captiveportal_filemanager.php b/usr/local/www/services_captiveportal_filemanager.php
index aedd191..2c673a0 100755
--- a/usr/local/www/services_captiveportal_filemanager.php
+++ b/usr/local/www/services_captiveportal_filemanager.php
@@ -123,11 +123,11 @@ if ($_POST) {
}
} else if (($_GET['act'] == "del") && !empty($cpzone) && $a_element[$_GET['id']]) {
conf_mount_rw();
- unlink_if_exists($g['captiveportal_path'] . "/" . $a_element[$id]['name']);
+ @unlink("{$g['captiveportal_element_path']}/" . $a_element[$_GET['id']]['name']);
+ @unlink("{$g['captiveportal_path']}/" . $a_element[$_GET['id']]['name']);
+ conf_mount_ro();
unset($a_element[$_GET['id']]);
write_config();
- captiveportal_write_elements();
- conf_mount_ro();
header("Location: services_captiveportal_filemanager.php?zone={$cpzone}");
exit;
}
OpenPOWER on IntegriCloud