初始化
function base() {
$this->init_var();//變量
$this->init_db();//數據庫
$this->init_cache();//緩存
$this->init_app();//應用程序緩存
$this->init_user();//用戶
$this->init_template();//模板(lib/template.class.php)$this->view = new template();
$this->init_note();
$this->init_mail();//Email
}
load()
set_setting
get_setting()
設置根目錄
set_home
//得到要目錄
get_home
//序列化(用到lib/xml.class.php)
serialize
//反序列化
unserialize
截字符串
cutstr
//設置cookie
setcookie
//註釋存在
note_exists()
//mail是否存在
mail_exists()