ILIAS
release_4-4 Revision
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
+
Files
File List
+
Globals
+
All
$
(
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
x
+
Variables
$
(
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
cron.php
Go to the documentation of this file.
1
<?php
2
chdir(dirname(__FILE__));
3
chdir(
'..'
);
4
5
include_once
"Services/Context/classes/class.ilContext.php"
;
6
ilContext::init
(
ilContext::CONTEXT_CRON
);
7
8
include_once
'Services/Authentication/classes/class.ilAuthFactory.php'
;
9
ilAuthFactory::setContext
(
ilAuthFactory::CONTEXT_CRON
);
10
11
$_COOKIE
[
"ilClientId"
] = $_SERVER[
'argv'
][3];
12
$_POST
[
'username'
] = $_SERVER[
'argv'
][1];
13
$_POST
[
'password'
] = $_SERVER[
'argv'
][2];
14
15
if
($_SERVER[
'argc'
] < 4)
16
{
17
die(
"Usage: cron.php username password client\n"
);
18
}
19
20
include_once
'./include/inc.header.php'
;
21
22
// Start checks here
23
include_once
'./cron/classes/class.ilCronCheck.php'
;
24
$cron_check
=
new
ilCronCheck
();
25
$cron_check
->start();
26
27
include_once
'./Services/Cron/classes/class.ilCronManager.php'
;
28
ilCronManager::runActiveJobs
();
29
30
?>
ilCronManager\runActiveJobs
static runActiveJobs()
Run all active jobs.
Definition:
class.ilCronManager.php:16
$_POST
$_POST['username']
Definition:
cron.php:12
ilContext\CONTEXT_CRON
const CONTEXT_CRON
Definition:
class.ilContext.php:19
$_COOKIE
$_COOKIE["ilClientId"]
Definition:
cron.php:11
ilCronCheck
Definition:
class.ilCronCheck.php:34
ilAuthFactory\setContext
static setContext($a_context)
set context
Definition:
class.ilAuthFactory.php:106
ilAuthFactory\CONTEXT_CRON
const CONTEXT_CRON
Definition:
class.ilAuthFactory.php:42
ilContext\init
static init($a_type)
Init context by type.
Definition:
class.ilContext.php:38
$cron_check
$cron_check
Definition:
cron.php:24
cron
cron.php
Generated on Mon Dec 21 2020 19:00:59 for ILIAS by
1.8.13 (using
Doxyfile
)