init
This commit is contained in:
31
nv/html/adminer/index.php
Normal file
31
nv/html/adminer/index.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
if(false) {
|
||||
ini_set('display_errors', 1);
|
||||
ini_set('display_startup_errors', 1);
|
||||
error_reporting(E_ALL);
|
||||
}
|
||||
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 AdminerTablesFilter()
|
||||
);
|
||||
/* 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 "adminer.php";
|
||||
include "adminer-4.7.5-en.php";
|
||||
?>
|
||||
Reference in New Issue
Block a user