check_users_in_csv_file.php 377 B

12345678910111213141516
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. exit;
  4. require_once __DIR__.'/../inc/global.inc.php';
  5. api_protect_admin_script();
  6. $file = '';
  7. $users = Import :: csvToArray($file);
  8. foreach ($users as $user) {
  9. $userInfo = api_get_user_info_from_email($user['Email']);
  10. if (empty($userInfo)) {
  11. echo 'User does not exists: '.$userInfo['Email'].'<br />';
  12. }
  13. }