chamilo/chamilo-lms

View on GitHub
public/main/admin/access_url_check_user_session.php

Summary

Maintainability
A
0 mins
Test Coverage

Variable "tool_name" is not in valid camel caps format
Open

$tool_name = get_lang('Session overview');

Variable "tbl_user" is not in valid camel caps format
Open

$tbl_user = Database::get_main_table(TABLE_MAIN_USER);

Variable "this_section" is not in valid camel caps format
Open

$this_section = SECTION_PLATFORM_ADMIN;

Variable "tbl_session_rel_user" is not in valid camel caps format
Open

$tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

Variable "user_id" is not in valid camel caps format
Open

        $result = UrlManager::add_user_to_url($user_id, $url_id);

Variable "user_link" is not in valid camel caps format
Open

                        <b>'.$user_link.'</b>

Variable "user_info" is not in valid camel caps format
Open

        $user_info = api_get_user_info($user_id);

Variable "session_item" is not in valid camel caps format
Open

    $html .= '<h3>'.$session_item['name'].'</h3>';

Variable "url_id" is not in valid camel caps format
Open

                if ($user['access_url_id'] != $url_id) {

Variable "user_info" is not in valid camel caps format
Open

                    $user_info['lastname']

Variable "table_access_url_user" is not in valid camel caps format
Open

            LEFT OUTER JOIN $table_access_url_user uu

Variable "order_clause" is not in valid camel caps format
Open

$order_clause = api_sort_by_first_name() ? ' ORDER BY firstname, lastname' : ' ORDER BY lastname, firstname';

Variable "session_list" is not in valid camel caps format
Open

foreach ($session_list as $session_item) {

Variable "session_id" is not in valid camel caps format
Open

    $session_id = $session_item['id'];

Variable "tbl_user" is not in valid camel caps format
Open

            FROM $tbl_user u

Variable "session_id" is not in valid camel caps format
Open

                    $link_to_add_user_in_url = '<a href="'.api_get_self().'?'.Security::remove_XSS($_SERVER['QUERY_STRING']).'&action=add_user_to_url&id_session='.$session_id.'&user_id='.$user['user_id'].'">'.$add.'</a>';

Variable "tool_name" is not in valid camel caps format
Open

Display::display_header($tool_name);

Variable "session_item" is not in valid camel caps format
Open

foreach ($session_list as $session_item) {

Variable "access_where" is not in valid camel caps format
Open

    $access_where = "(access_url_id = $url_id OR access_url_id is null )";

Variable "user_link" is not in valid camel caps format
Open

                $user_link = '<a href="'.api_get_path(WEB_CODE_PATH).'admin/user_information.php?user_id='.(int) ($user['user_id']).'">'.Security::remove_XSS(api_get_person_name($user['firstname'], $user['lastname'])).' ('.$user['username'].')</a>';

Variable "user_info" is not in valid camel caps format
Open

                    $user_info['firstname'],

Variable "url_id" is not in valid camel caps format
Open

    $access_where = "(access_url_id = $url_id OR access_url_id is null )";

Variable "user_link" is not in valid camel caps format
Open

            $user_link = '';

Variable "table_access_url_user" is not in valid camel caps format
Open

$table_access_url_user = Database::get_main_table(TABLE_MAIN_ACCESS_URL_REL_USER);

Variable "user_id" is not in valid camel caps format
Open

        $user_id = $_REQUEST['user_id'];

Variable "show_users_with_problems" is not in valid camel caps format
Open

if ($show_users_with_problems) {

Variable "session_list" is not in valid camel caps format
Open

$session_list = SessionManager::get_sessions_list();

Variable "session_item" is not in valid camel caps format
Open

    $session_id = $session_item['id'];

Variable "access_where" is not in valid camel caps format
Open

        $access_where = '(access_url_id is null)';

Variable "user_link" is not in valid camel caps format
Open

                    $user_link .= ' '.Display::getMdiIcon(StateIcon::WARNING, 'ch-tool-icon', null, ICON_SIZE_MEDIUM, get_lang('Users not added to the URL'));

Variable "url_id" is not in valid camel caps format
Open

        $result = UrlManager::add_user_to_url($user_id, $url_id);

Variable "order_clause" is not in valid camel caps format
Open

            $order_clause";

Variable "link_to_add_user_in_url" is not in valid camel caps format
Open

                    $link_to_add_user_in_url = '<a href="'.api_get_self().'?'.Security::remove_XSS($_SERVER['QUERY_STRING']).'&action=add_user_to_url&id_session='.$session_id.'&user_id='.$user['user_id'].'">'.$add.'</a>';

Variable "access_where" is not in valid camel caps format
Open

            WHERE su.session_id = $session_id AND $access_where AND u.active <> ".USER_SOFT_DELETED."

Variable "user_id" is not in valid camel caps format
Open

        $user_info = api_get_user_info($user_id);

Variable "session_id" is not in valid camel caps format
Open

            WHERE su.session_id = $session_id AND $access_where AND u.active <> ".USER_SOFT_DELETED."

Variable "multiple_url_is_on" is not in valid camel caps format
Open

            if ($multiple_url_is_on) {

Variable "url_id" is not in valid camel caps format
Open

$url_id = api_get_current_access_url_id();

Variable "link_to_add_user_in_url" is not in valid camel caps format
Open

            $link_to_add_user_in_url = '';

Variable "link_to_add_user_in_url" is not in valid camel caps format
Open

                        '.$link_to_add_user_in_url.'

Variable "multiple_url_is_on" is not in valid camel caps format
Open

$multiple_url_is_on = api_get_multiple_access_url();

Variable "show_users_with_problems" is not in valid camel caps format
Open

$show_users_with_problems = isset($_REQUEST['show_users_with_problems']) && 1 == $_REQUEST['show_users_with_problems'] ? true : false;

Variable "show_users_with_problems" is not in valid camel caps format
Open

    if ($show_users_with_problems) {

Variable "tbl_session_rel_user" is not in valid camel caps format
Open

            INNER JOIN $tbl_session_rel_user su

There are no issues that match your filters.

Category
Status