public/main/social/group_invitation.php
Variable "tbl_group_rel_user" is not in valid camel caps format Open
Open
$tbl_group_rel_user = Database::get_main_table(TABLE_USERGROUP_REL_USER);
- Exclude checks
Variable "user_list" is not in valid camel caps format Open
Open
$user_list,
- Exclude checks
Variable "group_friend_list" is not in valid camel caps format Open
Open
if (isset($group_friend_list[$group_id]) &&
- Exclude checks
Variable "Users" is not in valid camel caps format Open
Open
foreach ($Users as $user) {
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
Open
$form = new FormValidator('frm_invitation', 'post', api_get_self().'?id='.$group_id);
- Exclude checks
Variable "social_right_content" is not in valid camel caps format Open
Open
$social_right_content .= Display::panel($userList, get_lang('Users already invited'));
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
foreach ($user_list as $user_id) {
- Exclude checks
Variable "suggest_friends" is not in valid camel caps format Open
Open
$suggest_friends = false;
- Exclude checks
Variable "this_section" is not in valid camel caps format Open
Open
$this_section = SECTION_SOCIAL;
- Exclude checks
Variable "group_info" is not in valid camel caps format Open
Open
if (empty($group_info)) {
- Exclude checks
Variable "SessionList" is not in valid camel caps format Open
Open
$UserList = $SessionList = [];
- Exclude checks
Variable "user_list" is not in valid camel caps format Open
Open
if (!is_array($user_list)) {
- Exclude checks
Variable "user_list" is not in valid camel caps format Open
Open
$user_list = [];
- Exclude checks
Variable "suggest_friends" is not in valid camel caps format Open
Open
$suggest_friends = true;
- Exclude checks
Variable "friend_group_id" is not in valid camel caps format Open
Open
$friend_group_id = $group_id;
- Exclude checks
Variable "friend_group_id" is not in valid camel caps format Open
Open
$friend_group_id = '';
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
Open
'' == $group_friend_list[$group_id]['relation_type']) {
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
Open
if ($user['group_id'] != $group_id) {
- Exclude checks
Variable "social_right_content" is not in valid camel caps format Open
Open
$tpl->assign('social_right_content', $social_right_content);
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$user_id,
- Exclude checks
Variable "group_friend_list" is not in valid camel caps format Open
Open
$group_friend_list = $usergroup->get_groups_by_user($friend['friend_user_id'], 0);
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
Open
$group_friend_list[$group_id]['id'] == $group_id
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
Open
isset($group_friend_list[$group_id]) &&
- Exclude checks
Variable "Users" is not in valid camel caps format Open
Open
if (is_array($Users) && count($Users) > 0) {
- Exclude checks
Variable "group_info" is not in valid camel caps format Open
Open
$social_right_content = '<h3 class="group-title">'.Security::remove_XSS($group_info['name'], STUDENT, true).'</h3>';
- Exclude checks
Variable "social_right_content" is not in valid camel caps format Open
Open
$social_right_content .= '</div>';
- Exclude checks
Variable "Users" is not in valid camel caps format Open
Open
$Users = [];
- Exclude checks
Variable "Users" is not in valid camel caps format Open
Open
$Users[$friend['friend_user_id']] = [
- Exclude checks
Variable "group_members_element" is not in valid camel caps format Open
Open
$group_members_element = $form->addMultiSelect(
- Exclude checks
Variable "social_right_content" is not in valid camel caps format Open
Open
$social_right_content .= $form->returnForm();
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
Open
$group_id,
- Exclude checks
Variable "tbl_user" is not in valid camel caps format Open
Open
$tbl_user = Database::get_main_table(TABLE_MAIN_USER);
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
Open
if (empty($group_id)) {
- Exclude checks
Variable "user_list" is not in valid camel caps format Open
Open
if (is_array($user_list) && count($user_list) > 0) {
- Exclude checks
Variable "group_friend_list" is not in valid camel caps format Open
Open
if (!empty($group_friend_list)) {
- Exclude checks
Variable "Users" is not in valid camel caps format Open
Open
if (is_array($Users) && count($Users) > 0) {
- Exclude checks
Variable "social_right_content" is not in valid camel caps format Open
Open
$social_right_content .= Display::return_message(get_lang('You need to have friends in your social network'), 'warning');
- Exclude checks
Variable "group_info" is not in valid camel caps format Open
Open
$group_info = $usergroup->get($group_id);
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
Open
if (!$usergroup->is_group_member($group_id)) {
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
Open
$interbreadcrumb[] = ['url' => 'group_view.php?id='.$group_id, 'name' => $group_info['name']];
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
Open
$group_id = intval($_POST['id']);
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
Open
$content .= '<a href="'.api_get_path(WEB_CODE_PATH).'social/invitations.php?accept='.$group_id.'">'.
- Exclude checks
Variable "group_info" is not in valid camel caps format Open
Open
$title = get_lang('You are invited to group').' '.$group_info['name'];
- Exclude checks
Variable "Users" is not in valid camel caps format Open
Open
$Users[$friend['friend_user_id']] = [
- Exclude checks
Variable "social_right_content" is not in valid camel caps format Open
Open
$social_right_content .= '<br />';
- Exclude checks
Variable "form_sent" is not in valid camel caps format Open
Open
$form_sent = $_POST['form_sent'];
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
Open
if (isset($group_friend_list[$group_id]) &&
- Exclude checks
Variable "social_right_content" is not in valid camel caps format Open
Open
$social_right_content = '<h3 class="group-title">'.Security::remove_XSS($group_info['name'], STUDENT, true).'</h3>';
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
Open
SocialManager::setSocialUserBlock($tpl, api_get_user_id(), 'groups', $group_id);
- Exclude checks
Variable "form_sent" is not in valid camel caps format Open
Open
$form_sent = 0;
- Exclude checks
Variable "user_list" is not in valid camel caps format Open
Open
if (is_array($user_list) && count($user_list) > 0) {
- Exclude checks
Variable "order_clause" is not in valid camel caps format Open
Open
$order_clause = api_sort_by_first_name() ? ' ORDER BY firstname, lastname, username' : ' ORDER BY lastname, firstname, username';
- Exclude checks
Variable "social_right_content" is not in valid camel caps format Open
Open
$social_right_content .= Display::return_message(get_lang('You already invite all your contacts'), 'info');
- Exclude checks
Variable "tool_name" is not in valid camel caps format Open
Open
$tool_name = get_lang('Subscribe users to group');
- Exclude checks
Variable "user_list" is not in valid camel caps format Open
Open
foreach ($user_list as $user_id) {
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
Open
if (!isset($group_friend_list[$group_id]) ||
- Exclude checks
Variable "group_friend_list" is not in valid camel caps format Open
Open
'' == $group_friend_list[$group_id]['relation_type']) {
- Exclude checks
Variable "group_info" is not in valid camel caps format Open
Open
$interbreadcrumb[] = ['url' => 'group_view.php?id='.$group_id, 'name' => $group_info['name']];
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
Open
[$group_id],
- Exclude checks
Variable "group_friend_list" is not in valid camel caps format Open
Open
if (!isset($group_friend_list[$group_id]) ||
- Exclude checks
Variable "social_right_content" is not in valid camel caps format Open
Open
$social_right_content .= '<div>';
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
Open
$form->addHidden('id', $group_id);
- Exclude checks
Variable "UserList" is not in valid camel caps format Open
Open
$UserList = $SessionList = [];
- Exclude checks
Variable "user_list" is not in valid camel caps format Open
Open
$user_list = isset($_POST['invitation']) ? $_POST['invitation'] : null;
- Exclude checks
Variable "form_sent" is not in valid camel caps format Open
Open
if (1 == $form_sent) {
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
Open
$group_friend_list[$group_id]['id'] == $group_id
- Exclude checks
Variable "friend_group_id" is not in valid camel caps format Open
Open
'group_id' => $friend_group_id,
- Exclude checks
Variable "social_right_content" is not in valid camel caps format Open
Open
$social_right_content .= '<a href="search.php" class="btn btn--plain btn-sm">'.Display::getMdiIcon('magnify').' '.get_lang('Try and find some friends').'</a>';
- Exclude checks
Variable "social_layout" is not in valid camel caps format Open
Open
$social_layout = $tpl->get_template('social/add_groups.tpl');
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
Open
header('Location: '.api_get_self().'?id='.$group_id);
- Exclude checks
Variable "group_friend_list" is not in valid camel caps format Open
Open
$group_friend_list[$group_id]['id'] == $group_id
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
Open
$group_id = intval($_REQUEST['id']);
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
Open
$group_info = $usergroup->get($group_id);
- Exclude checks
Variable "group_info" is not in valid camel caps format Open
Open
$content = get_lang('You are invited to groupContent').' '.$group_info['name'].' <br />';
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
Open
$friend_group_id = $group_id;
- Exclude checks
Variable "group_friend_list" is not in valid camel caps format Open
Open
isset($group_friend_list[$group_id]) &&
- Exclude checks
Variable "social_layout" is not in valid camel caps format Open
Open
$tpl->display($social_layout);
- Exclude checks