<?php
# Primary human language of page content. (Required by the HTML spec.)
# https://en.wikipedia.org/wiki/IETF_language_tag
$GLOBALS['lang'] = 'en';

# Pages (which are stored as partial .html documents) can be saved to an
# alternative location, including outside of the web root. This program
# just needs to have permissions to read and write to it.
$GLOBALS['page_dir'] = 'pages';
$GLOBALS['archive_dir'] = 'pages/archive';

# If true, anyone can view the wiki. (Logins still required to edit.)
$GLOBALS['anonymous_viewing'] = true;

# You can restrict the login cookie to just the wiki URL path.
# A root of '/' makes the cookie visible to the whole domain.
$GLOBALS['cookie_root'] = '/';

# This link snippet will prefix all "internal" wiki links.
$GLOBALS['wiki_link_path'] = 'index.php?page=';

# User accounts. Add or remove lines here to manage accounts.
# To login as the example Guest account, you would go to:
#   login.php?login=1234
# There is no login interface, but one could be easily built.
$GLOBALS['wiki_logins'] = [
    '1234'=>'Guest',
];

# Default page to load when visiting the Wiki. Page name 'home' will
# load pages/home.html
$GLOBALS['default_page_name'] = 'htmlwarden';

# File uploads (images) will go here
# NOT IMPLEMENTED YET!
$GLOBALS['uploads_dir'] = '/var/wiki_uploads/';
