TYPO3 CMS  TYPO3_6-2
ajax.php File Reference

Go to the source code of this file.

Variables

 $TYPO3_AJAX = TRUE
 
 $noUserAjaxIDs
 
 $ajaxID = isset($_POST['ajaxID']) ? $_POST['ajaxID'] : $_GET['ajaxID']
 
if(isset($ajaxID)) if (in_array( $ajaxID, $noUserAjaxIDs))
 Re-apply pairs of single-quotes to the text. More...
 
 $ajaxRegistryEntry = isset($GLOBALS['TYPO3_CONF_VARS']['BE']['AJAX'][$ajaxID]) ? $GLOBALS['TYPO3_CONF_VARS']['BE']['AJAX'][$ajaxID] : NULL
 
 $ajaxScript = NULL
 
 $csrfTokenCheck = FALSE
 
if($ajaxRegistryEntry !==NULL) $ajaxObj = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Http\\AjaxRequestHandler', $ajaxID)
 
 $ajaxParams = array()
 
if(empty($ajaxID)) elseif(empty($ajaxScript)) else
 
 $tokenIsValid = TRUE
 

Variable Documentation

◆ $ajaxID

$ajaxID = isset($_POST['ajaxID']) ? $_POST['ajaxID'] : $_GET['ajaxID']

◆ $ajaxObj

◆ $ajaxParams

$ajaxParams = array()

Definition at line 64 of file ajax.php.

◆ $ajaxRegistryEntry

$ajaxRegistryEntry = isset($GLOBALS['TYPO3_CONF_VARS']['BE']['AJAX'][$ajaxID]) ? $GLOBALS['TYPO3_CONF_VARS']['BE']['AJAX'][$ajaxID] : NULL

Definition at line 47 of file ajax.php.

◆ $ajaxScript

$ajaxScript = NULL

◆ $csrfTokenCheck

$csrfTokenCheck = FALSE

◆ $noUserAjaxIDs

$noUserAjaxIDs
Initial value:
= array(
'BackendLogin::login',
'BackendLogin::logout',
'BackendLogin::refreshLogin',
'BackendLogin::isTimedOut',
'BackendLogin::getChallenge',
'BackendLogin::getRsaPublicKey',
)

Definition at line 24 of file ajax.php.

◆ $tokenIsValid

$tokenIsValid = TRUE

Definition at line 73 of file ajax.php.

◆ $TYPO3_AJAX

$TYPO3_AJAX = TRUE

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! AJAX dispatcher

Author
Benjamin Mack mack@.nosp@m.xnos.nosp@m..org

Definition at line 21 of file ajax.php.

◆ else

if ( $csrfTokenCheck) if ( $tokenIsValid) else
Initial value:
{
$success = TRUE

Definition at line 71 of file ajax.php.

◆ if

if
Initial value:
{
$ajaxObj->setError('Invalid CSRF token detected for ajaxID "' . $ajaxID . '"!')
$ajaxID
Definition: ajax.php:34
if($ajaxRegistryEntry !==NULL) $ajaxObj
Definition: ajax.php:63

Re-apply pairs of single-quotes to the text.

Print transformation if debug = on

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share!

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Starts all due tasks, used by the command line interface This script must be included by the "CLI module dispatcher"

Author
Markus Friedrich marku.nosp@m.s.fr.nosp@m.iedri.nosp@m.ch@d.nosp@m.kd.de

Definition at line 40 of file ajax.php.

Referenced by TYPO3\CMS\Backend\Tree\View\FolderTreeView\getFolderTree(), TYPO3\CMS\Core\Utility\GeneralUtility\getIndpEnv(), TYPO3\CMS\Frontend\Page\FramesetRenderer\make(), TYPO3\CMS\Backend\Tree\View\AbstractTreeView\printTree(), TYPO3\CMS\SysAction\ActionTask\saveNewBackendUser(), TYPO3\CMS\Frontend\ContentObject\Menu\AbstractMenuContentObject\start(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\TCAlookup(), and TYPO3\CMS\SysAction\ActionTask\viewRecordList().