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.2 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.

Comments


Testing the comments feature.

Is there a name field or url field I'm missing somewhere?


No there isn't. No date either. Just simple. If someone wants to add their name they can put it in the comment box.


great


I'v installed the CMS to a test server in the folder /laplume, but when I go to the address of the site, it doesn't start, just the folder "laplume" is shown and the CMS can be started only after clicking the link "laplume". Is it normal?

My test installation: lagraph.net23.net

Thank you!


You have installed the system in a subfolder called 'laplume' and that option is fine. I can see that it works. That is why you only see the folder on lagraph.net23.net - the system is installed at lagraph.net23.net/laplume/

It means you can use the main domain for something else. If you want to install la.plume on lagraph.net23.net (so that you see the website, not just a folder) then install everything inside the 'laplume' folder but not the actual folder itself.

You can install la.plume on the main domain lagraph.net23.net or in the subfolder - or both if you want. It depends on whether you upload the whole folder 'la.plume' or only its contents.


Wow it's amazing :-)

Leave a comment

Downloads since Sept 2011: 19,153