Config Wkc
- 1. config.wkc
- 2. Configuration Settings
- 2. 1. Options
- 2. 1. 1. Enable HTML
- 2. 1. 2. Enable Reset
- 2. 1. 3. Enable Delete
- 2. 1. 4. Enable Wrap
- 2. 1. 5. Enable LineBreaks
- 2. 1. 6. Enable SpacedNames
- 2. 1. 7. Enable BracketedSpacedNames
- 2. 1. 8. Enable MetaSpacedNames
- 2. 1. 9. Enable CODE
- 2. 3. Template
- 2. 4. HTMLDir
- 2. 5. Banned IP#[#]
- 2. 6. Root Page
- 2. 7. Default Page
- 2. 8. Content Type
- 3. 1. Enable Backward Revisions (Option)
- 3. 2. Max Depth
- 3. 3. Max Revisions
- 2. 1. Options
config.wkc
This is the master configuration file, having quite a few settings, providing a convenient way for you to customize wikiserver to your needs.
Configuration Settings
Settings that customize the behaviour of wikiserver.
Options
Options either have a 0 value, which turns them off, or a 1 value which turns them on (note that in practice, due to the way wikiserver parses the config files, anything besides a 0 enables the flag).
Example:
Enable Reset=1
Enable Reset=1
Enable HTML
Enables tags that output raw HTML, such as
[$html:[page]]
_OR_
@html
Enable Reset
Enable Delete
Allows non-administrators to delete pages.
WARNING: All revision information about a page will be lost when it is deleted!!!
Enable Wrap
Applies wrap="soft" to text areas in the edit and merge pages.
Not HTML 4.01 STRICT compliant
Enable Line Breaks?
If enabled, lines with only one return after them will have a <br> appended to them, otherwise these lines, if consecutive, are rendered by the browser as a paragraph (as though separated by space instead of return).
Enable Spaced Names?
Spaces page names at capital letters when they are links in the body of another page.
Enable Bracketed Spaced Names?
Same as SpacedNames, only it applies to within a double-bracket usemod syntax instead of a page body ([[ ]]).
Enable Meta Spaced Names?
Same as SpacedNames, only it applies to the body of meta pages (Recent Changes, Revisions, etc.) instead of the body of a .wik page.
Enable CODE =
Enables the @code and @endcode tags.
Heading Image Path
Optionally, before an h1 (single equal or triple-`), an image can placed.
If empty, there is no h1 image.
Template
The path for the main HTML template.
HTMLDir
If the convert to html option is chosen from the Admin Login menu, the converted html is placed here.
Defaults to HTML.
Banned IP#[]
Banned/Filtered IPs.
Take the form Banned IP#[]=[ip] where [] is the next number
in ascending order. [ip] is the ip to block.
in ascending order. [ip] is the ip to block.
For example, to ban the localhost you'd put -
Banned IP#1=192.168.1.100
Banned IP#1=192.168.1.100
A * wildcard character is also supported. For example, you'd add 192.168.1.* if
you REALLY want to ban yourself for good. :)
you REALLY want to ban yourself for good. :)
Root Page
This is the page that the Wiki opens on when a user first opens the site.
Default Page
This is the page that the teddy links to ($$DEFPAGE$$ in the HTML template).
Content Type
Content-Type header that is sent to clients. You'll probably want to keep this the same as the default.
Example:
Content Type=text/html; charset=ISO-8859-1
Content Type=text/html; charset=ISO-8859-1
Added in 1.5
Enable Backward Revisions (Option)
If enabled, when the max revision count is reached, removes the file
with least revision number.
with least revision number.
Disabled, performs like usemod and doesn't back up revisions when the max is reached.
Example:
Enable Backward Revisions=1
Enable Backward Revisions=1
Max Depth
Max number of directories to create with pages (Default 10).
Example:
Max Depth=5
Max Depth=5
Max Revisions
Maximum number of revisions per page to store on disk (Default 100). How they will be removed when the max is reached is dictated by the Enable Backward Revisions option.
Example:
Max Revisions=25
Max Revisions=25