remove water db info into config.ini
This commit is contained in:
parent
525ad50235
commit
f7bdd0f20b
|
@ -7,7 +7,7 @@ class Admin_WatermdController extends Zend_Controller_Action
|
||||||
$this->view->config = Zend_Registry::get('config');
|
$this->view->config = Zend_Registry::get('config');
|
||||||
$this->messenger=$this->_helper->getHelper('FlashMessenger');
|
$this->messenger=$this->_helper->getHelper('FlashMessenger');
|
||||||
$this->view->messages = $this->messenger->getMessages();
|
$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()
|
function postDispatch()
|
||||||
{
|
{
|
||||||
|
|
|
@ -13,6 +13,11 @@ geonetwork.params.password = gispassword
|
||||||
geonetwork.params.dbname = geonetwork
|
geonetwork.params.dbname = geonetwork
|
||||||
|
|
||||||
watergeonetwork.url=http://210.77.68.252:8080/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.url=http://seekspace.resip.ac.cn/
|
||||||
seekspace.handleurl=http://seekspace.resip.ac.cn/handle
|
seekspace.handleurl=http://seekspace.resip.ac.cn/handle
|
||||||
|
|
Loading…
Reference in New Issue