1 <?php
     
2 # Primary human language of page content. (Required by the HTML spec.)
     
3 # https://en.wikipedia.org/wiki/IETF_language_tag
     
4 $GLOBALS['lang'] = 'en';
     
5 
     6 # Pages (which are stored as partial .html documents) can be saved to an
     
7 # alternative location, including outside of the web root. This program
     
8 # just needs to have permissions to read and write to it.
     
9 $GLOBALS['page_dir'] = 'pages';
    
10 $GLOBALS['archive_dir'] = 'pages/archive';
    
11 
    12 # If true, anyone can view the wiki. (Logins still required to edit.)
    
13 $GLOBALS['anonymous_viewing'] = true;
    
14 
    15 # You can restrict the login cookie to just the wiki URL path.
    
16 # A root of '/' makes the cookie visible to the whole domain.
    
17 $GLOBALS['cookie_root'] = '/';
    
18 
    19 # This link snippet will prefix all "internal" wiki links.
    
20 $GLOBALS['wiki_link_path'] = 'index.php?page=';
    
21 
    22 # User accounts. Add or remove lines here to manage accounts.
    
23 # To login as the example Guest account, you would go to:
    
24 #   login.php?login=1234
    
25 # There is no login interface, but one could be easily built.
    
26 $GLOBALS['wiki_logins'] = [
    
27     '1234'=>'Guest',
    
28 ];
    
29 
    30 # Default page to load when visiting the Wiki. Page name 'home' will
    
31 # load pages/home.html
    
32 $GLOBALS['default_page_name'] = 'htmlwarden';
    
33 
    34 # File uploads (images) will go here
    
35 # NOT IMPLEMENTED YET!
    
36 $GLOBALS['uploads_dir'] = '/var/wiki_uploads/';