*****************************************************************************
*			  Content Injector v1.51			    *
*		     By Andrew Pemberton 2003, 2004			    *
*			   All Rights Reserved				    *
*****************************************************************************


Contents:
--------------------------------

   1.0 A Quick Introduction

   2.0 Features

   3.0 Basic Installation
      3.1 Fresh Install
      3.2 Upgrading

   4.0 Known Bugs

   5.0 Future Visions

   6.0 Version History

   7.0 Contact Information / Legal

   8.0 Credits / Thanks




1.0 A Quick Introduction
--------------------------------
A complete content management system that will manage your site from the
news right upto the actual content. The system dynamically 'injects' content
into pages whilst simulateneously creating menu links to them on demand from
the user.

The one program you need to control your site!


2.0 Features
--------------------------------
 - Page/Article Management with ability to add multiple pages to the same
   article.

 - Fully templatable News Management System, with ability to add a [read more]
   link which links to a full page. With built in commenting system!

 - WYSIWYG HTML editor embedded in the content submission pages, so there
   is no need to know HTML!

 - Menu Tree structure capable of unlimitted sub-tree's.

 - User Management with a wide range of user levels, give users access
   to the options you choose!

 - Sorting Features - sort the menu's the way YOU want them sorted.

 - Upload features, upload to a specified directory, so you don't have to
   give your staff the main FTP details!

 - Action logged allows you to spot possible hacking attempts, and keep an
   eye on members of staff for your site.

 - And a LOT LOT More!




3.0 Basic Installation
--------------------------------

	3.1 Fresh Install
	--------------------------------
	 Upload all files retaining the directory structure.
	 CHMOD 777 the files directory and admin directory and setup.php

	 Run the install script, ie http://www.yoursite.com/install.php

	 The install script should then check to see if the above steps have
	 been performed properly, follow the on screen instructions 
	 (note when prompted to choose an SQL file, tables.sql is the file for
	 fresh installations). When installation is completed.

	 Login using: 
		user: admin
		pass: admin

	 I advise that you change the admin password immediately for security reasons.
	 And then delete install.php and inst.lck (for security purposes).
 
	 Now, goto System Setup, configure the options in there - and your away!


	 (For a more in-depth installation guide, please read the manual located at 
	  /manual/index.html)


	3.2 Upgrading
	--------------------------------

	Note, before permorming ANY update, how ever small I cannot stress the importance to do a backup
	of your data firstly.

	The SQL Files are now located in the /sql/ directory, these should be uploaded with the rest of 
	the script.

	If you are upgrading from version 1.0 or 1.0 RC1, then re-upload the contents of the
	entire package (apart from /index.php (your template file) AND /setup.php)).

	Be sure to CHMOD the admin and files folder 777 and setup.php 777 if they are not already.

	Once done, run http://www.yoursite.com/install.php (if the installer says its locked,
	delete inst.lck).

	Follow the on-screen instructions, be sure to choose the correct SQL file to use (using
	the guide below).

	All your settings should be kept in place, although there will be some new settings
	that you might want to set up, so it's advised you check system setup.


		SQL File Guide
		---------------

			Version(s)			SQL File
			-------------------------------------------------------------
			 1.0 RC1, 1.0			 1.0 Update.sql
			 1.1 Beta 1			 1.1 beta Update.sql
			 1.1, 1.2			 1.2 Update.sql
			 1.3, 1.31, 1.4 Beta 1		 1.3x & 1.4 beta Update.sql
			 1.4, 1.41			 1.4x Update.sql
			 1.5				 No SQL File Needed			




	 Note: Be sure to update the language file (if you have a non english language file), 
	 newest language for this version can be found near the bottom of /lang/eng.php.


	 Important: You should delete the BB Comments Add-in if you had it previously installed, as this
	 is now part of the core functions in Content Injector.




4.0 Known Bugs
--------------------------------

 There is a bug I have encountered whilst using the script with IIS, I am not 100% sure if its
 actually a bug, or more of a server config error, but when trying to login or logout I get errors
 similar to the following:

	Notice: A session had already been started - ignoring
	session_start() in C:\Web\ci\admin\password.php on line 94

 To get around them, simply open password.php and goto the line it says 
 - in the above case, line 86, and comment the line out by putting a // at
 the start of it. 

 The line should look like the following and there should be 2 occurences of it:

	session_start();

 Simply change the line to look like:
	//session_start();

 And that should get around (not fix) the problem. - I'd appreciate it if people could email me 
 should they experience this problem, just so I can see if it is just a server releated issue or not.



 If you find a problem with the script, or something that you think is a bug. Please visit the FaQ
 and knowledge base sections on www.p3mbo.com and take a look to see if anyone has raised
 the issue before.

 If not, then please submit a question to the knowledge base, or email scripts@p3mbo.com.


5.0 Future Visions
--------------------------------
 Okay, if your reading this you've probably installed and used the script already, or
 maybe your just one of them people that do actually read these files, either way, here's
 whats in store for the future of this script:

 Rate This Article		: A rating system so people can rate your pages/articles/news.

 Statistics			: Everyone loves statistics, so why not have more? Hopefully
				  I will work in a break down of each visitor, most popular 
				  browser, screen resolution etc...

 Multiple Templates		: The ability to have multiple templates, and submit content
				  on individual template sets.

 Multiple Menus			: A definate once I think of the best way to do it, the menu
				  will be able to be split up into chunks, and included on
				  various parts of your page. And have different templates
				  per menu.




6.0 Version History
--------------------------------

v1.53	 - Released (05/11/07)
	   Fixed a security vunerability in news.php.

v.1.51	 - Released (08/10/04)
	   Fixed an installer bug issue.

v1.51	 - Released (17/09/04), Repackaged (19/09/04)
	   Fixed a small bug with unknown language file names in System Setup.
	   Fixed a bug with news headlines getting a messed up order when they're edited (Thanks Matt H)
	   Fixed a bug with news dates when news scheduling was turned off.
	   Added "No SQL File" option in the installer.
	   Changed an Entry in the lang file that refered to config.php when it was supposed to say setup.php.
	   

