summaryrefslogtreecommitdiff
path: root/src/web/helpers/ie.php
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2026-02-23 22:57:27 -0500
committerFreya Murphy <freya@freyacat.org>2026-02-23 22:57:27 -0500
commitf373ead95fb5beb962c376b5b7b46dfde8ac4e57 (patch)
treec99df23521ff2a5e5e2e4627c525a5e99dc2e3ae /src/web/helpers/ie.php
parentadd 96x96 logo (diff)
downloadwebsite-f373ead95fb5beb962c376b5b7b46dfde8ac4e57.tar.gz
website-f373ead95fb5beb962c376b5b7b46dfde8ac4e57.tar.bz2
website-f373ead95fb5beb962c376b5b7b46dfde8ac4e57.zip
update website to work with crimson framework
Diffstat (limited to 'src/web/helpers/ie.php')
-rw-r--r--src/web/helpers/ie.php32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/web/helpers/ie.php b/src/web/helpers/ie.php
deleted file mode 100644
index ead6c1a..0000000
--- a/src/web/helpers/ie.php
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php /* Copyright (c) 2024 Freya Murphy */
-
-/// IE 5 though 8 support IE conditional comments
-/// IE 4 does not (need to fall back to user agent)
-
-{
- if (preg_match('/MSIE\s(?P<v>\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', "<!--[if lt IE 8 ]>");
- define('IE_END', "<![endif]-->");
- } 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 '';
-}