19 lines
408 B
PHP
19 lines
408 B
PHP
<?php
|
|
|
|
error_reporting(0);
|
|
|
|
function adminer_object() {
|
|
include_once "./plugin.php";
|
|
$plugins = array();
|
|
|
|
foreach (glob("plugins/*.php") as $filename) {
|
|
include_once "./$filename";
|
|
$plugin = str_replace('plugins/', '', $filename);
|
|
$plugin = str_replace('.php', '', $plugin);
|
|
$plugins[] = new $plugin();
|
|
}
|
|
|
|
return new AdminerPlugin($plugins);
|
|
}
|
|
|
|
include "./adminer.php";
|