rejetto forum

Server Side Scripts [request] - Nesting

Oxyandy · 17 · 14072

0 Members and 1 Guest are viewing this topic.

Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
Code: [Select]
if Referer is NOT NULL
|{.add to log|Came From {.header|Referer.}
.}

{.if not|{.header|referer.}|{:
  {.add to log|ciao.}
:}.}


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
sorry for the late reply

I added a Header String into my program, from that in [request] I can
{.set|Header_String|{.header|My_Custom_Header_String.}.}

Then from that, I can manipulate the Output - in many different ways.
Including
{.exists|Z:\Some_Path\{.^Header_String.}.} = Is file 404 ?

what you get by passing by the "header_string" variable?

you can {.exists|Z:\Some_Path\{.header|My_Custom_Header_String.}.}

How do I get 404's to a string in Events ?

i don't understand what you mean