织梦DedeCMS数据库的信息是写在data/common.inc.php文件中的,而织梦在连接数据库时使用的有一个函数是:
01 |
function Init($pconnect=FALSE) { |
05 |
$this->dbHost = $GLOBALS[ 'cfg_dbhost' ]; |
07 |
$this->dbUser = $GLOBALS[ 'cfg_dbuser' ]; |
09 |
$this->dbPwd = $GLOBALS[ 'cfg_dbpwd' ]; |
11 |
$this->dbName = $GLOBALS[ 'cfg_dbname' ]; |
|