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
|
<?
# Lifter002: TODO
# Lifter007: TODO
# Lifter003: TODO
# Lifter010: TODO
/**
* extern_config.inc.php
*
* extern modules configuration file
*
*
* @author Peter Thienel <thienel@data-quest.de>, Suchi & Berg GmbH <info@data-quest.de>
* @access public
* @modulegroup extern
* @module extern_config
* @package studip_extern
*/
// +---------------------------------------------------------------------------+
// This file is part of Stud.IP
// extern_config.inc.php
// extern modules configuration file
// Copyright (C) 2003 Peter Thienel <thienel@data-quest.de>,
// Suchi & Berg GmbH <info@data-quest.de>
// +---------------------------------------------------------------------------+
// 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
$EXTERN_MODULE_TYPES,
$EXTERN_MAX_CONFIGURATIONS,
$EXTERN_ERROR_MESSAGE,
$EXTERN_CONFIG_STORAGE_CONTAINER,
$EXTERN_ENABLE_ERROR_LOGGING,
$EXTERN_LOG_FILE;
$EXTERN_MODULE_TYPES[0] = ["module" => "Global", "name" => _("globale Konfiguration"), "level" => 1,
"description" => _("Das Modul "globale Konfiguration" enthält Einstellungen, die für alle Module gelten, solange sie nicht in den jeweiligen Modulen überschrieben werden."), 'order' => 1, 'view' => ['inst','fak','studip']];
$EXTERN_MODULE_TYPES[1] = ["module" => "Persons", "name" => _("Mitarbeiter"), "level" => 1,
"description" => _("Das Modul "Mitarbeiter" gibt ein Mitarbeiterverzeichnis einer Einrichtung aus."), 'order' => 20, 'view' => ['inst','fak']];
$EXTERN_MODULE_TYPES[2] = ["module" => "Persondetails", "name" => _("Mitarbeiterdetails"), "level" => 2,
"description" => _("Das Modul "Mitarbeiterdetails" gibt die Daten eines Mitarbeiters einer Einrichtung aus."), 'order' => 30, 'view' => ['inst','fak']];
$EXTERN_MODULE_TYPES[3] = ["module" => "Lectures", "name" => _("Veranstaltungen"), "level" => 1,
"description" => _("Das Modul "Veranstaltungen" gibt alle Veranstaltungen einer Einrichtung aus."), 'order' => 40, 'view' => ['inst','fak']];
$EXTERN_MODULE_TYPES[4] = ["module" => "Lecturedetails", "name" => _("Veranstaltungsdetails"), "level" => 2,
"description" => _("Das Modul "Veranstaltungsdetails" gibt alle allgemeinen Daten einer Veranstaltung aus."), 'order' => 50, 'view' => ['inst','fak']];
$EXTERN_MODULE_TYPES[5] = ["module" => "News", "name" => _("News"), "level" => 1,
"description" => _("Das Modul "News" gibt alle News einer Einrichtung aus."), 'order' => 60, 'view' => ['inst','fak']];
$EXTERN_MODULE_TYPES[6] = ["module" => "Download", "name" => _("Download"), "level" => 1,
"description" => _("Das Modul "Download" stellt alle Dateien aus dem Dateibereich einer Einrichtung zum Download zur Verfügung."), 'order' => 70, 'view' => ['inst','fak']];
/*
$EXTERN_MODULE_TYPES[8] = array("module" => "Semlecturetree", "name" => _("Bereichsbaum Veranstaltungen"), "level" => 1,
"description" => _("Das Modul "Veranstaltungen" gibt alle Veranstaltungen einer Einrichtung aus."));
$EXTERN_MODULE_TYPES[9] = array("module" => "Rangelecturetree", "name" => _("Einrichtungsbaum Veranstaltungen"), "level" => 1,
"description" => _("Das Modul "Veranstaltungen" gibt alle Veranstaltungen einer Einrichtung aus."));
*/
$EXTERN_MODULE_TYPES[7] = ["module" => "Newsticker", "name" => _("Newsticker"), "level" => 1,
"description" => _("Das Modul "Newsticker" gibt alle News einer Einrichtung in einem Ticker aus."), 'order' => 75, 'view' => ['inst','fak']];
$EXTERN_MODULE_TYPES[8] = ["module" => "Lecturestable", "name" => _("Veranstaltungen (Tabelle)"), "level" => 1,
"description" => _("Das Modul "Veranstaltungen" gibt alle Veranstaltungen einer Einrichtung als Tabelle aus."), 'order' => 45, 'view' => ['inst','fak']];
$EXTERN_MODULE_TYPES[9] = ["module" => "TemplatePersons", "name" => _("Mitarbeiter (templatebasiert)"), "level" => 1,
"description" => _("Das Modul "Mitarbeiter" gibt ein Mitarbeiterverzeichnis einer Einrichtung aus."), 'order' => 22, 'view' => ['inst','fak', 'studip']];
$EXTERN_MODULE_TYPES[10] = ["module" => "TemplateDownload", "name" => _("Download (templatebasiert)"), "level" => 1,
"description" => _("Das Modul "Download" stellt alle Dateien aus dem Dateibereich einer Einrichtung zum Download zur Verfügung."), 'order' => 72, 'view' => ['inst','fak']];
$EXTERN_MODULE_TYPES[11] = ["module" => "TemplateNews", "name" => _("News (templatebasiert)"), "level" => 1,
"description" => _("Das Modul "News" gibt alle News einer Einrichtung aus."), 'order' => 62, 'view' => ['inst','fak']];
$EXTERN_MODULE_TYPES[12] = ["module" => "TemplateLectures", "name" => _("Veranstaltungen (templatebasiert)"), "level" => 1,
"description" => _("Das Modul "Veranstaltungen" gibt alle Veranstaltungen einer Einrichtung aus."), 'order' => 42, 'view' => ['inst','fak']];
$EXTERN_MODULE_TYPES[13] = ["module" => "TemplateLecturedetails", "name" => _("Veranstaltungsdetails (templatebasiert)"), "level" => 2,
"description" => _("Das Modul "Veranstaltungsdetails" gibt alle allgemeinen Daten einer Veranstaltung aus."), 'order' => 52, 'view' => ['inst','fak','studip']];
$EXTERN_MODULE_TYPES[14] = ["module" => "TemplatePersondetails", "name" => _("Mitarbeiterdetails (templatebasiert)"), "level" => 2,
"description" => _("Das Modul "Mitarbeiterdetails" gibt die Daten eines Mitarbeiters einer Einrichtung aus."), 'order' => 32, 'view' => ['inst','fak','studip']];
$EXTERN_MODULE_TYPES[15] = ["module" => "TemplateSemBrowse", "name" => _("Veranstaltungsbrowser (templatebasiert)"), "level" => 1,
"description" => _("Das Modul "Veranstaltungsbrowser" ermöglicht das Suchen nach Veranstaltungen im Einrichtungs- und Vorlesungsverzeichnis."), 'order' => 47, 'view' => ['studip']];
$EXTERN_MODULE_TYPES[16] = ['module' => 'TemplatePersBrowse', 'name' => _("Personenbrowser (templatebasiert)"), 'level' => 1, 'description' => _("Das Modul "Personenbrowser" ermöglicht die Anzeige eines systemweiten Personalverzeichnisses."), 'order' => 55, 'view' => ['studip']];
// Allowed number of configurations
$EXTERN_MAX_CONFIGURATIONS = 32;
// print this message instead of data if an error occurs
$EXTERN_ERROR_MESSAGE = "<b>Ein Fehler ist aufgetreten. Die Daten können nicht angezeigt werden. Bitte wenden Sie sich an den Webmaster.</b>";
// change this to match your class name, if you have extended the class ExternConfig to store configurations in a different manner
$EXTERN_CONFIG_STORAGE_CONTAINER = 'DB';
// Not yet implemented!
$EXTERN_ENABLE_ERROR_LOGGING = FALSE;
// Not yet implemented!
$EXTERN_LOG_FILE = "";
// don't edit below this line
//==============================================================================
// path generation for SRI-interface (external pages)
if (preg_match('#^(http://|https://)?(.+?)(/)?$#', $GLOBALS['EXTERN_SERVER_NAME'], $matches)) {
if ($matches[1]) {
$GLOBALS['EXTERN_SERVER_NAME'] = $matches[1];
} else {
$GLOBALS['EXTERN_SERVER_NAME'] = 'http://';
}
$GLOBALS['EXTERN_SERVER_NAME'] .= $matches[2] . '/';
} else {
$GLOBALS['EXTERN_SERVER_NAME'] = $GLOBALS['ABSOLUTE_URI_STUDIP'];
}
?>
|