TYPO3 CMS  TYPO3_6-2
BackendModuleController.php
Go to the documentation of this file.
1 <?php
3 
27 
32  protected $enableFileService;
33 
37  protected $formProtection;
38 
42  public function initializeAction() {
44  }
45 
51  public function indexAction() {
52  if ($this->enableFileService->checkInstallToolEnableFile()) {
53  $this->redirect('sysext/install/Start/Install.php?install[context]=backend');
54  } else {
55  $this->forward('showEnableInstallToolButton');
56  }
57  }
58 
65  $token = $this->formProtection->generateToken('installTool');
66  $this->view->assign('installToolEnableToken', $token);
67  }
68 
75  public function enableInstallToolAction($installToolEnableToken) {
76  if (!$this->formProtection->validateToken($installToolEnableToken, 'installTool')) {
77  throw new \RuntimeException('Given form token was not valid', 1369161225);
78  }
79  $this->enableFileService->createInstallToolEnableFile();
80  $this->forward('index');
81  }
82 
88  protected function redirect($uri) {
90  }
91 }
forward($actionName, $controllerName=NULL, $extensionName=NULL, array $arguments=NULL)
static redirect($url, $httpStatus=self::HTTP_STATUS_303)
Definition: HttpUtility.php:76