summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b501847)
raw | patch | inline | side by side (parent: b501847)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 22 Mar 2006 11:30:15 +0000 (11:30 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 22 Mar 2006 11:30:15 +0000 (11:30 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2894 594d385d-05f5-0310-b6e9-bd551577e9d8
html/index.php | patch | blob | history | |
ihtml/themes/default/login.tpl | patch | blob | history |
diff --git a/html/index.php b/html/index.php
index a5dfa89c48c9fcc565f08317e4020f3c1c2711f0..c098c7081cd355858e8e7bd97e9cb0e9da04eaae 100644 (file)
--- a/html/index.php
+++ b/html/index.php
if (!isset($message)){
$message= "";
}
+
$smarty->assign ("message", $message);
/* Displasy SSL mode warning? */
$smarty->assign ("ssl", "");
}
+/* Translation of cookie-warning. Whether to display it, is determined by JavaScript */
+$smarty->assign ("cookies", "<b>"._("Warning").":</b> "._("Your Browser has cookies disabled. Please enable cookies and reload this page once, before you log in."));
+
+
/* Generate server list */
$servers= array();
if (isset($_POST['server'])){
index ea540935e29397d3c327a295cffc28d4cbf3834b..26583c4201e3dd41381aad3dbb404e43e5d14e23 100644 (file)
<!-- Display SSL warning message on demand -->
<p class='gosaLoginWarning'> {$ssl} </p>
+ <!-- Display SSL warning message on demand -->
+ <p class='gosaLoginWarning'> {$ssl} </p>
+
+ <!-- check, if cookies are enabled -->
+ <p class='gosaLoginWarning'>
+ <script language="JavaScript" type="text/javascript">
+ <!--
+ document.cookie = "gosatest=empty;path=/";
+ if (document.cookie.indexOf( "gosatest=") > -1 )
+ document.cookie = "gosatest=empty;path=/;expires=Thu, 01-Jan-1970 00:00:01 GMT";
+ else
+ document.write("{$cookies}");
+ -->
+ </script>
+ </p>
+
<!-- Formular data, containing a table to center fields -->
<form action='index.php' method='post' name='mainform' onSubmit='js_check(this);return true;'>