初始化
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()