Adminer - Extensions

Both Adminer and Editor offers support for extensions. It is possible to overwrite some default Adminer functionality by a custom code. All you need is to define the adminer_object function which returns an object extending the basic Adminer class. Then just include the original adminer.php or editor.php:

function adminer_object() {
	
	class AdminerCds extends Adminer {
		
		function name() {
			// custom name in title and heading
			return 'CDs';
		}
		
		function permanentLogin() {
			// key used for permanent login
			return "14893517224b9e228ab366b6.60423010";
		}
		
		function credentials() {
			// ODBC user without password on localhost
			return array('localhost', 'ODBC', '');
		}
		
		function database() {
			// will be escaped by Adminer
			return 'cds';
		}
		
		function login($login, $password) {
			// username: 'admin', password: anything
			return ($login == 'admin');
		}
		
	}
	
	return new AdminerCds;
}

include "./editor.php";

API reference

The object can overwrite following methods:

It is possible to use following global functions. Min_DB is subset of mysqli class.

Min_DB

Min_Result