diff options
author | doktornotor <notordoktor@gmail.com> | 2017-03-08 19:40:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-08 19:40:25 +0100 |
commit | bbd36e2d660af771904a9c976845b3ac13ef2f20 (patch) | |
tree | 353c418a196952fbaf7d2a8d92853229f05e3bcb /src/etc/inc/functions.inc | |
parent | 209e95d6520f488dedfdf19b6a5202a014b9f2cc (diff) | |
download | pfsense-bbd36e2d660af771904a9c976845b3ac13ef2f20.zip pfsense-bbd36e2d660af771904a9c976845b3ac13ef2f20.tar.gz |
Relocate pfSenseHeader() function to pfsense-utils.inc
Sort includes while here.
Diffstat (limited to 'src/etc/inc/functions.inc')
-rw-r--r-- | src/etc/inc/functions.inc | 41 |
1 files changed, 3 insertions, 38 deletions
diff --git a/src/etc/inc/functions.inc b/src/etc/inc/functions.inc index 085fab1..ee29b40 100644 --- a/src/etc/inc/functions.inc +++ b/src/etc/inc/functions.inc @@ -23,47 +23,12 @@ * limitations under the License. */ -/* BEGIN compatibility goo with HEAD */ -if (!function_exists("pfSenseHeader")) { - /****f* pfsense-utils/pfSenseHeader - * NAME - * pfSenseHeader - * INPUTS - * none - * RESULT - * Javascript header change or browser Location: - ******/ - function pfSenseHeader($text) { - global $_SERVER; - if (isAjax()) { - if ($_SERVER['HTTPS'] == "on") { - $protocol = "https"; - } else { - $protocol = "http"; - } - - $port = ":{$_SERVER['SERVER_PORT']}"; - if ($_SERVER['SERVER_PORT'] == "80" && $protocol == "http") { - $port = ""; - } - if ($_SERVER['SERVER_PORT'] == "443" && $protocol == "https") { - $port = ""; - } - $complete_url = "{$protocol}://{$_SERVER['HTTP_HOST']}{$port}/{$text}"; - echo "\ndocument.location.href = '{$complete_url}';\n"; - } else { - header("Location: $text"); - } - } -} -/* END compatibility goo with HEAD */ - /* include all configuration functions */ -require_once("interfaces.inc"); +require_once("certs.inc"); require_once("gwlb.inc"); -require_once("services.inc"); +require_once("interfaces.inc"); require_once("pfsense-utils.inc"); -require_once("certs.inc"); +require_once("services.inc"); require_once("system.inc"); require_once("vslb.inc"); |