blob: 12738f3d7db8987b9161212e45ca8da5a5acb52c (
plain)
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
|
<?php
/**
* @var array $files
* @var array $required
* @var array $defaults
*/
?>
<p>
<?= _('In diesem Schritt wählen Sie aus, welche Art von Installation erstellt werden soll: ein leeres System, '
. 'in dem nur die für den Betrieb notwendigen Daten hinterlegt sind, oder ein Demosystem mit einigen '
. 'Beispieldaten. Darüber hinaus geben Sie Weitere Grunddaten zur Installation an, die in der Datenbank '
. 'gespeichert werden.') ?>
<?= _('Die Grunddaten können Sie nach der Installation weiterhin bearbeiten.') ?>
</p>
<h3><?= _('SQL-Daten einspielen') ?></h3>
<?php $i = 0; foreach ($files as $file => $description): ?>
<div class="type-text">
<label class="plain">
<input type="radio" name="files[]" value="<?= htmlReady($file) ?>" required class="required"
<?= in_array($file, $_SESSION['STUDIP_INSTALLATION']['system']['files'] ?? []) ? ' checked' : '' ?>>
<?= htmlReady($description) ?>
</label>
</div>
<?php $i += 1; endforeach; ?>
<h3><?= _('Daten zum System') ?></h3>
<div class="type-text required">
<label for="system-name" class="vertical">
<?= _('Name der Stud.IP-Installation') ?>
</label>
<input required type="text" id="system-name" name="system_name"
value="<?= htmlReady(Request::get('system_name', $_SESSION['STUDIP_INSTALLATION']['system']['UNI_NAME_CLEAN'] ?? '')) ?>">
</div>
<div class="type-text required">
<label for="system-id" class="vertical">
<?= _('Id der Stud.IP-Installation') ?>
</label>
<input required type="text" id="system-id" name="system_id"
value="<?= htmlReady(Request::get('system_id', $_SESSION['STUDIP_INSTALLATION']['system']['STUDIP_INSTALLATION_ID'] ?? '')) ?>"
placeholder="<?= _('Eindeutiges, gängiges Kürzel Ihrer Einrichtung') ?>">
</div>
<div class="type-text required">
<label for="system-url" class="vertical">
<?= _('E-Mail-Adresse für Kontakt') ?>
</label>
<input required type="email" id="system-email" name="system_email"
value="<?= htmlReady(Request::get('system_email', $_SESSION['STUDIP_INSTALLATION']['system']['UNI_CONTACT'] ?? '')) ?>">
</div>
<div class="type-text required">
<label for="system-url" class="vertical">
<?= _('URL der Stud.IP-Installation') ?>
</label>
<input required type="url" id="system-url" name="system_url"
value="<?= htmlReady(Request::get('system_url', $_SESSION['STUDIP_INSTALLATION']['system']['ABSOLUTE_URI_STUDIP'] ?? $defaults['system_url'])) ?>"
placeholder="https://">
</div>
<div class="type-text">
<label for="system-host-url" class="vertical">
<?= _('URL der betreibenden Einrichtung') ?>
</label>
<input type="url" id="system-host-url" name="system_host_url"
value="<?= htmlReady(Request::get('system_host_url', $_SESSION['STUDIP_INSTALLATION']['system']['UNI_URL'] ?? '')) ?>"
placeholder="https://">
</div>
<h3><?= _('Diese Stud.IP-Installation läuft im') ?></h3>
<div class="type-text">
<label class="plain">
<input type="radio" name="env" value="development"
<?php if ($_SESSION['STUDIP_INSTALLATION']['env'] === 'development') echo 'checked'; ?>>
<?= _('Entwicklungsmodus') ?>
</label>
</div>
<div class="type-text">
<label class="plain">
<input type="radio" name="env" value="production"
<?php if ($_SESSION['STUDIP_INSTALLATION']['env'] === 'production') echo 'checked'; ?>>
<?= _('Produktivmodus') ?>
</label>
</div>
|