update adminer and adapt plugins to new version
This commit is contained in:
parent
5659ab8524
commit
f66a311358
15 changed files with 1411 additions and 1975 deletions
28
index.php
28
index.php
|
|
@ -1,20 +1,20 @@
|
|||
<?php
|
||||
|
||||
error_reporting(0);
|
||||
//error_reporting(0);
|
||||
|
||||
function adminer_object() {
|
||||
include_once "./plugin.php";
|
||||
$plugins = array();
|
||||
|
||||
foreach (glob("plugins/*.php") as $filename) {
|
||||
include_once "./$filename";
|
||||
$plugin = str_replace('plugins/', '', $filename);
|
||||
$plugin = str_replace('.php', '', $plugin);
|
||||
$plugins[] = new $plugin();
|
||||
}
|
||||
|
||||
return new AdminerPlugin($plugins);
|
||||
}
|
||||
//function adminer_object() {
|
||||
// include_once "./plugin.php";
|
||||
// $plugins = array();
|
||||
//
|
||||
// foreach (glob("plugins/*.php") as $filename) {
|
||||
// include_once "./$filename";
|
||||
// $plugin = str_replace('plugins/', '', $filename);
|
||||
// $plugin = str_replace('.php', '', $plugin);
|
||||
// $plugins[] = new $plugin();
|
||||
// }
|
||||
//
|
||||
// return new AdminerPlugin($plugins);
|
||||
//}
|
||||
|
||||
$_SESSION["lang"] = 'en';
|
||||
$_COOKIE["adminer_lang"] = 'en';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue