4include_once 
"Services/Cron/classes/class.ilCronJob.php";
 
   20        return "user_check_accounts";
 
   27        return $lng->txt(
"check_user_accounts");
 
   34        return $lng->txt(
"check_user_accounts_desc");
 
   64        $two_weeks_in_seconds = $now + (60 * 60 * 24 * 14); 
 
   67        $query = 
"SELECT * FROM usr_data,usr_pref " .
 
   68            "WHERE time_limit_message = '0' " .
 
   69            "AND time_limit_unlimited = '0' " .
 
   70            "AND time_limit_from < " . 
$ilDB->quote($now, 
"integer") . 
" " .
 
   71            "AND time_limit_until > " . 
$ilDB->quote($now, 
"integer") . 
" " .
 
   72            "AND time_limit_until < " . 
$ilDB->quote($two_weeks_in_seconds, 
"integer") . 
" " .
 
   73            "AND usr_data.usr_id = usr_pref.usr_id " .
 
   74            "AND keyword = " . 
$ilDB->quote(
"language", 
"text");
 
   79        $senderFactory = 
$GLOBALS[
"DIC"][
"mail.mime.sender.factory"];
 
   80        $sender        = $senderFactory->system();
 
   83            include_once 
'Services/Mail/classes/class.ilMimeMail.php';
 
   85            $data[
'expires'] = 
$row->time_limit_until;
 
   96            $mail->To(
$data[
'email']);
 
   97            $mail->Subject($this->
txt(
$data[
'language'], 
'account_expires_subject'), 
true);
 
   98            $mail->Body($this->
txt(
$data[
'language'], 
'account_expires_body') . 
" " . strftime(
'%Y-%m-%d %R', 
$data[
'expires']));
 
  102            $query = 
"UPDATE usr_data SET time_limit_message = '1' WHERE usr_id = '" . 
$data[
'usr_id'] . 
"'";
 
  106            $ilLog->write(
'Cron: (checkUserAccounts()) sent message to ' . 
$data[
'login'] . 
'.');
 
  113        if ($this->counter) {
 
  124        include_once 
'Services/Language/classes/class.ilLanguage.php';
 
  132        require_once 
'Services/Registration/classes/class.ilRegistrationSettings.php';
 
  135        $query = 
'SELECT usr_id FROM usr_data ' 
  136               . 
'WHERE reg_hash IS NOT NULL ' 
  138               . 
'AND create_date < %s';
 
  141            array(
'integer', 
'timestamp'),
 
  142            array(0, 
date(
'Y-m-d H:i:s', time() - (
int) $oRegSettigs->getRegistrationHashLifetime()))
 
  147            $ilLog->write(
'Cron: Deleted ' . $oUser->getLogin() . 
' [' . $oUser->getId() . 
'] ' . __METHOD__);
 
date( 'd-M-Y', $objPHPExcel->getProperties() ->getCreated())
An exception for terminatinating execution or to throw for unit testing.
Cron job result data container.
Cron job application base class.
const SCHEDULE_TYPE_DAILY
static _lookupEntry($a_lang_key, $a_mod, $a_id)
static getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id
Class ilObjAuthSettingsGUI.
txt($language, $key, $module='common')
hasAutoActivation()
Is to be activated on "installation".
getDefaultScheduleValue()
Get schedule value.
getDescription()
Get description.
checkNotConfirmedUserAccounts()
hasFlexibleSchedule()
Can the schedule be configured?
getDefaultScheduleType()
Get schedule type.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
if($modEnd===false) $module
foreach($_POST as $key=> $value) $res