* Force TCEform reload if the plugin is changed
authorMichael Stucki <michael.stucki@typo3.org>
Thu, 12 May 2005 22:54:19 +0000 (22:54 +0000)
committerMichael Stucki <michael.stucki@typo3.org>
Thu, 12 May 2005 22:54:19 +0000 (22:54 +0000)
* Added new typolink option "addQueryString" for adding all parameters of the current URL to the link. Notice that this does not check for any duplicate parameters! This is not a problem (only the last parameter of the same name will be applied), but enable "config.uniqueLinkVars" if you still don't like it.
* Removed duplicate "Expires" header in class.t3lib_userauth.php
* Changed return value type of t3lib_div::inList which was not really boolean (as documented) but string. Thanks to Bernhard Kraft.

git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@717 709f56b5-9817-0410-a4d7-c38de5d9e867

16 files changed:
ChangeLog
t3lib/class.t3lib_div.php
t3lib/class.t3lib_userauth.php
typo3/sysext/cms/ext_tables.php
typo3/sysext/cms/tslib/class.tslib_content.php
typo3/sysext/indexed_search/ChangeLog
typo3/sysext/indexed_search/class.external_parser.php
typo3/sysext/indexed_search/ext_conf_template.txt
typo3/sysext/indexed_search/pi/class.tx_indexedsearch.php
typo3/sysext/install/imgs/jesus.gif
typo3/sysext/install/verify_imgs/install_48784f637a.gif
typo3/sysext/install/verify_imgs/install_a8f7a333c8.gif
typo3/sysext/install/verify_imgs/install_d1fa76faad.gif
typo3/sysext/install/verify_imgs/install_f6b0cedc4d.gif
typo3/sysext/install/verify_imgs/install_fe1e67e805.gif
typo3/sysext/install/verify_imgs/readme.txt

index 6d9e90c..2d72836 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,12 @@
+2005-05-12  Michael Stucki  <michael@typo3.org>
+
+       * Force TCEform reload if the plugin is changed
+       * Added new typolink option "addQueryString" for adding all parameters of the current URL to the link. Notice that this does not check for any duplicate parameters! This is not a problem (only the last parameter of the same name will be applied), but enable "config.uniqueLinkVars" if you still don't like it.
+       * Removed duplicate "Expires" header in class.t3lib_userauth.php
+       * Changed return value type of t3lib_div::inList which was not really boolean (as documented) but string. Thanks to Bernhard Kraft.
+
 2005-05-11  Michael Scharkow  <mscharkow@gmx.net>
+
        * Fixed bug #0000930: The delete button in QuickEdit mode lead to a 404 message. Thanks to Sebastian Kurfürst.
 
 2005-05-09  Kasper Skårhøj,,,  <kasper@typo3.com>
index eaea214..ed5cdd8 100755 (executable)
@@ -62,7 +62,7 @@
  *  550:     function breakLinesForEmail($str,$implChar="\n",$charWidth=76)
  *  585:     function cmpIP($baseIP, $list)
  *  627:     function cmpFQDN($baseIP, $list)
- *  657:     function inList($in_list,$item)
+ *  657:     function inList($list,$item)
  *  669:     function rmFromList($element,$list)
  *  687:     function intInRange($theInt,$min,$max=2000000000,$zeroValue=0)
  *  703:     function intval_positive($theInt)
