Skip to content

Instantly share code, notes, and snippets.

@geggo98
Last active February 29, 2016 13:34
Show Gist options
  • Save geggo98/02d2282f579194ff29d1 to your computer and use it in GitHub Desktop.
Save geggo98/02d2282f579194ff29d1 to your computer and use it in GitHub Desktop.
<?php
function adminer_object() {
// required to run any plugin
include_once "./plugins/plugin.php";
// autoloader
foreach (glob("plugins/*.php") as $filename) {
include_once "./$filename";
}
$plugins = array(
// specify enabled plugins here
new AdminerEditCalendar
);
/* It is possible to combine customization and plugins:
class AdminerCustomization extends AdminerPlugin {
}
return new AdminerCustomization($plugins);
*/
return new AdminerPlugin($plugins);
}
// include original Adminer or Adminer Editor
include "./adminer.php";
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment