Ejemplo n.º 1
0
 public function __construct()
 {
     parent::__construct();
     if ($this->session->userdata('group_id') != 1) {
         show_error(lang('unauthorized_access'));
     }
 }
Ejemplo n.º 2
0
 public function __construct()
 {
     parent::__construct();
     if ($this->member->member_id == ee()->session->userdata['member_id'] && $this->member->group_id == 1) {
         show_error(lang('cannot_change_your_group'));
     }
 }
Ejemplo n.º 3
0
 public function __construct()
 {
     parent::__construct();
     ee()->load->model('member_model');
     $this->index_url = $this->base_url;
     $this->base_url = ee('CP/URL')->make($this->base_url, $this->query_string);
     $this->ignore_list = explode('|', $this->member->ignore_list);
 }
Ejemplo n.º 4
0
 protected function saveSettings($settings)
 {
     unset($settings['avatar_settings']);
     switch (ee()->input->post('avatar_picker')) {
         case "upload":
             $this->member->avatar_filename = $this->uploadAvatar();
             break;
         case "choose":
             $choice = ee()->input->post('avatar_filename');
             $this->member->avatar_filename = $choice;
             break;
         case "link":
             $this->member->avatar_filename = $this->uploadRemoteAvatar();
             break;
     }
     return parent::saveSettings($settings);
 }