Файловый менеджер - Редактировать - /home/digilove/public_html/administrator/components/com_akeeba/AliceChecks/Check/Runtimeerrors/FatalError.php
Назад
<?php /** * @package akeebabackup * @copyright Copyright (c)2006-2023 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 3, or later */ namespace Akeeba\Alice\Check\Runtimeerrors; use Akeeba\Alice\Check\Base; use Akeeba\Alice\Exception\StopScanningEarly; use Joomla\CMS\Language\Text as JText; /** * Checks if a fatal error occurred during the backup process */ class FatalError extends Base { public function __construct($logFile = null) { $this->priority = 110; $this->checkLanguageKey = 'COM_AKEEBA_ALICE_ANALYZE_RUNTIME_ERRORS_FATALERROR'; parent::__construct($logFile); } public function check() { $this->scanLines(function ($data) { preg_match('#ERROR \|.*?\|(.*)#', $data, $tmp_matches); if (!isset($tmp_matches[1])) { return; } $error = $tmp_matches[1]; if (empty($error)) { return; } $this->setResult(-1); $this->setErrorLanguageKey(['COM_AKEEBA_ALICE_ANALYZE_RUNTIME_ERRORS_FATALERROR_ERROR', $error]); throw new StopScanningEarly(); }); } public function getSolution() { return JText::_('COM_AKEEBA_ALICE_ANALYZE_RUNTIME_ERRORS_FATALERROR_SOLUTION'); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка