*** empty log message ***
authorKasper Skårhøj <kasper@typo3.org>
Tue, 20 Apr 2004 18:55:42 +0000 (18:55 +0000)
committerKasper Skårhøj <kasper@typo3.org>
Tue, 20 Apr 2004 18:55:42 +0000 (18:55 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@212 709f56b5-9817-0410-a4d7-c38de5d9e867

CVSreadme.txt
typo3/sysext/cms/tslib/class.tslib_fe.php

index 6d0d466..a655a6b 100644 (file)
@@ -35,4 +35,11 @@ SourceForge.net, project "TYPO3 Extension Development Platform".
 Thats all. This procedure is only needed when you check out the source for the first time ever.
 
 
+IMPORTANT POST-CHECKLIST:
+Follow this list IMMEDIATELY after updating sources from CVS (both core and extensions):
+- Update database: In the Install Tool, click "COMPARE" for "Update required tables" in "Database Analysis" section. You might dump the static tables as well, but less likely to be important
+- "Clear temp_CACHED"
+- "Clear All Cache"
+- Using PHP-accelerator or other PHP cache? If you fatal PHP-errors, always remove the cached files (eg. "/tmp/phpa_*"), restart Apache and try again.
+
 - kasper
\ No newline at end of file
index 6763fc1..52021f6 100755 (executable)
@@ -2430,7 +2430,7 @@ if (version == "n3") {
         */
        function makeSimulFileName($inTitle,$page,$type,$addParams='',$no_cache='')     {
                $titleChars = intval($this->config['config']['simulateStaticDocuments_addTitle']);
-               $out='';
+               $out = '';
                if ($titleChars)        {
                        $out = t3lib_div::convUmlauts($inTitle);
                        $out= ereg_replace('[^[:alnum:]_-]','_',trim(substr($out,0,$titleChars)));
@@ -2438,7 +2438,7 @@ if (version == "n3") {
                        $out= ereg_replace('^_*','',$out);
                        if ($out)       $out.='.';
                }
-               $enc='';
+               $enc = '';
                if (strcmp($addParams,'') && !$no_cache)        {
                        switch ((string)$this->config['config']['simulateStaticDocuments_pEnc'])        {
                                case 'md5':
@@ -2476,17 +2476,18 @@ if (version == "n3") {
         * @see makeSimulFileName(), t3lib_tstemplate::linkData()
         */
        function simulateStaticDocuments_pEnc_onlyP_proc($linkVars)     {
-               $remainLinkVars='';
+               $remainLinkVars = '';
                if (strcmp($linkVars,''))       {
                        $p = explode('&',$linkVars);
                        sort($p);       // This sorts the parameters - and may not be needed and further it will generate new MD5 hashes in many cases. Maybe not so smart. Hmm?
-                       $rem=array();
+                       $rem = array();
                        foreach($p as $k => $v) {
-                               if ((string)$v) {
+                               if (strlen($v)) {
                                        list($pName) = explode('=',$v,2);
+                                       $pName = rawurldecode($pName);
                                        if (!$this->pEncAllowedParamNames[$pName])      {
                                                unset($p[$k]);
-                                               $rem[]=$v;
+                                               $rem[] = $v;
                                        }
                                } else unset($p[$k]);
                        }
@@ -2883,6 +2884,24 @@ if (version == "n3") {
                );
        }
 
+
+
+
+
+
+
+
+
+
+
+
+
+       /**************************
+        *
+        * Localization
+        *
+        **************************/
+
        /**
         * Split Label function for front-end applications.
         *
@@ -2915,31 +2934,6 @@ if (version == "n3") {
        }
 
        /**
-        * Converts the charset of the input string if applicable.
-        * The "from" charset is determined by the TYPO3 system charset for the current language key ($this->lang)
-        * The "to" charset is determined by the currently used charset for the page which is "iso-8859-1" by default or set by $GLOBALS['TSFE']->config['config']['metaCharset']
-        * Only if there is a difference between the two charsets will a conversion be made
-        * The conversion is done real-time - no caching for performance at this point!
-        *
-        * @param       string          String to convert charset for
-        * @param       string          Optional "from" charset.
-        * @return      string          Output string, converted if needed.
-        * @see initLLvars(), t3lib_cs
-        */
-       function csConv($str,$from='')  {
-               if (!$this->lang)       $this->initLLvars();
-
-               if ($from)      {
-                       $output = $this->csConvObj->conv($str,$this->csConvObj->parse_charset($from),$this->siteCharset,1);
-                       return $output ? $output : $str;
-               } elseif (is_array($this->convCharsetToFrom))   {
-                       return $this->csConvObj->conv($str,$this->convCharsetToFrom['from'],$this->convCharsetToFrom['to'],1);
-               } else {
-                       return $str;
-               }
-       }
-
-       /**
         * Read locallang files - for frontend applications
         *
         * @param       string          Reference to a relative filename to include.
@@ -2992,6 +2986,31 @@ if (version == "n3") {
                        );
                }
        }
+
+       /**
+        * Converts the charset of the input string if applicable.
+        * The "from" charset is determined by the TYPO3 system charset for the current language key ($this->lang)
+        * The "to" charset is determined by the currently used charset for the page which is "iso-8859-1" by default or set by $GLOBALS['TSFE']->config['config']['metaCharset']
+        * Only if there is a difference between the two charsets will a conversion be made
+        * The conversion is done real-time - no caching for performance at this point!
+        *
+        * @param       string          String to convert charset for
+        * @param       string          Optional "from" charset.
+        * @return      string          Output string, converted if needed.
+        * @see initLLvars(), t3lib_cs
+        */
+       function csConv($str,$from='')  {
+               if (!$this->lang)       $this->initLLvars();
+
+               if ($from)      {
+                       $output = $this->csConvObj->conv($str,$this->csConvObj->parse_charset($from),$this->siteCharset,1);
+                       return $output ? $output : $str;
+               } elseif (is_array($this->convCharsetToFrom))   {
+                       return $this->csConvObj->conv($str,$this->convCharsetToFrom['from'],$this->convCharsetToFrom['to'],1);
+               } else {
+                       return $str;
+               }
+       }
 }
 
 
@@ -2999,4 +3018,4 @@ if (version == "n3") {
 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['tslib/class.tslib_fe.php'])       {
        include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['tslib/class.tslib_fe.php']);
 }
-?>
+?>
\ No newline at end of file