Changeset 468 for trunk/docs/examples/_config.inc.php
- Timestamp:
- Feb 20, 2014 3:03:59 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property
svn:mergeinfo
set to
/branches/eli_branch merged eligible
-
Property
svn:mergeinfo
set to
-
trunk/docs/examples/_config.inc.php
r432 r468 4 4 * For details visit the project site: <http://trac.strangecode.com/codebase/> 5 5 * Copyright 2001-2012 Strangecode, LLC 6 * 6 * 7 7 * This file is part of The Strangecode Codebase. 8 8 * … … 11 11 * Free Software Foundation, either version 3 of the License, or (at your option) 12 12 * any later version. 13 * 13 * 14 14 * The Strangecode Codebase is distributed in the hope that it will be useful, but 15 15 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 16 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 17 17 * details. 18 * 18 * 19 19 * You should have received a copy of the GNU General Public License along with 20 20 * The Strangecode Codebase. If not, see <http://www.gnu.org/licenses/>. 21 21 */ 22 22 23 /** 23 /** 24 24 * _config.inc.php lives in the document root of the site/application. It is the beginning of everything. 25 25 * … … 28 28 * @since 03 Dec 2005 19:09:32 29 29 */ 30 30 31 31 // The constant __FILE__ must be an absolute directory path, starting with / on unix or C: on windows. 32 32 // To work around a PHP bug always include this config file with: require_once dirname(__FILE__) . '/_config.inc.php'; … … 39 39 define('COMMON_BASE', realpath(dirname(__FILE__) . '/../')); 40 40 41 // The DocRoot for this application. SITE_BASE is different from $_SERVER['DOCUMENT_ROOT'] because the 41 // The DocRoot for this application. SITE_BASE is different from $_SERVER['DOCUMENT_ROOT'] because the 42 42 // latter does not change when using the apache Alias directive or URL Rewriting to define a site. 43 43 define('SITE_BASE', dirname(__FILE__)); … … 148 148 require_once 'codebase/lib/Cache.inc.php'; 149 149 $cache = new Cache('global'); 150 $cache->setParam(array('enabled' => true)); 150 $cache->setParam(array('enabled' => true)); // TODO: Enable caching after site launch. 151 151 152 152 // Setup CSS files to include. These will always be available. 153 153 require_once 'codebase/lib/CSS.inc.php'; 154 154 $css = new CSS(); 155 $css->setParam(array('cache_css' => false)); // /Enable caching after site launch.155 $css->setParam(array('cache_css' => false)); // TODO: Enable caching after site launch. 156 156 $css->setFile('codebase/css/codebase.inc.css'); 157 157 $css->setFile('codebase/css/utilities.inc.css'); … … 170 170 // require_once 'global/config.inc.php'; 171 171 172 ?>
Note: See TracChangeset
for help on using the changeset viewer.