rejetto forum

Software => HFS ~ HTTP File Server => Programmers corner => Topic started by: Mars on April 12, 2009, 10:11:06 PM

Title: Small reminder about EVENTS and hfs.events
Post by: Mars on April 12, 2009, 10:11:06 PM
Small reminder: Available sections in hfs.events   ( hfs.exe build 232)

[start]
-->> Launched at every time hfs.exe is executed
-->>  you can put in this section some macro as {.set ini|...... .}

[quit]
-->> before hfs.exe is closed

[server start]
-->>  Lauched every time hfs is switched ON  (key F4  or macro {set ini|active=yes.} )

[server stop]
-->>  Lauched every time hfs is switched OFF  (key F4  or macro {set ini|active=no.} )

[connected]
-->> similar to the 'connected event' in log

[disconnected]
-->> similar to the 'disconnected event' in log

[request]
-->> launched every time hfs becomme a request from a browser

[unauthorized]
-->> launched before the  'unauthorized' section of hfs.tpl

[on macro rename]
-->>perform renaming via {.rename.} macro. (http://www.rejetto.com/forum/index.php?topic=7291.msg1045288#msg1045288)
    
****************************************************************

[archive name]
%archive-name%
optional:  %mode%          ->> %mode%  is 'selection' or 'folder'
-->> used to rename a tar file before sending it to the user

*******************************************************************************

[download]
-->> launched when anybody download a file or a TAR archive

[download name]
%item-name%           (it is the default value to be used or nothing)
-->> can be used to rename a download file before sending to the user

[download completed]
-->> Lauched when the last byte of a download file is sended to the user

*******************************************************************************

[upload name]
%item-name%            (it is the default value to be used or nothing)
-->> can be used to rename an uploaded file before saving it in the current folder

[upload completed]
-->> launched every time that an upload of one file is finish with success  

[upload failed]
-->> launched every time that an upload of one file has failed  

*******************************************************************************
[on macro rename]
  %old-name%   and  %new-name%
-->> launched every time that a file is renamed by macro
[on macro move]    not implemented yet
[on macro copy]     not implemented yet
[on macro delete]     not implemented yet
*******************************************************************************

[every (time)]  and    [at (time)]  

[every XXX] and [at HH:MM]

XXX is in seconds, but you can use minutes or hours. examples

[every 5]   (that is 5 seconds)
[every 3 hours]
[every 4h]
[every 15 minutes]
[every 1.5m]   (that is 90 seconds)
[every 1:15 min]  (that is 75 minutes)

HH:MM is instead in standard 24 hours format, but you can do things like

[at 0:00=at 6:00=at 12:00=at 18:00]
this will trigger every six hours, but at specific times.
while [every 6 hours] would trigger at same intervals but differently placed in time.

Title: Re: Small reminder about EVENTS and hfs.events
Post by: rejetto on April 12, 2009, 10:19:49 PM
thank you mars :)
Title: Re: Small reminder about EVENTS and hfs.events
Post by: Kremlin on April 12, 2009, 10:28:51 PM
wiki it  :)
Title: Re: Small reminder about EVENTS and hfs.events
Post by: Mars on April 12, 2009, 10:54:00 PM
It will be good to move this topic into 'HTML and templates' board and notice it as the topic '  HFS - Template Help and Information - Wiki Links' to maintain it at the head of the topics list
Title: Re: Small reminder about EVENTS and hfs.events
Post by: rejetto on April 12, 2009, 11:01:47 PM
it has nothing to do with html and templates :-\
Title: Re: Small reminder about EVENTS and hfs.events
Post by: Kremlin on April 12, 2009, 11:05:34 PM
http://www.rejetto.com/wiki/?title=HFS:_Event_scripts here?

Maybe the wiki topic should be moved to the main section so it can be used for events and html templates.
Title: Re: Small reminder about EVENTS and hfs.events
Post by: rejetto on April 12, 2009, 11:10:35 PM
Maybe the wiki topic should be moved to the main section so it can be used for events and html templates.

i didn't understand your suggestion.
what you mean by "wiki topic" and "main section"?
Title: Re: Small reminder about EVENTS and hfs.events
Post by: Kremlin on April 12, 2009, 11:13:55 PM
Wiki topic - http://www.rejetto.com/forum/index.php?topic=1939.0
Main Section - http://www.rejetto.com/forum/index.php?board=21.0
Title: Re: Small reminder about EVENTS and hfs.events
Post by: rejetto on April 12, 2009, 11:16:14 PM
mmm, i prefer to keep the things separated.