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.
39 lines
1.1 KiB
39 lines
1.1 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
|
|
*/
|
|
|
|
// name of the language file that needs to be included
|
|
$language_file = array ('registration','admin');
|
|
$cidReset = true;
|
|
require_once '../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!
|
|
*
|
|
*/
|
|
|
|
/** INIT SECTION
|
|
*/
|
|
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();
|
|
|