Exemplo n.º 1
0
/**
 * control 
 * 
 * @return void
 */
function control()
{
    // Automatic Upgrade
    if (isset($_GET['auto'])) {
        $step = (int) $_GET['auto'];
        // Turn Off Site
        if ($step == 1) {
            displayStepOne();
        } elseif ($step == 2) {
            displayStepTwo();
        } elseif ($step == 3) {
            displayStepThree();
        } elseif ($step == 4) {
            displayStepFour();
        } elseif ($step == 5) {
            displayStepFive();
        } elseif ($step == 6) {
            displayStepSix();
        } elseif ($step == 7) {
            displayStepSeven();
        }
    } elseif (isset($_GET['manual'])) {
        displayManualUpgrade();
    } elseif (isset($_GET['upgrade'])) {
        displayUpgradeDatabase();
    } elseif (isset($_GET['site'])) {
        displayUpgradeSiteStatus($_GET['site']);
    } else {
        displayStart();
    }
}
Exemplo n.º 2
0
/**
 * main 
 * 
 * @return void
 */
function main()
{
    displayHeader();
    if (isset($_POST['submit1'])) {
        displayStepTwo();
    } elseif (isset($_POST['submit2'])) {
        displayStepThree();
    } elseif (isset($_POST['submit3'])) {
        displayStepFour();
    } elseif (isset($_POST['submit4'])) {
        displayStepFive();
    } elseif (isset($_POST['submit5'])) {
        setupDatabase();
    } elseif (file_exists('inc/config_inc.php')) {
        displayAlreadyInstalled();
        displayStepOne();
        displayFooter();
        return;
    } else {
        displayStepOne();
    }
}