diff options
author | Colin Smith <colin@pfsense.org> | 2005-03-13 22:28:46 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-03-13 22:28:46 +0000 |
commit | da237b7537c4d5e576ddb4a6dc5e233236e207e6 (patch) | |
tree | c85e8ae63a34c9fd2ec5042b17fb400acbf78d24 /etc | |
parent | df81a909de032623ab4a8e6d1a648b45476f528e (diff) | |
download | pfsense-da237b7537c4d5e576ddb4a6dc5e233236e207e6.zip pfsense-da237b7537c4d5e576ddb4a6dc5e233236e207e6.tar.gz |
Back out php_check_syntax() checking of package XML before sync (still fixing bugs).
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)) |