[CS-Project-svn_notify] SF.net SVN: cs-project:[989] trunk/1.2/lib/_setup/__finalStep.class.php
Brought to you by:
crazedsanity
From: <cra...@us...> - 2009-09-21 03:28:33
|
Revision: 989 http://cs-project.svn.sourceforge.net/cs-project/?rev=989&view=rev Author: crazedsanity Date: 2009-09-21 03:28:26 +0000 (Mon, 21 Sep 2009) Log Message: ----------- Added config items for cs-webapplibs. Modified Paths: -------------- trunk/1.2/lib/_setup/__finalStep.class.php Modified: trunk/1.2/lib/_setup/__finalStep.class.php =================================================================== --- trunk/1.2/lib/_setup/__finalStep.class.php 2009-09-21 03:18:11 UTC (rev 988) +++ trunk/1.2/lib/_setup/__finalStep.class.php 2009-09-21 03:28:26 UTC (rev 989) @@ -94,6 +94,19 @@ ); $xmlCreator->add_attribute('/config', $extraAttributes); + //add values for other libs... + $tagPath = '/config/cs-webapplibs'; + $xmlCreator->add_tag($tagPath); + $attributes = array('setconstant'=>1, 'setconstantprefix'=>"cs_webapplibs"); + + //TODO: set this dynamically if other databases are supported. + $xmlCreator->add_tag($tagPath .'/DBTYPE', 'pgsql', array('setconstant'=>1)); + $xmlCreator->add_tag($tagPath .'/DB_CONNECT_HOST', '{MAIN/DATABASE__HOST}', $attributes); + $xmlCreator->add_tag($tagPath .'/DB_CONNECT_DBNAME', '{MAIN/DATABASE__DBNAME}', $attributes); + $xmlCreator->add_tag($tagPath .'/DB_CONNECT_USER', '{MAIN/DATABASE__USER}', $attributes); + $xmlCreator->add_tag($tagPath .'/DB_CONNECT_PASSWORD', '{MAIN/DATABASE__PASSWORD}', $attributes); + $xmlCreator->add_tag($tagPath .'/DB_CONNECT_PORT', '{MAIN/DATABASE__PORT}', $attributes); + //now, create an XML string... $xmlString = $xmlCreator->create_xml_string(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |