mirror of
https://github.com/vrana/adminer.git
synced 2025-08-11 09:04:02 +02:00
Move Elastic drivers to plugins, driver for Elastic 7+ is the default
This commit is contained in:
13
adminer/elastic.php
Normal file
13
adminer/elastic.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
function adminer_object() {
|
||||
include_once "../plugins/plugin.php";
|
||||
include_once "../plugins/login-password-less.php";
|
||||
include_once "../plugins/drivers/elastic.php";
|
||||
include_once "../plugins/drivers/elastic5.php";
|
||||
return new AdminerPlugin([
|
||||
// TODO: inline the result of password_hash() so that the password is not visible in source codes
|
||||
new AdminerLoginPasswordLess(password_hash("YOUR_PASSWORD_HERE", PASSWORD_DEFAULT)),
|
||||
]);
|
||||
}
|
||||
|
||||
include "./index.php";
|
Reference in New Issue
Block a user