From f889f52fa0241533918133ef5890aa41fc2d7e1b Mon Sep 17 00:00:00 2001 From: DarkNoon <13015521+darknoon29@users.noreply.github.com> Date: Thu, 20 Jun 2024 10:47:43 +0200 Subject: [PATCH] Sonar Fixes --- includes/chart_js.php | 2 +- includes/config.php | 1 + includes/galaxy.php | 8 +- install/index.php | 6 +- install/install.php | 12 ++- install/upgrade_to_latest.php | 2 +- lang/bs/lang_message.php | 7 +- lang/lang_main.php | 5 +- views/about_ogsteam.php | 1 + views/admin.php | 6 +- views/admin_affichage.php | 116 ++++++++++---------- views/admin_helper.php | 2 +- views/admin_members.php | 114 ++++++++++---------- views/admin_members_group.php | 119 +++++++++++---------- views/admin_mod.php | 88 +++++++-------- views/admin_parameters.php | 194 +++++++++++++++++----------------- views/admin_viewer.php | 80 +++++++------- views/cartography.php | 4 +- views/galaxy.php | 83 +++++++-------- views/galaxy_obsolete.php | 134 +++++++++++------------ views/galaxy_sector.php | 2 +- views/home.php | 20 ++-- views/home_empire.php | 9 +- views/home_simulation.php | 2 +- views/home_spy.php | 48 ++++----- views/home_stat.php | 166 ++++++++++++++--------------- views/login.php | 8 +- 27 files changed, 619 insertions(+), 620 deletions(-) diff --git a/includes/chart_js.php b/includes/chart_js.php index 0feb631e..bfb83284 100644 --- a/includes/chart_js.php +++ b/includes/chart_js.php @@ -250,7 +250,7 @@ function create_curves($_player, $_date_min, $_date_max, $_comp) { $retour = ""; - // todo quel est ce $contenur ? + // TODO quel est ce $contenur ? if (!isset($_player)) { $retour .= affiche_error($conteneur, 'erreur 3'); return $retour; diff --git a/includes/config.php b/includes/config.php index 8f7bb8f6..16c588c6 100644 --- a/includes/config.php +++ b/includes/config.php @@ -1,4 +1,5 @@ - + - + - + @@ -1927,7 +1927,7 @@ function displayGalaxyTablethead()     - +   = 0)) { + if (version_compare(PHP_VERSION, "7.4.0") < 0) { echo "" . $lang['INSTALL_PHPERROR'] . ""; echo "" . $lang['INSTALL_PHP_ADVISE']; echo "

" . $lang['INSTALL_PHPVERSION'] . PHP_VERSION; @@ -128,7 +128,7 @@
OGSpy is an OGSteam Software - (c) 2005-2023
+ (c) 2005-2024 diff --git a/install/install.php b/install/install.php index 5e0e513a..cf9dd882 100644 --- a/install/install.php +++ b/install/install.php @@ -1,4 +1,4 @@ -
OGSpy is an - OGSteam Software (c)2005-2023
v
+ OGSteam Software (c)2005-2024
v
diff --git a/install/upgrade_to_latest.php b/install/upgrade_to_latest.php index e40c327a..675e5635 100644 --- a/install/upgrade_to_latest.php +++ b/install/upgrade_to_latest.php @@ -1,4 +1,4 @@ - - * - */ - /* message.php */ $lang['MSG_SYSTEM'] = "Sistemska poruka"; $lang['MSG_FORBIDDEN'] = "Nemate dovoljnu razinu prava za izvršenje ove akcije"; @@ -69,4 +64,4 @@ $lang['MSG_DB_OPTIM_AFTER'] = "Prostora korišteno nakon optimizacije"; $lang['MSG_EMPIRE_DATA_FAILURE'] = "Došlo je do problema prilikom dohvaćanja podataka o carstvu"; $lang['MSG_RATIO_RAZ'] = "Reset omjera je napravljen"; -$lang['MSG_BACK'] = "Natrag"; \ No newline at end of file +$lang['MSG_BACK'] = "Natrag"; diff --git a/lang/lang_main.php b/lang/lang_main.php index d371665c..9672f2d6 100644 --- a/lang/lang_main.php +++ b/lang/lang_main.php @@ -1,4 +1,5 @@ -
+