-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.php
57 lines (55 loc) · 1.81 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
$config = (object) array(
"db" => (object) array(
"host" => "localhost",
"database" => "franceioi",
"user" => "",
"password" => "",
"logged" => false
),
"baseUrl" => "http://example.com/",
"getTaskUrl" => function($taskId) { return 'http://example.com/task.html?taskId='.$taskId; },
"platform" => (object) array(
"name" => "tasks.pem.dev",
"private_key" => "the private key to generate grader tokens",
"public_key" => "the corresponding public key (to give to platforms)"
),
"graderqueue" => (object) array(
"url" => "complete/url/to/api.php",
"own_name" => "tasks.pem.dev",
"own_private_key" => "the private key to communicate graderqueue",
"own_public_key" => "the corresponding public key",
"name" => "graderqueue.pem.dev",
"public_key" => "the public key of the graderqueue",
"default_eval_tags" => '',
"debug" => ''
),
"sync" => (object) array(
"server" => "",
"params" => (object) array( ),
"useTransaction" => true,
"maxChanges" => 20000,
),
"testMode" => (object) array(
"idUser" => "1",
"task_sTextID" => "exampleTextID",
"platformName" => "http://algorea.pem.dev",
"bAccessSolutions" => "0",
"nbHintsGiven" => "0",
"defaultTaskId" => "1",
"active" => true
),
"shared" => (object) array(
"evalResultOutputScriptBaseUrl" => "http://example.com/evalScripts/",
"assetsUrl" => "http://example.com/",
"requireJSurlArgs" => "",
"defaultLocale" => "fr_fr",
"transloadit" => (object) array(
"key" => "XXX",
"template_id" => "XXX"
)
)
);
if (is_readable(__DIR__.'/config_local.php')) {
include_once __DIR__.'/config_local.php';
}