2 namespace TYPO3\CMS\Backend\Controller;
146 $this->tce->stripslashes_values = 0;
148 if ($beUser->uc[
'recursiveDelete']) {
150 $this->tce->deleteTree = 1;
152 if ($beUser->uc[
'copyLevels']) {
156 if ($beUser->uc[
'neverHideAtCopy']) {
157 $this->tce->neverHideAtCopy = 1;
159 $TCAdefaultOverride = $beUser->getTSConfigProp(
'TCAdefaults');
160 if (is_array($TCAdefaultOverride)) {
161 $this->tce->setDefaultsFromUserTS($TCAdefaultOverride);
164 if ($this->flags[
'reverseOrder']) {
165 $this->tce->reverseOrder = 1;
176 if (is_array($this->CB)) {
178 $clipObj->initializeClipboard();
179 if ($this->CB[
'paste']) {
180 $clipObj->setCurrentPad($this->CB[
'pad']);
181 $this->cmd = $clipObj->makePasteCmdArray(
184 isset($this->CB[
'update']) ? $this->CB[
'update'] : null
187 if ($this->CB[
'delete']) {
188 $clipObj->setCurrentPad($this->CB[
'pad']);
189 $this->cmd = $clipObj->makeDeleteCmdArray($this->cmd);
202 $this->tce->start($this->data, $this->cmd);
203 if (is_array($this->mirror)) {
204 $this->tce->setMirror($this->mirror);
209 if ($httpHost != $refInfo[
'host'] && $this->vC != $this->
getBackendUser()->veriCode() && !
$GLOBALS[
'TYPO3_CONF_VARS'][
'SYS'][
'doNotCheckReferer']) {
210 $this->tce->log(
'', 0, 0, 0, 1,
'Referer host "%s" and server host "%s" did not match and veriCode was not valid either!', 1, array($refInfo[
'host'], $httpHost));
213 $this->tce->process_uploads($_FILES);
215 $this->tce->process_datamap();
216 $this->tce->process_cmdmap();
218 if (!empty($this->cacheCmd)) {
219 $this->tce->clear_cacheCmd($this->cacheCmd);
222 if ($this->uPT && (isset($this->data[
'pages']) || isset($this->cmd[
'pages']))) {
240 $this->tce->printLogErrorMessages($this->redirect);
242 if ($this->redirect) {
262 $this->tce->printLogErrorMessages($this->redirect);
264 if ($this->redirect) {
265 $response = $response
289 'redirect' => $this->redirect,
290 'messages' => array(),
296 $content[
'hasErrors'] =
true;
297 $this->tce->printLogErrorMessages($this->redirect);
300 $messages = $flashMessageService->getMessageQueueByIdentifier()->getAllMessagesAndFlush();
301 if (!empty($messages)) {
302 foreach ($messages as $message) {
303 $content[
'messages'][] = array(
304 'title' => $message->getTitle(),
305 'message' => $message->getMessage(),
306 'severity' => $message->getSeverity()
309 $content[
'hasErrors'] =
true;
314 $response->
getBody()->write(json_encode($content));