remove water db info into config.ini

This commit is contained in:
wlx 2010-07-03 07:32:53 +00:00
parent 525ad50235
commit f7bdd0f20b
2 changed files with 6 additions and 1 deletions

View File

@ -7,7 +7,7 @@ class Admin_WatermdController extends Zend_Controller_Action
$this->view->config = Zend_Registry::get('config');
$this->messenger=$this->_helper->getHelper('FlashMessenger');
$this->view->messages = $this->messenger->getMessages();
$this->wdb=Zend_Db::factory('Pdo_Pgsql', array('host'=> '210.77.68.252','username' => 'wlz','password' => 'glacier','dbname'=> 'new_geonetwork'));
$this->wdb=Zend_Db::factory($this->view->config->waterdb);
}
function postDispatch()
{

View File

@ -13,6 +13,11 @@ geonetwork.params.password = gispassword
geonetwork.params.dbname = geonetwork
watergeonetwork.url=http://210.77.68.252:8080/geonetwork/
waterdb.adapter = PDO_PGSQL
waterdb.params.host = 210.77.68.252
waterdb.params.username = wlz
waterdb.params.password = glacier
waterdb.params.dbname = new_geonetwork
seekspace.url=http://seekspace.resip.ac.cn/
seekspace.handleurl=http://seekspace.resip.ac.cn/handle