chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

$id_session = $_POST['id_session'];

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

} elseif (!empty($annee) && empty($id_session)) {

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

            $email_form[] = $info[$key]["mail"][0];

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

        reset($nom_form);

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

    $ds = ldap_connect($ldap_host, $ldap_port) or exit(get_lang('LDAP Connection Error'));

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

    $ds = ldap_connect($ldap_host, $ldap_port) or exit(get_lang('LDAP Connection Error'));

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

    $userid_match_login = [];

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

        if (is_array($_POST['checkboxes']) && in_array($form_index, array_values($_POST['checkboxes']))) {

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

            $userid_match_login[$tmp] = $user_id;

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

    foreach ($id as $form_index => $user_id) {

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

            $userid_match_login[$tmp] = $user_id;

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

    $tbl_session = Database::get_main_table(TABLE_MAIN_SESSION);

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

    Display::display_header($tool_name);

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

if (empty($annee) && empty($id_session)) {

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

        " FROM $tbl_session ".

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

            $username_form[] = $info[$key]['uid'][0];

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

            $tmp = ldap_add_user($user_id);

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

$annee_base = date('Y');

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

elseif (!empty($annee) && !empty($id_session) && empty($_POST['confirmed'])) {

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

        $sr = @ldap_search($ds, $ldap_basedn, "(ou=*$annee)");

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

            $nom_form[] = $info[$key]["sn"][0];

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

    $UserList = [];

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

    foreach ($id as $form_index => $user_id) {

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

$tool_name = get_lang('LDAP Import');

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

        foreach ($UserList as $user_id) {

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

    Display::display_header($tool_name);

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

    $nbr_results = count($sessions);

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

    Display::display_header($tool_name);

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

            $password_form[] = $info[$key]['userPassword'][0];

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

} elseif (!empty($annee) && !empty($id_session) && ('yes' == $_POST['confirmed'])) {

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

    echo '<input  type="text" name="annee" size="4" maxlength="30" value="'.$annee_base.'"> ';

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

            $prenom_form[] = $info[$key]["givenname"][0];

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

            $UserList[] = $tmp;

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

            if (false !== $res_user) {

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

        $tbl_session = Database::get_main_table(TABLE_MAIN_SESSION);

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

        $tbl_session_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

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

                    'session_id' => intval($id_session),

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

            $sql = 'UPDATE '.$tbl_session.' SET nbr_users = (nbr_users + '.$num.') WHERE id = '.intval($id_session);

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

$this_section = SECTION_PLATFORM_ADMIN;

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

        asort($nom_form);

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

                    'user_id' => intval($user_id),

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

            $sql = 'UPDATE '.$tbl_session.' SET nbr_users = (nbr_users + '.$num.') WHERE id = '.intval($id_session);

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

        Display::display_header($tool_name);

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

        foreach ($UserList as $user_id) {

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

            $res_user = Database::insert(

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

                $tbl_session_user,

Expected 1 space after closing brace; newline found
Open

}

There are no issues that match your filters.

Category
Status