diff --git a/application/admin/controllers/WatermdController.php b/application/admin/controllers/WatermdController.php index ea4833bd..9a9d186d 100644 --- a/application/admin/controllers/WatermdController.php +++ b/application/admin/controllers/WatermdController.php @@ -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() { diff --git a/application/config.ini b/application/config.ini index fa639f64..e9f6a663 100755 --- a/application/config.ini +++ b/application/config.ini @@ -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