Major bug fix

Fixed the following bugs:
1.) Repaired multiple problems with the install script - everything SHOULD work now!
2.) Fixed several issues with the admin pages in the following areas:
  a.) AIML upload/AIML validation
  b.) Bot selection/editing
  c.) minor typos in several places
3.) Corrected problem with the script not properly storing the correct value in the users table of the DB, as described in https://github.com/Program-O/Program-O/issues/5

Signed-off-by: Dave Morton <dmorton@geekcavecreations.com>
Fixed and simplified the install script

After discussions with several users, it was decided that the install script was overly complicated, both for users, and in the way that it handled things. This has been corrected, and is now much more user friendly.

Signed-off-by: Dave Morton <dmorton@geekcavecreations.com>
Fixed install script

Corrected an error where the database was not being selected properly, and revised the error reporting function to list ALL errors.

Signed-off-by: Dave Morton <dmorton@geekcavecreations.com>
Multiple minor fixes

Corrected a pathiing problem that caused certain files to be "invisible", and merged the DB upgrade code into the install script, to make the process more user friendly. Also added a TARGET attribute of "_blank" to the links generated by the RSS reader.

Signed-off-by: Dave Morton <dmorton@geekcavecreations.com>
FIX debugging information will now display as chosen by user
UNFIX Revert change it was not the cause so just switched back
FIX: Will now accept parenthesis in the template response https://github.com/Program-O/Program-O/issues/9
FIX: issue7 Random pickup line fix .. and changes resulting from the parenthesis fix
FIX: srai was returning blank responses when an srai iteration had no results
Multiple fixes

Bugs:
1.) Bot select form:
  a.) Fixed debugging issues
  b.) Added ability to configure bot error response on a per-bot basis
  c.) Fixed a bug where the debugging email field was a checkbox, rather than text
2.) Upload form:
  a.) Removed "strict" validation. Now the AIML files only need to be well-formed, rather than fully valid XML
  b.) Revised the error messages to make them more easily understood

Signed-off-by: Dave Morton <dmorton@geekcavecreations.com>
Merge pull request #10 from Program-O/Test1

Multiple fixes
Correct a typo in index.php that prevented the install script from running if the config file was missing.
Corrected the pathing issue that caused the script to look for install_programo.php in the wrong folder.
Corrected a typo in the install script that broke a SQL query, preventing the script from populating the bots table
Corrected a labeling problem that prevented the install script from inserting the correct information into the bots table.
Replaced the old pathing function with a newer, improved version that's more accurate and efficient.
replaced the old pathing code with newer, improved code that is cleaner and more accurate.
Replaced the pathing code with code that's cleaner and more accurate.
added error_response field to the bots table.
CHannon: fox issue with sql fields out of order in intall script:

changed

INSERT IGNORE INTO `bots` (`bot_id`, `bot_name`, `bot_desc`, `bot_active`, `bot_parent_id`, `format`, `use_aiml_code`, `update_aiml_code`, `save_state` , `conversation_lines` , `remember_up_to` , `debugemail`, `debugshow`, `debugmode`, `default_aiml_pattern`, `error_response`)

TO

INSERT IGNORE INTO `bots` (`bot_id`, `bot_name`, `bot_desc`, `bot_active`, `bot_parent_id`, `format`, `save_state` , `conversation_lines` , `remember_up_to` , `debugemail`, `debugshow`, `debugmode`, `default_aiml_pattern`, `use_aiml_code`, `update_aiml_code`, `error_response`)