mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 15:47:00 +02:00
Plugins
This commit is contained in:
23
adminer/plugin.php
Normal file
23
adminer/plugin.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
function adminer_object() {
|
||||
// required to run any plugin
|
||||
include_once "../plugins/plugin.php";
|
||||
|
||||
// autoloader
|
||||
foreach (glob("../plugins/*.php") as $filename) {
|
||||
include_once $filename;
|
||||
}
|
||||
|
||||
return new AdminerPlugin(array(
|
||||
// specify enabled plugins here
|
||||
new AdminerDumpXml,
|
||||
new AdminerTinymce("../externals/tinymce/jscripts/tiny_mce/tiny_mce_dev.js"),
|
||||
new AdminerFileUpload(""),
|
||||
new AdminerSlugify,
|
||||
new AdminerTranslation,
|
||||
new AdminerForeignSystem,
|
||||
));
|
||||
}
|
||||
|
||||
// include original Adminer or Adminer Editor (usually named adminer.php)
|
||||
include "./index.php";
|
Reference in New Issue
Block a user