mirror of
https://github.com/vrana/adminer.git
synced 2025-08-06 06:37:33 +02:00
login-sqlite
is now login-password-less
@@ -7,7 +7,7 @@ Comment out `AdminerLoginServers` if it is present in the index.php
|
||||
// ]),
|
||||
```
|
||||
|
||||
## Create / edit index.php to enable plugins and enable the sqlite login plugin
|
||||
## Create / edit index.php to enable plugins and enable the password-less login plugin
|
||||
|
||||
```
|
||||
<?php
|
||||
@@ -30,8 +30,8 @@ function adminer_object()
|
||||
// filter_input(INPUT_SERVER, 'HTTP_HOST') => filter_input(INPUT_SERVER, 'SERVER_NAME')
|
||||
// ]),
|
||||
|
||||
// allow sqlite with login-sqlite plugin and selecting sqlite3 server type and put full path to sqlite database file in database field.
|
||||
new AdminerLoginSqlite("sladmin", password_hash("mypassword", PASSWORD_DEFAULT)),
|
||||
// allow sqlite with login-password-less plugin and selecting sqlite3 server type and put full path to sqlite database file in database field.
|
||||
new AdminerLoginPasswordLess("sladmin", password_hash("mypassword", PASSWORD_DEFAULT)),
|
||||
|
||||
];
|
||||
|
||||
@@ -41,10 +41,10 @@ function adminer_object()
|
||||
// Include original Adminer or Adminer Editor.
|
||||
include "./adminer.php";
|
||||
```
|
||||
## Install the plugins/login-sqlite3.php
|
||||
## Install the plugins/login-password-less.php
|
||||
|
||||
Get this file in place it in `plugins/`
|
||||
`https://raw.github.com/vrana/adminer/master/plugins/login-sqlite.php`
|
||||
`https://raw.github.com/vrana/adminer/master/plugins/login-password-less.php`
|
||||
|
||||
Also put plugins.php in that folder if it's not already there.
|
||||
|
||||
@@ -74,3 +74,4 @@ You can now use adminer on that file.
|
||||
|
||||
https://sourceforge.net/p/adminer/discussion/960418/thread/211bcb85/
|
||||
|
||||
https://sourceforge.net/p/adminer/discussion/1095138/thread/36320718/#9589
|
Reference in New Issue
Block a user