function __construct()
{
global $option, $lang, $blogpath, $bloghost, $cookiespath, $usersdir, $table, $datainfo;
global $blogversion, $blogtitle, $blogname, $blogsubname, $blogtheme, $blogstyle;
ZBlogException::SetErrorHook();
//基本配置加载到$zbp内
$this->version =& $blogversion;
$this->option =& $option;
$this->lang =& $lang;
$this->path =& $blogpath;
$this->host =& $bloghost;
$this->cookiespath =& $cookiespath;
$this->usersdir =& $usersdir;
$this->table =& $table;
$this->datainfo =& $datainfo;
if (trim($this->option['ZC_BLOG_CLSID']) == '') {
$this->option['ZC_BLOG_CLSID'] = GetGuid();
}
$this->guid =& $this->option['ZC_BLOG_CLSID'];
$this->title =& $blogtitle;
$this->name =& $blogname;
$this->subname =& $blogsubname;
$this->theme =& $blogtheme;
$this->style =& $blogstyle;
$this->managecount = $this->option['ZC_MANAGE_COUNT'];
$this->pagebarcount = $this->option['ZC_PAGEBAR_COUNT'];
$this->searchcount = $this->option['ZC_SEARCH_COUNT'];
$this->displaycount = $this->option['ZC_DISPLAY_COUNT'];
$this->commentdisplaycount = $this->option['ZC_COMMENTS_DISPLAY_COUNT'];
$this->cache = new Metas();
}