summaryrefslogtreecommitdiffstats
path: root/usr/local/www/pkg.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-01-05 01:07:19 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-01-05 01:07:19 +0000
commitf9a91638b380f4048e5918c4618d04e63ab9b370 (patch)
tree34fb7dda64faa3bba390885f60586af999a68378 /usr/local/www/pkg.php
parent36e30a64b826ec0fbfc7053dd067539e7e5111aa (diff)
downloadpfsense-f9a91638b380f4048e5918c4618d04e63ab9b370.zip
pfsense-f9a91638b380f4048e5918c4618d04e63ab9b370.tar.gz
Add new custom_php_command_before_form directive which is handy to setup function evals that can be hooked into throughout the life of a package
Diffstat (limited to 'usr/local/www/pkg.php')
-rwxr-xr-xusr/local/www/pkg.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/local/www/pkg.php b/usr/local/www/pkg.php
index 839afe8..5ae1562 100755
--- a/usr/local/www/pkg.php
+++ b/usr/local/www/pkg.php
@@ -87,6 +87,9 @@ if ($_GET['act'] == "del") {
$toeval = "\$evaledvar = \$config['installedpackages']['" . xml_safe_fieldname($pkg['name']) . "']['config'];";
eval($toeval);
+if($pkg['custom_php_command_before_form'] <> "")
+ eval($pkg['custom_php_command_before_form']);
+
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
OpenPOWER on IntegriCloud