From e133711714b158183d78acd4731ffdddb782234a Mon Sep 17 00:00:00 2001 From: neonf Date: Wed, 28 Aug 2024 06:29:13 +0700 Subject: [PATCH] Added select_lang option #218 --- index.php | 18 ++++++++++++------ install.php | 8 +++++++- src/lgsl_config.php | 1 + 3 files changed, 20 insertions(+), 7 deletions(-) diff --git a/index.php b/index.php index 4ff1fc7..f6c0c65 100644 --- a/index.php +++ b/index.php @@ -89,14 +89,20 @@ function alertContents() { } } ?> - + {$lang}"; + } + ?> + + - diff --git a/install.php b/install.php index d51b054..1bb4820 100644 --- a/install.php +++ b/install.php @@ -221,6 +221,7 @@ function type($var) { \$lgsl_config['retry_offline'] = 0; // 1=repeats query when there is no response but adds loading delay \$lgsl_config['cms'] = 'sa'; // sets which CMS specific code to use \$lgsl_config['disabled_types']= false; // allow to exclude some protocols (games) from list. usage: ['disabled_types']= ['halflifewon', 'test']; + \$lgsl_config['select_lang'] = {$conf['select_lang']}; // allow to select language for users \$lgsl_config['language'] = '{$conf['language']}'; // sets LGSL language include('languages/{$conf['language']}.php'); // loads LGSL language ?>"; @@ -494,6 +495,10 @@ function check($name, $bool, $hint = '') { :

+

+ : + +

: