From f373ead95fb5beb962c376b5b7b46dfde8ac4e57 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Mon, 23 Feb 2026 22:57:27 -0500 Subject: update website to work with crimson framework --- src/web/lib/ie.php | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/web/lib/ie.php (limited to 'src/web/lib/ie.php') diff --git a/src/web/lib/ie.php b/src/web/lib/ie.php new file mode 100644 index 0000000..ead6c1a --- /dev/null +++ b/src/web/lib/ie.php @@ -0,0 +1,32 @@ +\d+)/i', @$_SERVER['HTTP_USER_AGENT'], $B)) { + define('IE_VERSION', $B['v']); + } else { + define('IE_VERSION', FALSE); + } + + if (IE_VERSION == FALSE || IE_VERSION > 4) { + // ADD COND COMMENTS + define('IE_START', ""); + } else { + // IE4 DETECTED, DO NOT ADD COMMENTS + define('IE_START', ''); + define('IE_END', ''); + } +} + +function ie(string $inner) { + return IE_START . $inner . IE_END; +} + +function ie_ua(string $inner, int $ver) { + if (IE_VERSION == $ver) + return $inner; + return ''; +} -- cgit v1.2.3-freya