TYPO3 CMS  TYPO3_6-2
DefaultConfiguration.php
Go to the documentation of this file.
1 <?php
3 
18 
23 
29  public function execute() {
31  $featureManager = $this->objectManager->get('TYPO3\\CMS\\Install\\Configuration\\FeatureManager');
32  // Get best matching configuration presets
33  $configurationValues = $featureManager->getBestMatchingConfigurationForAllFeatures();
34 
35  // let the admin user redirect to the distributions page on first login
36  if (isset($this->postValues['values']['loaddistributions'])) {
37 
38  // update the admin backend user to show the distribution management on login
39  $adminUserFirstLogin = array(
40  'startModuleOnFirstLogin' => 'tools_ExtensionmanagerExtensionmanager->tx_extensionmanager_tools_extensionmanagerextensionmanager%5Baction%5D=distributions&tx_extensionmanager_tools_extensionmanagerextensionmanager%5Bcontroller%5D=List',
41  'ucSetByInstallTool' => '1',
42  );
43  $this->getDatabaseConnection()->exec_UPDATEquery(
44  'be_users',
45  'admin=1',
46  array('uc' => serialize($adminUserFirstLogin))
47  );
48  }
49 
50  // Setting SYS/isInitialInstallationInProgress to FALSE marks this instance installation as complete
51  $configurationValues['SYS/isInitialInstallationInProgress'] = FALSE;
52 
54  $configurationManager = $this->objectManager->get('TYPO3\\CMS\\Core\\Configuration\\ConfigurationManager');
55  $configurationManager->setLocalConfigurationValuesByPathValuePairs($configurationValues);
56 
58  $session = $this->objectManager->get('TYPO3\\CMS\\Install\\Service\\SessionService');
59  $session->destroySession();
60 
63  'TYPO3\\CMS\\Core\\FormProtection\\InstallToolFormProtection'
64  );
65  $formProtection->clean();
66 
69  }
70 
71  \TYPO3\CMS\Core\Utility\HttpUtility::redirect('../../../index.php', \TYPO3\CMS\Core\Utility\HttpUtility::HTTP_STATUS_303);
72  }
73 
79  public function needsExecution() {
80  $result = FALSE;
81  if (isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['isInitialInstallationInProgress'])
82  && $GLOBALS['TYPO3_CONF_VARS']['SYS']['isInitialInstallationInProgress'] === TRUE
83  ) {
84  $result = TRUE;
85  }
86  return $result;
87  }
88 
94  protected function executeAction() {
95  $this->assignSteps();
96  return $this->view->render();
97  }
98 }
if($list_of_literals) if(!empty($literals)) if(!empty($literals)) $result
Analyse literals to prepend the N char to them if their contents aren&#39;t numeric.
static redirect($url, $httpStatus=self::HTTP_STATUS_303)
Definition: HttpUtility.php:76
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]