rejetto forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - luca69

Pages: 1
1
HFS ~ HTTP File Server / Progress Frame does not work with FireFox
« on: February 17, 2010, 09:37:07 AM »
I'm currently using HttpFileServer 2.3 beta Build 242 and users are happy  :)

Sometimes they upload big files from UNIX using FireFox and they report that the Progress Frame bar does not work (e.g. does not show any progress).

I tested also on Windows with FF 3.5.7 and is not working as well.
With IE 6 it's perfect.

Any hint?

2
HFS ~ HTTP File Server / Comments: name of user that uploads the file
« on: January 29, 2009, 08:55:11 AM »
The current template I'm using is generating a Multi-comment files hfs.comments.txt but this has some drawbacks:
- When a new file is uploaded, the hfs.comments.txt file is updated  ;D
- When a file is deleted, the hfs.comments.txt is not update  :(
  --> the hfs.comments.txt grows forever  :o
- Add again the same file, but without a user logged in
  --> the hfs.comments.txt contains already an entry for this file and the wrong information is shown  :'(

Possible solution: I changed the code in the [upload-success] section so that now a single-comment file is generated with the name of the user who uploaded the file.

Old code.
Code: [Select]
{.if| %user% |{: {.append| %folder-resource%\hfs.comments.txt |{.filename|%item-resource%.}=uploaded by %user% /append.} :}/if.}

New code:
Code: [Select]
{.if| %user% |{: {.append| %folder-resource%\{.filename|%item-resource%.}.comment |uploaded by %user% /append.} :}/if.}

This solves the first problem (hfs.comments.txt grows forever)

But now, to evaoid the second problem,  I should add a function that when a file is deleted, the "single-comment file" is deleted as well.

Any idea how I can do that?

3
HFS ~ HTTP File Server / New requirement: email property for user
« on: January 28, 2009, 08:58:18 AM »
I think it would be nice to add within the user properties the e-mail address so that HFS send e-mails on events (e.g. there is a new file).
I know that the topic is complex, but we can start to discuss about it.

From my side:
- add email address to user properties
- add into HFS the possibility to send emails
- add the possibility for the user to subscribe to a "folder" in order to be notify if there are new data
- add the possibility for the user to get an email with his/her password (in case he/she forgets it).
- HFS shall send an email to a specific user (admin) in case of critical event (e.g. disk full)

Other ideas?

4
I played a little bit with the admin panel and I found useful for the users to have the possibility to change the password by themselves.

This is my code:
Code: [Select]
[changepass]
{.if | %user% |
<html>
<head>
<title>Pass Changer</title>
</head>
<body>
<b><font size="4"> Welcome %user% ! </b>
<p>
<br><font size="4"> Then type the new password and click on Change. Leave it blanck to remove the password.
<p>
<form method=post action="/~userpasschange">
  <table>
  <tr><td align=left><b><font size="4"><font size="4">New Password</font></b></font></b><td><b><font size="4">: &nbsp;</font></b><span style="background-color: #000000"><input name=pass type=password style="font-size:10pt; font-weight:bold; border:1px solid #88f" size="20" ></span>
  <tr><td align=left><font size="4">Click <a href="/">here</a> to return to HOME.</font><td align=center><input type=submit value="Change">
  </tr></table>
</form>

</body>
</html>
|{.section|usererror.}.}

[userpasschange]
{.if | %user% |
<html>
<head>
<title>Pass Changer</title>
</head>
<body>
{.set account|%user%|password={.postvar|pass.}.}
<p><font size="4">Password changed!</font></p>
<p>Click <a href="/">here</a> to return to HOME.</p>
</body>
</html>
|{.section|usererror.}.}

[usererror]
<html>
<head>
<title>Error</title>
</head>
<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>
<p align="center"><font size="6"><b>You must login before chaning the password.</b></font></p>
<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>
<p>Click <a href="/">here</a> to return to HOME.</p>
</body>
</html>

To have the menu entry, you have to modify the current template and add the second line in the following peace of code:
Code: [Select]
{.if not| %user%                             | <li><a href="~login"><img src="/~img27"> Login</a></li> .}

{.if | %user%                                | <li><a href="/~changepass"> Change password</a></li> .}

{.if| {.get|can upload.}                     | <li><a href="~upload"><img src="/~img32"> Upload</a></li> .}
{.if| {.and | {.get|can archive.} | {.not|{.?search.}.} .}



Open: I think it is a good idea to ask the user twice for the new password and check if the two entry match; if not the user shall be prompt for the new password again.

5
It would be nice if a user which has "upload" rights can also create a folder.
Any plan to implement it?
Is it possible to do it with a macro?

Pages: 1