/home/suroeste/public_html/wp-content/plugins/akeebabackupwp/app
Edit: /home/suroeste/public_html/wp-content/plugins/akeebabackupwp/app/include.php (6658B)
2)
{
$dirParts = array_splice($dirParts, 0, -2);
$myDir = implode(DIRECTORY_SEPARATOR, $dirParts);
}
}
else
{
$dirParts = explode(DIRECTORY_SEPARATOR, $argv[0]);
if (count($dirParts) > 3)
{
$dirParts = array_splice($dirParts, 0, -3);
$myDir = implode(DIRECTORY_SEPARATOR, $dirParts);
}
}
if (@file_exists(__DIR__ . '/../helpers/integration.php'))
{
return require __DIR__ . '/../helpers/integration.php';
}
if (@file_exists('../helpers/integration.php'))
{
return require '../helpers/integration.php';
}
if (isset($myDir) && @file_exists($myDir . '/helpers/integration.php'))
{
return require $myDir . '/helpers/integration.php';
}
// Create the container if it doesn't come from an integration
return new Container(
[
'application_name' => 'Solo',
]
);
}
);
// Load the version file
if (!defined('AKEEBABACKUP_VERSION') && @file_exists(__DIR__ . '/version.php'))
{
require_once __DIR__ . '/version.php';
}
// Tell the Akeeba Engine where to find a valid cacert.pem file
defined('AKEEBA_CACERT_PEM') || define('AKEEBA_CACERT_PEM', CaBundle::getBundledCaBundlePath());
// Include the Akeeba Engine factory
call_user_func(
function ($container) {
if (defined('AKEEBAENGINE'))
{
return;
}
define('AKEEBAENGINE', 1);
try
{
if (!class_exists(Factory::class))
{
echo "ERROR!\n";
echo "Could not load the backup engine; cannot autoload Factory class\n\n";
exit(255);
}
}
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";
exit(255);
}
Platform::addPlatform('Solo', __DIR__ . '/Solo/Platform/Solo');
$platform = Platform::getInstance();
$platform->setContainer($container);
$platform->load_version_defines();
$platform->apply_quirk_definitions();
$secretKeyFile = __DIR__ . '/Solo/secretkey.php';
// Use a different path to secretkey.php when using WordPress
if (defined('ABSPATH'))
{
$secretKeyFile = rtrim(
(defined('WP_CONTENT_DIR') ? WP_CONTENT_DIR : (rtrim(ABSPATH, '/') . '/wp-content')),
'/'
) . '/akeebabackup_secretkey.php';
Factory::getSecureSettings()->setKeyFilename($secretKeyFile);
}
Factory::getSecureSettings()->setKeyFilename($secretKeyFile);
}, $akeebaSoloContainer
);
/**
* When the AKEEBA_CLI_APPLICATION_CLASS constant is defined, it tries to execute the CLI application
*/
if (defined('AKEEBA_CLI_APPLICATION_CLASS'))
{
$appClass = AKEEBA_CLI_APPLICATION_CLASS;
try
{
(new $appClass($akeebaSoloContainer))->initialise()->execute();
}
catch (Throwable $e)
{
echo <<< TEXT
* * * E R R O R * * *
{$e->getCode()}: {$e->getMessage()}
{$e->getFile()}:{$e->getLine()}
{$e->getTraceAsString()}
TEXT;
exit(255);
}
}