コード例 #1
0
ファイル: User.php プロジェクト: annasoal/newsite
 public function __construct()
 {
     parent::__construct();
     $this->user = MUser::app();
     $this->image = Image::app();
     $this->role = MRole::app();
     $this->check_access('edit_users');
 }
コード例 #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
ファイル: Ajax.php プロジェクト: annasoal/newsite
 public function action_gallery_upload()
 {
     $this->check_access('edit_posts');
     $id_image = Image::app()->upload_base64($_POST['name'], $_POST['value']);
     if ($id_image != false) {
         Gallery::app()->add_image($_POST['id_gallery'], $id_image);
         $this->content = $_POST['name'] . ':1';
     } else {
         $this->content = $_POST['name'] . ':0';
     }
 }