Our compatibility code raelly needs to go into functions.inc so it can get installed before other php files are sourced.

This commit is contained in:
Scott Ullrich 2006-09-08 21:05:26 +00:00
parent 022a0f9ace
commit 50797647a4
2 changed files with 15 additions and 15 deletions

View File

@ -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");

View File

@ -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;
}
?>
?>