39 <script type="text/javascript"> 57 preg_match(
'/;\\s*charset\\s*=\\s*([a-zA-Z0-9_-]*)/i', $_SERVER[
'CONTENT_TYPE'], $contenttype);
64 if ($this->charset != $this->requestCharset) {
65 $GLOBALS[
'LANG']->csConvObj->convArray($_POST, $this->requestCharset, $this->charset);
66 $GLOBALS[
'LANG']->csConvObj->convArray($_GET, $this->requestCharset, $this->charset);
104 if (array_key_exists($key, $this->content)) {
105 $oldcontent = $this->content[$key];
108 unset($this->content[$key]);
109 } elseif (!isset($key) || empty($key)) {
123 return $key && array_key_exists($key, $this->content) ? $this->content[$key] :
$this->content;
133 if (\
TYPO3\CMS\Core\Utility\GeneralUtility::inArray(array(
'plain',
'xml',
'json',
'jsonhead',
'jsonbody',
'javascript'), $format)) {
134 $this->contentFormat = $format;
157 $this->errorMessage = $errorMsg;
180 switch ($this->contentFormat) {
207 header(\
TYPO3\CMS\Core\Utility\HttpUtility::HTTP_STATUS_500 .
' (AJAX)');
208 header(
'Content-type: text/xml; charset=' . $this->charset);
209 header(
'X-JSON: false');
210 die(
'<t3err>' . htmlspecialchars($this->errorMessage) .
'</t3err>');
220 header(
'Content-type: text/html; charset=' . $this->charset);
221 header(
'X-JSON: true');
222 echo implode(
'', $this->content);
232 header(
'Content-type: text/xml; charset=' . $this->charset);
233 header(
'X-JSON: true');
234 echo implode(
'', $this->content);
252 if ($this->charset != $this->requestCharset) {
253 $GLOBALS[
'LANG']->csConvObj->convArray($this->content, $this->charset, $this->requestCharset);
255 $content = json_encode($this->content);
256 header(
'Content-type: application/json; charset=' . $this->requestCharset);
257 header(
'X-JSON: ' . ($this->contentFormat !=
'jsonbody' ?
$content : TRUE));
259 if ($this->contentFormat !=
'jsonhead') {
273 if ($this->charset != $this->requestCharset) {
274 $GLOBALS[
'LANG']->csConvObj->convArray($this->content, $this->charset, $this->requestCharset);
276 $content = str_replace(
'|', json_encode($this->content), $this->javascriptCallbackWrap);
277 header(
'Content-type: text/html; charset=' . $this->requestCharset);
setContentFormat($format)
setJavascriptCallbackWrap($javascriptCallbackWrap)
addContent($key, $content)
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]