forked from Scalingo/adminer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
32 lines (28 loc) · 776 Bytes
/
Copy pathindex.php
File metadata and controls
32 lines (28 loc) · 776 Bytes
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
<?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(
new AdminerDumpBz2,
new AdminerDumpZip,
new AdminerEditCalendar,
new AdminerEditForeign,
new AdminerForeignSystem,
new FasterTablesFilter,
new AdminerJsonPreview,
new AdminerCollations,
new AdminerSimpleMenu,
// TODO: not ready yet
// new AdminerScalingo,
new AdminerVersionNoverify,
// AdminerTheme MUST always be the latest
new AdminerTheme,
);
return new AdminerPlugin($plugins);
}
// include original Adminer or Adminer Editor
include "./adminer.php";