rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: woodfold on July 15, 2012, 10:39:29 PM

Title: How can I restrict a particular user to see [up] and no one else?
Post by: woodfold on July 15, 2012, 10:39:29 PM
I've searched for quite a while but haven't found how to do this. I need an account to see the "[up]" code but no one else, as it's confusing for users to see it when they are restricted to a specific folder for up/downloading..

I can't seem to check successfully for "Admin" for instance, all the code I try either doesn't show for anyone or it shows for everyone.

Can anyone provide an example, please?
Title: Re: How can I restrict a particular user to see [up] and no one else?
Post by: rejetto on July 16, 2012, 01:00:17 PM
with HFS 2.2 you can solve this only client-side (that means, by using javascript).
Instead of just writing TEXT
you can write
<script>
if ("%user" == "Frank") document.write("TEXT");
</script>


With hfs 2.3 there is a server-side solution.
{.if|{.%user% = Frank.}|TEXT.}
Title: Re: How can I restrict a particular user to see [up] and no one else?
Post by: rejetto on July 16, 2012, 09:15:18 PM
i expect quotes to not be needed in this specific case, but they don't hurt for sure