1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
<?php
define('ADMINER_DIR', '/usr/share/adminer');
function adminer_object() {
// autoloader
foreach (glob(ADMINER_DIR . "/plugins/*.php") as $filename) {
include_once $filename;
}
$plugins = array(
// specify enabled plugins here
new AdminerVersionNoverify(), // disable phoning home
//new AdminerLoginServers([
// 'my' => ['server' => 'localhost', 'driver' => 'server'], // mysql
// 'pg' => ['server' => 'localhost', 'driver' => 'pgsql'],
//]),
);
/* It is possible to combine customization and plugins:
class AdminerCustomization extends Adminer\Plugins {
}
return new AdminerCustomization($plugins);
*/
return new Adminer\Plugins($plugins);
}
include ADMINER_DIR . "/adminer.php";
?>
|