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:

<?php
function adminer_object() {
	
	class AdminerSoftware extends Adminer {
		
		function name() {
			// custom name in title and heading
			return 'Software';
		}
		
		function permanentLogin() {
			// key used for permanent login
			return "64861f9fae9936783abbc3b731787ff4";
		}
		
		function credentials() {
			// server, username and password for connecting to database
			return array('localhost', 'ODBC', '');
		}
		
		function database() {
			// database name, will be escaped by Adminer
			return 'software';
		}
		
		function login($login, $password) {
			// validate user submitted credentials
			return ($login == 'admin' && $password == '');
		}
		
	}
	
	return new AdminerSoftware;
}

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