mirror of
https://github.com/Karaka-Management/oms-Monitoring.git
synced 2026-02-15 08:48:41 +00:00
too many changes
This commit is contained in:
parent
2b34353a82
commit
dfa29b02e3
|
|
@ -68,20 +68,20 @@ final class CliController extends Controller
|
||||||
$mailHandler = $this->app->moduleManager->get('Admin', 'Api')->setUpServerMailHandler();
|
$mailHandler = $this->app->moduleManager->get('Admin', 'Api')->setUpServerMailHandler();
|
||||||
|
|
||||||
$mail = new Email();
|
$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->addTo('spl1nes.com@googlemail.com', \trim($account->name1 . ' ' . $account->name2 . ' ' . $account->name3));
|
||||||
$mail->subject = 'Log report';
|
$mail->subject = 'Log report';
|
||||||
$mail->body = '';
|
$mail->body = '';
|
||||||
$mail->msgHTML('Attached please find the daily log report');
|
$mail->msgHTML('Attached please find the daily log report');
|
||||||
$mail->addAttachment(__DIR__ . '/../../../humans.txt');
|
$mail->addAttachment(__DIR__ . '/../../../humans.txt');
|
||||||
|
|
||||||
if (!empty($emailSettings[SettingsEnum::MAIL_SERVER_CERT . '::Admin']->content ?? '')
|
if (!empty($emailSettings[SettingsEnum::MAIL_SERVER_CERT . ':::Admin']->content ?? '')
|
||||||
&& !empty($emailSettings[SettingsEnum::MAIL_SERVER_KEY . '::Admin']->content ?? '')
|
&& !empty($emailSettings[SettingsEnum::MAIL_SERVER_KEY . ':::Admin']->content ?? '')
|
||||||
) {
|
) {
|
||||||
$mail->sign(
|
$mail->sign(
|
||||||
$emailSettings[SettingsEnum::MAIL_SERVER_CERT . '::Admin']->content,
|
$emailSettings[SettingsEnum::MAIL_SERVER_CERT . ':::Admin']->content,
|
||||||
$emailSettings[SettingsEnum::MAIL_SERVER_KEY . '::Admin']->content,
|
$emailSettings[SettingsEnum::MAIL_SERVER_KEY . ':::Admin']->content,
|
||||||
$emailSettings[SettingsEnum::MAIL_SERVER_KEYPASS . '::Admin']->content
|
$emailSettings[SettingsEnum::MAIL_SERVER_KEYPASS . ':::Admin']->content
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -144,13 +144,18 @@ echo $this->getData('nav')->render(); ?>
|
||||||
</label>
|
</label>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
$files = Directory::listByExtension(__DIR__ . '/../../../../phpOMS/', 'php', 'tests(\/|\\\)');
|
$files = Directory::listByExtension(__DIR__ . '/../../../../phpOMS/', 'php', 'tests(\/|\\\)');
|
||||||
foreach ($files as $file) : $content = \file_get_contents(__DIR__ . '/../../../../phpOMS/' . $file); ?>
|
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] ?? ''
|
||||||
|
);
|
||||||
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?= ($unicode = PhpCode::hasUnicode($content)) || ($deprecated = PhpCode::hasDeprecatedFunction($content)) || !($integrity = PhpCode::validateFileIntegrity(
|
<td><?= $unicode || $deprecated || !$integrity ? $this->getHtml('NG') : $this->getHtml('OK'); ?>
|
||||||
__DIR__ . '/../../../../phpOMS/' . $file,
|
|
||||||
$hashs['phpOMS/' . $file] ?? ''
|
|
||||||
)) ? $this->getHtml('NG') : $this->getHtml('OK'); ?>
|
|
||||||
<td><?= $file; ?>
|
<td><?= $file; ?>
|
||||||
<td><?= $unicode ? $this->getHtml('NG') : $this->getHtml('OK'); ?>
|
<td><?= $unicode ? $this->getHtml('NG') : $this->getHtml('OK'); ?>
|
||||||
<td><?= $deprecated ? $this->getHtml('NG') : $this->getHtml('OK'); ?>
|
<td><?= $deprecated ? $this->getHtml('NG') : $this->getHtml('OK'); ?>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "karaka/module",
|
"name": "karaka/module",
|
||||||
"description": "Module for Karaka.",
|
"description": "Module for Jingga.",
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name": "Dennis Eichhorn",
|
"name": "Dennis Eichhorn",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user