$eveRender->Display('install/install.tpl');
} elseif ($step == 2) {
    $eveRender->Assign('step', $step);
    $do = $eve->VarCleanFromInput('do');
    if ($do) {
        echo $do();
        exit;
    }
    $upgrade = $eve->VarCleanFromInput('upgrade');
    if ($upgrade) {
        //$eveRender->Assign('upgrade', $upgrade);
        $eve->SessionSetVar('statusmsg', 'Tables created/updated succesfully');
        $eve->RedirectUrl('install.php?step=4');
    }
    if ($eve->IsMiniBrowser()) {
        if (!$eve->IsTrusted()) {
            $eve->RequestTrust('You must add this site to your trusted list to log in in-game!');
        } else {
            $userinfo = $eve->GetUserVars();
            $eveRender->Assign('IS_IGB', true);
            $eveRender->Assign('userinfo', $userinfo);
        }
    } else {
        $eveRender->Assign('IS_IGB', false);
    }
    $eveRender->Assign('done', true);
    $eveRender->Display('install/install.tpl');
    exit;
} elseif ($step == 3) {
    $name = $eve->VarCleanFromInput('name');
    $pass = $eve->VarCleanFromInput('pass');