public/main/my_space/user_import.php
Variable "id_session" is not in valid camel caps format Open
Open
$id_session = intval($_POST['id_session']);
- Exclude checks
Variable "course_list" is not in valid camel caps format Open
Open
$course_list = [];
- Exclude checks
Variable "error_message" is not in valid camel caps format Open
Open
$error_message .= api_get_person_name($error_user['FirstName'], $error_user['LastName']);
- Exclude checks
Variable "error_user" is not in valid camel caps format Open
Open
$error_message .= api_get_person_name($error_user['FirstName'], $error_user['LastName']);
- Exclude checks
Variable "purification_option_for_usernames" is not in valid camel caps format Open
Open
$purification_option_for_usernames = false;
- Exclude checks
Variable "course_list" is not in valid camel caps format Open
Open
$users = MySpace::check_all_usernames($users, $course_list, $id_session);
- Exclude checks
Variable "tool_name" is not in valid camel caps format Open
Open
Display::display_header($tool_name);
- Exclude checks
Variable "error_user" is not in valid camel caps format Open
Open
$error_message .= api_get_person_name($error_user['FirstName'], $error_user['LastName']);
- Exclude checks
Variable "allowed_file_types" is not in valid camel caps format Open
Open
$form->addRule('import_file', get_lang('Invalid extension').' ('.implode(',', $allowed_file_types).')', 'filetype', $allowed_file_types);
- Exclude checks
Variable "file_type" is not in valid camel caps format Open
Open
$file_type = $_POST['file_type'];
- Exclude checks
Variable "file_type" is not in valid camel caps format Open
Open
if ('csv' === $file_type) {
- Exclude checks
Variable "course_list" is not in valid camel caps format Open
Open
$course_list[] = $row['c_id'];
- Exclude checks
Variable "id_session" is not in valid camel caps format Open
Open
header('Location: course.php?id_session='.$id_session);
- Exclude checks
Variable "error_message" is not in valid camel caps format Open
Open
$error_message = '<ul>';
- Exclude checks
Variable "id_session" is not in valid camel caps format Open
Open
$id_session = '';
- Exclude checks
Variable "id_session" is not in valid camel caps format Open
Open
$id_session = intval($_GET['id_session']);
- Exclude checks
Variable "id_session" is not in valid camel caps format Open
Open
$interbreadcrumb[] = ['url' => 'course.php?id_session='.$id_session.'', 'name' => get_lang('Course')];
- Exclude checks
Variable "error_user" is not in valid camel caps format Open
Open
foreach ($errors as $index => $error_user) {
- Exclude checks
Variable "allowed_file_types" is not in valid camel caps format Open
Open
$allowed_file_types = ['xml', 'csv'];
- Exclude checks
Variable "id_session" is not in valid camel caps format Open
Open
$id_session = intval($_REQUEST['id_session']);
- Exclude checks
Variable "tbl_session_rel_course" is not in valid camel caps format Open
Open
$sql = "SELECT c_id FROM $tbl_session_rel_course WHERE session_id ='$id_session'";
- 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 "tool_name" is not in valid camel caps format Open
Open
$tool_name = get_lang('Import users list');
- Exclude checks
Variable "id_session" is not in valid camel caps format Open
Open
if (!empty($id_session)) {
- Exclude checks
Variable "id_session" is not in valid camel caps format Open
Open
MySpace::save_data($users, $course_list, $id_session);
- Exclude checks
Variable "id_session" is not in valid camel caps format Open
Open
$form->addElement('hidden', 'id_session', $id_session);
- Exclude checks
Variable "id_session" is not in valid camel caps format Open
Open
$sql = "SELECT c_id FROM $tbl_session_rel_course WHERE session_id ='$id_session'";
- Exclude checks
Variable "error_message" is not in valid camel caps format Open
Open
echo Display::return_message($error_message, 'error', false);
- Exclude checks
Variable "allowed_file_types" is not in valid camel caps format Open
Open
$form->addRule('import_file', get_lang('Invalid extension').' ('.implode(',', $allowed_file_types).')', 'filetype', $allowed_file_types);
- Exclude checks
Variable "id_session" is not in valid camel caps format Open
Open
$users = MySpace::check_all_usernames($users, $course_list, $id_session);
- Exclude checks
Variable "course_list" is not in valid camel caps format Open
Open
MySpace::save_data($users, $course_list, $id_session);
- Exclude checks
Variable "id_session" is not in valid camel caps format Open
Open
header('Location: course.php?id_session='.$id_session);
- Exclude checks
Variable "error_user" is not in valid camel caps format Open
Open
$error_message .= '<li><strong>'.$error_user['error'].'</strong>: ';
- Exclude checks
Variable "error_message" is not in valid camel caps format Open
Open
$error_message .= '</ul>';
- Exclude checks
Variable "this_section" is not in valid camel caps format Open
Open
$this_section = SECTION_PLATFORM_ADMIN; // TODO: Platform admin section?
- Exclude checks
Variable "error_message" is not in valid camel caps format Open
Open
$error_message .= '<li><strong>'.$error_user['error'].'</strong>: ';
- Exclude checks
Variable "error_message" is not in valid camel caps format Open
Open
$error_message .= '</li>';
- Exclude checks
Variable "id_session" is not in valid camel caps format Open
Open
$session = api_get_session_entity($id_session);
- Exclude checks