$currentStep = $stepData->step($http->postVariable('eZSetup_current_step')); $includeFile = $baseDir . 'steps/ezstep_' . $currentStep['file'] . '.php'; $result = array(); if (file_exists($includeFile)) { include_once $includeFile; $className = 'eZStep' . $currentStep['class']; $previousStepClass = new $className($tpl, $http, $ini, $persistenceList); $processPostDataResult = $previousStepClass->processPostData(); $persistenceList = $previousStepClass->PersistenceList; if ($processPostDataResult === false) { $step = $currentStep; } else { if ($processPostDataResult !== true) { $step = $stepData->step($processPostDataResult); } else { $step = $stepData->nextStep($currentStep); } } } } else { $step = $stepData->step(0); //step contains file and class } } } $done = false; $result = null; while (!$done && $step != null) { // Some common variables for all steps $tpl->setVariable("script", eZSys::serverVariable('PHP_SELF')); $siteBasics = $GLOBALS['eZSiteBasics'];