if($_SERVER["HTTP_HOST"]=="i.eoo.hk" || $_SERVER["HTTP_HOST"]=="i.eoo.hk"){
$db = new Typecho_Db('Mysql', 'typecho_');
}
else if($_SERVER["HTTP_HOST"]=="2.eoo.hk" || $_SERVER["HTTP_HOST"]=="2.eoo.hk"){
$db = new Typecho_Db('Mysql', '2_');
}
$db->addServer(array (
'host' => 'localhost',
'user' => 'root',
'password' => '123456',
'charset' => 'utf8',
'port' => '3306',
'database' => 'blog',
), Typecho_Db::READ | Typecho_Db::WRITE);
Typecho_Db::set($db);