From bf10c0d80767461a0e871c95c92cf618e7e41822 Mon Sep 17 00:00:00 2001 From: OpenXE <> Date: Thu, 1 Jun 2023 14:15:11 +0200 Subject: [PATCH] bugfix systemhealth db version --- www/pages/systemhealth.php | 2015 ++++++++++++++++++------------------ 1 file changed, 1009 insertions(+), 1006 deletions(-) diff --git a/www/pages/systemhealth.php b/www/pages/systemhealth.php index 5e41a0b1..a685b840 100644 --- a/www/pages/systemhealth.php +++ b/www/pages/systemhealth.php @@ -1,1009 +1,1012 @@ -app = $app; - try { - if(!empty($this->app->Container)) { - $this->gateway = $this->app->Container->get('SystemHealthGateway'); - $this->service = $this->app->Container->get('SystemHealthService'); - } - } - catch(Exception $e) { - - } - if($intern) { - return; - } - $this->app->ActionHandlerInit($this); - - $this->app->ActionHandler('list','SystemhealthList'); - - $this->app->DefaultActionHandler('list'); - - $this->app->ActionHandlerListen($app); - } - - public function SystemhealthMenu() - { - $this->app->erp->MenuEintrag('index.php?module=systemhealth&action=list','Übersicht'); - } - - /** - * @return array - */ - public function getMemory() - { - try { - return $this->service->getMemoryUsage(); - } - catch (Exception $e) { - return []; - } - } - - /** - * @param string $catgoryId - * @param int $nr - * @param string $target - * - * @return bool - */ - public function drawCategory($catgoryId, $nr, $target = 'TAB1') { - if(empty($this->gateway)) { - return false; - } - $category = $this->gateway->getCategoryById($catgoryId); - if(empty($category)) { - return false; - } - if($nr % 2 === 0) { - $this->app->Tpl->Add($target, '