Beispiel #1
0
 public function __construct()
 {
     parent::__construct();
     $this->user = MUser::app();
     $this->image = Image::app();
     $this->role = MRole::app();
     $this->check_access('edit_users');
 }
Beispiel #2
0
 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();
 }
Beispiel #3
0
 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');
 }
Beispiel #4
0
 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';
     }
 }