CHANGELOG
This is the change log for the phpWebSite base only. Each module has
its own separate CHANGELOG file.


Version 1.5.2
-----------------------------------------------------------------------
+ Added two functions to DBPager: setAnchor and getAnchor. setAnchor
  allows an anchor to be added to all navigation links. getAnchor is
  used internally to help.
+ Module class - when loading the core as a module, sets the about
  variable as true.

Version 1.5.1
-----------------------------------------------------------------------
+ Added error check to mysql.php file to prevent over valued CHARs
+ Fixed bug #1708507. Extra string character.
+ Database - bug #1713219 - Added auto detect parameter to insert
             function in saveObject

Version 1.5.0
-----------------------------------------------------------------------
1 May 2007
+ Globaled the branch object in case needed
+ Fixed: File Cabinet was not properly converting branch installations
+ Core.php
  o changed version.php call to use copy in config/core/. Was
    breaking branch.
  o update now copies version.php file locally.

+ DBPager - single pages returned properly now.

30 April 2007
+ Rewrote file cabinet conversion to work with new version. Also included
  phatfile instruction.
+ Added slight error check to Database class
+ Added missing DBPager page listing for pages under the limit
+ Added information to Cache.txt on removing a specific key
+ Added filters.txt documentation
+ Fixed setup's permission help file link.
+ Fixed setup's hardcoded version strings
+ Updated Cache_Lit, Clipboard, Developer Rules, Forms, Known_Errors,
  README, WYSIWYG, Converting_Modules
+ Removed Related.txt
+ Rewrote welcome.php message#

27 April 2007
+ DBPager - rewrote paging code

24 April 2007
+ RFE 1704305 - Split bb encoding out into filters
+ Updated files: conf/text_settings.php

23 April 2007
+ Added logIfError function to Error class

19 April 2007
+ Added a function to Core to return the full package version.

17 April 2007
+ RFE 1639645 - added setRequired function to Form
+ Core - isPosted can now return the number of repeats

16 April 2007
+ Cookie - changed default time to 0 instead of null
+ Editor - moved FORCE_EDITOR variable to config.php. Changed define
           to a defined check with a default of false.
+ Setup - Added FORCE_EDITOR setting

13 April 2007
+ Added utf8_encode to all conversions to try and prevent foreign
  character corruption (Thanks Mabhobs)

12 April 2007
+ Convert Blog, Web Pages - Added parseInput to try and fix foreign
  characters
+ Made default template directory local.
+ Updated setup's config template with new local cache define.


11 April 2007
+ Removed Item include from Init.php, now up to module.
+ Added ENCODE_PARSED_TEXT define to text_settings.php
+ Added ability to prohibit encoding of text during parsing.

6 April 2007
+ Removed imageselect function from Form. Not used.
+ Removed translate functions throughout core.

5 April 2007
+ Added German translation files.
+ Further updates to Language.txt documentation
+ Small change in Init to ensure core's default status.

4 April 2007
+ Database - Fixed bug with addTable / changed all booleans to lower
             case
+ Module - Changed isInstalled slightly. If on initialization, there
           is a "not installed" error, we can assume the module is not
           installed and return false. Otherwise, we check in the
           normal way.
+ Init - Using new language translation method recommended by Ortwin
         Pinke

Documentation - updated Language.txt to reflect changes made in Init.php


3 April 2007
+ Bug #1690757 - Form.php : Added space to radio button to help with formatting
+ Bug #1689289 - Text.php : Changed makeRelative's inline mode to only
change src and href addresses.


2 April 2007
+ Changed error message to report server's maximum file size
+ DBPager
  o Added error check
  o The search query was put into it own where group to prevent conflicts.
+ Error - removed function reference from get function
+ Settings - changed upper limit on small int detection
+ Documention
  o Access - added a lot of new information
+ Javascript
  o Rewrote ajax javascript functionality
  o open_window lets you label the windows now
+ Setup - removed the image settings from the default config file

29 March 2007
+ Debug - test function identifies empty values better

19 March 2007
+ js_calendar - fixed style sheet to make xhtml compliant

14 March 2007
+ Database - update, insert, and delete functions no longer pull
multiple tables 

12 March 2007
+ Changed id display in Forms.php. Arrays with square brackets are not
  xhtml compliant.


