mirror of
https://github.com/Karaka-Management/oms-Monitoring.git
synced 2026-01-11 16:38:40 +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();
|
||||
|
||||
$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
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -144,13 +144,18 @@ echo $this->getData('nav')->render(); ?>
|
|||
</label>
|
||||
<tbody>
|
||||
<?php
|
||||
$files = Directory::listByExtension(__DIR__ . '/../../../../phpOMS/', 'php', 'tests(\/|\\\)');
|
||||
foreach ($files as $file) : $content = \file_get_contents(__DIR__ . '/../../../../phpOMS/' . $file); ?>
|
||||
$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] ?? ''
|
||||
);
|
||||
?>
|
||||
<tr>
|
||||
<td><?= ($unicode = PhpCode::hasUnicode($content)) || ($deprecated = PhpCode::hasDeprecatedFunction($content)) || !($integrity = PhpCode::validateFileIntegrity(
|
||||
__DIR__ . '/../../../../phpOMS/' . $file,
|
||||
$hashs['phpOMS/' . $file] ?? ''
|
||||
)) ? $this->getHtml('NG') : $this->getHtml('OK'); ?>
|
||||
<td><?= $unicode || $deprecated || !$integrity ? $this->getHtml('NG') : $this->getHtml('OK'); ?>
|
||||
<td><?= $file; ?>
|
||||
<td><?= $unicode ? $this->getHtml('NG') : $this->getHtml('OK'); ?>
|
||||
<td><?= $deprecated ? $this->getHtml('NG') : $this->getHtml('OK'); ?>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "karaka/module",
|
||||
"description": "Module for Karaka.",
|
||||
"description": "Module for Jingga.",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Dennis Eichhorn",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user