forked from pappu687/adminer-theme
-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.php
65 lines (59 loc) · 1.9 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
/**
* @Author: Phu Hoang
* @Date: 2016-02-18 10:43:01
* @Last Modified by: Phu Hoang
* @Last Modified time: 2016-02-18 11:07:10
*/
if(is_dir(dirname(__FILE__).DIRECTORY_SEPARATOR.'plugins')){
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 AdminerCheckboxSelect(),
// new AdminerDatabaseHide(),
new AdminerDumpAlter(),
new AdminerDumpBz2(),
new AdminerDumpDate(),
new AdminerDumpJson(),
new AdminerDumpPhp(),
new AdminerDumpXml(),
new AdminerDumpZip(),
// new AdminerEditCalendar(),
new AdminerEditForeign(),
new AdminerEditTextarea(),
new AdminerEmailTable(),
new AdminerEnumOption(),
new AdminerFileUpload("data/"),
new AdminerForeignSystem(),
new AdminerFrames(),
new AdminerJsonColumn(),
new AdminerLinksDirect(),
// new AdminerLoginServers(),
// new AdminerLoginTable(),
// new AdminerMasterSlave(),
new AdminerSlugify(),
new AdminerSqlLog(),
// new AdminerTablesFilter(),
// new AdminerTinymce(),
new AdminerTranslation(),
new AdminerVersionNoverify(),
// new AdminerWymeditor(),
new AdminerRestoreMenuScroll(),
new AdminerTablesHistory(),
new FasterTablesFilter(),
);
/* It is possible to combine customization and plugins:
class AdminerCustomization extends AdminerPlugin {
}
return new AdminerCustomization($plugins);
*/
return new AdminerPlugin($plugins);
}
}
// include original Adminer or Adminer Editor
include dirname(__FILE__).DIRECTORY_SEPARATOR.'adminer.php';