diff --git a/Controller/CliController.php b/Controller/CliController.php index 07355bf..2010040 100755 --- a/Controller/CliController.php +++ b/Controller/CliController.php @@ -68,20 +68,20 @@ final class CliController extends Controller $mailHandler = $this->app->moduleManager->get('Admin', 'Api')->setUpServerMailHandler(); $mail = new Email(); - $mail->setFrom($emailSettings[SettingsEnum::MAIL_SERVER_ADDR . '::Admin']->content, 'Karaka'); + $mail->setFrom($emailSettings[SettingsEnum::MAIL_SERVER_ADDR . ':::Admin']->content, 'Karaka'); $mail->addTo('spl1nes.com@googlemail.com', \trim($account->name1 . ' ' . $account->name2 . ' ' . $account->name3)); $mail->subject = 'Log report'; $mail->body = ''; $mail->msgHTML('Attached please find the daily log report'); $mail->addAttachment(__DIR__ . '/../../../humans.txt'); - if (!empty($emailSettings[SettingsEnum::MAIL_SERVER_CERT . '::Admin']->content ?? '') - && !empty($emailSettings[SettingsEnum::MAIL_SERVER_KEY . '::Admin']->content ?? '') + if (!empty($emailSettings[SettingsEnum::MAIL_SERVER_CERT . ':::Admin']->content ?? '') + && !empty($emailSettings[SettingsEnum::MAIL_SERVER_KEY . ':::Admin']->content ?? '') ) { $mail->sign( - $emailSettings[SettingsEnum::MAIL_SERVER_CERT . '::Admin']->content, - $emailSettings[SettingsEnum::MAIL_SERVER_KEY . '::Admin']->content, - $emailSettings[SettingsEnum::MAIL_SERVER_KEYPASS . '::Admin']->content + $emailSettings[SettingsEnum::MAIL_SERVER_CERT . ':::Admin']->content, + $emailSettings[SettingsEnum::MAIL_SERVER_KEY . ':::Admin']->content, + $emailSettings[SettingsEnum::MAIL_SERVER_KEYPASS . ':::Admin']->content ); } diff --git a/Theme/Backend/monitoring-security.tpl.php b/Theme/Backend/monitoring-security.tpl.php index 68e1798..9858f79 100755 --- a/Theme/Backend/monitoring-security.tpl.php +++ b/Theme/Backend/monitoring-security.tpl.php @@ -144,13 +144,18 @@ echo $this->getData('nav')->render(); ?> + $files = Directory::listByExtension(__DIR__ . '/../../../../phpOMS/', 'php', 'tests(\/|\\\)'); + foreach ($files as $file) : + $content = \file_get_contents(__DIR__ . '/../../../../phpOMS/' . $file); + $unicode = PhpCode::hasUnicode($content); + $deprecated = PhpCode::hasDeprecatedFunction($content); + $integrity = PhpCode::validateFileIntegrity( + __DIR__ . '/../../../../phpOMS/' . $file, + $hashs['phpOMS/' . $file] ?? '' + ); + ?> - getHtml('NG') : $this->getHtml('OK'); ?> + getHtml('NG') : $this->getHtml('OK'); ?> getHtml('NG') : $this->getHtml('OK'); ?> getHtml('NG') : $this->getHtml('OK'); ?> diff --git a/composer.json b/composer.json index 15e8d01..6fc1e5d 100755 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "karaka/module", - "description": "Module for Karaka.", + "description": "Module for Jingga.", "authors": [ { "name": "Dennis Eichhorn", diff --git a/info.json b/info.json index 93af585..190cc10 100755 --- a/info.json +++ b/info.json @@ -11,7 +11,7 @@ "phpOMS-db": "1.0.0" }, "creator": { - "name": "Karaka", + "name": "Jingga", "website": "jingga.app" }, "description": "The administration module.",