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