TYPO3 CMS  TYPO3_6-2
ValidateHashEID.php
Go to the documentation of this file.
1 <?php
15 call_user_func(function() {
17  $addition = \TYPO3\CMS\Core\Utility\GeneralUtility::_GET('addition');
19 
20  $content = \TYPO3\CMS\Core\Utility\GeneralUtility::hmac($value, $addition);
21 
22  if ($scope === 'flashvars') {
23  header('Content-type: application/x-www-form-urlencoded');
24  $content = 'hash=' . $content;
25  } else {
26  header('Content-type: text/plain');
27  }
28 
29  header('Pragma: no-cache');
30  header('Cache-control: no-cache');
31 
32  echo $content;
33 });
static hmac($input, $additionalSecret='')