Version 1.4.3
----------------------------------------------------------------------
9 March 2007
+ Removed referenced constructors from Core.php
+ Added row_query variable to dbclass to store the row query

7 March 2007
+  Removed fake French translation.

6 March 2007
+ Wrote update scripts.
+ Removed reference constructors from Module.php

5 March 2007
+ Database
  o When pulling select columns, the results were not
    stacking correctly due to variable differences. Added some checks to
    prevent it.
+ Conversion - Web page convertion adds create_user_id now.
+ Update now copies the language.php file.

1 March 2007
+ Init.php - Removed Windows versions from platform identification

28 February 2007
+ Added browser detection support under x11


Version 1.4.2
----------------------------------------------------------------------
27 February 2007
+ Fixed shortenUrl function in Text.php.


Version 1.4.1
----------------------------------------------------------------------

26 February 2007
+ Removed constructor references from Template.php
+ Added Boost warning.

23 February 2007
+ phpws_info can now list browser info.
+ Editor
  o Removed htmlarea directory
  o Added supported.php files to FCK and tinymce (simple doesn't need
    it)
  o Editor will now check the user cookie for an Editor choice. It
    defaults to the core config.php setting.
  o Set support settings for safari in tinymce

21 February 2007
+System-wide
  o Created theme_tags.txt files in all modules that use content
    variables.
  o Created docs directories in all modules.
  o Moved CHANGELOG files to new docs directories.

+ Translate
  o fixed i18n files. en_EN.php changed to en_US.php
  o Updated files: conf/i18n/en_US.php

+ Function
  o Added a parse check on a PHP 4 function name for Compat mode.

+ DB_Pager
  o Cleaned up translate functions.
  o Added alt and title parameters to sorting images for xhtml
    compliance.

+ Documentation - fixed typo in DB_Pager.txt


Version 1.4.0
----------------------------------------------------------------------

20 February 2007
+ Changed version file and setup with new version.
+ Raised version to 1.1.0
+ Convert
  o Fixed setLimit calls.
  o Calendar - New schedule is made default public after conversion.
  o Categories - Ignores categories with zero id.

19 February 2007
+ Database
  o Added limit error check to mysql.php and mysqli.php

+Module
  o Changed default image and file directories to false.

14 February 2007
+ Theme
  o changed padded style from px to em
  o added new form style for dropping out of form tables.
+ Settings
  o Bug 1659055 - if a single setting is saved without loading the
    module, all settings would get reset. Made change to only clear
    items getting saved.


13 February 2007
+ Changed Init.php translate function. Should now track previous
  directory setting properly.
+ Added several translate functions throughout the base classes.
+ Moved language settings to a new config file : language.php 
+ Removed textdomain function from Init.php. It was a redundant call.
+ Removed language setting from setup config template
+ Updated files: conf/language.php

12 February 2007
+ Theme - added webpage-summary to float fix

6 February 2007
+ Init.php - strips the UTF8 off the end of locale to match preference
             file
+ Language - updated po file

2 February 2007
+ Editor - Fixed FCKeditor's style sheet

1 February 2007
+ Theme - added code to prevent image overlap in blog and webpage
+ Database.php - addTableColumn checks for a column's existence and
  returning false if so. Prevents error lock ups.

31 January 2007
+ File.php - removed old version of readDirectory

30 January 2007
+ Core
  o Added check for leading slash in url sent to reroute function
  o Added setLastPost to reroute function. Function was getting skipped.
+ Database
  o fixed getObjects. Extra parameters were passed to constructors BUT
    the object is not passed by reference in php 4. Once the object
    was created, it was cleared 

29 January 2007
+ Editors
  o Removed dependence on SCRIPT_FILENAME variable for FCK's file
    manager
  o Fixed the style settings in the FCK editor
  o Added style settings note to FCK readme file

26 January 2007
+ Settings will now change numeric strings to integers
+ Theme : added margin to bottom of blog


25 January 2007
+ Database
  o Fixed some mixups in the setLimit function
  o Limit variables passed by reference instead of copied
+ DBPager 
  o Part of setLimit problem was pager was working around the error by
  sending backward data. Fixed.

