Index: trunk/docs/codebase_v1-to-v2_upgrade_checklist.txt
===================================================================
--- trunk/docs/codebase_v1-to-v2_upgrade_checklist.txt	(revision 432)
+++ trunk/docs/codebase_v1-to-v2_upgrade_checklist.txt	(revision 468)
@@ -1,4 +1,2 @@
-<?php 
-
 =====================================================================
 In General
@@ -8,32 +6,32 @@
 
     include SITE_BASE . '/_templates/header.ihtml';
-    
+
 do this:
 
     include 'header.ihtml';
-    
+
 
 2. CODE_BASE is a defunct constant. The location of the codebase is no longer important as long as it can be found in the currently configured include_path. This will usually include the local site directory (where the codebase normally would be found) as well as the server-wide /usr/lib/php directory where the codebase might be included for the whole server. So now, instead of this:
 
     require_once CODE_BASE . '/lib/Utilities.inc.php';
-    
+
 do this:
 
     require_once 'codebase/lib/Utilities.inc.php';
-    
-    
+
+
 3. $CFG-> variables are gone. Most of these should be converted into their $app and $auth equivalents. If a $CFG variable is NOT something used by the codebase but is still needed by the website application, I suggest converting these values to a $cfg array. For example, this:
 
     $CFG->gallery_images_url = '/gallery_images';
-    
+
 should become:
 
     $cfg['gallery_images_url'] = '/gallery_images';
-    
+
 And of course change the code where they are used to support the array instead of object-properties. If the array is inside of double-quotes it should be written like:
 
-    "{$cfg['gallery_images_url']}/my/path". 
-    
-If the value used is now to be retrieved from a $object->getParam(...) method call, you'll need to do this: 
+    "{$cfg['gallery_images_url']}/my/path".
+
+If the value used is now to be retrieved from a $object->getParam(...) method call, you'll need to do this:
 
     $object->getParam('gallery_images_url') . '/my/path'
@@ -43,9 +41,9 @@
 
     <a href="<?php echo ohref("$CFG->site_url/my/file.php"); ?>">
-    
+
 to this:
 
     <a href="<?php echo $app->ohref("/my/file.php"); ?>">
-    
+
 (In other words, the URL should be a not-fully-qualified URL starting with a slash.)
 
@@ -62,13 +60,13 @@
         '\1' => '\2'
     ));
-    
-    
+
+
 6. Many classes now require object-method calls, and the object must be globally scoped. For example, to call the $cache->exists() method inside a function, be sure to add:
 
     global $cache;
-    
+
 at the top of the function.
 
-    
+
 
 =====================================================================
@@ -80,5 +78,5 @@
 ---------------------------------------------------------------------
 $CFG global variables are converted to object properties specific to their usage.
-    
+
 For example:
 
@@ -98,16 +96,16 @@
 Convert functions to methods.
 
-raiseMsg(...)                           $app->raiseMsg(...) 
-logMsg(...)                             $app->logMsg(...) 
+raiseMsg(...)                           $app->raiseMsg(...)
+logMsg(...)                             $app->logMsg(...)
 include 'message_header.ihtml';         $app->printRaisedMessages();
 $carry_queries = array(... , ...);      $app->carryQuery(...);  //call for each value in array
-ohref(...)                              $app->ohref(...) 
-printHiddenSession(...);                $app->printHiddenSession(...); 
-dieURL(...);                            $app->dieURL(...); 
-dieBoomerangURL(...);                   $app->dieBoomerangURL(...); 
-setBoomerangURL(...);                   $app->setBoomerangURL(...); 
-getBoomerangURL(...);                   $app->getBoomerangURL(...); 
-validBoomerangURL(...);                 $app->validBoomerangURL(...); 
-deleteBoomerangURL(...);                $app->deleteBoomerangURL(...); 
+ohref(...)                              $app->ohref(...)
+printHiddenSession(...);                $app->printHiddenSession(...);
+dieURL(...);                            $app->dieURL(...);
+dieBoomerangURL(...);                   $app->dieBoomerangURL(...);
+setBoomerangURL(...);                   $app->setBoomerangURL(...);
+getBoomerangURL(...);                   $app->getBoomerangURL(...);
+validBoomerangURL(...);                 $app->validBoomerangURL(...);
+deleteBoomerangURL(...);                $app->deleteBoomerangURL(...);
 sslOn();                                $app->sslOn();
 sslOff();                               $app->sslOff();
@@ -121,5 +119,5 @@
 =====================================================================
 DB
-===================================================================== 
+=====================================================================
 
 dbQuery(...)                            $db->query(...)
@@ -209,5 +207,5 @@
 
     $lock = new RecordLock($GLOBALS['_admin']);
-    
+
 to:
 
@@ -215,5 +213,5 @@
     global $auth;
     $lock =& Lock::getInstance($auth);
-     
+
 And instantiate the original global $lock object in _config.inc.php as follows:
 
@@ -236,5 +234,5 @@
 
     $version = new RecordVersion();
-    
+
 to:
 
@@ -250,5 +248,5 @@
 Changed all method calls to now require object calls rather than static calls. In other words, change this:
 
-    if (SessionCache::isCached('mydata')) { 
+    if (SessionCache::isCached('mydata')) {
         $list = SessionCache::getCache('mydata');
     }
@@ -304,5 +302,2 @@
 
 include_once 'form_error_header.ihtml';      $fv->printErrorMessages();
-
-
-?>
Index: trunk/docs/examples/_config.inc.php
===================================================================
--- trunk/docs/examples/_config.inc.php	(revision 432)
+++ trunk/docs/examples/_config.inc.php	(revision 468)
@@ -4,5 +4,5 @@
  * For details visit the project site: <http://trac.strangecode.com/codebase/>
  * Copyright 2001-2012 Strangecode, LLC
- * 
+ *
  * This file is part of The Strangecode Codebase.
  *
@@ -11,15 +11,15 @@
  * Free Software Foundation, either version 3 of the License, or (at your option)
  * any later version.
- * 
+ *
  * The Strangecode Codebase 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
  * The Strangecode Codebase. If not, see <http://www.gnu.org/licenses/>.
  */
 
-/** 
+/**
  * _config.inc.php lives in the document root of the site/application. It is the beginning of everything.
  *
@@ -28,5 +28,5 @@
  * @since   03 Dec 2005 19:09:32
  */
- 
+
 // The constant __FILE__ must be an absolute directory path, starting with / on unix or C: on windows.
 // To work around a PHP bug always include this config file with: require_once dirname(__FILE__) . '/_config.inc.php';
@@ -39,5 +39,5 @@
 define('COMMON_BASE', realpath(dirname(__FILE__) . '/../'));
 
-// The DocRoot for this application. SITE_BASE is different from $_SERVER['DOCUMENT_ROOT'] because the 
+// The DocRoot for this application. SITE_BASE is different from $_SERVER['DOCUMENT_ROOT'] because the
 // latter does not change when using the apache Alias directive or URL Rewriting to define a site.
 define('SITE_BASE', dirname(__FILE__));
@@ -148,10 +148,10 @@
 require_once 'codebase/lib/Cache.inc.php';
 $cache = new Cache('global');
-$cache->setParam(array('enabled' => true));
+$cache->setParam(array('enabled' => true)); // TODO: Enable caching after site launch.
 
 // Setup CSS files to include. These will always be available.
 require_once 'codebase/lib/CSS.inc.php';
 $css = new CSS();
-$css->setParam(array('cache_css' => false)); /// Enable caching after site launch.
+$css->setParam(array('cache_css' => false)); // TODO: Enable caching after site launch.
 $css->setFile('codebase/css/codebase.inc.css');
 $css->setFile('codebase/css/utilities.inc.css');
@@ -170,3 +170,2 @@
 // require_once 'global/config.inc.php';
 
-?>
Index: trunk/docs/examples/contact_form/contact.php
===================================================================
--- trunk/docs/examples/contact_form/contact.php	(revision 432)
+++ trunk/docs/examples/contact_form/contact.php	(revision 468)
@@ -119,3 +119,2 @@
 }
 
-?>
Index: trunk/docs/examples/db_auth.inc.php
===================================================================
--- trunk/docs/examples/db_auth.inc.php	(revision 432)
+++ trunk/docs/examples/db_auth.inc.php	(revision 468)
@@ -35,3 +35,2 @@
     'db_pass' => '',
 ));
-?>
Index: trunk/docs/examples/example.cli.php
===================================================================
--- trunk/docs/examples/example.cli.php	(revision 432)
+++ trunk/docs/examples/example.cli.php	(revision 468)
@@ -146,3 +146,2 @@
 
 
-?>
Index: trunk/docs/examples/script_template.php
===================================================================
--- trunk/docs/examples/script_template.php	(revision 432)
+++ trunk/docs/examples/script_template.php	(revision 468)
@@ -60,3 +60,2 @@
 
 
-?>
