public/main/user/resume_session.php
Variable "id_session" is not in valid camel caps format Open
Open
SessionManager::protect_teacher_session_edit($id_session);
- Exclude checks
Variable "tbl_course" is not in valid camel caps format Open
Open
$tbl_course = Database::get_main_table(TABLE_MAIN_COURSE);
- 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 "tbl_session_rel_course_rel_user" is not in valid camel caps format Open
Open
$tbl_session_rel_course_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_COURSE_USER);
- Exclude checks
Variable "tool_name" is not in valid camel caps format Open
Open
$tool_name = get_lang('Session overview');
- Exclude checks
Variable "id_session" is not in valid camel caps format Open
Open
$session = api_get_session_entity($id_session);
- Exclude checks
Variable "url_id" is not in valid camel caps format Open
Open
$url_id = api_get_current_access_url_id();
- Exclude checks
Variable "tbl_session_rel_course" is not in valid camel caps format Open
Open
$tbl_session_rel_course = Database::get_main_table(TABLE_MAIN_SESSION_COURSE);
- Exclude checks
Variable "id_session" is not in valid camel caps format Open
Open
$id_session = (int) $_GET['id_session'];
- Exclude checks
Variable "tbl_session" is not in valid camel caps format Open
Open
$tbl_session = Database::get_main_table(TABLE_MAIN_SESSION);
- Exclude checks
Variable "tbl_session_category" is not in valid camel caps format Open
Open
$tbl_session_category = Database::get_main_table(TABLE_MAIN_SESSION_CATEGORY);
- Exclude checks
Variable "this_section" is not in valid camel caps format Open
Open
$this_section = SECTION_PLATFORM_ADMIN;
- Exclude checks
Variable "tbl_session_rel_user" is not in valid camel caps format Open
Open
$tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
* @author Bart Mollet, Julio Montoya lot of fixes
- Exclude checks
Variable "tbl_session_rel_class" is not in valid camel caps format Open
Open
$tbl_session_rel_class = Database::get_main_table(TABLE_MAIN_SESSION_CLASS);
- Exclude checks
Variable "table_access_url_user" is not in valid camel caps format Open
Open
$table_access_url_user = Database::get_main_table(TABLE_MAIN_ACCESS_URL_REL_USER);
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$user_id = $_REQUEST['user_id'];
- Exclude checks
Variable "tbl_session" is not in valid camel caps format Open
Open
Database::query("UPDATE $tbl_session SET nbr_courses=nbr_courses-$nbr_affected_rows WHERE id='$id_session'");
- Exclude checks
Variable "id_session" is not in valid camel caps format Open
Open
$result = Database::query("DELETE FROM $tbl_session_rel_class WHERE session_id='$id_session' AND class_id=".intval($_GET['class']));
- Exclude checks
Variable "id_session" is not in valid camel caps format Open
Open
$result = Database::query("DELETE FROM $tbl_session_rel_course_rel_user WHERE session_id ='$id_session' AND user_id=".intval($_GET['user']));
- Exclude checks
Variable "tool_name" is not in valid camel caps format Open
Open
Display::display_header($tool_name);
- Exclude checks
Variable "id_session" is not in valid camel caps format Open
Open
$url_list = UrlManager::get_access_url_from_session($id_session);
- Exclude checks
Variable "orig_param" is not in valid camel caps format Open
Open
<a href="../my_space/myStudents.php?student='.$user['user_id'].''.$orig_param.'">'.
- Exclude checks
Variable "url_list" is not in valid camel caps format Open
Open
$url_list = UrlManager::get_access_url_from_session($id_session);
- Exclude checks
Variable "id_session" is not in valid camel caps format Open
Open
<a href="session_course_user.php?id_user='.$user['user_id'].'&id_session='.$id_session.'">'.
- Exclude checks
Variable "user_info" is not in valid camel caps format Open
Open
$user_info['lastname']
- Exclude checks
Variable "my_temp" is not in valid camel caps format Open
Open
$my_temp[] = $courseInfo['real_id']; // forcing the escape_string
- Exclude checks
Variable "nbr_affected_rows" is not in valid camel caps format Open
Open
$nbr_affected_rows = Database::affected_rows($result);
- Exclude checks
Variable "id_session" is not in valid camel caps format Open
Open
Database::query("UPDATE $tbl_session SET nbr_classes=nbr_classes-$nbr_affected_rows WHERE id='$id_session'");
- Exclude checks
Variable "url_list" is not in valid camel caps format Open
Open
foreach ($url_list as $url_data) {
- Exclude checks
Variable "link_to_add_user_in_url" is not in valid camel caps format Open
Open
$link_to_add_user_in_url = '';
- Exclude checks
Variable "url_id" is not in valid camel caps format Open
Open
if ($user['access_url_id'] != $url_id) {
- Exclude checks
Variable "id_session" is not in valid camel caps format Open
Open
$result = Database::query("DELETE FROM $tbl_session_rel_course WHERE session_id='$id_session' AND c_id IN($idChecked)");
- Exclude checks
Variable "id_session" is not in valid camel caps format Open
Open
Database::query("DELETE FROM $tbl_session_rel_course_rel_user WHERE session_id='$id_session' AND c_id IN($idChecked)");
- Exclude checks
Variable "tbl_session" is not in valid camel caps format Open
Open
Database::query("UPDATE $tbl_session SET nbr_users=nbr_users-$nbr_affected_rows WHERE id='$id_session'");
- Exclude checks
Variable "url_id" is not in valid camel caps format Open
Open
WHERE u.active <> ".USER_SOFT_DELETED." AND su.session_id = $id_session AND (access_url_id = $url_id OR access_url_id is null )
- Exclude checks
Variable "id_session" is not in valid camel caps format Open
Open
$link_to_add_user_in_url = '<a href="resume_session.php?action=add_user_to_url&id_session='.$id_session.'&user_id='.$user['user_id'].'">'.$add.'</a>';
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$result = UrlManager::add_user_to_url($user_id, $url_id);
- Exclude checks
Variable "user_info" is not in valid camel caps format Open
Open
$user_info = api_get_user_info($user_id);
- Exclude checks
Variable "user_link" is not in valid camel caps format Open
Open
$user_link = '<a
- Exclude checks
Variable "multiple_url_is_on" is not in valid camel caps format Open
Open
if ($multiple_url_is_on) {
- Exclude checks
Variable "nbr_affected_rows" is not in valid camel caps format Open
Open
Database::query("UPDATE $tbl_session SET nbr_courses=nbr_courses-$nbr_affected_rows WHERE id='$id_session'");
- Exclude checks
Variable "tbl_session_rel_class" is not in valid camel caps format Open
Open
$result = Database::query("DELETE FROM $tbl_session_rel_class WHERE session_id='$id_session' AND class_id=".intval($_GET['class']));
- Exclude checks
Variable "id_session" is not in valid camel caps format Open
Open
Database::query("UPDATE $tbl_session SET nbr_users=nbr_users-$nbr_affected_rows WHERE id='$id_session'");
- Exclude checks
Variable "tbl_session_rel_course_rel_user" is not in valid camel caps format Open
Open
$result = Database::query("DELETE FROM $tbl_session_rel_course_rel_user WHERE session_id ='$id_session' AND user_id=".intval($_GET['user']));
- Exclude checks
Variable "tbl_session_rel_user" is not in valid camel caps format Open
Open
INNER JOIN $tbl_session_rel_user su
- Exclude checks
Variable "tbl_session_rel_user" is not in valid camel caps format Open
Open
INNER JOIN $tbl_session_rel_user su
- Exclude checks
Variable "nbr_affected_rows" is not in valid camel caps format Open
Open
$nbr_affected_rows = Database::affected_rows($result);
- Exclude checks
Variable "multiple_url_is_on" is not in valid camel caps format Open
Open
if ($multiple_url_is_on) {
- Exclude checks
Variable "tbl_user" is not in valid camel caps format Open
Open
FROM $tbl_user u
- Exclude checks
Variable "order_clause" is not in valid camel caps format Open
Open
$order_clause";
- Exclude checks
Variable "user_link" is not in valid camel caps format Open
Open
'.$user_link.'
- Exclude checks
Variable "user_info" is not in valid camel caps format Open
Open
$user_info['firstname'],
- Exclude checks
Variable "id_session" is not in valid camel caps format Open
Open
$result = Database::query("DELETE FROM $tbl_session_rel_user WHERE relation_type = ".Session::STUDENT." AND session_id ='$id_session' AND user_id=".intval($_GET['user']));
- Exclude checks
Variable "url_data" is not in valid camel caps format Open
Open
echo $url_data['url'].'<br />';
- Exclude checks
Variable "id_session" is not in valid camel caps format Open
Open
WHERE u.active <> ".USER_SOFT_DELETED." AND su.session_id = $id_session AND (access_url_id = $url_id OR access_url_id is null )
- Exclude checks
Closing brace indented incorrectly; expected 0 spaces, found 4 Open
Open
}
- Exclude checks
Variable "my_temp" is not in valid camel caps format Open
Open
$my_temp = [];
- Exclude checks
Variable "my_temp" is not in valid camel caps format Open
Open
$idChecked = $my_temp;
- Exclude checks
Variable "nbr_affected_rows" is not in valid camel caps format Open
Open
Database::query("UPDATE $tbl_session SET nbr_users=nbr_users-$nbr_affected_rows WHERE id='$id_session'");
- Exclude checks
Variable "tbl_session" is not in valid camel caps format Open
Open
Database::query("UPDATE $tbl_session SET nbr_classes=nbr_classes-$nbr_affected_rows WHERE id='$id_session'");
- Exclude checks
Variable "nbr_affected_rows" is not in valid camel caps format Open
Open
$nbr_affected_rows = Database::affected_rows($result);
- Exclude checks
Variable "order_clause" is not in valid camel caps format Open
Open
AND su.session_id = ".$id_session." WHERE u.active <> ".USER_SOFT_DELETED.$order_clause;
- Exclude checks
Variable "link_to_add_user_in_url" is not in valid camel caps format Open
Open
'.$link_to_add_user_in_url.'
- Exclude checks
Variable "url_id" is not in valid camel caps format Open
Open
$result = UrlManager::add_user_to_url($user_id, $url_id);
- Exclude checks
Variable "tbl_session_rel_course" is not in valid camel caps format Open
Open
$result = Database::query("DELETE FROM $tbl_session_rel_course WHERE session_id='$id_session' AND c_id IN($idChecked)");
- Exclude checks
Variable "tbl_session_rel_course_rel_user" is not in valid camel caps format Open
Open
Database::query("DELETE FROM $tbl_session_rel_course_rel_user WHERE session_id='$id_session' AND c_id IN($idChecked)");
- Exclude checks
Variable "tbl_session_rel_course" is not in valid camel caps format Open
Open
Database::query("UPDATE $tbl_session_rel_course SET nbr_users=nbr_users-$nbr_affected_rows WHERE session_id ='$id_session'");
- Exclude checks
Variable "nbr_affected_rows" is not in valid camel caps format Open
Open
Database::query("UPDATE $tbl_session_rel_course SET nbr_users=nbr_users-$nbr_affected_rows WHERE session_id ='$id_session'");
- Exclude checks
Variable "url_data" is not in valid camel caps format Open
Open
foreach ($url_list as $url_data) {
- Exclude checks
Variable "tbl_user" is not in valid camel caps format Open
Open
FROM $tbl_user u
- Exclude checks
Variable "tbl_session_rel_user" is not in valid camel caps format Open
Open
$result = Database::query("DELETE FROM $tbl_session_rel_user WHERE relation_type = ".Session::STUDENT." AND session_id ='$id_session' AND user_id=".intval($_GET['user']));
- Exclude checks
Variable "nbr_affected_rows" is not in valid camel caps format Open
Open
$nbr_affected_rows = Database::affected_rows($result);
- Exclude checks
Variable "id_session" is not in valid camel caps format Open
Open
Database::query("UPDATE $tbl_session_rel_course SET nbr_users=nbr_users-$nbr_affected_rows WHERE session_id ='$id_session'");
- Exclude checks
Variable "table_access_url_user" is not in valid camel caps format Open
Open
LEFT OUTER JOIN $table_access_url_user uu ON (uu.user_id = u.id)
- Exclude checks
Variable "id_session" is not in valid camel caps format Open
Open
AND su.session_id = ".$id_session." WHERE u.active <> ".USER_SOFT_DELETED.$order_clause;
- Exclude checks
Variable "nbr_affected_rows" is not in valid camel caps format Open
Open
Database::query("UPDATE $tbl_session SET nbr_classes=nbr_classes-$nbr_affected_rows WHERE id='$id_session'");
- Exclude checks
Variable "multiple_url_is_on" is not in valid camel caps format Open
Open
$multiple_url_is_on = api_get_multiple_access_url();
- Exclude checks
Variable "link_to_add_user_in_url" is not in valid camel caps format Open
Open
$link_to_add_user_in_url = '<a href="resume_session.php?action=add_user_to_url&id_session='.$id_session.'&user_id='.$user['user_id'].'">'.$add.'</a>';
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$user_info = api_get_user_info($user_id);
- Exclude checks
Variable "id_session" is not in valid camel caps format Open
Open
Database::query("UPDATE $tbl_session SET nbr_courses=nbr_courses-$nbr_affected_rows WHERE id='$id_session'");
- 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' : ' ORDER BY lastname, firstname';
- Exclude checks
Variable "multiple_url_is_on" is not in valid camel caps format Open
Open
if ($multiple_url_is_on) {
- Exclude checks
Variable "orig_param" is not in valid camel caps format Open
Open
$orig_param = '&origin=resume_session&id_session='.$id_session;
- Exclude checks
Variable "id_session" is not in valid camel caps format Open
Open
$orig_param = '&origin=resume_session&id_session='.$id_session;
- Exclude checks
Variable "user_link" is not in valid camel caps format Open
Open
$user_link = '';
- Exclude checks
Variable "user_link" is not in valid camel caps format Open
Open
$user_link .= ' '.Display::getMdiIcon('alert', 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Users not added to the URL'));
- Exclude checks
Variable "id_session" is not in valid camel caps format Open
Open
<a href="'.api_get_self().'?id_session='.$id_session.'&action=delete&user='.$user['user_id'].'" onclick="javascript:if(!confirm(\''.get_lang('Please confirm your choice').'\')) return false;">'.
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 4 Open
Open
}
- Exclude checks
Expected 0 spaces before closing bracket; newline found Open
Open
Display::getMdiIcon('google-classroom', 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Session')
- Exclude checks
Closing brace indented incorrectly; expected 0 spaces, found 4 Open
Open
}
- Exclude checks