diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-03-13 23:55:53 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-03-13 23:55:53 +0000 |
commit | c177d6ad4833ef18f3cda7a9c4e7aa3f5aceecb5 (patch) | |
tree | fd773f1d242357ffd6ef94190fdb60b1370a40c2 /etc | |
parent | e0dcab6a754e041d17baedaa8a38c4bed37ccc16 (diff) | |
download | pfsense-c177d6ad4833ef18f3cda7a9c4e7aa3f5aceecb5.zip pfsense-c177d6ad4833ef18f3cda7a9c4e7aa3f5aceecb5.tar.gz |
Return false until the php fork bomb fiasco is solved.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index e5fe6f8..6be9008 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -796,6 +796,7 @@ Content-Length: $content_length */ if (!function_exists('php_check_syntax')){ function php_check_syntax($code_to_check, &$errormessage){ + return false; $fout = fopen("/tmp/codetocheck.php","w"); $code = $_POST['content']; $code = str_replace("<?php", "", $code); @@ -822,6 +823,7 @@ if (!function_exists('php_check_syntax')){ */ if (!function_exists('php_check_syntax')){ function php_check_syntax($code_to_check, &$errormessage){ + return false; $command = "/usr/local/bin/php -l " . $code_to_check; $output = exec_command($command); if (stristr($output, "Errors parsing") == false) { @@ -839,7 +841,7 @@ if (!function_exists('php_check_syntax')){ * sync_package($pkg_name, $sync_depends = true, $show_message = false) Force a package to setup its configuration and rc.d files. */ function sync_package($pkg_name, $sync_depends = true, $show_message = false) { - global $config; + global $config; if(!$config['installedpackages']['package']) return; if(!is_numeric($pkg_name)) { $pkg_id = get_pkg_id($pkg_name); |