Add docblock for getPnotesByUser, and document why we include sql.inc.
Minor spacing changes, and use xlt() for text inside of <span>, instead of xla().
Re-format initial comment block adding some documentation, remove empty comment lines, and use $GLOBALS instead of $srcdir.
Move license information to the top of the file, add docblock to attr function, and add name of parameter to docblock for text.
Add docblocks to all of the functions in htmlspecialchars that did not have docblocks.
Remove unnecissary include of htmlspecialchars, and reformat comment into a docblock for RemindersArray.
minor spacing change, reformat the comment into a docblock for getDueReminderCount, and drop some trailing whitespace.
Change doublequote to singlequote, and remove 'ownership' marker from section of code.
change the formatting on the initial comment, change some doublequotes to singleqoutes, and change some spacing.
Change quotes to singlequotes from doublequotes when including globals.php.
Remove $login_body_line from the codebase. This variable is no longer used.
Third merge from Julia Longtin repository
Change ID of dynamic finder menu item to not confict with new patient
Code type module improvements:

 -Added wrappers to the code set search module functions to ease use.
 -Full support for multiple code type searching.
 -Support of short descriptions.
 -Support for new functionality in Administration->Services.
 -Added test calls in the Testing scripts
 -Consolidated the internal/external code search methods in code_set_search() function
 -Added ability to search code sets by category
Security vulnerability fix
minor bug fix
require the include of the security related scripts in globals.php
Security Fix (xss)
Updated acknowledgements page
Implement direct message receive and background services manager, take 1.

 1. Background Service Manager Framework
    --Documentation provided in the main library/ajax/execute_background_services.php script.
    --Report at Administration->Reports->Services->Background Services
 2. Direct Message Receive
    --Service built on top of the Background Service Manager Framework
    --Can be set/modified in Administration->Globals->Connectors (bottom section)
    --Log can be viewed at Administration->Reports->Services->Direct Message Log
    --Added support for importing of documents with no patient mapping. GUI for
      this is at Miscellaneous->New Documents.
    --Added support for sending pnotes with no patient mapping.
    --Added support for service bots to enable storage of documents,
      sending of messages and accurate logging by services.

 Miscellaneous mods: Changed the Administration->Services to Administration->Codes in left_nav menu.
                     (to avoid confusion with the Services reports)