/***********************************************************************
  Content (Enhanced) for Dragonfly(TM) CMS
  **********************************************************************
  Copyright (C) 2005-2007 by Dark Grue

  Homepage: http://www.theclenchedfist.com/projects/content/

  $Source: CHANGELOG.txt $
  $Revision: 9.7.11 $
  $Author: darkgrue (darkgrue @ iname.com) $
  $Date: 2007-10-31 $

  Based on:
    The Content Module Enhancements by BrokenCrust.

    Content Module 2.0.1.0
    Copyright (C) 2004-2005 by CPG-Nuke Dev Team
    http://www.dragonflycms.org

  License:
  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or (at
  your option) any later version.

  This program is distributed in the hope that it will be useful, but
  WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
  02111-1307 USA
***********************************************************************/
Changelog:
9.7.11
* Fixed category search bug when multiple instances of the module are
  installed. Reported by Brammers.
* Added Dragonfly 9.1.2.8 compatibility (new blocks class).

9.7.10
* Fixed search bug when searching multiple instances of the module are
  installed. Reported by Brammers, fix contributed to by Phoenix.
  <http://www.dragonflycms.org/Forums/viewtopic/p=112757.html#112757>
* Advanced search option now properly lists categories in drop-down
  list box, reported by Brammers.
  <http://www.dragonflycms.org/Forums/viewtopic/p=112757.html#112757>
* Custom title is now displayed in search results, paginated search
  results, and "return to" link. Reported by Brammers and Phoenix.
* Fixed paginated search results links, reported by Phoenix.
* Fixed search.inc instantiation error message, reported by alva.
* Fixed use of get_lang() in search.inc file.

9.7.9
* Fixed "Fatal error: Cannot redeclare list_menu_recursive()" error,
  reported by protoplasm. Removed modules/Content/functions/menu.inc
  file as a result of change. Configurations options that affect
  block-Content_Menu.php, are no longer located in the
  modules/Content/functions/menu.inc file. Both $expand_all and
  $displaydepth settings may be set on a per-block basis inside the
  block-Content_Menu*.php file(s).
* Fixed BBCode content strips line breaks error, reported by tashaar
  and confirmed by warden.
  <http://dragonflycms.org/Forums/viewtopic/t=14887/start=6.html>

9.7.8
* Fixed is_admin() only checking first instance of module, reported by
  alva.
* Fixed "The characters that you tried to include in your modules
  request are forbidden..." error when opening a new window using the
  printer-friendly formatting function, reported by Anja.
* Fixed Search function not properly checking all page fields, reported
  by mobileguy.
* SECURITY FIX: Fixed XSS page and category deletion vulnerability.
* Made some tweaks to the language file.
* Cleaned up redundant globals declaration.

9.7.7
* Added fix for undefined _PRINTER language definition and WYSIWYG
  backwards-compatibility for Dragonfly 9.1.0.6-9.1.0.5. Bug reported by
  tashaar, fix provided by Biggles.
  <http://www.dragonflycms.org/Forums/viewtopic/t=14887/start=4.html>
* Changed source file headers to use ISO 8601 date format.

9.7.6
* Fixed content save error.
* Fixed some problems with content menu block that would occur if
  certain types of content were not present.

9.7.5
* Removed UTF-8 characters from module source as they were unecessary,
  and caused confusion if the files were shuttled between editors that
  were/were not UTF-8 aware.
* Fixed DB error when saving an edited content page.

9.7.4
* Fixed instanced module not properly choosing language include file
  in Administration panel.
* Fixed broken print article link in content page view.
* Removed non-ASCII characters from module source for ease of editing.

9.7.3
* Changed database schema to upgrade text column in the pages table from
  TEXT to MEDIUMTEXT in order to accomodate larger page sizes. Be
  mindful that (multiple) settings in php.ini can also significantly
  limit the size of posted pages.
* The block-Content_Menu.php now displays categories nested in proper
  hierarchical order. The block has been significantly changed and now
  uses the Cache class to reduce the ovehead involved in building the
  menu class.
* Added two configuration options that affect block-Content_Menu.php,
  located in the modules/Content/functions/menu.inc file. The
  $displaydepth sets how deep to expose subcategories, while $expand_all
  controls whether the menu (content and subcategories) starts fully
  expanded.
* Added page count and subcategories count to user category display.
* Category display now uses the Cache class to reduce overhead in
  building the category display recursively.
* Moved subtitle under page title in user category display.

9.7.2
* Removed infringing images and code to comply with licensing issues.
  Please do not use/redistribute 9.7.0 and 9.7.1 code and images.
* Fixed block-Content_Menu.php links for categories and pages not
  linking to the correct instance.
* Changed module pagetitle from fixed string to the custom module title.
* Significantly improved the category folder tree.

9.7.1
* Fixed page table layout for Firefox users in Pages administration.
* Added subtitle to page table.

9.7.0
* Fixed failure to load language file for anything other than the primary
  instance of the module.
* Removed ", __FILE__, __LINE__" part in SQL method calls since it's
  obsolete.
* Significantly upgraded and enhanced the administration interface. The
  admin interface has been divided into two sections: Categories and
  Pages.
* Added WYSIWYG editing.

9.6.2
* Fixed problem with Content Menu block pointing to wrong location for
  a few graphical elements.
* STRUCTURE CHANGE: In accordance with the Dragonfly coding standards,
  the language file have been moved from the original location at
  "modules/Content/language/lang-english.php" to
  "language/english/content.php". Those upgrading should remove the
  previous directory before installing the upgrade. Bonus feature -
  there is no need to make additional copies of the language file(s)
  when using the automatic instantiation feature.
* Added Read Count, Printer-Friendly Page, and administration commands
  to bottom of content page.

9.6.1
* Fixed bug in search.inc that causes SQL error when searching in a
  category.

9.6.0
* Added automatic module instantiation feature.

9.5.2
* Fixed problem with installer.
* Updated installation instructions with notes for upgraders.

9.5.1
* Fixed categories not sorting by title. (Thanks LCAngela!)
* Administration panel now sorts pages by category (uncategorized
  content first), then by content title. Replaced an inefficient loop
  with a JOIN operation.
* block_Content now sorts titles (previously presented titles
  by order in DB.

9.5
* Changed code formatting/commenting to make it more consistent.
* Converted to complex (curly) syntax, where applicable.
* Improved layout of page elements.
* Added XHTML 1.0 Transitional compatibility to output.
* Resolved PHP warnings.
* Removed divergent code paths for adding and displaying sub-categories.
* Converted strings to string literals where appropriate.
* Improved administration interface:
  + Added table styles to content display.
  + Replaced calls to with url_redirect() to point to more sensible
    return paths.
  + Finished implementation of sub-categories.
* Added Dragonfly theme support; classes in use are: content, forumline,
  gen, legend, nav, row1, row2, row3, title, thCornerL, thCornerR,
  thTop. Uses globals bgcolor2, bgcolor3
* Improved breadcrumbs header. Breadcrumbs now link one level
  backwards. (Providing a full breadcrumb path was decided against since
  walking the entire linked list would have been very DB-intensive, and
  provided not a whole lot of additional benefit.)
* Finished implementation of print function.
  + Print page now validates properly.
  + Images are referenced properly (added base href).
* Cleaned up and commented language file.
* Fixed badly skewed pageview counter incrementing on multipage
  documents.