Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Čihař <michal@cihar.com>2008-09-03 17:27:43 +0400
committerMichal Čihař <michal@cihar.com>2008-09-03 17:27:43 +0400
commit85cdc82d4d997034a36de8821194c53e53d58017 (patch)
treed78f0121c9735a5796211ad0971272e792477796 /main.php
parent737b292e0d3ae526c9d1ef64398539f3da7d0957 (diff)
Cookie auth now autogenerates blowfish_secret, but it has some limitations and you still should set it in config file
Diffstat (limited to 'main.php')
-rw-r--r--main.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/main.php b/main.php
index 72f0b73050..dc38479d52 100644
--- a/main.php
+++ b/main.php
@@ -284,6 +284,14 @@ if (! @extension_loaded('mbstring')) {
}
/**
+ * Check if user does not have defined blowfish secret and it is being used.
+ */
+if (!empty($_SESSION['auto_blowfish_secret']) &&
+ empty($GLOBALS['cfg']['blowfish_secret'])) {
+ trigger_error($strSecretRequired, E_USER_WARNING);
+}
+
+/**
* Warning about different MySQL library and server version
* (a difference on the third digit does not count).
* If someday there is a constant that we can check about mysqlnd, we can use it instead