diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2010-11-01 20:42:44 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2010-11-01 20:42:44 +0000 |
commit | 049e37619a1ea7de4eed2695139645d6d6b9f397 (patch) | |
tree | aac510dfdcc9e771cd3448cc0f45e7a6fdfc0665 /h-source/Application/Controllers/MeetController.php | |
parent | b006de42300a5671544e6fd3ea20ae7ce96da933 (diff) |
moderators can now block/unblock users - part 1
Diffstat (limited to 'h-source/Application/Controllers/MeetController.php')
-rw-r--r-- | h-source/Application/Controllers/MeetController.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/h-source/Application/Controllers/MeetController.php b/h-source/Application/Controllers/MeetController.php index 416b5dd..72e9006 100644 --- a/h-source/Application/Controllers/MeetController.php +++ b/h-source/Application/Controllers/MeetController.php @@ -75,14 +75,23 @@ class MeetController extends BaseController if ($this->userExists($clean['user'])) { + $clean['id_user'] = (int)$this->m['UsersModel']->getUserId($clean['user']); + $data['meet_id_user'] = $clean['id_user']; + + $data['isBlocked'] = $this->m['UsersModel']->isBlocked($clean['id_user']); + $this->whereArray['username'] = $clean['user']; $data['table'] = $this->m['ProfileModel']->select('regusers.e_mail,regusers.username,profile.*')->from('regusers inner join profile')->on('regusers.id_user = profile.created_by')->where($this->whereArray)->send(); $data['meet_username'] = $clean['user']; - + +// javascript for moderator + $data['md_javascript'] = "moderator_dialog(\"block\",\"user\");moderator_dialog(\"unblock\",\"user\");"; + $this->append($data); $this->load('meet'); + $this->load('moderator_dialog'); $this->right(); } |