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.


Messages - luca69

Pages: 1 ... 4 5 6 7
76
HFS ~ HTTP File Server / Re: New requirement: email property for user
« on: January 29, 2009, 07:46:05 AM »
mmm...
I just had an idea: instead of having an email field, a notes field.
If you want, put email in it, or anything.
But if you want to have MORE fields, you can.
Just use as syntax
field1=value1
field2=value2
email=my@address.com
hair-color=brown

So, in the template you can
{.set|notes|%user-notes%.}
{.from table|notes|email.}

Very GOOOD IDEA!!!
A "note" field would be very useful to store additional details about a user (e.g. department, phone number, etc.) and makes HFS very flexible!

About the sending of email, i prefer it to be demanded to an external utility through {.exec.}

Folder subscription is a problem: how to know when there's a new file in a real folder?
May idea was to sync it with the "Flag" event, but I of course it works only if someone uploads the files using HFS. New files added directly into the real folder would not be seen by HFS  :-\
What about having it in the "events script"?
Something like:
- associate a group to it
- each time a new file is uploaded, get the list of members of this group and send an email to them

To use an external utility to send emails it's ok ;-)

memberof macro is coming ;)

Many thanks !


Question: is there a way to know if the client (e.g. the browser) is running on Windows? Because in this case, can be a good idea to call outlook to send an email (please don't kill me: my users will like it).


77
HFS ~ HTTP File Server / Re: New requirement: email property for user
« on: January 28, 2009, 07:06:45 PM »
I read the forum, but the proposed soultions have the email addresses hardcoded into the events file. It would be much simplier to have the email stored as a property of the user.
Of course this opens many options into hfs  ;D

But my idea was at least to start the discussion to see which features are more useful for the hfs user comunity and ask Rejetto to implement them (ar at leat to put them into the to-do-list)

78
HFS ~ HTTP File Server / download folder
« on: January 28, 2009, 05:39:43 PM »
Hi guys. Just wondering ...

When a user go to my site and wants to download the contents of the entire folder, can that be done? The way i see it know is that the user downloads each file individually. Can a 'menu' option be added to 'download the contents' of the folder or maybe put a check at it to download?

Oh, i am using Avast! 4.8 (up to date) and no alarms. Avast! is pretty good at catching stuff.

drohr   (Don)

Enter in the folder yuo want to download and from the menu select "Folder archive": HFS will create a tar file with the content of that folder (and subfolders).

Note: "Archive" is a property of the folder. If is not set, the "Folder archive" function is disable.

79
HTML & templates / Re: Admin Panel : Creating a proper admin panel.
« on: January 28, 2009, 12:11:02 PM »
Admin panel: great idea!
My hint: would it be nice to have it somehow separated from the "main" template, so that it would be easy to integrate it into the HFS embedded template.
About the user rights, maybe it is simpler to have a predefined group called "Administrators" in HFS and assign the users to this group.
The macro {.if|{.get|is admin.}|Pew|Pew.} would than check if the user is member of this group.

80
Beta / Re: Testing build #220
« on: January 28, 2009, 10:26:09 AM »
When you login and you are asked for your password, if you click cancel, a page opens saying that you are not authorized… is there a way to skip this page and to come back to the previous page?

It's not that critical, just "nice to have"  ;D

I have noticed this, my router also does this. I'm not sure if its possible, if you put a redirect on that part of the template, every time someone clicks an item they are unauthorised for they will be redirected to the homepage, how annoying :P

is not possible to catch the "pressed cancel button" event and redirect to the homepage only in that case? ??? Probably not editing the template, but in the HFS code maybe yes  ::)

81
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?

82
Beta / Re: Testing build #220
« on: January 28, 2009, 08:44:51 AM »
When you login and you are asked for your password, if you click cancel, a page opens saying that you are not authorized… is there a way to skip this page and to come back to the previous page?

It's not that critical, just "nice to have"  ;D


83
HFS ~ HTTP File Server / Re: Support more 4GB file by splitting files
« on: January 27, 2009, 08:50:20 PM »
From my side, as I often use HFS on UNIX, I prefer the tar format  ;D

84
HFS ~ HTTP File Server / Re: opinions and requests
« on: January 27, 2009, 08:49:05 PM »
It would be clumsy to call external tools to do the data gathering job rather than using an HFS built-in function.  Further, as a newcomer to HFS, I still have lots to learn about how it works, and I also lack the free time to do this soon.  So a built-in foldersize variable would be useful.  It could read whole folder size (all files in each folder).

Consider that many servers rely on external tools to perform advanced or time consuming operations (such as the one I work on professionally).  A batch script could offer you a lot of flexibility as well.  An exec macro could be incorporated to run the file size script whenever a file is uploaded to a folder, for instance.
This would not work if a file is added directly on the server  :(

85
Ooo this is a very nice idea and I think I'll give it a test run when I get home.  Thanks for sharing.

Let me know what you think about it. Hints are welcome  ;)

86
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.

87
THANKS !!!!
Now it is perfect! My users will love it  ;D

88
Now it works: the folder is created  ;D, but the folder list is not refreshed  :-[
Any hint how can I force the refresh of the page?

89
Everything else / Re: I summon you all hfs BRAIN`rs
« on: January 26, 2009, 04:11:15 PM »
Nice Italian name is "Antonio" which shall become "Anton" as Norwegian baby name  ;)

90
Beta / Re: Testing build #220
« on: January 26, 2009, 02:37:05 PM »
My two euro cents:



what's new
- security fix: groups were allowed to login http://www.rejetto.com/forum/index.php?topic=6550.msg1039964#msg1039964
Checked: now it is working fine

- setting same name for 2 accounts was not prevented http://www.rejetto.com/forum/index.php?topic=6550.msg1039964#msg1039964
Checked: now it is working fine

Pages: 1 ... 4 5 6 7