[0001]
[0002]
[0003]
[0004]
[0005]
[0006]
[0007]
[0008]
[0009]
[0010]
[0011]
[0012]
[0013]
[0014]
[0015]
[0016]
[0017]
[0018]
[0019]
[0020]
[0021]
[0022]
[0023]
[0024]
[0025]
[0026]
[0027]
[0028]
[0029]
[0030]
[0031]
[0032]
[0033]
[0034]
[0035]
[0036]
[0037]
[0038]
[0039]
[0040]
[0041]
[0042]
[0043]
<!--#ssi
##
##  The behaviour of this document is determined by the query string!
##
#if value={QUERY_STRING} srch="*trace=on*"
  #config trace=1
#elif value={QUERY_STRING} srch="*text=plain*"
  #include virtual="xssi.shtml" type="text/plain"
  #stop
#elif value={QUERY_STRING} srch="*printenv=yes*"
  #printenv
  #stop
#endif
#echo "\<!-- the query string is {QUERY_STRING,length} byte(s) long \-->"
#set var=HOUR value={DATE_LOCAL,12,2}
#if var={HOUR} lt=12
  #set var=GREETING value="Good morning"
#elif var={HOUR} lt=19
  #set var=GREETING value="Good afternoon"
#else
  #set var=GREETING value="Good evening"
#endif
-->

<!-- this comment will appear in the resulting document  -->
<!--## this comment will NOT appear in the resulting document  -->
<TITLE><!--#echo value={GREETING} --> <!--#echo value="{REMOTE_HOST} !" --></TITLE>
<H1>Simple XSSI Demonstration</H1>
<!--#echo value={GREETING} --> <!--#echo value={REMOTE_HOST} -->,
the time here is <!--#echo value={DATE_LOCAL,12,5} -->
<!--#if var={REMOTE_HOST} eqs={REMOTE_ADDR} -->
<P>(Sorry, I do not know your name, DNS lookup must be disabled!)
<!--#endif -->

<P>
<UL>
<LI><A HREF="xssi.shtml?httpd=ssi&text=plain">
The source of this document</A>
<LI><A HREF="xssi.shtml?httpd=ssi&trace=on">
This document with SSI #trace switched on</A>
<LI><A HREF="xssi.shtml?httpd=ssi&printenv=yes">
SSI and CGI variables available</A>
</UL>