29 if (session_id() ===
'') {
40 public function get() {
42 list($keyId, $keyPart1) = $_SESSION[
'tx_rsaauth_key'];
43 if (\
TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($keyId)) {
45 $GLOBALS[
'TYPO3_DB']->exec_DELETEquery(
'tx_rsaauth_keys',
'crdate<' . (
$GLOBALS[
'EXEC_TIME'] - 30 * 60));
47 $row =
$GLOBALS[
'TYPO3_DB']->exec_SELECTgetSingleRow(
'key_value',
'tx_rsaauth_keys',
'uid=' . $keyId);
49 $result = $keyPart1 . $row[
'key_value'];
62 public function put($key) {
65 list($keyId) = $_SESSION[
'tx_rsaauth_key'];
66 if (\
TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($keyId)) {
67 $GLOBALS[
'TYPO3_DB']->exec_DELETEquery(
'tx_rsaauth_keys',
'uid=' . $keyId);
68 unset($_SESSION[
'tx_rsaauth_key']);
74 $keyLength = strlen($key);
75 $splitPoint = rand((
int)($keyLength / 10), (
int)($keyLength / 2));
77 $keyPart1 = substr($key, 0, $splitPoint);
78 $keyPart2 = substr($key, $splitPoint);
84 $GLOBALS[
'TYPO3_DB']->exec_INSERTquery(
'tx_rsaauth_keys', array(
87 'key_value' => $keyPart2
89 $keyId =
$GLOBALS[
'TYPO3_DB']->sql_insert_id();
91 $_SESSION[
'tx_rsaauth_key'] = array($keyId, $keyPart1);
94 $GLOBALS[
'TYPO3_DB']->exec_DELETEquery(
'tx_rsaauth_keys',
'crdate<' . (
$GLOBALS[
'EXEC_TIME'] - 30 * 60));
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'][]