*/
    public static function showRedirect()
    {
        // delete own file
        @unlink($_SERVER['SCRIPT_FILENAME']);
        // redirect to ownCloud
        header("Location: " . $_GET['directory']);
    }
}
// read the step get variable
if (isset($_GET['step'])) {
    $step = $_GET['step'];
} else {
    $step = 0;
}
// show the header
Setup::showHeader();
// show the right step
if ($step == 0) {
    Setup::showWelcome();
} elseif ($step == 1) {
    Setup::showCheckDependencies();
} elseif ($step == 2) {
    Setup::showInstall();
} elseif ($step == 3) {
    Setup::showRedirect();
} else {
    echo 'Internal error. Please try again.';
}
// show the footer
Setup::showFooter();