From 5659ab85241967fa8ee542487e5d9313ffd38310 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Cap=C3=B3?= Date: Thu, 15 Feb 2024 08:17:04 +0100 Subject: [PATCH] force english language --- index.php | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/index.php b/index.php index 8358d6a..ff5cc09 100644 --- a/index.php +++ b/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";