force english language
This commit is contained in:
parent
52eb3ea5f8
commit
5659ab8524
1 changed files with 11 additions and 8 deletions
19
index.php
19
index.php
|
|
@ -3,17 +3,20 @@
|
|||
error_reporting(0);
|
||||
|
||||
function adminer_object() {
|
||||
include_once "./plugin.php";
|
||||
$plugins = array();
|
||||
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();
|
||||
}
|
||||
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';
|
||||
|
||||
include "./adminer.php";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue