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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
|
<?php
/**
* config.inc.php
*
* Configuration file for studip. In this file you can change the options of many
* Stud.IP Settings.
* Please note: To setup the system, you have to set the basic settings in the
* config_local.inc.php in the same directory first.
*
* @access public
* @package studip_core
* @modulegroup library
* @module config.inc.php
*/
// +---------------------------------------------------------------------------+
// This file is part of Stud.IP
// functions.php
// Stud.IP Kernfunktionen
// Copyright (C) 2002 Cornelis Kater <ckater@gwdg.de>, Suchi & Berg GmbH <info@data-quest.de>,
// Ralf Stockmann <rstockm@gwdg.de>, André Noack André Noack <andre.noack@gmx.net>
// +---------------------------------------------------------------------------+
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or any later version.
// +---------------------------------------------------------------------------+
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// +---------------------------------------------------------------------------+
global
$INST_ADMIN_DATAFIELDS_VIEW,
$INST_MODULES,
$INST_TYPE,
$NAME_FORMAT_DESC,
$PERS_TERMIN_KAT,
$SCM_PRESET,
$SYMBOL_SHORT,
$TERMIN_TYP,
$TITLE_FRONT_TEMPLATE,
$TITLE_REAR_TEMPLATE,
$UNI_CONTACT,
$UNI_INFO,
$UNI_LOGIN_ADD,
$UNI_LOGOUT_ADD,
$UNI_URL,
$UPLOAD_TYPES,
$SEM_TREE_TYPES,
$NOT_HIDEABLE_FIELDS,
$TEILNEHMER_IMPORT_DATAFIELDS,
$DEFAULT_TITLE_FOR_STATUS;
/*basic settings for Stud.IP
----------------------------------------------------------------
you find here the indivdual settings for your installation.
! for the basic system settings, please edit the file config_local.inc.php in the same folder !*/
//Some more basic data
//Note: The the clean-name of your institution ($UNI_NAME_CLEAN) is stored in the config_local.inc.php
$UNI_URL = "http://www.studip.de";
$UNI_LOGIN_ADD='';
$UNI_LOGOUT_ADD=sprintf(_("Und hier geht's zur %sStud.IP Portalseite%s "), "<a href=\"http://www.studip.de\"><b>", "</b></a>");
$UNI_CONTACT = "<please insert your general contact mail-adress here>";
$UNI_INFO = "Stud.IP 5.5 - Studienbegleitender Internetsupport von Präsenzlehre";
/* $SEM_CLASS and $SEM_TYPE configuration moved to database
=> Admin/Global settings/Course categories
----------------------------------------------------------------*/
// define default names for status groups
$DEFAULT_TITLE_FOR_STATUS = array(
'dozent' => array(_('Lehrende'), _('Lehrende')),
'deputy' => array(_('Vertretung'), _('Vertretungen')),
'tutor' => array(_('Tutor/-in'), _('Tutor/-innen')),
'autor' => array(_('Studierende'), _('Studierende')),
'user' => array(_('Leser/-in'), _('Leser/-innen')),
'accepted' => array(_('Vorläufig akzeptierte Person'),
_('Vorläufig akzeptierte Personen')));
/*
possible types of sem_tree ("Veranstaltungshierarchie") types
the "editable" flag could be used to prevent modifications, e.g. imported data
the "hidden" flag could be used to hide entries that are no longer in use
*/
$SEM_TREE_TYPES[0] = array("name" => "", "editable" => true); //default type, must be present
//$SEM_TREE_TYPES[1] = array("name" => _("Studienmodul") , "editable" => true);
/* Set the allowed and prohibited file types for the types given above.
* If nothing is configured for a specific type, the values of the "default" setting are taken.
*
* "type"=>"deny" means: only the listed "file_types" are allowed
* "type"=>"allow" means: all, but the listed "file_types" are allowed
*
* "file_sizes" determines how much each user class can upload per file (multiple of 1 MB = 1048576 Bytes)
*/
$UPLOAD_TYPES=array( "default" =>
array( "type"=>"allow",
"file_types" => array ("exe"),
"file_sizes" => array ( "root" => 250 * 1048576,
"admin" => 250 * 1048576,
"dozent" => 100 * 1048576,
"tutor" => 50 * 1048576,
"autor" => 50 * 1048576,
"nobody" => 1 * 1048576
)
),
// rules for futher course-types can be added below (please adhere exactly to the structure given above)
);
/* Set the allowed and prohibited file types for mail attachments (if activated by ENABLE_MAIL_ATTACHMENTS).
*
* "type"=>"deny" means: only the listed "file_types" are allowed
* "type"=>"allow" means: all, but the listed "file_types" are allowed
*
* "file_sizes" determines how much each user class can upload per file (multiple of 1 MB = 1048576 Bytes)
*/
$UPLOAD_TYPES["attachments"] =
array( "type" => "allow",
"file_types" => array ("exe"),
"file_sizes" => array ( "root" => 7 * 1048576,
"admin" => 7 * 1048576,
"dozent" => 7 * 1048576,
"tutor" => 7 * 1048576,
"autor" => 7 * 1048576,
"nobody" => 1.38 * 1048576
)
);
/* Set the allowed and prohibited file types for personal files (like in blubber-upload).
*
* "type"=>"deny" means: only the listed "file_types" are allowed
* "type"=>"allow" means: all, but the listed "file_types" are allowed
*
* "file_sizes" determines how much each user class can upload per file (multiple of 1 MB = 1048576 Bytes)
*/
$UPLOAD_TYPES["personalfiles"] =
array( "type" => "allow",
"file_types" => array ("exe"),
"file_sizes" => array ( "root" => 250 * 1048576,
"admin" => 250 * 1048576,
"dozent" => 100 * 1048576,
"tutor" => 50 * 1048576,
"autor" => 50 * 1048576,
"nobody" => 0
)
);
/*
* set allowed designations of institutes / divisions / administrative units
*/
$INST_TYPE[1]=array("name"=>_("Einrichtung"));
$INST_TYPE[2]=array("name"=>_("Zentrum"));
$INST_TYPE[3]=array("name"=>_("Lehrstuhl"));
$INST_TYPE[4]=array("name"=>_("Abteilung"));
$INST_TYPE[5]=array("name"=>_("Fachbereich"));
$INST_TYPE[6]=array("name"=>_("Seminar"));
$INST_TYPE[7]=array("name"=>_("Fakultät"));
$INST_TYPE[8]=array("name"=>_("Arbeitsgruppe"));
// ...can be continued accordingly
//define the used modules for instiutes
$INST_MODULES["default"] = array(
"forum"=>TRUE, //forum, this module is stud_ip core; always available
"documents"=>TRUE, //documents, this module is stud_ip core; always available
"personal"=>TRUE, //personal, this module is stud_ip core; always available
"literature"=>FALSE, //literature, this module is stud_ip core; always available
"scm"=>FALSE, //simple content module, this modul is stud_ip core; always available
"wiki"=>FALSE, //wikiwiki-web, this module is stud_ip core; always available
);
//you can add more specific presets for the different types
// Set presets for course appointment types
/*
* The first array element is used for the designation of regular meetings and will be labeled
* accordingly in the schedule.
* The second array element is always used to denominate preliminary discussions.
* Both names can be chosen freely.
* The appointment types marked as "sitzung"=>1 are shown in the course creation assistent and
* while editing dates as templates for the description of regular turnus meetings.
*/
$TERMIN_TYP[1]=array("name"=>_("Sitzung"), "sitzung"=>1);
$TERMIN_TYP[2]=array("name"=>_("Vorbesprechung"), "sitzung"=>0);
$TERMIN_TYP[3]=array("name"=>_("Klausur"), "sitzung"=>0);
$TERMIN_TYP[4]=array("name"=>_("Exkursion"), "sitzung"=>0);
$TERMIN_TYP[5]=array("name"=>_("anderer Termin"), "sitzung"=>0);
$TERMIN_TYP[6]=array("name"=>_("Sondersitzung"), "sitzung"=>0);
$TERMIN_TYP[7]=array("name"=>_("Vorlesung"), "sitzung"=>1);
// more types can be added here
//Configuration for the date categories in the personal calendar:
$PERS_TERMIN_KAT = [
'1' => [
'name' => _('Sonstiges'),
'border_color' => '#682C8B',
'bgcolor' => '#682C8B',
'fgcolor' => '#ffffff'
],
'2' => [
'name' => _('Sitzung'),
'border_color' => '#B02E7C',
'bgcolor' => '#B02E7C',
'fgcolor' => '#000000'
],
'3' => [
'name' => _('Vorbesprechung'),
'border_color' => '#D60000',
'bgcolor' => '#D60000',
'fgcolor' => '#ffffff'
],
'4' => [
'name' => _('Klausur'),
'border_color' => '#F26E00',
'bgcolor' => '#F26E00',
'fgcolor' => '#000000'
],
'5' => [
'name' => _('Exkursion'),
'border_color' => '#FFBD33',
'bgcolor' => '#FFBD33',
'fgcolor' => '#000000'
],
'6' => [
'name' => _('Sondersitzung'),
'border_color' => '#6EAD10',
'bgcolor' => '#6EAD10',
'fgcolor' => '#000000'
],
'7' => [
'name' => _('Prüfung'),
'border_color' => '#008512',
'bgcolor' => '#008512',
'fgcolor' => '#000000'
],
'8' => [
'name' => _('Telefonat'),
'border_color' => '#129C94',
'bgcolor' => '#129C94',
'fgcolor' => '#000000'
],
'9' => [
'name' => _('Besprechung'),
'border_color' => '#A85D45',
'bgcolor' => '#A85D45',
'fgcolor' => '#000000'
],
'10' => [
'name' => _('Verabredung'),
'border_color' => '#A480B9',
'bgcolor' => '#A480B9',
'fgcolor' => '#000000'
],
'11' => [
'name' => _('Geburtstag'),
'border_color' => '#D082B0',
'bgcolor' => '#D082B0',
'fgcolor' => '#000000'
],
'12' => [
'name' => _('Familie'),
'border_color' => '#E76666',
'bgcolor' => '#E76666',
'fgcolor' => '#000000'
],
'13' => [
'name' => _('Urlaub'),
'border_color' => '#F7A866',
'bgcolor' => '#F7A866',
'fgcolor' => '#000000'
],
'14' => [
'name' => _('Reise'),
'border_color' => '#FFD785',
'bgcolor' => '#FFD785',
'fgcolor' => '#000000'
],
'15' => [
'name' => _('Vorlesung'),
'border_color' => '#A8CE70',
'bgcolor' => '#A8CE70',
'fgcolor' => '#000000'
],
'16' => [
'name' => _('Videokonferenz'),
'border_color' => '#8bbd40',
'bgcolor' => '#8bbd40',
'fgcolor' => '#000000'
]
//More categories can be added here.
];
//preset for academic titles - add further titles to the array, if necessary
$TITLE_FRONT_TEMPLATE = array("","Prof.","Prof. Dr.","Dr.","PD Dr.","Dr. des.","Dr. med.","Dr. rer. nat.","Dr. forest.",
"Dr. sc. agr.","Dipl.-Biol.","Dipl.-Chem.","Dipl.-Ing.","Dipl.-Sozw.","Dipl.-Geogr.",
"Dipl.-Geol.","Dipl.-Geophys.","Dipl.-Ing. agr.","Dipl.-Kfm.","Dipl.-Math.","Dipl.-Phys.",
"Dipl.-Psych.","M. Sc","B. Sc");
$TITLE_REAR_TEMPLATE = array("","M.A.","B.A.","M.S.","MBA","Ph.D.","Dipl.-Biol.","Dipl.-Chem.","Dipl.-Ing.","Dipl.-Sozw.","Dipl.-Geogr.",
"Dipl.-Geol.","Dipl.-Geophys.","Dipl.-Ing. agr.","Dipl.-Kfm.","Dipl.-Math.","Dipl.-Phys.",
"Dipl.-Psych.","M. Sc","B. Sc");
// name templates for the list of currently active users ("who is online")
$NAME_FORMAT_DESC['full'] = _("Titel1 Vorname Nachname Titel2");
$NAME_FORMAT_DESC['full_rev'] = _("Nachname, Vorname, Titel1, Titel2");
$NAME_FORMAT_DESC['no_title'] = _("Vorname Nachname");
$NAME_FORMAT_DESC['no_title_rev'] = _("Nachname, Vorname");
$NAME_FORMAT_DESC['no_title_short'] = _("Nachname, V.");
$NAME_FORMAT_DESC['no_title_motto'] = _("Vorname Nachname, Motto");
//preset names for scm (simple content module)
$SCM_PRESET[1] = array("name"=>_("Informationen")); //the first entry is the default label for scms, it'll be used if the user give no information for another label
$SCM_PRESET[2] = array("name"=>_("Literatur"));
$SCM_PRESET[3] = array("name"=>_("Links"));
$SCM_PRESET[4] = array("name"=>_("Verschiedenes"));
//you can add more presets here
//Shortcuts for symbols
$SYMBOL_SHORT = array(
"=)" => "⇒" ,
"(=" => "⇐" ,
"(c)" => "©" ,
"(r)" => "®" ,
" tm " => "™"
);
/*configuration for additional modules
----------------------------------------------------------------
this options are only needed, if you are using the addional Stud.IP modules (please see in config_local.inc.php
which modules are activated). It's a good idea to leave this settings untouched...*/
/*
* use this to customize the fields shown in the standard/extended view on the instiute member page
* valid values are 'raum', 'sprechzeiten', 'telefon', 'email', 'homepage' and userinstrole datafield ids
* default for 'default' is to show all builtin fields except 'homepage', 'extended' shows all builtin fields
*/
$INST_ADMIN_DATAFIELDS_VIEW = array(
'default' => array(),
'extended' => array()
);
/*
* Fields that may not be hidden by users in their privacy settings.
* Can be configured per permission level.
* @see lib/edit_about.inc.php in function get_homepage_elements for
* available fields.
* Entries look like "'field_name' => true".
*/
$NOT_HIDEABLE_FIELDS = array(
'user' => array(),
'autor' => array(),
'tutor' => array(),
'dozent' => array(),
'admin' => array(),
'root' => array()
);
//Add ids of datafields to use for import on teilnehmer.php
$TEILNEHMER_IMPORT_DATAFIELDS = array();
|