function ExecuteCommans() { foreach ($this->ResultCommands as $key => $command) { $pos = strpos($command, ':'); if (!$pos) { continue; } $cType = substr($command, 0, $pos); $cParams = substr($command, $pos + 1); switch ($cType) { case 'Redirect': OEDynUtils::Redirect($cParams); // script stopped inside, unless changed for debugging break; } $this->ResultCommands[$key] = ''; // remove command from list } $this->ResultCommands = array(); // reset commands, so that next actionpacks can create their list }