Extension using different credentials (socket) doesn't work anymore
Database management in a single PHP file
Brought to you by:
jakubvrana
With adminer 3.7.1, we've been using the following extension to connect to another default socket. This doesn't work with adminer 4.0.2, it just doesn't login.
<?php
function adminer_object() {
class AdminerSoftware extends Adminer {
function credentials() {
return array(':/var/run/mysqld_dev/mysqld.sock', $_GET["username"], get_session("pwds"));
}
}
return new AdminerSoftware;
}
include "./adminer.php";
?>
Passwords are now stored encrypted in the session. Use get_password() instead of get_session("pwds").
Ah thanks, the function list over at http://www.adminer.org/en/extension/ still links to the old 3.x functions, that's where I stumbled.
Thanks, I've regenerated that page. get_password() is still not there but it will be with the next Adminer version.