@@ -653,12 +653,12 @@ class t3lib_div {
         * Check if an item exists in a comma-separated list of items.
         * Usage: 163
         *
-        * @param       string          $in_list        comma-separated list of items (string)
-        * @param       string          $item   item to check for
-        * @return      boolean         true if $item is in $in_list
+        * @param       string          comma-separated list of items (string)
+        * @param       string          item to check for
+        * @return      boolean         true if $item is in $list
         */
-       function inList($in_list,$item) {
-               return strstr(','.$in_list.',', ','.$item.',');
+       function inList($list,$item)    {
+               return strstr(','.$list.',', ','.$item.',') ? true : false;
        }
 
        /**
index cc01fa2..9c2e94b 100755 (executable)
@@ -134,13 +134,13 @@ class t3lib_userAuth {
        var $formfield_status = '';             // formfield with status: *'login', 'logout'. If empty login is not verified.
        var $security_level = 'normal';         // sets the level of security. *'normal' = clear-text. 'challenged' = hashed password/username from form in $formfield_uident. 'superchallenged' = hashed password hashed again with username.
 
-       var $auth_include = '';                         // this is the name of the include-file containing the login form. If not set, login CAN be anonymous. If set login IS needed.
+       var $auth_include = '';                 // this is the name of the include-file containing the login form. If not set, login CAN be anonymous. If set login IS needed.
 
        var $auth_timeout_field = 0;            // if > 0 : session-timeout in seconds. if string: The string is fieldname from the usertable where the timeout can be found.
-       var $lifetime = 0;                  // 0 = Session-cookies. If session-cookies, the browser will stop session when the browser is closed. Else it keeps the session for $lifetime seconds.
-       var $gc_time  = 24;                     // GarbageCollection. Purge all session data older than $gc_time hours.
-       var $gc_probability = 1;                        // Possibility (in percent) for GarbageCollection to be run.
-       var $writeStdLog = FALSE;                       // Decides if the writelog() function is called at login and logout
+       var $lifetime = 0;                      // 0 = Session-cookies. If session-cookies, the browser will stop session when the browser is closed. Else it keeps the session for $lifetime seconds.
+       var $gc_time = 24;                      // GarbageCollection. Purge all session data older than $gc_time hours.
+       var $gc_probability = 1;                // Possibility (in percent) for GarbageCollection to be run.
+       var $writeStdLog = FALSE;               // Decides if the writelog() function is called at login and logout
        var $writeAttemptLog = FALSE;           // If the writelog() functions is called if a login-attempt has be tried without success
        var $sendNoCacheHeaders = TRUE;         // If this is set, headers is sent to assure, caching is NOT done
        var $getFallBack = FALSE;                       // If this is set, authentication is also accepted by the $_GET. Notice that the identification is NOT 128bit MD5 hash but reduced. This is done in order to minimize the size for mobile-devices, such as WAP-phones
@@ -287,9 +287,8 @@ class t3lib_userAuth {
 
                        // Set all posible headers that could ensure that the script is not cached on the client-side
                if ($this->sendNoCacheHeaders)  {
-                       header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
-                       header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
                        header('Expires: 0');
+                       header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
                        header('Cache-Control: no-cache, must-revalidate');
                        header('Pragma: no-cache');
                }
index 7302271..e9b9ac2 100755 (executable)
@@ -539,6 +539,7 @@ $TCA['tt_content'] = Array (
                ),
                'mainpalette' => '1',
                'thumbnail' => 'image',
+               'requestUpdate' => 'list_type',
                'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_tt_content.php'
        )
 );
index f46e928..89df66a 100755 (executable)
@@ -4978,7 +4978,8 @@ class tslib_cObj {
                                                if ($linktxt=='') $linktxt = $page['title'];
 
                                                        // Query Params:
-                                               $addQueryParams = trim($this->stdWrap($conf['additionalParams'],$conf['additionalParams.']));
+                                               $addQueryParams = $conf['addQueryString'] ? t3lib_div::getIndpEnv('QUERY_STRING') : '';
+                                               $addQueryParams .= trim($this->stdWrap($conf['additionalParams'],$conf['additionalParams.']));
                                                if (substr($addQueryParams,0,1)!='&')           {
                                                        $addQueryParams = '';
                                                } elseif ($conf['useCacheHash']) {      // cache hashing:
index c6bebd0..ce44422 100755 (executable)
@@ -1,3 +1,8 @@
+2005-05-12  Michael Stucki  <michael@typo3.org>
+
+       * Added class tags to three elements for optionally styling/hiding them with CSS
+       * Path to ruby is not required if ooo_extract is directly executable
+
 2005-04-13  Karsten Dambekalns <karsten@typo3.org>
 
        * Fixed bug #961 and added some DBAL compliancy changes.
index c822b16..5f03601 100755 (executable)
@@ -170,14 +170,15 @@ class tx_indexed_search_extparse {
                                                $this->pObj->log_setTSlogMessage('Using "libunzipped" for extraction of Open Office files, "'.$extension.'".',1);
                                        } else $this->pObj->log_setTSlogMessage('The extension "libunzipped" was not loaded (for extraction of Open Office files, "'.$extension.'")',2);
                                } else {
-                                       if ($indexerConfig['ruby'])     {
-                                               $rubyPath = ereg_replace('\/$','',$indexerConfig['ruby']).'/';
+                                       if ($indexerConfig['OOoExtract'])       {
+                                               if($indexerConfig['ruby'])      { $rubyPath = ereg_replace('\/$','',$indexerConfig['ruby']).'/'; }
+
                                                $oooExPath = ereg_replace('\/$','',$indexerConfig['OOoExtract']).'/';
-                                               if (ini_get('safe_mode') || (@is_file($rubyPath.'ruby'.$exe) && @is_file($oooExPath.'ooo_extract.rb'))){
+                                               if (ini_get('safe_mode') || (($rubyPath ? @is_file($rubyPath.'ruby'.$exe) : true) && @is_file($oooExPath.'ooo_extract.rb')))    {
                                                        $this->app['ruby'] = $rubyPath.'ruby'.$exe;
                                                        $this->app['OOo'] = $oooExPath.'ooo_extract.rb';
                                                        $extOK = TRUE;
-                                               } else $this->pObj->log_setTSlogMessage("'Ruby and OOo_extract' tools for reading OOo documents were not found in paths '".$rubyPath."ruby' OR '".$oooExPath."ooo_extract.rb'",3);
+                                               } else $this->pObj->log_setTSlogMessage("'Ruby and OOo_extract' tools for reading OpenOffice.org documents were not found in paths '".$rubyPath."ruby".$exe."' OR '".$oooExPath."ooo_extract.rb'",3);
                                        } else $this->pObj->log_setTSlogMessage('Ruby & OOo_extract tools (OpenOffice-files) disabled',1);
                                }
                        break;
index af46c1f..b6552f4 100755 (executable)
@@ -10,7 +10,7 @@ nativeOOMethod = 0
   # cat=basic; type=string; label=Path to OOo parser: The indexer uses the application 'ooo_extract' for extracting content from OpenOffice files (unless "[nativeOOMethod]" above is set). You must install ooo_extract in this path. Otherwise leave the field empty.
 OOoExtract = /usr/local/bin/
 
-  # cat=basic; type=string; label=Path to RUBY: The indexer uses the application 'ruby' for extracting content from OpenOffice files (unless "[nativeOOMethod]" above is set). You must install this application in this path. Otherwise leave the field empty.
+  # cat=basic; type=string; label=Path to RUBY: The indexer uses the application 'ruby' for extracting content from OpenOffice files (unless "[nativeOOMethod]" above is set). You must install this application in this path. Otherwise (if ooo_extract is directly executable) leave the field empty.
 ruby = /usr/local/bin/
 
   # cat=basic; type=string; label=Path to WORD parser: The indexer uses the application 'catdoc' for extracting content from WORD files. You must install this application in this path. Otherwise leave the field empty.
index f261476..53ffb08 100755 (executable)
@@ -1316,11 +1316,11 @@ class tx_indexedsearch extends tslib_pibase {
 
                                // Make the header row with title, icon and rating bar.:
                        $out.='<tr '.$this->pi_classParam('title'.$tmplContent['CSSsuffix']).'>
-                               <td width="16">'.$tmplContent['icon'].'</td>
+                               <td width="16" '.$this->pi_classParam('title-icon'.$tmplContent['CSSsuffix']).'>'.$tmplContent['icon'].'</td>
                                <td width="95%" nowrap="nowrap"><p>'.
                                        #$row['phash'].' // '.
-                                       $tmplContent['result_number'].': '.
-                                       $tmplContent['title'].
+                                       '<span '.$this->pi_classParam('title-number'.$tmplContent['CSSsuffix']).'>'.$tmplContent['result_number'].': </span>'.
+                                       '<span '.$this->pi_classParam('title-caption'.$tmplContent['CSSsuffix']).'>'.$tmplContent['title'].'</span>'.
                                        '</p></td>
                                <td nowrap="nowrap"><p'.$this->pi_classParam('percent'.$tmplContent['CSSsuffix']).'>'.$tmplContent['rating'].'</p></td>
                        </tr>';
index 87ca93c..8aa99ca 100755 (executable)
Binary files a/typo3/sysext/install/imgs/jesus.gif and b/typo3/sysext/install/imgs/jesus.gif differ
index 1a2fbe4..bc5e749 100755 (executable)
Binary files a/typo3/sysext/install/verify_imgs/install_48784f637a.gif and b/typo3/sysext/install/verify_imgs/install_48784f637a.gif differ
index 215e001..0602080 100755 (executable)
Binary files a/typo3/sysext/install/verify_imgs/install_a8f7a333c8.gif and b/typo3/sysext/install/verify_imgs/install_a8f7a333c8.gif differ
index bd79368..ede1cdc 100755 (executable)
Binary files a/typo3/sysext/install/verify_imgs/install_d1fa76faad.gif and b/typo3/sysext/install/verify_imgs/install_d1fa76faad.gif differ
index 40740d6..7221025 100755 (executable)
Binary files a/typo3/sysext/install/verify_imgs/install_f6b0cedc4d.gif and b/typo3/sysext/install/verify_imgs/install_f6b0cedc4d.gif differ
index 347ddee..ae1f9f3 100755 (executable)
Binary files a/typo3/sysext/install/verify_imgs/install_fe1e67e805.gif and b/typo3/sysext/install/verify_imgs/install_fe1e67e805.gif differ
index 1260e70..a4f11eb 100755 (executable)
@@ -5,30 +5,32 @@ These comparison images was generated by Kasper Sk
  - This localconf.php configuration:
 
                // Graphical settings applying to Debian packages for TYPO3:
-       $TYPO3_CONF_VARS["GFX"]["im_path_lzw"] = "";
-       $TYPO3_CONF_VARS["GFX"]["TTFdpi"] = '96';       //  Modified or inserted by TYPO3 Install Tool.
-       $TYPO3_CONF_VARS["GFX"]["gdlib_png"] = '1';     //  Modified or inserted by TYPO3 Install Tool.
-       $TYPO3_CONF_VARS["GFX"]["im_combine_filename"] = 'composite';   //  Modified or inserted by TYPO3 Install Tool.
-       $TYPO3_CONF_VARS["GFX"]["im_path"] = '/usr/bin/';       //  Modified or inserted by TYPO3 Install Tool.
-       $TYPO3_CONF_VARS["GFX"]["im_version_5"] = '1';  //  Modified or inserted by TYPO3 Install Tool.
-       $TYPO3_CONF_VARS["GFX"]["im_imvMaskState"] = '0';       // Modified or inserted by TYPO3 Install Tool.
-       $TYPO3_CONF_VARS["GFX"]["im_v5effects"] = '1';  //  Modified or inserted by TYPO3 Install Tool.
-       $TYPO3_CONF_VARS["GFX"]["gdlib_2"] = 1;
-       $TYPO3_CONF_VARS["GFX"]['im_mask_temp_ext_noloss'] = 'png';
+       $TYPO3_CONF_VARS['GFX']['im_path_lzw'] = '';
+       $TYPO3_CONF_VARS['GFX']['TTFdpi'] = '96';
+       $TYPO3_CONF_VARS['GFX']['gdlib_png'] = '1';
+       $TYPO3_CONF_VARS['GFX']['im_combine_filename'] = 'composite';
+       $TYPO3_CONF_VARS['GFX']['im_path'] = '/usr/bin/';
+       $TYPO3_CONF_VARS['GFX']['im_version_5'] = '1';
+       $TYPO3_CONF_VARS['GFX']['im_imvMaskState'] = '0';
+       $TYPO3_CONF_VARS['GFX']['im_v5effects'] = '1';
+       $TYPO3_CONF_VARS['GFX']['gdlib_2'] = 1;
+       $TYPO3_CONF_VARS['GFX']['im_mask_temp_ext_noloss'] = 'png';
 
 - PHP / GD configuration:
-       GD Support      enabled
-       GD Version      2.0 or higher
-       FreeType Support        enabled
-       FreeType Linkage        with freetype
-       T1Lib Support   enabled
-       JPG Support     enabled
-       PNG Support     enabled
-       WBMP Support    enabled
+       GD Support              enabled
+       GD Version              2.0 or higher
+       FreeType Support        enabled
+       FreeType Linkage        with freetype
+       T1Lib Support           enabled
+       GIF Read Support        enabled
+       GIF Create Support      enabled
+       JPG Support             enabled
+       PNG Support             enabled
+       WBMP Support            enabled
 
 
 - I was not able to create GIF files for reference so I just converted them directly with ImageMagick
-- Also LZW compression has NOT been used anywhere since ImageMagick doesn't support it.
+- Also LZW compression has NOT been used anywhere except the GD test images since ImageMagick doesn't support it.
 
 
 (Kasper Skårhøj)
\ No newline at end of file