adminerevo/adminer/plugin.php

47 lines
2.4 KiB
PHP
Raw Normal View History

2011-02-09 16:57:10 +00:00
<?php
function adminer_object() {
// required to run any plugin
include_once "../plugins/plugin.php";
2023-05-21 13:03:36 +00:00
2011-02-09 16:57:10 +00:00
// autoloader
foreach (glob("../plugins/*.php") as $filename) {
include_once $filename;
}
2023-05-21 13:03:36 +00:00
// enable extra drivers just by including them
//~ include "../plugins/drivers/simpledb.php";
2023-05-21 13:03:36 +00:00
$plugins = array(
2011-02-09 16:57:10 +00:00
// specify enabled plugins here
2012-02-24 06:56:03 +00:00
new AdminerDatabaseHide(array('information_schema')),
new AdminerDumpJson,
2013-05-28 17:28:47 +00:00
new AdminerDumpBz2,
2011-02-17 10:47:36 +00:00
new AdminerDumpZip,
2011-02-09 16:57:10 +00:00
new AdminerDumpXml,
2013-04-04 01:49:05 +00:00
new AdminerDumpAlter,
2011-08-08 15:19:56 +00:00
//~ new AdminerSqlLog("past-" . rtrim(`git describe --tags --abbrev=0`) . ".sql"),
2018-01-13 15:25:11 +00:00
//~ new AdminerEditCalendar(script_src("../externals/jquery-ui/jquery-1.4.4.js") . script_src("../externals/jquery-ui/ui/jquery.ui.core.js") . script_src("../externals/jquery-ui/ui/jquery.ui.widget.js") . script_src("../externals/jquery-ui/ui/jquery.ui.datepicker.js") . script_src("../externals/jquery-ui/ui/jquery.ui.mouse.js") . script_src("../externals/jquery-ui/ui/jquery.ui.slider.js") . script_src("../externals/jquery-timepicker/jquery-ui-timepicker-addon.js") . "<link rel='stylesheet' href='../externals/jquery-ui/themes/base/jquery.ui.all.css'>\n<style>\n.ui-timepicker-div .ui-widget-header { margin-bottom: 8px; }\n.ui-timepicker-div dl { text-align: left; }\n.ui-timepicker-div dl dt { height: 25px; }\n.ui-timepicker-div dl dd { margin: -25px 0 10px 65px; }\n.ui-timepicker-div td { font-size: 90%; }\n</style>\n", "../externals/jquery-ui/ui/i18n/jquery.ui.datepicker-%s.js"),
2011-03-25 14:59:19 +00:00
//~ new AdminerTinymce("../externals/tinymce/jscripts/tiny_mce/tiny_mce_dev.js"),
2011-07-26 20:10:45 +00:00
//~ new AdminerWymeditor(array("../externals/wymeditor/src/jquery/jquery.js", "../externals/wymeditor/src/wymeditor/jquery.wymeditor.js", "../externals/wymeditor/src/wymeditor/jquery.wymeditor.explorer.js", "../externals/wymeditor/src/wymeditor/jquery.wymeditor.mozilla.js", "../externals/wymeditor/src/wymeditor/jquery.wymeditor.opera.js", "../externals/wymeditor/src/wymeditor/jquery.wymeditor.safari.js")),
2011-02-09 16:57:10 +00:00
new AdminerFileUpload(""),
2013-04-03 01:49:32 +00:00
new AdminerJsonColumn,
2011-02-09 16:57:10 +00:00
new AdminerSlugify,
new AdminerTranslation,
new AdminerForeignSystem,
2011-02-10 17:16:10 +00:00
new AdminerEnumOption,
2011-05-24 15:35:57 +00:00
new AdminerTablesFilter,
2011-06-23 20:08:08 +00:00
new AdminerEditForeign,
);
2023-05-21 13:03:36 +00:00
/* It is possible to combine customization and plugins:
class AdminerCustomization extends AdminerPlugin {
}
return new AdminerCustomization($plugins);
*/
2023-05-21 13:03:36 +00:00
return new AdminerPlugin($plugins);
2011-02-09 16:57:10 +00:00
}
// include original Adminer or Adminer Editor (usually named adminer.php)
include "./index.php";