-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy pathplugins.php
More file actions
21 lines (18 loc) · 688 Bytes
/
Copy pathplugins.php
File metadata and controls
21 lines (18 loc) · 688 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
// Entry point for tests/plugins.spec.js with a fixed set of plugins, unaffected by the local adminer-plugins/ directory.
chdir(__DIR__ . "/../adminer"); // the pages are included relative to the working directory
define('Adminer\DIR', "../adminer/"); // used also in the URLs of the static files
function adminer_object() {
foreach (array('dump-json', 'dump-xml', 'dump-zip', 'edit-foreign', 'import-csv', 'config') as $plugin) {
include_once "../plugins/$plugin.php";
}
return new Adminer\Plugins(array(
new AdminerDumpJson,
new AdminerDumpXml,
new AdminerDumpZip,
new AdminerEditForeign,
new AdminerImportCsv,
new AdminerConfig,
));
}
include "./index.php";