summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-02-26 19:49:23 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-02-26 19:49:23 +0000
commit5cd30ac398020d2cb0b91f92422e7e47e5af9693 (patch)
tree1f57e32edcaccb092eae503277ed225876429532 /usr/local/www
parent4b4d599637b1aaf72df32de667828e514235dcb1 (diff)
downloadpfsense-5cd30ac398020d2cb0b91f92422e7e47e5af9693.zip
pfsense-5cd30ac398020d2cb0b91f92422e7e47e5af9693.tar.gz
Process before form events
Diffstat (limited to 'usr/local/www')
-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