blob: bccb764dcd61c5f4bb91731e9c3373923ab4d1ac (
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
88
89
90
91
92
93
94
95
96
|
<?php
/**
* @var array $files
* @var array $required
* @var array $defaults
*/
?>
<p>
<?= _('In diesem Schritt wählen Sie aus, welche Beispieldaten in Ihre '
. 'Datenbank eingespielt werden und geben einige 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>
<ul>
<?php $i = 0; foreach ($files as $file => $description): ?>
<li>
<label for="option-<?= $i ?>" class="plain">
<?php if (in_array($file, $required)): ?>
<input type="hidden" name="files[]" value="<?= htmlReady($file) ?>">
<input type="checkbox" checked disabled>
<?php else: ?>
<input type="checkbox" name="files[]" value="<?= htmlReady($file) ?>"
id="option-<?= $i ?>">
<?php endif; ?>
<strong <?php if (in_array($file, $required)): ?>class="required"<?php endif; ?>>
<?= htmlReady($description) ?>
</strong><br>
<?= htmlReady($file) ?>
</label>
</li>
<?php $i += 1; endforeach; ?>
</ul>
<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>
|