removed mods directory from the ATutor codebase
[atutor.git] / mods / wiki / plugins / filter / f_msiepng.php
diff --git a/mods/wiki/plugins/filter/f_msiepng.php b/mods/wiki/plugins/filter/f_msiepng.php
deleted file mode 100644 (file)
index 5a28705..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-
-/*
-   This plugin enables the RedirectX workaround for M$IE 5.5+ browsers, to
-   make the alpha channel of .png graphics work. You must first set the
-   name of the 1-pixel-transparent gif graphic!
-*/
-
-
-define("FIX_MSIE_NULL_GIF", "/img/null.gif");
-
-
-$ewiki_plugins["view_final"][] = "fix_msie_png";
-
-
-function fix_msie_png(&$html) {
-   $ua = $_SERVER["HTTP_USER_AGENT"];
-   if (strstr($ua, "MSIE") && !strstr($ua, "Opera")
-       && (strstr($ua, "5.5") || strstr($ua, "6.0"))
-      )
-   {
-      $html = preg_replace(
-         '/(<img[^>]*?)\ssrc="([^">]+?png[^>"]*)"([^>]*?>)/i',
-         '$1 src="'.FIX_MSIE_NULL_GIF.'" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'$2\', sizingMethod=\'scale\')"$3',
-         $html
-      );
-   }
-}
-
-
-?>
\ No newline at end of file