summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/pkg.php2
-rwxr-xr-xusr/local/www/pkg_edit.php2
2 files changed, 4 insertions, 0 deletions
diff --git a/usr/local/www/pkg.php b/usr/local/www/pkg.php
index 6eee522..9dbaaf4 100755
--- a/usr/local/www/pkg.php
+++ b/usr/local/www/pkg.php
@@ -74,6 +74,8 @@ if ($_GET['act'] == "del") {
if ($a_pkg[$_GET['id']]) {
if($pkg['custom_delete_php_command'] <> "") {
+ if($pkg['custom_php_command_before_form'] <> "")
+ eval($pkg['custom_php_command_before_form']);
eval($pkg['custom_delete_php_command']);
}
diff --git a/usr/local/www/pkg_edit.php b/usr/local/www/pkg_edit.php
index b3b157f..e9f8f49 100755
--- a/usr/local/www/pkg_edit.php
+++ b/usr/local/www/pkg_edit.php
@@ -89,6 +89,8 @@ if($pkg['custom_php_command_before_form'] <> "")
if ($_POST) {
if($_POST['act'] == "del") {
if($pkg['custom_delete_php_command']) {
+ if($pkg['custom_php_command_before_form'] <> "")
+ eval($pkg['custom_php_command_before_form']);
eval($pkg['custom_delete_php_command']);
}
write_config();
OpenPOWER on IntegriCloud