load('com_akeeba', $paths[0], 'en-GB', true); $jlang->load('com_akeeba', $paths[1], 'en-GB', true); $jlang->load('com_akeeba' . '.override', $paths[0], 'en-GB', true); $jlang->load('com_akeeba' . '.override', $paths[1], 'en-GB', true); $debugmessage = ''; if ($this->input->get('debug', -1, 'int') != -1) { if (!defined('AKEEBADEBUG')) { define('AKEEBADEBUG', 1); } $debugmessage = "*** DEBUG MODE ENABLED ***\n"; } $version = AKEEBA_VERSION; $date = AKEEBA_DATE; $phpversion = PHP_VERSION; $phpenvironment = PHP_SAPI; $verboseOutput = $this->input->get('quiet', -1, 'int') == -1; if ($verboseOutput) { $year = gmdate('Y'); echo <<getMessage() . "\n\n"; echo "Path to " . basename(__FILE__) . ":" . __DIR__ . "\n"; echo "Path to factory file: $factoryPath\n"; die("\n"); } } // Assign the correct platform Platform::addPlatform('joomla3x', JPATH_COMPONENT_ADMINISTRATOR . '/BackupPlatform/Joomla3x'); define('AKEEBA_BACKUP_ORIGIN', 'cli'); // Work around some misconfigured servers which print out notices if (function_exists('error_reporting')) { $oldLevel = error_reporting(0); } $container = Container::getInstance('com_akeeba', [ 'input' => $this->input, ]); if (function_exists('error_reporting')) { error_reporting($oldLevel); } // JDEBUG needs to always be defined if (!defined('JDEBUG')) { define('JDEBUG', $verboseOutput ? 1 : 0); } /** @var Statistics $model */ $model = $container->factory->model('Statistics')->tmpInstance(); $result = $model->notifyFailed(); echo implode("\n", $result['message']); exit(); } } // Instantiate and run the application FOFApplicationCLI::getInstance('AkeebaBackupCheckfailed')->execute();