Skip to content

Commit 87483e5

Browse files
committed
checkin
0 parents  commit 87483e5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+3907
-0
lines changed

.classpath

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" path="src"/>
4+
<classpathentry kind="lib" path="lib/commons-fileupload-1.0.jar"/>
5+
<classpathentry kind="lib" path="lib/commons-io-1.0.jar"/>
6+
<classpathentry kind="lib" path="lib/commons-net-1.2.1.jar"/>
7+
<classpathentry kind="lib" path="lib/jakarta-commons-io-SNAPSHOT.jar"/>
8+
<classpathentry kind="lib" path="lib/jstl.jar"/>
9+
<classpathentry kind="lib" path="lib/standard.jar"/>
10+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
11+
<classpathentry kind="var" path="JAVAEE5.JAR"/>
12+
<classpathentry kind="output" path="classes"/>
13+
</classpath>

.project

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>jFM</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
</buildSpec>
14+
<natures>
15+
<nature>org.eclipse.jdt.core.javanature</nature>
16+
</natures>
17+
</projectDescription>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
eclipse.preferences.version=1
2+
encoding/<project>=ISO-8859-1

COPYING

+340
Large diffs are not rendered by default.

Changelog.txt

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Version 0.9.5a, 2005-03-28
2+
- relativ copy/move with /path/ should work now
3+
4+
Version 0.9.5, 2004-10-06
5+
- used ServletContext().getMimeType()
6+
7+
2004-06-01
8+
- Automatically set focus to submit on login
9+
10+
Version 0.9.4, 2004-06-01
11+
- Added Join Command
12+
13+
Version 0.9.3, 2004-05-28
14+
- added Ftp upload
15+

