diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index a86ea28..7735c32 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -576,19 +576,22 @@ function resync_all_package_configs_bootup($show_message) { $pkg_config = parse_xml_config_pkg("/usr/local/pkg/" . $package['configurationfile'], "packagegui"); if(isset($pkg_config['nosync'])) continue; if($show_message == true) print " " . $package['name']; + $error_message = ''; if($pkg_config['custom_php_command_before_form'] <> "") { - if(php_check_syntax($pkg_config['custom_php_command_before_form'], $error_message)) { + // if(php_check_syntax($pkg_config['custom_php_command_before_form'], $error_message) === true) { eval($pkg_config['custom_php_command_before_form']); - } else { - print "(!)"; - } + // } else { + // print "(!)"; + // continue; + // } } if($pkg_config['custom_php_resync_config_command'] <> "") { - if(php_check_syntax($pkg_config['custom_php_resync_config_command'], $error_message)) { + // if(php_check_syntax($pkg_config['custom_php_resync_config_command'], $error_message) === true) { eval($pkg_config['custom_php_resync_config_command']); - } else { - print "(!)"; - } + // } else { + // print "(!)"; + // continue; + // } } $depends = get_pkg_depends($package['name'], ".xml", "files", 0); // Call dependency handler and do a little more error checking. if(is_array($depends)) |