$wizard->steps[$wizard->getPosition()]->clearSessionStep(); header('Location: /wizard/registration/'); exit; break; case 'exit': $wizard->exitWizard(); exit; break; case 'next': $complited = __paramInit('int', 'complited', 'complited', 0); $wizard->setCompliteStep($complited > 0 ? true : false); $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; }