README

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
jFM
3+
______
4+
5+
jFM is free software. For copyright information please see the file COPYING, which contains the GNU Public Library License.
6+
jFM uses libraries from the Apache Jakarta Commons Project (http://jakarta.apache.org), which are covered by the Apache license, please see the file jakarta-commons-LICENSE.txt.
7+
8+
For installation instructions please see the file index.html
9+
10+
11+
12+
If you have some feedback on jFM please visit the web site at
13+
14+
http://jfm.dev.java.net/
15+
16+
and go to the forums.
17+
If you want to thank me for jFM, feel free to send me a picture
18+
postcard of your place to
19+
20+
J�rgen Weber, Wiesental 1, 74523 Schw�bisch Hall, Germany
21+
22+
23+

WEB-INF/fm.jsp

+311
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,311 @@
1+
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
2+
3+
<html>
4+
<head>
5+
<title>jFM - File Manager</title>
6+
<link rel="stylesheet" type="text/css" href="${url}/styles/jFM.css" />
7+
</head>
8+
9+
10+
11+
12+
<body bgcolor="#FFFFFF">
13+
<h3>jFM - File Manager </h3>
14+
15+
<c:if test="${!principal}">
16+
<a href="${self}${path}?logout=t" title="Log out">log out ${principal}</a>
17+
</c:if>
18+
<p>
19+
20+
<span style="color: rgb(255, 0, 0);">${actionresult}</span>
21+
22+
<c:if test="${!fatalerror}">
23+
24+
<form name="files" action="${self}${path}" method="get">
25+
26+
<table border="1" cellpadding="3" cellspacing="0">
27+
<tbody>
28+
<tr>
29+
<td colspan="5" class="title">
30+
31+
<img src="${url}/img/openfolder.gif" title="current folder" width="24" height="24" alt="DIR" border="0">
32+
33+
<c:set var="parentlink" value="" scope="request"/>
34+
35+
<c:forEach var="parent" items="${folder.parents}" varStatus="status">
36+
37+
<c:choose>
38+
<c:when test="${parent.isActive}">
39+
<a href="${self}${parent.link}">${parent.display}</a>
40+
</c:when>
41+
<c:otherwise>
42+
${parent.display}
43+
</c:otherwise>
44+
</c:choose>
45+
46+
<c:if test="${!status.last}">
47+
&gt;
48+
<c:set var="parentlink" value="${self}${parent.link}" scope="request"/>
49+
</c:if>
50+
51+
</c:forEach>
52+
53+
&nbsp;
54+
55+
<c:if test="${parentlink != ''}">
56+
<a href="${parentlink}"><img src="${url}/img/up-one-dir.gif" title="to parent folder" width="16" height="16" alt="UP" border="0"></a>
57+
</c:if>
58+
59+
&nbsp;
60+
61+
<a href="${self}${path}"><img src="${url}/img/reload.gif" title="reload folder" width="24" height="24" alt="RELOAD" border="0"></a>
62+
63+
</td>
64+
65+
66+
</tr>
67+
<tr>
68+
<td class="header-right" style="width: 10%;">
69+
<script>
70+
function doChkAll(oChkBox) {
71+
var bChecked = oChkBox.checked;
72+
var docFrmChk = document.forms['files'].index;
73+
for (var i = 0; i < docFrmChk.length; i++) {
74+
docFrmChk[i].checked = bChecked;
75+
}
76+
}
77+
</script>
78+
<small>
79+
Check all
80+
<input type="checkbox" name="chkAll" onclick="doChkAll(this);">
81+
</small>
82+
</td>
83+
84+
85+
86+
87+
<td class="header-left"><small>Filename</small>&nbsp;
88+
<a href="${self}${path}?sort=nd">
89+
<img src="${url}/img/shift-down.gif" title="sort by name ascending" width="16" height="16" alt="SORTDN" border="0"></a>
90+
91+
&nbsp;
92+
93+
<a href="${self}${path}?sort=nu">
94+
<img src="${url}/img/shift-up.gif" title="sort by name descending" width="16" height="16" alt="SORTUP" border="0"></a>
95+
96+
</td>
97+
<td class="header-left"><small>Type</small></td>
98+
<td class="header-center"><small>Size</small>
99+
&nbsp;
100+
<a href="${self}${path}?sort=sd">
101+
<img src="${url}/img/shift-down.gif" title="sort by size ascending" width="16" height="16" alt="SORTDN" border="0"></a>
102+
103+
&nbsp;
104+
105+
<a href="${self}${path}?sort=su">
106+
<img src="${url}/img/shift-up.gif" title="sort by size descending" width="16" height="16" alt="SORTUP" border="0"></a>
107+
108+
&nbsp;
109+
110+
<a href="${self}${path}?sum=t">
111+
<img src="${url}/img/sum.gif" title="display folder tree size" width="16" height="16" alt="SUM" border="0"></a>
112+
113+
</td>
114+
<td class="header-center"><small>Last Modification</small>&nbsp;
115+
<a href="${self}${path}?sort=dd">
116+
<img src="${url}/img/shift-down.gif" title="sort by date ascending" width="16" height="16" alt="SORTDN" border="0"></a>
117+
&nbsp;
118+
119+
<a href="${self}${path}?sort=du">
120+
<img src="${url}/img/shift-up.gif" title="sort by date descending" width="16" height="16" alt="SORTUP" border="0"></a>
121+
122+
</td>
123+
</tr>
124+
125+
<c:forEach var="file" items="${folder.files}">
126+
127+
128+
<tr>
129+
<td class="row-right">
130+
131+
<c:if test="${file.isZip}">
132+
<a href="${self}${path}?command=Unzip&index=${file.id}"> <img src="${url}/img/unpack.gif" title="unzip ${file.name}" width="16" height="16" alt="UNZIP" border="0"></a>
133+
</c:if>
134+
<c:if test="${!file.isDirectory}">
135+
<a href="${self}${path}?command=Delete&index=${file.id}"> <img src="${url}/img/delete.gif" title="delete ${file.name}" width="16" height="16" alt="DEL" border="0"></a>
136+
</c:if>
137+
138+
<small><input type="checkbox" name="index" value="${file.id}"></small></td>
139+
140+
<td class="row-left"><small><c:choose>
141+
<c:when test="${file.isDirectory}">
142+
<a href="${self}${file.path}"><img src="${url}/img/folder.gif" title="folder" width="16" height="16" alt="DIR" border="0"></a>
143+
<a href="${self}${file.path}">${file.name}</a>
144+
</c:when>
145+
<c:otherwise>
146+
<a href="${file.url}"><img src="${url}/img/file.gif" title="file" width="16" height="16" alt="FILE" border="0"></a>
147+
<a href="${file.url}">${file.name}</a>
148+
</c:otherwise>
149+
</c:choose> </small></td>
150+
<td class="row-center">${file.type}</td>
151+
152+
<td class="row-center">${file.size} </td>
153+
154+
<td class="row-center">${file.lastModified}</td>
155+
156+
157+
158+
</tr>
159+
160+
</c:forEach>
161+
162+
163+
<tr>
164+
<td colspan="5" class="header-left">Action on selected Files</td>
165+
</tr>
166+
167+
168+
<tr>
169+
<td class="row-right"> <input type="submit" name="command" value="Rename" title="Rename selected file"></td>
170+
<td class="row-left">to <input name="renameto" type="text"></td>
171+
172+
173+
174+
<td class="row-right"> <input type="submit" name="command" value="Delete" title="Delete selected files"></td>
175+
176+
177+
<td class="row-left"> <input type="submit" name="command" value="Join" title="Append to first selected file other selected files"></td>
178+
179+
180+
</tr>
181+
182+
<tr>
183+
<td class="row-right"> <input type="submit" name="command" value="Copy" title="Copy selected files"></td>
184+
<td class="row-left">to <input name="copyto" type="text"></td>
185+
186+
187+
<td class="row-right"> <input type="submit" name="command" value="ZipDownload" title="Zip download files"></td>
188+
189+
<td class="row-left" colspan="2"> <input type="submit" name="command" value="FtpUpload" title="ftp upload files"> to <input name="ftpto" type="text" size="60" value="" title="user:password@host/path"></td>
190+
191+
192+
</tr>
193+
194+
<tr>
195+
<td class="row-right"> <input type="submit" name="command" value="Move" title="Move selected files"></td>
196+
<td class="row-left">to <input name="moveto" type="text"></td>
197+
198+
<td class="row-right"> <input type="submit" name="command" value="DeleteRecursively" title="Delete selected folders recursively"></td>
199+
<td class="row-left">type YES <input name="confirm" type="text" size="3" title="Confirm with YES"></td>
200+
</tr>
201+
202+
203+
204+
205+
</tbody>
206+
</table>
207+
208+
</form>
209+
210+
211+
<table style="width: 60%; text-align: left;" border="1" cellpadding="2"
212+
cellspacing="2">
213+
<tbody>
214+
<tr>
215+
216+
<td class="row-center">
217+
218+
<form action="${self}${path}" method="get">
219+
220+
<input name="newdir" type="text">
221+
<input type="submit" name="command" value="Mkdir" title="make directory">
222+
</form>
223+
</td>
224+
225+
226+
</tr>
227+
</tbody>
228+
</table>
229+
230+
231+
232+
233+
<form action="${self}${path}"
234+
method="post" enctype="multipart/form-data">
235+
236+
<table border="1" cellpadding="3" cellspacing="0">
237+
<tbody>
238+
<tr>
239+
240+
<td colspan="2" class="title">
241+
File upload to current directory
242+
</td>
243+
244+
<td colspan="2" class="title">
245+
File upload and unzip to current directory
246+
</td>
247+
248+
</tr>
249+
250+
251+
<tr>
252+
<td class="row-right">Choose file</td> <td class="row-left"><input type="file" name="file"></td>
253+
254+
<td class="row-right">Choose zip file</td> <td class="row-left"><input type="file" name="unzip"></td>
255+
256+
</tr>
257+
258+
259+
<tr>
260+
<td class="row-right">Choose file</td> <td class="row-left"><input type="file" name="myimage"></td>
261+
262+
<td class="row-right"></td>
263+
264+
265+
<td class="row-left"><input type="submit" name="command" value="Upload and unzip"/></td>
266+
267+
</tr>
268+
269+
270+
271+
<tr>
272+
<td></td>
273+
<td class="row-left"><input type="submit" name="command" value="Upload"/></td>
274+
</form>
275+
276+
277+
<td class="row-right">Get file from URL</td>
278+
279+
<td class="row-left">
280+
281+
<form action="${self}${path}" method="get">
282+
283+
<input name="url" type="text" title="http or ftp">
284+
285+
<input type="submit" name="command" value="GetURL" title="Upload from URL">
286+
287+
</form>
288+
289+
</td>
290+
291+
</tr>
292+
293+
</tbody>
294+
</table>
295+
296+
</c:if>
297+
298+
<table border="0" cellpadding="3" cellspacing="0">
299+
<tbody>
300+
<tr>
301+
302+
<td class="row-left"><small><a href="http://jfm.dev.java.net/" title="http://jfm.dev.java.net/">jFM ${version}</a> Copyright &copy; 2004 Juergen Weber</small></td>
303+
304+
<td class="row-right"><small>jFM running on ${serverInfo}</small></td>
305+
306+
</tr>
307+
308+
</tbody>
309+
</table>
310+
</body>
311+
</html>

WEB-INF/version.properties

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
#Version number
3+
version=0.9.5a
4+

0 commit comments

Comments
 (0)