-
-
Save rogeriopradoj/8562936b929c58a31789adc6a32f5850 to your computer and use it in GitHub Desktop.
A way to allow direct login to adminer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; | |
} | |
} | |
return new AdminerAutoLogin; | |
} | |
require_once("adminer.php"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment