rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: Giant Eagle on April 04, 2007, 12:09:34 PM

Title: %protected% - Request
Post by: Giant Eagle on April 04, 2007, 12:09:34 PM
I personally hate it when i browse a file server where a huge list of folders are displayed which are all restricted to users. ;D

So, wouldnt it be nice to have %protected% - [protected] where you can put up an image (Like a Lock or something) that will only show up when login is required for that particular file and / or folder.

Title: Re: %protected% - Request
Post by: rejetto on April 04, 2007, 02:05:17 PM
HFS cannot know when the login dialog will pop up on the browser, because the browser decide itself how to store and use passwords.

anyway, HFS can know whan items are protected. i can insert the %protected% there. is it ok?
Title: Re: %protected% - Request
Post by: Giant Eagle on April 04, 2007, 06:31:45 PM
anyway, HFS can know whan items are protected. i can insert the %protected% there. is it ok?

Would it be able to do this: (If yes, :D then thats exactly what i wanted)

Lets say the folders Media and Template are restricted to users only.

and that [protected] contains something like this:
<img src="lock.jpg" alt="" />&nbsp;

Then the output would be:

[attachment deleted by admin]
Title: Re: %protected% - Request
Post by: MarkV on April 04, 2007, 09:18:57 PM
I think that is something that should even get implemented into the default template.


MarkV
Title: Re: %protected% - Request
Post by: rejetto on April 04, 2007, 11:07:57 PM
Then the output would be:

that's exactly what i already got in your previous explanation.
what i told you is that when you click on those folders, the browser may remember the password, and access the folder using the password: no login dialog.
is it clearer now?
is it a problem?
Title: Re: %protected% - Request
Post by: TSG on April 05, 2007, 01:43:32 AM
:o i like this idea.
Title: Re: %protected% - Request
Post by: Giant Eagle on April 05, 2007, 08:51:00 AM

that's exactly what i already got in your previous explanation.
what i told you is that when you click on those folders, the browser may remember the password, and access the folder using the password: no login dialog.
is it clearer now?
is it a problem?

Yes, its clearer =D

Another thing,

Wouldn't it be possible that, when you are logged in, some of the 'locks' go away. Cause hfs can show (in the account menu) which folders are accessable by a certain user; couldnt this information be used to show and hide certain locks when a user logs in?

Or do i get it wrong again?
Title: Re: %protected% - Request
Post by: Guest on April 05, 2007, 02:24:11 PM
A work around for now is folder Comment with
Code: [Select]
<img align=top src="/~img12" alt="Private"> Log In Requiredfor all protected folders.
If %protected% is implemented, I hope it will be selectable, so it can be
turned off.
I probably don't understand this well, but what about a case where there
are several folders protected, but each user only has access to part of them ?
Title: Re: %protected% - Request
Post by: rejetto on April 05, 2007, 02:59:21 PM
Or do i get it wrong again?

wrong because http authentication is stateless... long story
Title: Re: %protected% - Request
Post by: Pit on April 05, 2007, 05:18:22 PM
A work around for now is folder Comment with
Code: [Select]
<img align=top src="/~img12" alt="Private"> Log In Required

How looks the complete path to the icon if my Filesystem locally stored in d:\webserver\webroot ??

Thank you
Title: Re: %protected% - Request
Post by: rejetto on April 08, 2007, 12:03:08 PM
you don't have to care on how it is stored in your hard disk.
you only have to care on the path in your virtual file system.
Title: Re: %protected% - Request
Post by: Giant Eagle on April 08, 2007, 03:11:01 PM
wrong because http authentication is stateless... long story

Ok, nevermind that :P

anyway, HFS can know whan items are protected. i can insert the %protected% there. is it ok?

Yes, thats the main reason i wanted %protected% in the first place :)
Title: Re: %protected% - Request
Post by: rejetto on April 08, 2007, 09:34:50 PM
ok accepted
Title: Re: %protected% - Request
Post by: Fysack on April 08, 2007, 10:03:44 PM
I personally hate it when i browse a file server where a huge list of folders are displayed which are all restricted to users. ;D
What is the adress? Do they have porn`?  ;D
Title: Re: %protected% - Request
Post by: Giant Eagle on April 08, 2007, 11:04:31 PM
undoubtly.. but its restricted..

So i hope those lock images will reduce my hope in a search for free porn on the web ;D



(Im not inviting you to spam links now  ;))
Title: Re: %protected% - Request
Post by: Pit on April 09, 2007, 07:33:20 PM
Hello,

how can i use the %protected% feature? I use the version 0.92 with the default template.
What have i to modify?

Thx
Title: Re: %protected% - Request
Post by: Giant Eagle on April 10, 2007, 11:31:13 AM
Nothing, the default template already has it included ;D
Title: Re: %protected% - Request
Post by: fabnos on April 10, 2007, 02:31:35 PM
Nothing, the default template already has it included ;D

He GE this feature isn't still in Terayon  ??? or yes  ???

f.
Title: Re: %protected% - Request
Post by: rejetto on April 10, 2007, 06:54:13 PM
I wouldn't include it in Terayon until this feature is available in the official HFS version.
Still #088 on the download page.
Title: Re: %protected% - Request
Post by: Giant Eagle on April 11, 2007, 07:40:06 AM
I agree to rejetto.

If the a stable release will be released, i will also release a new version with the new feature installed.

Just be patient  ;D
Title: Re: %protected% - Request
Post by: fabnos on April 11, 2007, 07:51:20 AM
I only asked because I've supposed something wrong in my italian environment.
ciao
f.
Title: Re: %protected% - Request
Post by: TSG on April 11, 2007, 09:18:54 AM
It works well, but what i don't understand is why when you have logged in, items that your account can download still has the protected tag visible, shouldn't it then disappear?

I am currently testing this feature in my template, if it doesn't come out on the stable release for a while, i will just comment it out when i release it, BIG changes to the ToG template since the last release!
Title: Re: %protected% - Request
Post by: maverick on April 11, 2007, 10:47:11 AM
It works well, but what i don't understand is why when you have logged in, items that your account can download still has the protected tag visible, shouldn't it then disappear?

See here where I confirmed this same problem -> http://www.rejetto.com/forum/index.php?PHPSESSID=88a39d34a8b5c5c937d3db2b968b8e39&topic=4384.msg1022965#msg1022965
Title: Re: %protected% - Request
Post by: Giant Eagle on April 11, 2007, 11:47:42 AM
It works well, but what i don't understand is why when you have logged in, items that your account can download still has the protected tag visible, shouldn't it then disappear?

I am currently testing this feature in my template, if it doesn't come out on the stable release for a while, i will just comment it out when i release it, BIG changes to the ToG template since the last release!

I already suggested that:

Another thing,

Wouldn't it be possible that, when you are logged in, some of the 'locks' go away. Cause hfs can show (in the account menu) which folders are accessable by a certain user; couldnt this information be used to show and hide certain locks when a user logs in?

Or do i get it wrong again?
wrong because http authentication is stateless... long story
Title: Re: %protected% - Request
Post by: rejetto on April 19, 2007, 03:40:32 PM
well, ATM hfs doesn't even check if the file is accessible by the current user.
i didn't because it wouldn't always work.

if you have folder A and subfolder B, where B is protected and A is public.
when you access B, you get the login dialog, then you access B as the user.
if you then click UP, most browsers re-access A as anonymous, because it remembers it needed NO user to access it.
It is a good behaviour for privacy reasons, but HFS would then show you the B with a lock icon.
So, since this doesn't always work, i'm unsure it is a good thing to make it only some times.
But i'm changing my mind, and thinking it may be good for the sub-items, so maybe in the next build will try.