From 2142c0d519fbe026a9b6fd8e5fcb7116baeb377b Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 22 Mar 2006 11:30:15 +0000 Subject: [PATCH] Added cookie check git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2894 594d385d-05f5-0310-b6e9-bd551577e9d8 --- html/index.php | 5 +++++ ihtml/themes/default/login.tpl | 16 ++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/html/index.php b/html/index.php index a5dfa89c4..c098c7081 100644 --- a/html/index.php +++ b/html/index.php @@ -229,6 +229,7 @@ $smarty->assign ('directory_img', get_template_path('images/ldapserver.png')); if (!isset($message)){ $message= ""; } + $smarty->assign ("message", $message); /* Displasy SSL mode warning? */ @@ -238,6 +239,10 @@ if ($ssl != "" && $config->data['MAIN']['WARNSSL'] == 'true'){ $smarty->assign ("ssl", ""); } +/* Translation of cookie-warning. Whether to display it, is determined by JavaScript */ +$smarty->assign ("cookies", ""._("Warning").": "._("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'])){ diff --git a/ihtml/themes/default/login.tpl b/ihtml/themes/default/login.tpl index ea540935e..26583c420 100644 --- a/ihtml/themes/default/login.tpl +++ b/ihtml/themes/default/login.tpl @@ -17,6 +17,22 @@

{$ssl}

+ +

{$ssl}

+ + +

+ +

+
-- 2.30.2