Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/tests/scripts/check_users_in_csv_file.php

16 lines
377 B

<?php
/* For licensing terms, see /license.txt */
exit;
require_once __DIR__.'/../inc/global.inc.php';
api_protect_admin_script();
$file = '';
$users = Import :: csvToArray($file);
foreach ($users as $user) {
$userInfo = api_get_user_info_from_email($user['Email']);
if (empty($userInfo)) {
echo 'User does not exists: '.$userInfo['Email'].'<br />';
}
}