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 2 3 4 5 6 7
46
HFS ~ HTTP File Server / Re: Comments: name of user that uploads the file
« on: February 13, 2009, 12:21:54 PM »
it is actually undocumented yet.

it's just executed before the rest.

we needed it because the main part of the template is built after the list. this may change in the future.
:o :o :o :o
Please if you change it in future, remember this topic and manifest it in the release notes so that my template keep working with latest HFS version  ;)

47
Italiano / Re: Consiglio per il futuro
« on: February 13, 2009, 12:17:49 PM »
Hai provato il Template  "Vista Golden" Versione : 2.3/C - Created by French can can?
Contiene una Shoutbox e anche una Chat  ;)

48
HFS ~ HTTP File Server / Re: Comments: name of user that uploads the file
« on: February 13, 2009, 08:11:03 AM »
 -- EDIT: now it works !! But I have one questions:

I did not get the "special:begin" stuff ?!?!It looks like it is only a comment, but it has effects on the counter of uploads ?!?

49
I assume sine I'm using the RAWR template that this doesnt work?
I do not know the RAWR template, but this feature was added by me, supported by Rejetto, to the standard template.
The code is rather simple (see posts on the first page). You can chenge the template by yourself or ask the RAWR owners to do that ;)

50
Beta / Re: Testing build #223
« on: February 12, 2009, 12:39:56 PM »
Quote from: rejetto
published while driving

i meant i was really driving my car.
my laptop was on my side, running the publishing procedure, connected via gprs.
i was occasionally interacting at the stop lights.
i had to run out of the office :)

 :o :o :o :o :o :o :o
You need an upgrade to HSDPA  ;D

51
Tested with 223: now it works  ;D ;D

52
Italiano / Re: Trojan Generic!Artemis
« on: February 11, 2009, 12:20:24 PM »
Crea un'eccezzione nell'antivirus per HFS: non é un virus ne un trojan anche se alcuni antivirus lo identificano come tale in modo "euristico" in quanto fornisce servizi su internet.

53
..ok I'll wait for next release  8)

54
HFS ~ HTTP File Server / Re: Comments: name of user that uploads the file
« on: February 09, 2009, 08:18:54 AM »
maybe that template is using modifications made by mars.
in HFS you are supposed to not pass html inputs with such %names%, but with normal names, and read/use them by {.$name.}


what you want to get?
I would like to add in the upload page an additional comment besides each upload field so that the user can enter a comment for each file uploaded.
But in the upload session I could get the file name (this is used to automatically generate the comment "Uploaded by %user%) but I don't know how to get the comment!

55
Update: now the code ask for password twice and if there is a mismatch the user is prompt to enter the new password again.

Code: [Select]
[changepass]
{.if | %user% |
<html>
<head>
<title>Pass Changer</title>
<script type="text/javascript">
function validatePassword(form){
if (form.pass1.value != form.pass2.value){
alert("Password do not match: please enter again.");
return false;
  }
 return true;
}
</script>

</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 empty to remove the password.
<p>
<form method=post action="/~userpasschange" onsubmit="return validatePassword(this);">
  <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=pass1 type=password style="font-size:10pt; font-weight:bold; border:1px solid #88f" size="20" ></span>
  <tr><td align=left><b><font size="4"><font size="4">Type Password again</font></b></font></b><td><b><font size="4">: &nbsp;</font></b><span style="background-color: #000000"><input name=pass2 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|pass1.}.}
<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>


56
Hi found a solution, although I do not really like it.
If I used the "get" method instead of the "post" it is working !!!

Place this code in the form to have the "Create Folder" Button

Code: [Select]
<form method='get'>
{.if|{.get|can upload.}|
Folder name: <input  type='text' name='fldname' maxlength="25" size="25" >
<input  type='submit' name='createfolder' value='Create Folder' >
    /if.}
</form>


and add this code to generate the folder
Code: [Select]
[special:begin]
{.if|{.and| {.get|can upload.} | {.urlvar|createfolder.} .}|{:
{.mkdir|%folder-resource%\{.urlvar|fldname.}.}
:}/if.}

Vars in this case are visible in the address bar, but if the user is not logged in and does not have upload rights, the folder is not created, so it's not that dangerous :D

But there is still an annoying bug: if you create a folder and afterwards you want to delete it, the vars are not cleaned (as "delete" uses "post" and not "get") and the folder is created again!
If you navigate somewhere else, the get is cleaned (no vars in the address bar) and you can delete the folder

57
I did some further tests putting in the top the debug code
Code: [Select]
Vars: createfolder={.postvar|createfolder.}; fldname={.postvar|fldname.};

Even putting back the folder creation to the form ...
Code: [Select]
</div>
{.if|{.get|can upload.}|
Folder name: <input  type='text' name='fldname' maxlength="25" size="25" >
<input  type='submit' name='createfolder' value='Create Folder' >
{.if|{.and| {.get|can upload.} | {.postvar|createfolder.} .}|{:
{.mkdir|%folder-resource%\{.postvar|fldname.}.}
:}/if.}
    /if.}
</form>

I got the same "funny" effect! It looks like the browser "remembers" the last post as the variables are not cleanup (see 3rd screenshot in the attachments)

58
Beta / Re: Testing build #221
« on: February 05, 2009, 06:13:02 PM »
I found a snall bug: if the flag "Virtual File System -->Support DESCRIT.ION" is not set, when a files is deleted HFS generates an empty DESCRIT.ION file which pops up in the list of files  :(

There is a simple workarond: enable the Support DESCRIT.ION flag (the default) ;)

i think the empty file is ALWAYS created.
your workaround is just hiding it (i guess).

fixed in next build ;)

YESSSSSS  ;D ;D

59
HFS ~ HTTP File Server / Re: New requirement: email property for user
« on: February 05, 2009, 04:04:18 PM »
I don't understand exactly, what you are discussing and if my most liked feature would be possible to impliment.

This rejetto-forum software has a menu item:
"Show unread posts since last visit."

Is there any chance to make something like that in HFS? A user logs in and can click on a folder "Show new files since last visit".

What about a function that returns the list of files with the "new" flag? Maybe this is not exactly what you are asking for, but can help  ;)

60
Beta / Re: Testing build #221
« on: February 04, 2009, 05:29:04 PM »
+ fingerprint and comment are delete when a file is deleted via web

I found a snall bug: if the flag "Virtual File System -->Support DESCRIT.ION" is not set, when a files is deleted HFS generates an empty DESCRIT.ION file which pops up in the list of files  :(

There is a simple workarond: enable the Support DESCRIT.ION flag (the default) ;)

Pages: 1 2 3 4 5 6 7