Last active
February 29, 2016 13:34
-
-
Save geggo98/02d2282f579194ff29d1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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