31 $configurationManager = $this->objectManager->get(
'TYPO3\\CMS\\Core\\Configuration\\ConfigurationManager');
39 if (strlen($password) < 8) {
40 $errorStatus = $this->objectManager->get(
'TYPO3\\CMS\\Install\\Status\\ErrorStatus');
41 $errorStatus->setTitle(
'Administrator password not secure enough!');
42 $errorStatus->setMessage(
43 'You are setting an important password here! It gives an attacker full control over your instance if cracked.' .
44 ' It should be strong (include lower and upper case characters, special characters and numbers) and must be at least eight characters long.' 52 $configurationManager->setLocalConfigurationValueByPath(
'SYS/sitename',
$postValues[
'sitename']);
55 $this->importDatabaseData();
59 $adminUserFields = array(
60 'username' => $username,
61 'password' => $hashedPassword,
66 $this->getDatabaseConnection()->exec_INSERTquery(
'be_users', $adminUserFields);
69 $configurationManager->setLocalConfigurationValueByPath(
'BE/installToolPassword', $hashedPassword);
81 $existingTables = $this->getDatabaseConnection()->admin_get_tables();
82 if (count($existingTables) === 0) {
95 return $this->view->render();
103 protected function importDatabaseData() {
110 $database = $this->getDatabaseConnection();
112 $schemaMigrationService = $this->objectManager->get(
'TYPO3\\CMS\\Install\\Service\\SqlSchemaMigrationService');
114 $expectedSchemaService = $this->objectManager->get(
'TYPO3\\CMS\\Install\\Service\\SqlExpectedSchemaService');
117 $expectedSchemaString = $expectedSchemaService->getTablesDefinitionString(TRUE);
118 $statements = $schemaMigrationService->getStatementArray($expectedSchemaString, TRUE);
119 list($_, $insertCount) = $schemaMigrationService->getCreateTables($statements, TRUE);
121 $fieldDefinitionsFile = $schemaMigrationService->getFieldDefinitions_fileContent($expectedSchemaString);
122 $fieldDefinitionsDatabase = $schemaMigrationService->getFieldDefinitions_database();
123 $difference = $schemaMigrationService->getDatabaseExtra($fieldDefinitionsFile, $fieldDefinitionsDatabase);
124 $updateStatements = $schemaMigrationService->getUpdateSuggestions($difference);
126 $schemaMigrationService->performUpdateQueries($updateStatements[
'add'], $updateStatements[
'add']);
127 $schemaMigrationService->performUpdateQueries($updateStatements[
'change'], $updateStatements[
'change']);
128 $schemaMigrationService->performUpdateQueries($updateStatements[
'create_table'], $updateStatements[
'create_table']);
130 foreach ($insertCount as $table => $count) {
131 $insertStatements = $schemaMigrationService->getTableInsertStatements($statements, $table);
132 foreach ($insertStatements as $insertQuery) {
133 $insertQuery = rtrim($insertQuery,
';');
loadExtLocalconfDatabaseAndExtTables()
getHashedPassword($password)
if($list_of_literals) if(!empty($literals)) if(!empty($literals)) $result
Analyse literals to prepend the N char to them if their contents aren't numeric.
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]