50 $this->oTwig = lib_twig_box::getInstance();
52 $this->cj_time = time();
54 $cronjob_ini = LEPTON_PATH.
"/config/cronjob.ini.php";
55 $this->cj_array = parse_ini_file($cronjob_ini,
true);
58 $this->cj_path = $this->cj_array[
'file_info'][
'path'];
59 $this->cj_file = $this->cj_array[
'file_info'][
'file'];
60 $this->cj_key = $this->cj_array[
'file_info'][
'key'];
61 $this->cj_interval = $this->cj_array[
'file_info'][
'interval'];
63 if(!isset($_SESSION[
'last_cronjob']))
65 $_SESSION[
'last_cronjob'] = $_SESSION[
'SESSION_STARTED'] - ($this->cj_interval +1);
68 if(strlen($this->cj_key) < AUTH_MIN_PASS_LENGTH)
70 die (
LEPTON_tools::display(
'NOT allowed: key must have a min of chars ("AUTH_MIN_PASS_LENGTH") in cronjob.ini.php',
'pre',
'ui red message'));
73 if(!file_exists(LEPTON_PATH.$this->cj_path.$this->cj_file) )
75 die (
LEPTON_tools::display(
'You have to specify a correct file in cronjob.ini.php to use this class!',
'pre',
'ui red message'));