[!!!][TASK] Rewrite install tool
[Packages/TYPO3.CMS.git] / typo3 / sysext / install / Resources / Private / Partials / Action / Tool / CleanUp / Typo3TempFiles.html
1 <h4>Clean typo3temp/ folder</h4>
2
3 <div class="toggleGroup">
4 <div class="toggleButton">
5 <h4>About</h4>
6 </div>
7 <div class="toggleData" style="display:none">
8 <p>
9 TYPO3 uses this directory for temporary files, mainly processed and cached images.
10 The filenames are cryptic. They are unique representations of the file properties
11 made by md5-hashing a serialized array with information.
12 </p>
13 <p>
14 Anyway this directory may contain many thousand files and a lot of them may be of no use anymore.
15 </p>
16 <p>
17 With this action you can delete the files in this folder. When you do that, you
18 should also clear the cache database tables afterwards.
19 </p>
20 <p>
21 This tool will delete files only if the last 10 characters before the extension
22 (3 chars+'.') are hexadecimal valid ciphers, which are lowercase a-f and 0-9.
23 </p>
24 </div>
25 </div>
26
27 <dl class="t3-install-definitionlist">
28 <dt>
29 Number of temporary files:
30 </dt>
31 <dd>
32 {typo3TempData.numberOfFilesInSelectedDirectory}
33 </dd>
34 <dt>
35 Number matching:
36 </dt>
37 <dd>
38 {typo3TempData.numberOfFilesMatchingCriteria}
39 </dd>
40 <dt>
41 Number deleted:
42 </dt>
43 <dd>
44 {typo3TempData.numberOfDeletedFiles}
45 </dd>
46 </dl>
47
48 <form method="post">
49 <f:render partial="Action/Common/HiddenFormFields" arguments="{_all}" />
50
51 <fieldset>
52 <ol>
53 <li>
54 <label for="t3-install-delete">
55 Delete files by condition
56 </label>
57 <select
58 id="t3-install-delete"
59 name="install[values][condition]"
60 >
61 <option value="0">All</option>
62 <option value="day" {f:if(condition:'{typo3TempData.selectedCondition} == \'day\'', then:'selected="selected"')}>Last acces more than a day ago</option>
63 <option value="week" {f:if(condition:'{typo3TempData.selectedCondition} == \'week\'', then:'selected="selected"')}>Last acces more than a week ago</option>
64 <option value="month" {f:if(condition:'{typo3TempData.selectedCondition} == \'month\'', then:'selected="selected"')}>Last acces more than a month ago</option>
65 <option value="10" {f:if(condition:'{typo3TempData.selectedCondition} == \'10\'', then:'selected="selected"')}>File size greater than 10K</option>
66 <option value="50" {f:if(condition:'{typo3TempData.selectedCondition} == \'50\'', then:'selected="selected"')}>File size greater than 50K</option>
67 <option value="100" {f:if(condition:'{typo3TempData.selectedCondition} == \'100\'', then:'selected="selected"')}>File size greater than 100K</option>
68 </select>
69 </li>
70
71 <li>
72 <label for="t3-install-action">
73 Number of files at a time:
74 </label>
75 <select
76 id="t3-install-action"
77 name="install[values][numberOfFiles]"
78 >
79 <option value="0">Don't delete, just display statistics</option>
80 <option value="500" {f:if(condition:'{typo3TempData.numberOfFiles} == \'500\'', then:'selected="selected"')}>Delete 500</option>
81 <option value="1000" {f:if(condition:'{typo3TempData.numberOfFiles} == \'1000\'', then:'selected="selected"')}>Delete 1000</option>
82 <option value="5000" {f:if(condition:'{typo3TempData.numberOfFiles} == \'5000\'', then:'selected="selected"')}>Delete 5000</option>
83 </select>
84 </li>
85
86 <li>
87 <label for="t3-install-subdirectory">
88 From sub-directory:
89 </label>
90 <select
91 id="t3-install-subdirectory"
92 name="install[values][subDirectory]"
93 >
94 <f:for each="{typo3TempData.subDirectories}" as="subDirectory">
95 <option
96 value="{subDirectory.name}"
97 {f:if(condition:subDirectory.selected, then:'selected="selected"')}
98 >
99 <f:if condition="{subDirectory.name}">
100 {subDirectory.name}/ (Files: {subDirectory.filesNumber})
101 </f:if>
102 </option>
103 </f:for>
104 </select>
105 </li>
106 </ol>
107 </fieldset>
108
109 <f:render
110 partial="Action/Common/SubmitButton"
111 arguments="{name:'deleteTypo3TempFiles', text:'Execute'}"
112 />
113 </form>