<?php
defined('ABSPATH') || defined('DUPXABSPATH') || exit;
/* passed values */
/* @var $recoverPackage DUP_PRO_Package_Recover */

if (!$recoverPackage instanceof DUP_PRO_Package_Recover) {
    return false;
}
?><!DOCTYPE html>
<html lang="en-US" >
    <head>
        <title><?php DUP_PRO_U::_e('Recovery package launcher'); ?></title>
    </head>
    <body>
        <h2><?php printf(DUP_PRO_U::__('Recovery package launcher create on %s'), $recoverPackage->getCreated()); ?></h2>
        <p>
            <?php
            printf(DUP_PRO_U::__('If the installer does not start automatically, '
                    . 'you can click on this <a href="%s" >link and start it manually</a>.'), esc_url($recoverPackage->getInstallLink()));
            ?>
        </p>
        <script>
            window.location.href = <?php echo json_encode($recoverPackage->getInstallLink()); ?>;
        </script>
    </body>
</html>