1. I would like to use modify my tpl to the following structure:
Main: start ... %login-link% %logged-in% ... end
[login-link]: my homepage-html with link to login
[loggedin]: ...%up% %root(non-up)% ...
[root/non-up]: html with links to hfs folders
[up]: ...%upload-link% %non-upload-link% ...
[upload-link]: html for uploading & link to upload form in new window
[non-upload-link]: html for downloading
What i need is the [root/non-up] and [non-upload-link] section to control the flow of the html generated by hfs.
With this flow 4 different pages with their own html could be constructed without script from the hfs tpl:
1. login-html
2. loggedin+root-html
3. loggedin+up+uploadlink-html
4. loggedin+up+non-uploadlink-html
plus the progressfolder and upload form (i prefer to have them in separate windows).
Each page could contain specific information relevant for the user.
In main.pas of the beta21 source i found this section:
// build final page
if list='' then list:=tpl['nofiles']
else list:=x_template(tpl['files'], ['%list%',list]);
table:=getBaseSymbolsTable(folder);
addArray(table, getBaseSymbolsTable_user(conn.request.user));
addArray(table, [
'%host%', conn.getHeader('host'),
'%upload-link%', ifThen(uploadAllowed(conn, folder), tpl['upload-link']),
'%up%', ifThen(not folder.isRoot(), tpl['up']),
so for the requested %root% and %non-upload-link% the following statements would apply:
'%root%', ifThen(folder.isRoot(), tpl['root']),
'%non-upload-link%', ifThen(uploadnotAllowed(conn, folder), tpl['non-upload-link']),
i'm not a programmer, but just to show what i mean. i'm not aware about the depth of the %symbols%, so you decide.
Sorry for the long explanation, but i want to be sure that you understand my request.
2. Yes, someone uploads a file like date_time_message.txt, when everybody can read it is a primitive kind of messagebox. And what's more important, when only i can read it, it is a simple mailbox. Advantage: maximum privacy, no files stored or backupped for years on external servers. Just on my PC in my home and can be deleted at any time.
3. I got the point. So the second best solution then, would be the use of JAP/TOR for encrypted transmission.
Another suggestion: Would it be feasible to put header information in %symbols% like user_agent, referer, forwarded_for etc? Just to show visitors what the are sending to the server.