Skip to content

Instantly share code, notes, and snippets.

View Dreller's full-sized avatar

Dreller Dreller

  • Dreller
  • Québec
View GitHub Profile
@realies
realies / adminer autologin
Last active April 13, 2020 21:40 — forked from iarp/adminer autologin
A way to allow direct login to adminer
<?php
$_GET["username"] = "";
$_GET["db"] = "database";
function adminer_object() {
class AdminerAutoLogin extends Adminer {
function credentials() {
return array("127.0.0.1", "username", "password");
}
function login($login, $password) {
return true;