input->get('quiet', -1, 'int') == -1) { $year = gmdate('Y'); echo <<input->get('quiet', -1, 'int') == -1) { echo "Site paths determined by this script:\n"; echo "JPATH_BASE : " . JPATH_BASE . "\n"; echo "JPATH_ADMINISTRATOR : " . JPATH_ADMINISTRATOR . "\n\n"; } if (class_exists('Joomla\CMS\Component\ComponentHelper') && \Joomla\CMS\Component\ComponentHelper::isEnabled('com_akeebabackup')) { echo "ERROR!\n"; echo "Please finish upgrading to Akeeba Backup 9 and uninstall Akeeba Backup 8\n"; echo "per the instructions shown on your site's backend, Components, Akeeba Backup\n"; echo "\n"; echo "This script will refuse to continue.\n"; die("\n"); } // Load the engine $factoryPath = JPATH_ADMINISTRATOR . '/components/com_akeeba/BackupEngine/Factory.php'; define('JPATH_COMPONENT_ADMINISTRATOR', JPATH_ADMINISTRATOR . '/components/com_akeeba'); if (!file_exists($factoryPath)) { echo "ERROR!\n"; echo "Could not load the backup engine; file does not exist. Technical information:\n"; echo "Path to " . basename(__FILE__) . ": " . __DIR__ . "\n"; echo "Path to factory file: $factoryPath\n"; die("\n"); } else { try { require_once $factoryPath; } catch (Exception $e) { echo "ERROR!\n"; echo "Backup engine returned an error. Technical information:\n"; echo "Error message:\n\n"; echo $e->getMessage() . "\n\n"; echo "Path to " . basename(__FILE__) . ":" . __DIR__ . "\n"; echo "Path to factory file: $factoryPath\n"; die("\n"); } } $startup_check = true; // Assign the correct platform Platform::addPlatform('joomla3x', JPATH_COMPONENT_ADMINISTRATOR . '/BackupPlatform/Joomla3x'); // Get the live site's URL $url = Platform::getInstance()->get_platform_configuration_option('siteurl', ''); if (empty($url)) { echo <<get_platform_configuration_option('akeebabackup', 'legacyapi_enabled'); $secret = Platform::getInstance()->get_platform_configuration_option('frontend_secret_word', ''); if (!$frontend_enabled) { echo <<input->get('method', '', 'cmd'); if (!empty($overridemethod)) { $method = $overridemethod; } if (empty($method)) { echo <<close(255); } // Perform the backup $url = rtrim($url, '/'); $secret = urlencode($secret); $url .= "/index.php?option=com_akeeba&view=check&key={$secret}"; $timestamp = date('Y-m-d H:i:s'); $result = $this->fetchURL($url, $method); if (empty($result) || ($result === false)) { echo "[{$timestamp}] No message received\n"; echo <<fetchURL($headers['location'], $method); } else { return ($body); } break; case 'fopen': $opts = [ 'http' => [ 'method' => "GET", 'header' => "Accept-language: en\r\n", ], ]; $context = stream_context_create($opts); $result = @file_get_contents($url, false, $context); break; } return $result; } } // Instantiate and run the application FOFApplicationCLI::getInstance('AkeebaBackupAltCheckfailed')->execute();