Here is a list of extensions that can be configured for your web site.
Extensions are not enabled by default. E-mail
support@davintech.ca for information.
Index
If you have special .rloc files, these are plain text files with the
URL of an image to show randomly when you hit the URL.
For example, your text file at http://www.example.com/sponsors.rloc
could contain:
# this file lists all of our sponsors
a.gif
b.gif
c.gif
When you go http://www.example.com/sponsors.rloc, you get one of the
images randomly instead of the text file. The URLs are always
relative to the current directory of where your .rloc file is located.
Use an argument of ?baseurl= to your .rloc URL to change this. For
example:
http://www.example.com/sponsors.rloc?baseurl=http://images.example.com/
You don't need to just serve up .gif files, but you can use it
for random web page of the day or whatever you want.
Davin has special HTML files with a .phtml extension. In these
files, you place normal HTML tags along with special ones. Listed below.
Note: Davin markup tags must be contained on a single line.
Current Date
- Current Date: <?davin print="current_date"?>
- Current Time: <?davin print="current_time"?>
- Current Date/Time: <?davin print="current_datetime"?>
Current Page
- Page Count Total: <?davin print="page_count_total"?>
- Page Start Logging: <?davin print="page_start_logging"?>
- Page Count Year: <?davin print="page_count_year"?>
- Page Count Month: <?davin print="page_count_month"?>
- Page Count Today: <?davin print="page_count_today"?>
- Page Last Access: <?davin print="page_last_access"?>
- Page Last Browser: <?davin print="page_last_browser"?>
- Page Last Host: <?davin print="page_last_host"?>
- Page Last Referer: <?davin print="page_last_referer"?>
Document Include
- Include document: <?davin include="xxxxx"?>
where "xxxx" is a document to include into the current context.
"xxxx" is relative to the current URL, just like <IMG SRC="">.
Included documents are not themselves processed for markup tags.
Search Engine
- Search engine: <?davin search="xxxx" lang="LANG"?>
where "xxxx" is given by the webmaster and LANG is either "en" (default) or "fr".
Feedback Form
- Feedback form: <?davin form="form.html" recipient="e-mail address" subject="some subject" required="comma,separated,
list" submit="results.html"?>
- FORM: the contents of this field is a filename that contains the
form. It may also contain any other html tags you want displayed. This
will be imported into the current page in place of the tag. The form must
be submitted via POST (see example). [REQUIRED]
- RECPIENT: the e-mail address of the person to send the results
of the form. [REQUIRED]
- SUBJECT: the subject of the results. [OPTIONAL, default="Feedback
Form"]
- REQUIRED: a list of form fields that are required. [OPTIONAL]
- SUBMIT: the contents of this field is a filename that contains the
html to print when the form has been sucessfully submitted. This
will be imported into the current page in place of the tag. [OPTIONAL]
For example, here is some html that could be contained in your
form.html file:
<FORM METHOD=POST>
Name(s): <INPUT TYPE=TEXT NAME=realname SIZE=40>
E-mail Address: <INPUT TYPE=TEXT NAME=email SIZE=40>
<INPUT TYPE=SUBMIT VALUE="Submit">
</FORM>
Notes:
- The special fields "email" and "realname" set the the FROM line of
the return mail message in a form.
- Form fields are returned in the e-mail in the order in which they are defined.