diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-09-08 21:05:26 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-09-08 21:05:26 +0000 |
commit | 50797647a499df16e9bfb1fafcc3ef28da2d6590 (patch) | |
tree | 11d1baa773c94ad210a8e164f49ff2c1fb6a364c | |
parent | 022a0f9ace0b63b17d2ba282d23541a6a7c99169 (diff) | |
download | pfsense-50797647a499df16e9bfb1fafcc3ef28da2d6590.zip pfsense-50797647a499df16e9bfb1fafcc3ef28da2d6590.tar.gz |
Our compatibility code raelly needs to go into functions.inc so it can get installed before other php files are sourced.
-rw-r--r-- | etc/inc/functions.inc | 14 | ||||
-rw-r--r-- | etc/inc/pfsense-utils.inc | 16 |
2 files changed, 15 insertions, 15 deletions
diff --git a/etc/inc/functions.inc b/etc/inc/functions.inc index 11738f9..77a08cb 100644 --- a/etc/inc/functions.inc +++ b/etc/inc/functions.inc @@ -31,6 +31,20 @@ POSSIBILITY OF SUCH DAMAGE. */ +/* BEGIN compatibility goo with HEAD */ +if(!function_exists("gettext")) { + function gettext($text) { + return $text; + } +} + +if(!function_exists("pfSenseHeader")) { + function pfSenseHeader($location) { + header("Location: $location"); + } +} +/* END compatibility goo with HEAD */ + /* include all configuration functions */ require_once("captiveportal.inc"); require_once("filter.inc"); diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index d2dc277..0f89313 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -33,20 +33,6 @@ * */ -/* BEGIN compatibility goo with HEAD */ -if(!function_exists("gettext")) { - function gettext($text) { - return $text; - } -} - -if(!function_exists("pfSenseHeader")) { - function pfSenseHeader($location) { - header("Location: $location"); - } -} -/* END compatibility goo with HEAD */ - function get_tmp_file() { return "/tmp/tmp-" . time(); } @@ -2352,4 +2338,4 @@ function is_dhcp_server_enabled() { return $dhcpdenable; } -?> +?>
\ No newline at end of file |