summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/authgui.inc12
1 files changed, 11 insertions, 1 deletions
diff --git a/etc/inc/authgui.inc b/etc/inc/authgui.inc
index d491927..6b7fbd8 100644
--- a/etc/inc/authgui.inc
+++ b/etc/inc/authgui.inc
@@ -198,6 +198,9 @@ if($config['virtualip']) {
}
}
}
+setcookie("cookie_test", time() + 3600);
+$have_cookies = isset($_COOKIE["cookie_test"]);
+
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
@@ -261,6 +264,13 @@ if($config['virtualip']) {
<span style="text-align:center; font-weight: normal ; font-style: italic">
<?=gettext("Enter username and password to login."); ?>
</span>
+
+ <? if (!$have_cookies): ?>
+ <br/><br/>
+ <span style="text-align:center; font-weight: normal ; font-style: italic; color: #ff0000">
+ <?= gettext("Your browser must support cookies to login."); ?>
+ </span>
+ <? endif; ?>
</p>
<p>
<span style="text-align:center">
@@ -274,4 +284,4 @@ if($config['virtualip']) {
<?php
} // end function
-?>
+?> \ No newline at end of file
OpenPOWER on IntegriCloud