From: cajus Date: Mon, 9 Jul 2007 07:50:29 +0000 (+0000) Subject: Added IE workaround switch. It's disabled now by default. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=463f4c0920a313e3849d1b931ef518261fa57119;p=gosa.git Added IE workaround switch. It's disabled now by default. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6772 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/Changelog b/Changelog index 5f28b5bbe..a9f34cbf4 100644 --- a/Changelog +++ b/Changelog @@ -3,6 +3,9 @@ GOsa2 changelog * gosa 2.5.12 - Fixed problems with automatic reverse zones + - Fixed several IE6 related Java-Script problems + - Removed png.js by default. Looks ugly, but performs. Take + a look at the FAQ on how to re-enable it for IE. * gosa 2.5.11a - Added chinese translation diff --git a/FAQ b/FAQ index 79eff7907..25eb63fc2 100644 --- a/FAQ +++ b/FAQ @@ -380,3 +380,16 @@ A: Yes. Set "session_lifetime" to the number of seconds of inactivity. 7200 (60x60x2) would be for two hours. Place this option inside the main section of your gosa.conf. + +Q: Microsoft Internet Explorer <=6 seems paints strange blocks around + images. + +A: Use Firefox, Konqueror, Safari, Opera, IE >= 7, etc. IE is broken and + I don't want to waste my time with working around this old crap. There's + a quick hack, if you just put "ie_png_workaround='true'" inside the main + section of your gosa.conf. This is a JavaScript based workaround and I've + to place a WARNING here, that it is damn slow if you've large lists to + display. + + If you have much time, you can provide a seamless integration with MS + filter css extension. diff --git a/html/index.php b/html/index.php index 756d50378..f57227ddd 100644 --- a/html/index.php +++ b/html/index.php @@ -32,6 +32,12 @@ function displayLogin() if(isset($_POST["username"])){ $username= $_POST["username"]; } + + /* Place ie workaround if needed */ + if (isset($config->data['MAIN']['IE_PNG_WORKAROUND']) && preg_match("/true/i",$config->data['MAIN']['IE_PNG_WORKAROUND'])){ + $smarty->assign('ieworkaround', 1); + } + $smarty->assign ('date', gmdate("D, d M Y H:i:s")); $smarty->assign ('username', $username); $smarty->assign ('personal_img', get_template_path('images/personal.png')); diff --git a/html/main.php b/html/main.php index 57996e0df..dc952df2e 100644 --- a/html/main.php +++ b/html/main.php @@ -263,16 +263,9 @@ if (isset($_GET['reset'])){ } } -/* Install eGOsa hooks, convert _POST to _SESSION['POST'] */ -if(isset($_GET['explorer'])){ - $_SESSION{'eGosa'}=1; -} -if(isset($_SESSION['POST'])){ - $_SERVER["REQUEST_METHOD"] = "POST"; - foreach ($_SESSION['POST'] as $key => $dummy){ - $_POST[$key]=$_SESSION['POST'][$key]; - } - unset($_SESSION['POST']); +/* Place IE workaround */ +if (isset($config->data['MAIN']['IE_PNG_WORKAROUND']) && preg_match("/true/i",$config->data['MAIN']['IE_PNG_WORKAROUND'])){ + $smarty->assign('ieworkaround', 1); } /* show web frontend */