[CS-Project-svn_notify] SF.net SVN: cs-project: [852] trunk/1.2/lib/site_config.php
Brought to you by:
crazedsanity
From: <cra...@us...> - 2008-03-27 02:49:17
|
Revision: 852 http://cs-project.svn.sourceforge.net/cs-project/?rev=852&view=rev Author: crazedsanity Date: 2008-03-26 19:49:13 -0700 (Wed, 26 Mar 2008) Log Message: ----------- Set some constants to define where the config file is, set template vars for it as well. Modified Paths: -------------- trunk/1.2/lib/site_config.php Modified: trunk/1.2/lib/site_config.php =================================================================== --- trunk/1.2/lib/site_config.php 2008-03-26 20:12:57 UTC (rev 851) +++ trunk/1.2/lib/site_config.php 2008-03-27 02:49:13 UTC (rev 852) @@ -25,10 +25,15 @@ require_once(dirname(__FILE__) .'/config.class.php'); define(CONFIG_FILENAME, 'config.xml'); +define(CONFIG_DIRECTORY, 'rw'); +define(CONFIG_FILE_LOCATION, CONFIG_DIRECTORY .'/'. CONFIG_FILENAME); define(SESSION_SETUP_KEY, '___setup_key___'); set_exception_handler('exception_handler'); +//TODO: turn off if it's not a dev site, but NOT if setup is running (so they can see problems). +ini_set('error_reporting', 'On'); +ini_set('display_errors', 'On'); //########################################################################## function exception_handler($exception) { $exceptionMessage = $exception->getMessage(); @@ -93,7 +98,8 @@ $GLOBALS['templateVars'] = array( "PHP_SELF" => $_SERVER['PHP_SELF'], "cs-content_version" => VERSION_STRING, - "PROJ_NAME" => PROJ_NAME + "PROJ_NAME" => PROJ_NAME, + "CONFIG_FILE_LOCATION" => CONFIG_FILE_LOCATION ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |