2011-02-09 17:57:10 +01:00
|
|
|
<?php
|
|
|
|
|
function adminer_object() {
|
|
|
|
|
// required to run any plugin
|
|
|
|
|
include_once "../plugins/plugin.php";
|
2024-11-10 21:57:12 +01:00
|
|
|
|
2011-02-09 17:57:10 +01:00
|
|
|
// autoloader
|
|
|
|
|
foreach (glob("../plugins/*.php") as $filename) {
|
|
|
|
|
include_once $filename;
|
|
|
|
|
}
|
2024-11-10 21:57:12 +01:00
|
|
|
|
2021-02-08 19:56:15 +01:00
|
|
|
// enable extra drivers just by including them
|
2021-02-10 11:43:56 +01:00
|
|
|
//~ include "../plugins/drivers/simpledb.php";
|
2024-11-10 21:57:12 +01:00
|
|
|
|
2011-03-24 16:23:26 +01:00
|
|
|
$plugins = array(
|
2011-02-09 17:57:10 +01:00
|
|
|
// specify enabled plugins here
|
2012-02-23 22:56:03 -08:00
|
|
|
new AdminerDatabaseHide(array('information_schema')),
|
2013-02-07 19:04:36 -08:00
|
|
|
new AdminerDumpJson,
|
2013-05-28 10:28:47 -07:00
|
|
|
new AdminerDumpBz2,
|
2011-02-17 11:47:36 +01:00
|
|
|
new AdminerDumpZip,
|
2011-02-09 17:57:10 +01:00
|
|
|
new AdminerDumpXml,
|
2013-04-03 18:49:05 -07:00
|
|
|
new AdminerDumpAlter,
|
2011-08-08 17:19:56 +02:00
|
|
|
//~ new AdminerSqlLog("past-" . rtrim(`git describe --tags --abbrev=0`) . ".sql"),
|
2018-01-13 16:25:11 +01: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 15:59:19 +01:00
|
|
|
//~ new AdminerTinymce("../externals/tinymce/jscripts/tiny_mce/tiny_mce_dev.js"),
|
2011-07-26 22:10:45 +02: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 17:57:10 +01:00
|
|
|
new AdminerFileUpload(""),
|
2013-04-02 18:49:32 -07:00
|
|
|
new AdminerJsonColumn,
|
2011-02-09 17:57:10 +01:00
|
|
|
new AdminerSlugify,
|
|
|
|
|
new AdminerTranslation,
|
|
|
|
|
new AdminerForeignSystem,
|
2011-02-10 18:16:10 +01:00
|
|
|
new AdminerEnumOption,
|
2011-05-24 17:35:57 +02:00
|
|
|
new AdminerTablesFilter,
|
2011-06-23 22:08:08 +02:00
|
|
|
new AdminerEditForeign,
|
2011-03-24 16:23:26 +01:00
|
|
|
);
|
2024-11-10 21:57:12 +01:00
|
|
|
|
2011-03-24 16:23:26 +01:00
|
|
|
/* It is possible to combine customization and plugins:
|
|
|
|
|
class AdminerCustomization extends AdminerPlugin {
|
|
|
|
|
}
|
|
|
|
|
return new AdminerCustomization($plugins);
|
|
|
|
|
*/
|
2024-11-10 21:57:12 +01:00
|
|
|
|
2011-03-24 16:23:26 +01:00
|
|
|
return new AdminerPlugin($plugins);
|
2011-02-09 17:57:10 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// include original Adminer or Adminer Editor (usually named adminer.php)
|
|
|
|
|
include "./index.php";
|