Update index.php

Disable the auto login if the default setting-> adminer -> auto_login is not set.
This commit is contained in:
FusionPBX 2016-06-12 00:15:43 -06:00 committed by GitHub
parent 11efb35712
commit 1003e70dd3
1 changed files with 39 additions and 38 deletions

View File

@ -23,8 +23,9 @@
exit;
}
//auto login
if (isset($_SESSION['adminer']['auto_login']['boolean'])) {
function adminer_object() {
class AdminerSoftware extends Adminer {
function name() {
@ -61,9 +62,9 @@ function adminer_object() {
}
}
return new AdminerSoftware;
}
}
// include original Adminer or Adminer Editor
include "adminer.php";