* Change logout-button label to "Exit" when in SwitchBackUser mode.
authorKasper Skårhøj <kasper@typo3.org>
Mon, 19 Dec 2005 15:11:42 +0000 (15:11 +0000)
committerKasper Skårhøj <kasper@typo3.org>
Mon, 19 Dec 2005 15:11:42 +0000 (15:11 +0000)
* Fixed a htmlspecialchars() thing in TCEforms.

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

ChangeLog
TODO.txt
t3lib/class.t3lib_tceforms.php
t3lib/config_default.php
typo3/class.alt_menu_functions.inc
typo3/sysext/lang/locallang_core.xml

index 7104193..d4bbd44 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-12-19  Kasper Skårhøj  <kasper2005@typo3.com>
+
+       * Change logout-button label to "Exit" when in SwitchBackUser mode.
+       * Fixed a htmlspecialchars() thing in TCEforms.
+
+2005-12-17  Kasper Skårhøj  <kasper2005@typo3.com>
 2005-12-18  Michael Stucki  <michael@typo3.org>
 
        * Cleanup: Changed all occurences of "depreciated" => "deprecated"
index e017786..ac64d77 100755 (executable)
--- a/TODO.txt
+++ b/TODO.txt
@@ -38,27 +38,25 @@ TCEmain
                - Create an extension which shows how the log data can be stored in a) database, b) files
                - extension "logit" / PEAR::log package?
 - INTEGRITY / CLEAN_UP / REFERENCE TRACKING:
-       - Implement kill/restore of "deleted" records.
        - Record Reference tracking in a table in TCEmain
-               - Tracks DB-references, Files and softrefs (including in FlexForms)
-               - Index is generated per record with an API call (both fe/be), making it easy to maintain it and possible to completely regenerate it
-               - Used for:
-                       - Check before deletion that a record is not used?
-                       - Used by applications (like TemplaVoila) where it is hard to track references in FlexForms
-                       - Used for import/export module and anywhere else where we are looking up references!
-                       - Basis for integrity checks
+               - Used for (also):
                        - clearing caching more effectively
-                       - Could be used for MM look-ups on those "unfortunate" comma-list fields?
+                       - Implement reflection of relations in Web>List and File>Filelist
+                       - Warning at deletion
                - Offers API to "fix references" if a record carries lost references
                - Offers way to map a reference to another one ("search/replace")
-               - Offers way to compare actual references in record and those indexed so we can see if there was inconsistency
-       - Record clean-up functionality
+               - Implement flexform "index" as well (see marks
+               - In "Help > About Modules" screen we might want to look if the index is empty and if so, present a link to "Tools > DB check" tool so the index can be created initially for updated sites?
+               - (Make class.t3lib_refindex available in the frontend scope for integration in plugins that manipulate the database on their own and need to update the reference index. Actually, I'm inclined to think we should rather think about how to provide t3lib_tcemain for the frontend instead...!)
+               - CLI script for updating refindex with cron-job and reporting inconsistencies by email
+       - Record clean-up functionality (Tools > DB check module)
                - Remove references to deleted records (also deleted-to-recycler records? Maybe "deleted-to-recycler" references are important to remove in order to make sure "recycler" records are not selected!) (refs to MM for both tables/files)
                - Remove references to lost files etc.
                - Cleaning FlexForm XML according to the current DS (old XML garbage might be left if DS changed)
        - Versioning:
                - Flush old versions (requires general clean-up features to be complete!)
                - Check for "lost" versions during swap?
+       - Implement kill/restore of "deleted" records.
 - PERMISSIONS:
        - Permission API: Used for any DB-element in system (See Sune Vestergaards suggestion)
                - More flexible setting of permissions
index ab8cf0f..12d722f 100755 (executable)
@@ -1745,7 +1745,7 @@ class t3lib_TCEforms      {
                                                $imgs[] = '<span class="nobr">'.
                                                                $this->getClickMenu(t3lib_iconWorks::getIconImage($this_table,$rr,$this->backPath,'align="top" title="'.htmlspecialchars(t3lib_BEfunc::getRecordPath($rr['pid'],$perms_clause,15)).' [UID: '.$rr['uid'].']"'),$this_table, $this_uid).
                                                                '&nbsp;'.
-                                                               $this->noTitle($rr[$GLOBALS['TCA'][$this_table]['ctrl']['label']],array('<em>','</em>')).' <span class="typo3-dimmed"><em>['.$rr['uid'].']</em></span>'.
+                                                               htmlspecialchars(t3lib_div::fixed_lgd_cs($this->noTitle($rr[$GLOBALS['TCA'][$this_table]['ctrl']['label']],array('<em>','</em>')),$this->titleLen)).' <span class="typo3-dimmed"><em>['.$rr['uid'].']</em></span>'.
                                                                '</span>';
                                        }
                                }
index 911f055..428f396 100755 (executable)
@@ -333,6 +333,7 @@ function debugEnd() {
 }
 
 
+
        // Init services array:
 $T3_SERVICES = array();
 
index 609fe7c..5b96d68 100755 (executable)
@@ -525,7 +525,8 @@ class alt_menu_functions {
        function topButtons()   {
                global $LANG;
 
-               $out.= '<form action="logout.php" target="_top"><input type="submit" value="'.$LANG->sL('LLL:EXT:lang/locallang_core.php:buttons.logout',1).'" /></form>';
+               $label = $GLOBALS['BE_USER']->user['ses_backuserid'] ? 'LLL:EXT:lang/locallang_core.php:buttons.exit' : 'LLL:EXT:lang/locallang_core.php:buttons.logout';
+               $out.= '<form action="logout.php" target="_top"><input type="submit" value="'.$LANG->sL($label,1).'" /></form>';
                return $out;
        }
 
index 439dd39..1e552cc 100755 (executable)
@@ -154,6 +154,7 @@ Would you like to save now in order to refresh the display?</label>
                        <label index="rm.export">Export</label>
                        <label index="rm.delete">Delete</label>
                        <label index="buttons.logout">Logout</label>
+                       <label index="buttons.exit">Exit</label>
                        <label index="buttons.selMenu_modules">MODULES</label>
                        <label index="buttons.clear">Clear</label>
                        <label index="buttons.clipboard">Clipboard</label>