Esempio n. 1
0
 private function showViewDialog()
 {
     // Initialize rotation/refresh
     $ROTATION = new FrontendRotation($this->name);
     // Set the requested step
     if ($this->type != '' && $this->step != '') {
         $ROTATION->setStep($this->type, $this->step, $this->stepId);
     }
     switch ($this->type) {
         case '':
             // If no step given redirect to first step
             header('Location: ' . $ROTATION->getStepUrlById(0));
             break;
         case 'map':
         case 'url':
             header('Location: ' . $ROTATION->getCurrentStepUrl());
             break;
     }
 }