Author Topic: see bad pass/username  (Read 9658 times)

0 Members and 1 Guest are viewing this topic.

Offline r][m

  • Insane poster
  • *****
  • Posts: 347
    • View Profile
Re: see bad pass/username
« Reply #30 on: May 10, 2010, 01:38:07 PM »
this code
Code: [Select]
[+unauthorized]
{.append|/A Location You Choose/Spl-Log.txt|Bad_Login: %date% %time% %ip% {.if|%user%|%user%|0.} %password%
.}

must be put in the template, not events file.
so the best way is to right click on the root/home > properties > diff template
I have this in hfs.events as well as the first I posted, and it works in 260 here? So this should be in tpl?

Offline Mars

  • Operator
  • Insane poster
  • *****
  • Posts: 1788
  • Country: 00
    • View Profile
Re: see bad pass/username
« Reply #31 on: May 10, 2010, 01:42:39 PM »
I have this in hfs.events as well as the first I posted, and it works in 260 here? So this should be in tpl?

refer you to http://www.rejetto.com/wiki/index.php?title=HFS:_Template

Both have to work ;)

Code: [Select]
    runEventScript('unauthorized');
    getPage('unauthorized', data);

Quote
Network events

unauthorized
this user has no permission to access the requested resource.

Sections List
[unauthorized]
HTML for the %content% symbol


in tpl, section [unauthorized]  is evaluated so often as the variable %content% appear in the section [error-page]

Code: [Select]
if data.conn.reply.mode <> HRM_REPLY then
    s:=xtpl(tpl2use['error-page'], ['%content%', s]);
« Last Edit: May 10, 2010, 02:04:49 PM by Mars »
FRENCH MEMBER : Si vous comprenez la langue française,  n'hésitez pas à l'utiliser pour une meilleure aide de ma part

Offline r][m

  • Insane poster
  • *****
  • Posts: 347
    • View Profile
Re: see bad pass/username
« Reply #32 on: May 11, 2010, 07:25:57 AM »
Thanks Mars,
I moved these to tpl and I think it works better !