Page module for Nailblog-2.x by Martin Wikström
http://www.waxjism.org/nail/

Content ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

User documentation
 * About
 * Administration
 * Usage

API documentation
 * File format
 * PHP functions
 * PHP variables

About ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This module provides a simple tool for creating normal pages with
static data. It is possible to adjust who has access to the pages
and who may edit the pages.

Module effect on Nailblog:
 * Adds a page administration box to ?act=admin if user is in
   group pageadmin.
 * Adds a list of personal pages to ?act=page if users is in
   group pageuser or pageadmin.
 * Outputs page contents to ?act=page&id=[ID] where [ID] is the
   page ID.
 * Adds links to page list or page content to Menu module.

All read and write access can be regulated by pageadmin or page
owner.

File formats ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Format for page/pages.php
Header: $page_version<newline>
Row:    $id<tab>$owner<tab>$read,$write<tab>$groups<tab>$title<newline>

Format for page/pages.xx.php
Header: $page_version<newline>
Row: $title<newline>

Format for page/page-x.php
       and page/page-x.xx.php
Header: $page_version<newline>
Rest:   $content

PHP functions ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   
 * page_addtomenu()
   Adds links to all pages to quickmenu used by menu module
   
 * page_admin()
   Provides admin overview and tools for administering pages
   
 * page_load($pageid)
   Reads pagedata from file and includes translation
   
 * page_edit()
   Page editor for admin
   
 * page_save()
   Saves pagedata edited in page_edit()
   
 * page_delete()
   Deletes a page
   
 * page_main()
   Displays a page or calls page_usermain() if no pageid is
   provided
   
 * page_usermain()
   Displays list of users own pages - adminoverview similar to
   page_admin()
   
 * page_useredit()
   Page editor for normal users
   
 * page_usersave()
   Saves pagedata edited in page_useredit()
   
 * page_userdelete()
   Deletes a page

PHP variables ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 * $mod_page=true;
   Tells the Nailblog that the page module is in use

 * $page_version="<?php die('2.0.3'); ?>";
   Version the module is developed for (prevents unwanted access
   to page data files)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
