Author: Dinesh Copoosamy email: dineshcooper@hotmail.com www.devkungfoo.com Copyright (C) (see GPL.html) Simple CMS (Content Management System) - this is a very basic CMS system that can be used and extended for your personal needs. - The Rich Text Editor used in this system was built by Kevin Roth and is a really neat utility. (Please visit http://www.kevinroth.com/rte/demo.htm for more details) - This should work in most browsers but has a cool extra feature, for editing tables in wysiwyg mode, in Mozilla. Contains: - cms.php : The main cms form. you call this and pass the name of the section you want to edit. e.g. www.yourserver.com/cms.php?section=home This will then look for a file named home.txt that resides in the directory specified in $DATA_DIR I have included the authentication form fields on this page but ideally you should authenticate the user before allowing them to view this page. - cmsHandler.php : script that saves the edited data. - richtext.js & richtext_compressed.js cms.php includes richtext.js (Rich Text Editor handling - Kevin Roth) but to decrease bandwidth you could use the compressed version instead just be sure to reflect this in the include statement below. - images directory (images used in RTE) Read comments in cmsHandler.php in the pages that you are including your content - place an include that includes the .txt section file that goes there. (to display the content ofcourse) - place a link to cms.php, so if its your home page and the section file is home.txt then your link to cms.php should be like this CMS (Please create the empty section files and place them in the data directory before using and make the data directory writable)