예제 #1
0
        $pos = $wizard->getPosition() + 1;
        do {
            $wizard->setNextStep($pos);
            // Если больше, то какой то непорядок явно, на всякий случай перекидываем к последнему активному шагу
            if ($pos > count($wizard->steps) || $wizard->isStep($pos)) {
                $pos = $wizard->getPosition();
                break;
            }
            ++$pos;
        } while ($wizard->isStep($pos));
        header('Location: /wizard/registration/');
        exit;
    default:
        break;
}
if (!empty($wizard)) {
    if (!$wizard->isAccess()) {
        include $rpath . '403.php';
        exit;
    }
    $step = __paramInit('int', 'step', 'step', false);
    if ($step) {
        $wizard->setNextStep($step);
    }
}
$js_file[] = '/css/block/b-eye/b-eye.js';
$js_file[] = '/scripts/b-combo/b-combo-phonecodes.js';
$header = $rpath . 'header.php';
$footer = $rpath . 'footer.html';
ob_start();
include $rpath . 'template2.php';