v1.5	 - Released (15/08/04)
	   Install/Update Script Added
	   News Scheduling is now available.
	   Heavily Re-Optimised the news code, practically re-wrote most of the news generation code,
	     although no physical changes will be noticed, news pages may generate faster (maybe?).
	   Added the option so that you can turn Category Links off.
	   Added the "target" feature when adding content.
	   cinj_info.php file has been updated to v2 to allow me (or you) to diagnose problems with
	     content injector (should they arise)
	   Statistics now count the index/news page.
	   Fixed a minor bug with non menu content and not being able to edit it.
	   Fixed another minor bug with Statistics generating an error when there is 0 page views.
	   Fixed a language bug with the "edit content" section.
	   Fixed a bug when using <textarea>'s inside the HTML area, so it now works properly.
	   Fixed (hopefully) a file manager bug when uploading to a directory 2 steps in. 


	 - Files Added
		/install.php
		/setup.php

	 - Files Changed
		/functions.php
		/config.php
		/lang/*.*
		/sql/*.*

	 - Table Changes
		config table changed to accomodate news scheduling
		config table chagned to accomodate category linking
		cinj_targets added to accomodate the new target feature.
		pagemap table changed to accomodate the new target feature

	

v1.41	 - Released (08/07/04)
	   Fixed a bug in the tables.sql file.

	 - Files Changed
		/sql/tables.sql

v1.4	 - Released (07/07/04)
	   New 'Professional' theme added (Modern and Classic have now been removed), this has made
	     the whole program a lot faster and a lot easier to use and more functional.
	   News Categories Added, inclduing the ability to filter by news category
	   File Manager Functions Improved Further, including ability to create directories.
	   Internal 'announcements' feature added.
	   More Informative start page, last login, last page etc..
	   

	 - Files Changed
		/admin/*.*
		/index.php
		/functions.php
		/config.php
		/lang/*.*

	 - Table Changes
		cinj_news_cats added to accomodate news categories
		cinj_announcements added to accomodate announcements features
		news table changed to accomodate the new cat_id field (categories)
		config table changed to accomodate cateogries.
		users table  changed to accomodate last login
		groups table has new groups in it


v1.4 b1	 - Released (30/04/04)
	   Improved File manager functions (still in production)
	   Fixed a bug when using the Event Log with REGISTER_GLOBALS turned on.
	   FIxed a bug with the menu tree structure, it seemed to mess up 2 sections in.
	   Fixed a language file bug in Edit Users (Username in Use)
	   Fixed the "READ MORE" language file bug, read more didn't have an entry.

	 - Files Changed
		/admin/function.php
		/admin/content.php
		/admin/menu.php
		/admin/genmen.php
		/admin/upload.php


v1.31	 - Released (14/03/04)
	   Fixed a slight bug with the {spilt} function not actually working


v1.3	 - Released (13/03/04) (A big update)
	   Rewrote the permissions granting system, so it is more streamlined and easier to use.

	   Added the QuickJump feature into the system. (For Admins only at the moment)

	   Added the event log viewer in the admin panel (finally)

	   Wrote part of the add-in framework, it now tells you what add-ins you have installed
	   more specific options coming in future versions.

	   Added an option in system settings to change change the version of HTML Area, you can now use version 3.00
	   Beta, or turn it off completely. By default, this is set to 1 (HtmlAREA 2.03) as this is the most stable.

	   Added language files in, so each user can have the admin panel in their own language, also
	   allowed for the site to have a language too... (so no more English dates if your French, German etc..)

	   You can now use PHP Code in the Content submission area, and also [include]filename.ext[/include] (for non PHP knowers),
	   although this feature is turned OFF by default, as on systems where there is not 100% trust, it could cause significant
	   security risks. Although if only you, and a few other trusted members are going to be accessing your site, then turning
	   this on should be fine. If you wish to turn this option on, see the System Settings page.

	   Added the date, in the headlines add-in. (this should have been in from square one)

	   Added a cinj_info.php file that can be used to diagnose various problems with your scripts, and help myself find out whats
	   wrong when I get support requests - Feel free to delete this file once You've got everything working.

	   Added a basic news archiving feature in, future versions will include search functions etc... to access it
	   use index.php?action=news_archive from the main site.

	   You can now choose not to let Content Injector remember you, just incase your on a public machine, or just don't want
	   it remembering your for some reason! :)

	   Cleaned up some bits of code, fixed a few minor errors as usual.


	 - Files Added
		/admin/src/htmlarea_beta3.0/*.*
		/admin/eventlog.php
		/admin/downloadit.php
		/admin/cinj_info.php
		/lang/*.*
		

	 - Files Changed
		config.php
		function.php
		news.php
		/admin/*.*
		/admin/tabs.php (removed)
		/add-ins/headlines.cinj

	 - Table Changes
		users changed to accomodate "language"
		watch_list added for the event_log watch lists
		config changed to accomdate "php_parser", "html_area" and ,"default_language"


v1.2	 - Released (19/02/04)
	   Fixed a minor issue with the news time bias.
	   Fixed a bug in config.php where it couldn't find the eventLog() function.
	   Incorporated the BB Code add-in to the core functions of the script
	   printMe() addon minor path fix.


v1.1     - Released (07/02/04)
	   Fixed the REGISTER_GLOBALS issue, the whole script now works with reg_globs off!
	   (hopefully)

	   Fixed a few minor path related issues that were causing problems on some servers.
	   Fixed the add-ins directory not found bug, by adding a new config value on (in config.php).

	   Finished off the "Headlines" add-in (forgot about that previously ;) ) as a consequence
	   added NewsID in the available fields for news setup.

	   Modified the Event Log to be used in a function instead of the clumsy way before.

	   Moved the html area code into a seperate file so its easier to modify for the people
	   who like to modify these things (htmlarea.php)

	   Added some checks in to check if content was actually added/modified etc.. (I know
	   I know, I should have done that from the start - but hey - im so lazy)

	 - Files Added:
		/admin/htmlarea.php

	 - Files Changed:
		news.php
		config.php
		function.php
		/admin/*.*
		/admin/event_log.php (removed)

	 - Table Changes:
	   - Updated the config table to acommodate the upload_path field
	



v1.1 b1  - Released (25/01/04)
	   Added a News comments system in, and enabled the option to enable/disable the news
	   system and display a different page on the main page instead of news.

	   Changed the content submission slightly, so it now tracks who posted what - ready
	   for an Enhanced permissions system, allowing users to modify their own posts, but 
	   not other peoples. This isn't really noticable, but has paved the way for more features
	   in future versions.

	   Added a new admin panel style in, also allowed ability to revert back to old style
	   if that is prefered.

	   Added a enhanced statistics feature, which gives you a run down on how many hits
	   each individual page has had, and what % of hits on the site that page accounts for.

	   Added a new "add-ins" feature, which allows functions and procedures to be easily
	   thrown into the script, and used, the following add-ins are currently being
	   distributed with the full version of Content Injector:
			
			pageTrace()
				A feature, that displays all the menu's the page is in, 

				ie:
				   Menu 1 > Sub Menu 1 > Sub Menu 2 > Sub 3 > Page Title Here

			lastX(x)
				A feature that displays the last 5 articles submitted.
				Where x is the amount of articles to display, ie lastX(5)

			printMe()
				A third party addon written by Wolfy, that adds a print
				link to all article pages, and outputs a printer safe
				version of the page.

			headlines(x)
				Headlines, enough said. Where x is the amount of articles.

	   To get these functions working on your page, simply add the function name, ie pageTrace()
	   into your index.php template file.


	   Also added ability to use $ptitle & $mtitle in the main template, these are the page title
	   as it appears in the menu, and  the menu title relative to the page.

	 - Files Changed:
		news.php
		config.php
		function.php
		pagemap.php
		generate.php
		/admin/*.*


	 - Table Changes:
	   - Updated the pagemaps table to acommodate the USERID field.
	   - Updated the pagemaps table to acommodate the HITS field.
	   - Updated the news table to acommodate the comments field.
	   - Added the news_comments table.
	   - Updated config to accomodate new admin style, and comments featuers.
	   (update.sql contains all table updates)


v1.0	 - Released (12/12/03)
	   Fixed some file path issues in config.php and /admin/index.php that caused the script
	   to stop working, and fixed the path to the HTML editor, so it works when the script is
	   not located in the document root.


v1.0 RC1 - Initial Release (26/11/03)
	   Everything is new in this release, includes ability to add/delete/modify content,
	   settings to allow content to span accross several pages, administration of all pages
	   included editing and deleting, administration of menu structure's and ability to
	   sort and modify sections.

	   Support for standard menu content, and Standalone (non-menu content), basic templating
	   system for site and admin panel allowing for flexibility between sites.



7.0 Contact Information / Legal
--------------------------------

All content of this script, and scritpts that communicate with it are all 
(C) Copyright 2003-2004. Andrew Pemberton, unless otherwise stated.

htmlEditor - Copyright (c) 2002, interactivetools.com, inc.

DHTML tip message version 1.2 copyright Essam Gamal 2003
(http://migoicons.tripod.com, migoicons@hotmail.com)
 
Anyone found copying/using code, graphics etc from this script without expressed written
permision from the author (Andrew Pemberton) will be liable to prosecution under UK
Copyright law.


Comments/Questions and or Suggestions are always welcome, if you wish to contact me
please use one of the below methods:


	URL  : http://www.p3mbo.com
	Email: scripts@p3mbo.com
	ICQ  : 31466226
	MSN  : p3mbo@hotmail.com



8.0 Credits / Thanks
--------------------------------

Thanks go out to the following people:

  Steve Pemberton - my brother for getting me into PHP and helping me on the odd occasion ;)
  Michael Clarke - Both for his idea's and his help, and testing the program.
  Sam Daniel - For testing, and listening to me whine.
  Wolfy - For testing the program on a nightly basis for me :)
  And Furton - for his marvellous server!


  Also, thanks to all the people who have emailed me with ideas, feature requests - your feedback
  really does help, and I do listen to all of it, and try to reply to every email - even if its
  just to say thanks!

	And anyone else I've forgot to mention!!!!!


------------------------------------ [ End of Document ] ------------------------------------