19 January 2007
+ Core.php
  o Changed Branch checking method (Bug #1638042)
  o Added error checks to goBack to prevent endless loop
  o Added bookmark and returnToBookmark functions
+ Javascript
  o Converted current 0.10.x wysiwyg to editor named "simple"
+ Documentation
  o Theme_Creation.txt - added information on locking variables and
    using the theme.php file.
+ Theme
  o Added theme.php file.
+ DBPager
  o Fixed pagination if the limit it raised on a high page count

17 January 2007
+ File.php - rewrote readDirectory function.

16 January 2007
+ DB_Pager
  o Removing resetColumns function from getTotalRows function.
  o Error check added before calling javascriptEnabled function.
  o Some tidy

12 January 2007
+ Database
  o Added Hilmar's prefixing code.

10 January 2007
+ Documentation
  o Created Captcha.txt documentation for Captcha class.

9 January 2007
+ Convert
  o Error checked added to Blog to assure Announcements was installed.
+ File.php
  o Fixed bug in rmdir function preventing files inside directories
    from being deleted. 

8 January 2007
+ Database
  o Added functions to try and prevent table prefixing inside single
    quotes. 


Version 1.3.7
--------------------------------------------------------------------------
13 December 2006
+ Editor
  o Added a "limited" option to allow the wysiwyg stub developer to
    have a second set of tools.
+ Form
  o useEditor function will now accept a limited parameter.
+ Text.php
  o Added parameter to makeRelative to force a change only inside link
    tags
  o makeRelative is run before htmlentities is called.
  o makeRelative only changes urls next to the characters =". This
    should prevent displayed addresses from being relativized.
  o Added function to collapse long urls.
+ Documentation
  o Added a small note to DB_Pager.txt to inform the user that basic
    instruction does not end at the $pager->get() function.
  o Editor.txt - Added instructions on using the Editor class with the
    Form class. 
  o Settings_Class.txt - fixed the path location for the settings.php
    file. 
+ Javascript
  o FCKEditor - added ability to show limited wysiwyg tool
+ Setup
  o Error messages now appear under incorrect setting


11 December 2006
+ DBPager
  o Current page set back to page 1 after a new search or if current
    page is set to zero
  o setOrder function now has a default of 'asc' (ascending).
  o Fixed instant where searches were joined with AND instead of OR
  o Pager search variable is reset when a new search is
    called. Prevents empty variable in GET string.
  o Pager now grabs navigation and sort buttons regardless of row
    status. 



Version 1.3.6
--------------------------------------------------------------------------
8 December 2006
+ Pear - added mime file for email class
+ Convert
  o Convert class now allows the user to pick a destination branch.
  o siteDB function added. Used in developer's convert.php file to
    restore the branch connection after a disconnect.
  o Removed the utf8 calls in webpage and blog until a definitive fix
    can be created for 8859 to utf-8 conversions.
  o Fixed File Cabinet conversion typo (bug #1608912).

6 December 2006
+ Documentation
  o Settings_Class - Fixed directory for settings file
+ Settings
  o Set password character limits
  o Moved error messages to appropriate areas

4 December 2006
+ Settings
  o Now allows null settings.
+ Javascript
  o Added suggested js_calendar fix. Thanks Verdon.


Version 1.3.5
--------------------------------------------------------------------------
29 November 2006
+ Changed boost files to prevent unneccessary folder creation
+ Convertion - added note to readme
+ Core.php - Fixed bug with getHomeHttp function
+ Javascript
  o Rewrote portions of FCKeditor file manager. Works better now.
  o Rewrote FCKeditor upload to work better with links.


Version 1.3.4
--------------------------------------------------------------------------
28 November 2006
+ General
  o Moved core config file to new conf directory
  o Tarred pear directory so would uncompress in lib directory
+ Setup
  o Allows you to install phpWebSite into an existing database
  o Set default editor to FCK
+ Module - can now initialize core as a module
+ Core - removed loadAsMod function. Ability transfered to Module
         class. 

27 November 2006
+ DBPager - Added saveLastView and getLastView functions. Allows the
            dev to record where the user was last if they may leave
            the page and need to return where they left. 
+ Text.php - Removed function that cleaned up word quotes. (Bug #1602046)
+ Updated files : moved conf/errorDefines.php to new inc/ directory.
  config/error.php - added new key error message
  javascript/check_all/head.js - check all was not functioning
  correctly
+ Documentation - added note about resetKeywords in Search module.

+ Database.php - added an error check on the where creation
+ Init.php - errorDefines.php now pulled from the source inc directory
+ Key.php - Added an error check to restrictView function

24 November 2006
+ DBPager - Replaced regexp expression with like expression. regexp
            incompatible with postgresql. 

21 November 2006
General
-------
Removed broken style tag from various about.html files (bug
#1599136).

+ Text.php
  o Changed isValidInput to allow emails with slashes (Bug #1600198)
  o Altered isValidInput url check slightly
  o changed double quotes to singles in isValidInput
+ Convert
  o Added logout link.
  o Added error check to phatform conversion.
+ Cookie.php
  o Added error check to unset function (bug #1599140).

Version 1.3.3
--------------------------------------------------------------------------
17 November 2006
+ Cache.php
  o Added site hash to key.
+ Text.php
  o Changed mb_convert_encode to utf8_encode.
+ pear.tgz
  o Removed some unused and repeated classes

CHANGELOG for phpWebSite version 1.0.0 stable


Version 1.3.2
--------------------------------------------------------------------------
17 November 2006
+ Database.php
  o Added code to prevent index creation on sql imports if requested.
+ Setup
  o Removed RC stuff from welcome
  o Changed setup colors

Version 1.3.1
--------------------------------------------------------------------------
16 November 2006
+ Database.php
  o Added a DB_ALLOW_TABLE_INDEX definition to allow users with limited
    access to install.
  o Changed Database to use factory classes for adding table
    columns. Good ole postgresql!
  o Added index define to setup config template
+ Text.php
  o Added a couple of lines to breaker to prevent breaks inside pre
    tags

Version 1.3.0
--------------------------------------------------------------------------
15 November 2006
+ Added photoalbum conversion

14 November 2006
+ Convert
  o Added ability to set table prefix of conversion database.
  o Added Phatform category conversion.
  o Added Phatform conversion script.
  o Added note about moving  your images and files before or after
    conversion to readme file.
+ Database - Fixed export function.

13 November 2006
+ Form.php - Change to the editor code that should prevent the
  doubling of breaks
+ Text.php - added the smilies parameter to the constructor.
+ Captcha.php - New class to help with CAPTCHA
+ Setup - added captcha information to config.tpl, removed file_type include
+ Index.php - Added file_types include

10 November 2006
+ Convert
  o Now looks for info.ini file if language version not available
  o Added info.ini files for each converted module
  o Removed unused en-us ini files.
+ Database
  o Added a report_error parameter to importFile function.
+ Text
  o Added a function to fix basic anchors in parsed text. Will now
    suppliment them with the current url.
  o Added a parameter to control whether to fix anchors by default or
    not. Default set in config/core/text_settings.php update.
+ Functions
  o Added str_split

9 November 2006
+ Error.php - Default language is now used when the get function is called.
+ Init.php
  o Default language changed from "en" to "en_US"
  o Stripping the utf-8 suffix from the language used in
    translateFile.

8 November 2006
+ Init.php - Added UTF-8 to setlocale language string.


Version 1.2.0
--------------------------------------------------------------------------
7 November 2006
General
+ Simplified all install.sql files to make them more compatible with postgresql.
+ Also added comments for version control.

+ Database
  o Fixed some problems with the function that identifies tables
    within a query. Needed for prefixing.
  o Added some sanity checks to normalize queries for different
    databases.
  o Added display_errors as an ini_set to phpws_stats.php
+ Text
  o Added use_smilies variable. Determines whether parsed text will
    look for smilie icons. 
  o Added option to enable or disable smilies in parseOutput.
  o Fixed htmlentities function in parseInput that was mangling
    foreign characters. 


6 November 2006
+ Convert - Added the option to choose between creating a new page per
            section or combining all sections into one page. 

+ Database - When using LIKE with addWhere, the factory files
             determine what is returned. By default, phpwebsite will
             assume you are performing a case insensitive search when
             using LIKE. Since some databases perform case sensitive
             searches with LIKE, a standard had to be established.
+ Init - Fixed error caused by statement flip

3 November 2006
+ Core.php - Home http now checks the url before adding a duplicate
             slash on the end.
+ Text.php - makeRelative now has a parameter to decide if the ./
             prefix should be added
+ Key.php  - Now calls makeRelative without ./ prefix

+ Convert
  o Users now changes all usernames to lowercase.


Version 1.1.3
--------------------------------------------------------------------------
3 November 2006
+ Key.php - Now used the text function condense
+ Text.php - Added the condense function
+ Setting.php - Now reseting just the module's global value, not the
                whole variable


Version 1.1.2
--------------------------------------------------------------------------
2 November 2006
+ Convert - Block conversion now places all blocks on the front page
+ Database.php - Fixed Bug #1588765 - bad search and replace put an incorrect function name into the addOrder method.  Thanks webtor


Version 1.1.1
--------------------------------------------------------------------------
1 November 2006
+ Convert
  o Users were not set active on conversion
+ Settings
  o If a setting were loaded after saving a new value, incorrect data
    was returned
+ Text
  o makeRelative changed back to use "./" Was breaking other
  functions.

31 October 2006
+ Convert
  o Blog convert not updated since summary was added.
  o File Cabinet conversion now checks for Documents installation.
+ Text - makeRelative now removes home address instead of replacing
         with "./"


Version 1.1.0
--------------------------------------------------------------------------
27 October 2006
+ Convert
  o Added a table check to getSourceDB function.
  o Removed ampersands from constructors
  o Calendar - Added a check to assure calendar was installed before converting
+ Settings.php
  o Added an error check to prevent null values from being saved in the
    integer columns
  o Added a reset function that sets a value back to the default
+ Batch.php - added some error checks
+ Database.php - Removed the static tables variable in the isTable
  function. Possibility exists that two or more databases could be used
  and the static list would return faulty information

25 October 2006
+ Database.php
  o DB factory files have been broken out into specially named
    classes, hopefully this will allow dual connections on different
    database systems
  o Core.php - some tidying
  o Crutch_DB.php - removed
  o Database.php
     - complete overhauled to allow table prefixing and multiple
       concurrent connections 
     - removed reference characters on constructors 
  o Debug.php - duplicate null values are not labeled as recursive
                arrays
  o File.php - copy_directory function was reporting the wrong value
               in its error messages

23 October 2006
+ Database.php
  o Added table prefixing back
  o Altered the count type for select slightly
+ Setup - added table prefixing back to install process

19 October 2006
- Init.php : added a define for CURRENT_LANGUAGE if gettext is not working

18 October 2006
+ Form.php - Removed ampersands from constructors

Version 1.0.9
--------------------------------------------------------------------------
12 October 2006
+ Form.php
  o Crutch function for radio button had typo
  o Added labels to checkbox and radio button crutch functions

Version 1.0.8
--------------------------------------------------------------------------
11 October 2006
+ Configuration : error.php - shortened module missing message
+ Module.php - added error message to _error variable if module is not found

Version 1.0.7
--------------------------------------------------------------------------
11 October 2006
+ Key.php - added a parameter on getCurrent that can allow you to
            ignore a home key.
+ Init.php - Commented out putenv functions
+ Javascript
- close_refresh - added an option to not autoclose

10 October 2006
+ Database.php : fixed a small bug with adding columns using "as". Value
             was carrying over to other columns
+ Form.php : Added an error check on a select value
+ Documentation : updated DB_Pager.txt with information on setting a
                  column order

Version 1.0.7
--------------------------------------------------------------------------
5 October 2006
+ Init.php - fixed locale cookie not getting saved properly
+ Documentation - more instruction add to Module_Development.txt

Version 1.0.5
--------------------------------------------------------------------------
4 October 2006
+ Core.php : altered loadAsMod function to pull version from file or
             database
+ Module.php : added functions to load the core as a module. helps
               with dependencies
Documentation
+ Updated Demographics.txt file.


RC3 and under
----------------------------------------------------------------------
Note: changelog was overwritten by mistake on October 2. Summary
follows

2 October 2006
+ Setup : Core version handled by set up, not inserted via SQL manually

28 September 2006
+ DBPager
  o Added third parameter to setOrder function: only_if_empty. It is
    false by default. If true, order will only be set if not
    previously set
  o Added a function called toggle function. Supposed to call a
    specific function every specific n row. Untested but leaving in
    for now. 
  o Changed the limit list so the current limit will not be linked
  o added an error check to see if the current limit request is within
    the set limit list. Should prevent users enter bogus limit numbers 
+ Form : recoded crutch function calls since crutch files have been
  removed
+ Manager : recoded for compatiblity.

27 September 2006
+ Convert
  o Added filecabinet conversion script

+ DBPager
  o created addRowFunction for pagers not using classes
  o Changed the sort function to use the table columns not the class
    variables. This will help with non-class pulls

25 September 2006
+ Convert
  o Calendar : converting repeats now

21 September 2006
+ Key.php
  o changed unregister function name to -
    "modulename_unregister_key" It was getting confused with the
    module's normal unregister function
  o rewrote Key's unregister function to remove associations
    automatically
+ Settings.php : added function to unregister a module's settings

+ Theme
  o Added styles for breadcrumb in default


14 September 2006
+ Function.php : added clone function
+ Setup: For bug #1533711 added a warning to the setup.

7 September 2006
+ Form.php : added extra space after checked parameter
+ Time.php : added a function to return time in iCal format
+ Theme
  o Removed border from abbr tag (used in calendar)

5 September 2006
+ Functions.php : Added stripos to compatibility functions
+ Text.php : Changed the bbcode decoder to use str_ireplace 

30 August 2006
+ Form.php : replaced a reference to the place variable with key to
             fix labels matching with elements
+ Module_Development.php : more information on files needs for
                           installation in Boost

23 August 2006
+ Database.php : if a count(*) is used, the db class will clear
                 unneccessary order and group designations

22 August 2006
+ Time.php : rewrote all most functions. should be easier to
             understand now
+ Key.php  : Uses mktime for the timestamps and new Time functions for
             display


21 August 2006
+ DBPager : changed function call to use call_user_func. Eliminated an
            undebugable problem in a module.

18 August 2006
+ Removed old crutch files
+ Documentation
- Started rewrite of module documentation

17 August 2006
+ Database : getObject's extra parameters were too simplistic. You
  could only use strings. Improved it.
+ Setup : put in default directory for cache

+ Javascript
  o js_calendar : fixed default typo


15 August 2006
+ Database : added ability to add parameters to getObjects. every variable after the class name is sent to the constructor
+ Settings : changed so that setting default files are always called
             before pulling from the database.

+ Javascript
  o js_calendar : xhtml fixes

14 August 2006
+ Theme
  o Added style for embedded block

+ Javascript
  o Editor - FCKeditor : added full page view, insert flash
           buttons. Also recoded to allow multiple textareas.
           Fixed bug #1515179. Can now upload images in the upload tab.

11 August 2006
+ Text.php
  o changed parseTag so you could add modules you wish to
    ignore. Should prevent endless loops 

+ Docs
  o Updated SmartTags documentation to fit with Text.php changes.


10 August 2006
+ Text.php -  Added UTF-8 encoding to the parseOutput. Was trashing accented characters.

09 August 2006
+ Config
  o added strong and pre tags to text_settings.php

+ Added a requireInc function
+ Editor
    o Added id field to editor textarea for possible future use
    o Removed breaker function call
    o Removed html_entity_decode
+ Form
    o Removed an html decode that seemingly caused problems with
      ampersand encoding
    o Added id parameter to editor textarea
+ Template
    o Forcing mod templates was getting ignored if the theme had
      comparable templates. Changed so forcing mod template overwrites
      everything.
+ Text
    o Removed the <pre> tag formating. Wasn't working anyway.
    o Added code to prevent breaks in <code> tags. They were usually
      added by the js editors
+ Time : continuing my ever increasing confusion with timezones, made
         more changes to try and get user timezone settings working. I
         am sure I will be back.

+ Javascript        
  o Added id field to the fckeditor textarea

+ Theme
  o Removed unneeded semi-colons

14 July 2006
+ Theme
  o Default - added breadcrumb tag

12 July 2006
+ Form - fixed radio button label assignment

10 July 2006
+ DBPager - fixed a filtering issue in the setSearch function

7 July 2006
+ Added missing version insert to install.sql file
+ Template.php : made sure forcing module templates grabbed them from
  the hub directory.

5 July 2006
+ Added key errors for missing key unregister files and/or functions
+ Text.php - added error check to backLink function

30 June, 2006
+ Added error messages to Core to help debug a bad source directory
+ Docs
  o Added this file!

