Fixed bug #16561: t3lib_userauth: wrong var and wong function call
authorSteffen Kamper <info@sk-typo3.de>
Wed, 24 Nov 2010 19:11:44 +0000 (19:11 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Wed, 24 Nov 2010 19:11:44 +0000 (19:11 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@9593 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_userauth.php

index 46b254c..6d31ed9 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2010-11-24  Steffen Kamper  <steffen@typo3.org>
 
+       * Fixed bug #16561: t3lib_userauth: wrong var and wong function call
        * Fixed bug #14050: CleanUp - CGL format of t3lib files - t3lib_tstemplate
        * Fixed bug #14050: CleanUp - CGL format of t3lib files - t3lib_tsparser_tsstyleconfig
        * Fixed bug #14050: CleanUp - CGL format of t3lib files - t3lib_tsparser_tsconfig
index bebf94c..4415420 100644 (file)
@@ -476,7 +476,10 @@ class t3lib_userAuth {
 
                        // active logout (eg. with "logout" button)
                if ($loginData['status']=='logout') {
-                       if ($this->writeStdLog)         $this->writelog(255,2,0,2,'User %s logged out',Array($this->user['username'])); // Logout written to log
+                       if ($this->writeStdLog) {
+                               // $type,$action,$error,$details_nr,$details,$data,$tablename,$recuid,$recpid
+                               $this->writelog(255, 2, 0, 2, 'User %s logged out', array($this->user['username']), '', 0, 0);
+                       }       // Logout written to log
                        if ($this->writeDevLog)         t3lib_div::devLog('User logged out. Id: '.$this->id, 't3lib_userAuth', -1);
 
                        $this->logoff();
@@ -669,8 +672,8 @@ class t3lib_userAuth {
                                if($requestStr == $backendScript && t3lib_div::getIndpEnv('TYPO3_SSL')) {
                                        list(,$url) = explode('://',t3lib_div::getIndpEnv('TYPO3_SITE_URL'),2);
                                        list($server,$address) = explode('/',$url,2);
-                                       if (intval($TYPO3_CONF_VARS['BE']['lockSSLPort'])) {
-                                               $sslPortSuffix = ':'.intval($TYPO3_CONF_VARS['BE']['lockSSLPort']);
+                                       if (intval($GLOBALS['TYPO3_CONF_VARS']['BE']['lockSSLPort'])) {
+                                               $sslPortSuffix = ':'.intval($GLOBALS['TYPO3_CONF_VARS']['BE']['lockSSLPort']);
                                                $server = str_replace($sslPortSuffix,'',$server);       // strip port from server
                                        }
                                        t3lib_utility_Http::redirect('http://' . $server . '/' . $address . TYPO3_mainDir . $backendScript);