Author Topic: Small reminder about EVENTS and hfs.events  (Read 7176 times)

0 Members and 1 Guest are viewing this topic.

Offline Mars

  • Operator
  • Tireless poster
  • *****
  • Posts: 1842
    • View Profile
Small reminder about EVENTS and hfs.events
« 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.
    
****************************************************************

[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.

« Last Edit: October 09, 2010, 11:19:05 PM by Mars »

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12888
    • View Profile
Re: Small reminder about EVENTS and hfs.events
« Reply #1 on: April 12, 2009, 10:19:49 PM »
thank you mars :)

Offline Kremlin

  • Tireless poster
  • ****
  • Posts: 137
    • View Profile
Re: Small reminder about EVENTS and hfs.events
« Reply #2 on: April 12, 2009, 10:28:51 PM »
wiki it  :)

Offline Mars

  • Operator
  • Tireless poster
  • *****
  • Posts: 1842
    • View Profile
Re: Small reminder about EVENTS and hfs.events
« Reply #3 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

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12888
    • View Profile
Re: Small reminder about EVENTS and hfs.events
« Reply #4 on: April 12, 2009, 11:01:47 PM »
it has nothing to do with html and templates :-\

Offline Kremlin

  • Tireless poster
  • ****
  • Posts: 137
    • View Profile
Re: Small reminder about EVENTS and hfs.events
« Reply #5 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.
« Last Edit: April 12, 2009, 11:07:12 PM by Kremlin »

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12888
    • View Profile
Re: Small reminder about EVENTS and hfs.events
« Reply #6 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"?

Offline Kremlin

  • Tireless poster
  • ****
  • Posts: 137
    • View Profile

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12888
    • View Profile
Re: Small reminder about EVENTS and hfs.events
« Reply #8 on: April 12, 2009, 11:16:14 PM »
mmm, i prefer to keep the things separated.