menu

How it works

Install

Install checks the [salted and hashed] passwords and 'salt' and attempts to write the following 'writable' files from text files in the admin folder:

extra-content.php
/admin/password.php
/comments/index.txt
/css/stylesheet.css
/css/extra.css
/inc/footer-links.php
/inc/inmenu.txt
/inc/password.php
/inc/theme.php
/pages/index.txt

and if they already exist, overwrites:

/admin/password.php
/inc/password.php

If everything is correct, install takes place with a link to admin setup.

Setup

Setup writes a settings file with PHP constants (version 11.1 example):

define('LOCATION', 'https://www.mini-print.com/');
define('ADMIN', 'admin');
define('APACHE', TRUE);
define('WINDOWS', FALSE);
define('OPSYS', 'LINUX');
define('HOME_LINK', 'Micro CMS Home');
define('NAME', 'Patrick Taylor');
define('ALPHABETICAL', FALSE);
define('COMMENTS', FALSE);
define('SEARCH', TRUE);
define('EMAIL', 'admin@domain.com');
define('SHORT_NAME', 'Patrick');
define('BANNER_TEXT', 'www.mini-print.com');
define('CONTACT_TEXT', 'To get in touch ... etc.');
define('CONTACT_MENU', 'Contact');
define('LANG_ATTR', 'en');
define('VERSION', '11.1');
Pages

When a page is created, two files are created: page.php and page.txt. page.php includes page.class.php, a class template which includes:

error-reporting.php
page.txt (the content of the page)
lang.php
top.php (contains <head></head><body>)
pword-form.php
comments.php
comment-form.php
search-form.php
menu.php
extra.php
footer.php
tracking.php
</body>

The top of the template defines a PHP constant INC, the 'absolute' path to the folder containing the PHP files listed above.

error-reporting.php checks that all the required files exist then loads settings.php and functions.php. The PHP constants in settings.php are then available to every other file.

page.class.php also runs the page content and comments through the function that formats text into HTML paragraphs.

Standard texts

/inc/languages/ contains language files with further PHP constants which define the default text presented in forms and other standard messages to users. They can be edited, and three other languages can be selected (German, Spanish or French) in setup. The rest of the language options only set the HTML language attribute in the <head> of the pages.

Downloads since Sept 2011: 18,224