-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
37 lines (32 loc) · 983 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
function adminer_object() {
// required to run any plugin
include_once "./plugins/plugin.php";
// autoloader
foreach (glob("plugins/*.php") as $filename) {
include_once "./$filename";
}
$adminer = new AdminerPlugin([]);
$adminer->plugins = [// specify enabled plugins here
new AdminerDumpXml(),
// new AdminerCopy(),
new AdminerDisplayForeignKeyName(),
// new AdminerDesigns(),
// new AdminerThemeSwitcher(),
new AdminerDumpAlter(),
new AdminerDumpJson(),
new AdminerDumpXml(),
new AdminerDumpZip(),
new AdminerEditCalendar(),
new AdminerEditForeign(),
new AdminerEditTextarea(),
new AdminerJsonColumn(),
new AdminerPHPSerializedColumn(),
new AdminerPrettyJsonColumn($adminer),
new AdminerSqlLog(),
new AdminerStructComments()
];
return $adminer;
}
// include original Adminer or Adminer Editor
include "./adminer.php";