-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.php
63 lines (54 loc) · 1.67 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
58
59
60
61
62
63
<?php
// handler/database.php also needs editing in order to get this to work
$config = [];
// Name of app
$config['App Name'] = "Departments";
// Debug
$config['Debug'] = false;
// Domain
$config['Domain'] = "https://my.website";
// Steam API Key
$config['SteamAPI Key'] = "STEAMAPIKEY";
// How many rows to show on the roster per page
$config['Rows Per Page'] = 20;
// Max days someone can be given a tag that expires (LOA for example)
$config['Tag Expire Max Length'] = 30;
// Usergroups with admin perms
$config['Admin Groups'] = ['superadmin' => true, 'developer' => true];
// The colors used for the events in the Calendar
$config['Calendar'] = ['#B03060', '#FE9A76', '#FFD700', '#32CD32', '#016936', '#008080', '#0E6EB8', '#EE82EE', '#B413EC', '#FF1493', '#A52A2A', '#A0A0A0'];
// Viewability types
$config['Viewability'] = [
'anyone' => [
'id' => "anyone",
'name' => "Anyone",
'check' => function($userID, $depID) {
return true;
}
],
'member' => [
'id' => "member",
'name' => "Department Member",
'check' => function($userID, $depID) {
$user = new User($userID);
$dep = new Department($depID);
if ($dep->GetMember($userID)) {
return true;
}
return false;
}
],
'higher-up' => [
'id' => "higher-up",
'name' => "Department Higher-Up",
'check' => function($userID, $depID) {
$user = new User($userID);
$dep = new Department($depID);
if ($dep->IsHigherUp($userID)) {
return true;
}
return false;
}
]
];
return $config;