JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
added support for ie6
[contractor-progress.git] / code / ie_detect.php
diff --git a/code/ie_detect.php b/code/ie_detect.php
new file mode 100644 (file)
index 0000000..904cbb8
--- /dev/null
@@ -0,0 +1,9 @@
+<?php
+
+# return true if user_agent is IE5.5 or IE6
+function ie5or6() {
+       $agent = $_SERVER['HTTP_USER_AGENT'];
+       return (strpos($agent, 'MSIE 5.') || strpos($agent, 'MSIE 5.') || strpos($agent, 'MSIE 6.'));
+}
+
+?>