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/main/admin/inactive_user_list.php

35 lines
1.0 KiB

<?php
/* For licensing terms, see /license.txt */
/**
@author Andre Boivin base code
@author Julio Montoya fixing lot of little details
@todo this script is not ready for a production use that's why
I'm commenting the function delete_inactive_student
* @package chamilo.admin
* script pour effacer les user inactif depuis x temps
*/
$cidReset = true;
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
api_protect_admin_script(true);
/**
* Make sure this function is protected because it does NOT check password!
*
*/
Display :: display_header($tool_name);
//On sélectionne les user élèves
$sql = "SELECT user_id FROM ".$table_user." user WHERE user.status= '5' ORDER by lastname ";
$result = Database::query($sql);
while ($row = Database::fetch_array($result)) {
$user_id = $row['user_id'];
// pour chaque élève, on trouve la dernière connexion
//$last_connection_date = UserManager:: delete_inactive_student($user_id, 2, true);
}
Display :: display_footer();