diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-02-26 19:49:23 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-02-26 19:49:23 +0000 |
commit | 5cd30ac398020d2cb0b91f92422e7e47e5af9693 (patch) | |
tree | 1f57e32edcaccb092eae503277ed225876429532 /usr/local/www | |
parent | 4b4d599637b1aaf72df32de667828e514235dcb1 (diff) | |
download | pfsense-5cd30ac398020d2cb0b91f92422e7e47e5af9693.zip pfsense-5cd30ac398020d2cb0b91f92422e7e47e5af9693.tar.gz |
Process before form events
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/pkg.php | 2 | ||||
-rwxr-xr-x | usr/local/www/pkg_edit.php | 2 |
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(); |