Added feature #3787: New option TSFE.jumpURL_HTTPStatusCode = 30x (thanks to Stefan...
authorJeff Segars <jsegars@alumni.rice.edu>
Fri, 31 Oct 2008 21:23:32 +0000 (21:23 +0000)
committerJeff Segars <jsegars@alumni.rice.edu>
Fri, 31 Oct 2008 21:23:32 +0000 (21:23 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4399 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/class.tslib_fe.php

index 0ad5511..93788e3 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2008-10-31  Jeff Segars  <jeff@webempoweredchurch.org>
 
        * Added feature #6626: config.fileTarget for link target on files (thanks to Ralf Hettinger)
+       * Added feature #3787: New option TSFE.jumpURL_HTTPStatusCode = 30x (thanks to Stefan Geith)
 
 2008-10-31  Ingo Renner  <ingo@typo3.org>
 
index 23e082d..b598daa 100755 (executable)
@@ -2569,6 +2569,24 @@ require_once (PATH_t3lib.'class.t3lib_lock.php');
                                        $params = '&FE_SESSION_KEY='.rawurlencode($this->fe_user->id.'-'.md5($this->fe_user->id.'/'.$this->TYPO3_CONF_VARS['SYS']['encryptionKey']));
                                        $this->jumpurl.= ($uParts['query']?'':'?').$params;     // Add the session parameter ...
                                }
+                               if ($TSConf['TSFE.']['jumpURL_HTTPStatusCode']) {
+                                       switch (intval($TSConf['TSFE.']['jumpURL_HTTPStatusCode'])){
+                                               case 301:
+                                                       header(t3lib_div::HTTP_STATUS_301);
+                                                       break;
+                                               case 302:
+                                                       header(t3lib_div::HTTP_STATUS_302);
+                                                       break;
+                                               case 303:
+                                                       header(t3lib_div::HTTP_STATUS_303);
+                                                       break;
+                                               case 307:
+                                                       header(t3lib_div::HTTP_STATUS_307);
+                                                       break;
+                                               default:
+                                                       break;
+                                       }
+                               }       
                                header('Location: '.$this->jumpurl);
                                exit;
                        }