cookies must be enabled in the browser

This commit is contained in:
Marc Delisle
2006-06-02 15:01:29 +00:00
parent 509c3aa560
commit f2f6eda2e1
2 changed files with 9 additions and 0 deletions

View File

@@ -9,6 +9,8 @@ $Source$
* libraries/auth/cookie.auth.lib.php: for auth_type='cookie', avoid
showing the "cookies must be enabled" message if they are enabled
* Documentation.html: requirements: web browser with cookies enabled
* libraries/header.inc.php: show message about cookies also
when auth_type = http or config
2006-05-31 Marc Delisle <lem9@users.sourceforge.net>
* libraries/common.lib.php: bug #1498108, support twice the separator

View File

@@ -141,6 +141,13 @@ if (empty($GLOBALS['is_header_sent'])) {
// Include possible custom headers
require_once './libraries/header_custom.inc.php';
// message of "Cookies required" displayed for auth_type http or config
// note: here, the decoration won't work because without cookies,
// our standard CSS is not operational
if (empty($_COOKIE)) {
echo '<div class="notice">' . $GLOBALS['strCookiesRequired'] . '</div>' . "\n";
}
if (!defined('PMA_DISPLAY_HEADING')) {
define('PMA_DISPLAY_HEADING', 1);
}