示例#1
0
文件: Tag.php 项目: annasoal/newsite
 public function __construct()
 {
     parent::__construct();
     $this->tag = MTag::app();
     $this->template = 'tag/v_tags.php';
     $this->check_access('edit_posts');
 }
示例#2
0
文件: Post.php 项目: annasoal/newsite
 public function __construct()
 {
     parent::__construct();
     $this->left = View::template('v_left.php');
     $this->post = MPost::app();
     $this->image = MImage::app();
     $this->tag = MTag::app();
     $this->comment = MComment::app();
 }
示例#3
0
文件: Post.php 项目: annasoal/newsite
 public function __construct()
 {
     parent::__construct();
     $this->post = MPost::app();
     //$this->left = View::template('post/v_left.php');
     $this->image = Image::app();
     $this->tag = Tag::app();
     $this->check_access('edit_posts');
 }
示例#4
0
文件: setup.php 项目: xfra35/fabulog
 public function uninstall()
 {
     die('serious?');
     // clears all tables !!!
     \Model\Post::setdown();
     \Model\Tag::setdown();
     \Model\Comment::setdown();
     \Model\User::setdown();
     $cfg = new Config();
     $cfg->clear('ACTIVE_DB');
     $cfg->save();
     \Base::instance()->clear('SESSION');
     echo "goodbye!";
 }