aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Controllers/MeetController.php
diff options
context:
space:
mode:
Diffstat (limited to 'h-source/Application/Controllers/MeetController.php')
-rw-r--r--h-source/Application/Controllers/MeetController.php11
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();
}