From 9af67cd5790196d829d4ecd5fdeb36edc40a9c14 Mon Sep 17 00:00:00 2001 From: ToMtOm Date: Tue, 18 Jun 2024 16:46:47 +0200 Subject: [PATCH] ADD getConfigForCommunity --- src/tomitomasEqLogicTrait.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/tomitomasEqLogicTrait.php b/src/tomitomasEqLogicTrait.php index 45cc934..e8f399e 100644 --- a/src/tomitomasEqLogicTrait.php +++ b/src/tomitomasEqLogicTrait.php @@ -158,6 +158,17 @@ public static function executeAsync(string $_method, $_option = null, $_date = ' } } + public static function getConfigForCommunity() { + + $infoPlugin = 'Version OS : ' . system::getDistrib() . ' ' . system::getOsVersion() . '
'; + + $infoPlugin .= 'Version PHP : ' . phpversion(); + + $infoPlugin = '
```
' . str_replace(array('', '', ' '), array('', '', ' '), $infoPlugin) . '
```
'; + + return $infoPlugin; + } + /** ******************** LOGS FUNCTIONS */