[html]
header =
+
+
+
+
+Simple test CGI program
+
+
+
footer =
+
[errorpage]
# the error page template can use macros provided by the dullcgi framework,
# that is, ``common'' macros of Thalassa CMS and the macros added by the
# framework, namely %html:%, %req:% and %getenv:%
#
# besides that, three local macros are defined here:
# %errcode% - the 3-digit error code such as 404, 501 etc
# %errmessage% - short human-readable error message
# %progname% - the CGI program name, as defined by dullcgi_program_name
#
# please note no ``custom'' macros (added by the dullcgi_main function)
# should ever be used here, because the error page may in some cases be
# composed before calling that function
template = %html:header%
+%errcode% %errmessage%
+Sorry, something went wrong
+
+%html:footer%
# redirects are not used by test.cgi, although the dullcgi framework still
# recognizes the [redirectpage] section
#
# [redirectpage]
#
# template = %html:header%
# +Redirecting to %url%...
# +Click here if your browser doesn't redirect automatically
# +%html:footer%
[page default]
template = %html:header%
+It WORKS!
+Your address and port:
+%[getenv:REMOTE_ADDR]:%[getenv:REMOTE_PORT]
+HTTP Referer: %[getenv:HTTP_REFERER]
+User Agent: %[getenv:HTTP_USER_AGENT]
+Current time: %[rfcdate:%now%]
+
+The test.cgi program is a part of
+ Thalassa CMS
+
+%html:footer%