summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-03-19 23:29:39 +0000
committerColin Smith <colin@pfsense.org>2005-03-19 23:29:39 +0000
commit194b4e0a3bddc2184cd5a48668ac5d93491ff8a2 (patch)
tree00375ab56f20dfb813e83117d2e9c0702e121dcb /etc
parent050cb8a01378afd7caefbd5281ad1cdeced4e1da (diff)
downloadpfsense-194b4e0a3bddc2184cd5a48668ac5d93491ff8a2.zip
pfsense-194b4e0a3bddc2184cd5a48668ac5d93491ff8a2.tar.gz
Add basic support for <custom_php_global_functions> tag.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pfsense-utils.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 616481d..4126b10 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -875,6 +875,8 @@ function sync_package($pkg_name, $sync_depends = true, $show_message = false) {
$pkg_config = parse_xml_config_pkg("/usr/local/pkg/" . $package['configurationfile'], "packagegui");
if(isset($pkg_config['nosync'])) continue;
//if($show_message == true) print "Syncing " . $pkg_name;
+ if($pkg['custom_php_global_functions'] <> "")
+ eval($pkg['custom_php_global_functions']);
if($pkg_config['custom_php_command_before_form'] <> "")
eval($pkg_config['custom_php_command_before_form']);
if($pkg_config['custom_php_resync_config_command'] <> "")
@@ -938,4 +940,4 @@ function make_dirs($path, $mode = 0755)
return is_dir($path) || (make_dirs(dirname($path), $mode) && safe_mkdir($path, $mode));
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud