|
@@ -20,7 +20,7 @@ discard block |
|
|
block discarded – undo |
|
20
|
20
|
*/ |
|
21
|
21
|
?> |
|
22
|
22
|
<?php |
|
23
|
|
-require_once dirname(dirname(dirname(dirname(__FILE__)))) . "/config/_config.php"; |
|
|
23
|
+require_once dirname(dirname(dirname(dirname(__FILE__))))."/config/_config.php"; |
|
24
|
24
|
|
|
25
|
25
|
$auth = new \web\lib\admin\Authentication(); |
|
26
|
26
|
$uiElements = new \web\lib\admin\UIElements(); |
|
@@ -57,8 +57,8 @@ discard block |
|
|
block discarded – undo |
|
57
|
57
|
<?php |
|
58
|
58
|
echo sprintf(_("On this page, you can add a new %s to your %s. Please fill out the form below to send out an email invitation to the new %s administrator."), $uiElements->nomenclatureInst, $uiElements->nomenclatureFed, $uiElements->nomenclatureInst); |
|
59
|
59
|
if (CONFIG['DB']['enforce-external-sync']) { |
|
60
|
|
- echo "<p>" . sprintf(_("You can either register a known %s (as defined in the %s database) or create a totally new %s."), $uiElements->nomenclatureInst, CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], $uiElements->nomenclatureInst) . "</p>"; |
|
61
|
|
- echo "<p>" . sprintf(_("The latter one is typically for an %s which is yet in a testing phase and therefore doesn't appear in the %s database yet."), $uiElements->nomenclatureInst, CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']) . "</p>"; |
|
|
60
|
+ echo "<p>".sprintf(_("You can either register a known %s (as defined in the %s database) or create a totally new %s."), $uiElements->nomenclatureInst, CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], $uiElements->nomenclatureInst)."</p>"; |
|
|
61
|
+ echo "<p>".sprintf(_("The latter one is typically for an %s which is yet in a testing phase and therefore doesn't appear in the %s database yet."), $uiElements->nomenclatureInst, CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'])."</p>"; |
|
62
|
62
|
} |
|
63
|
63
|
?> |
|
64
|
64
|
<hr/> |
|
@@ -68,12 +68,12 @@ discard block |
|
|
block discarded – undo |
|
68
|
68
|
<?php |
|
69
|
69
|
if (CONFIG['DB']['enforce-external-sync']) { |
|
70
|
70
|
echo "<tr><td> |
|
71
|
|
- <input type='radio' name='creation' value='existing'>" . sprintf(_("Existing %s:"), $uiElements->nomenclatureParticipant) . "</input> |
|
|
71
|
+ <input type='radio' name='creation' value='existing'>" . sprintf(_("Existing %s:"), $uiElements->nomenclatureParticipant)."</input> |
|
72
|
72
|
</td>"; |
|
73
|
73
|
|
|
74
|
74
|
echo "<td colspan='4'> |
|
75
|
75
|
<select id='externals' name='externals' onchange='document.sendinvite.creation[0].checked=true; document.sendinvite.mailaddr.value=this.options[this.selectedIndex].id;'> |
|
76
|
|
- <option value='FREETEXT'>" . _("--- select IdP here ---") . "</option>"; |
|
|
76
|
+ <option value='FREETEXT'>" . _("--- select IdP here ---")."</option>"; |
|
77
|
77
|
|
|
78
|
78
|
foreach ($feds as $fed_value) { |
|
79
|
79
|
$thefed = new \core\Federation(strtoupper($fed_value['value'])); |
|
@@ -82,7 +82,7 @@ discard block |
|
|
block discarded – undo |
|
82
|
82
|
$entities = $thefed->listExternalEntities(TRUE); // determine future participant type based on eduroam DB |
|
83
|
83
|
|
|
84
|
84
|
foreach ($entities as $v) { |
|
85
|
|
- echo "<option id='" . $v['contactlist'] . "' value='" . $v['ID'] . "'>[" . $fed_value['value'] . "] " . $v['name'] . "</option>"; |
|
|
85
|
+ echo "<option id='".$v['contactlist']."' value='".$v['ID']."'>[".$fed_value['value']."] ".$v['name']."</option>"; |
|
86
|
86
|
} |
|
87
|
87
|
} |
|
88
|
88
|
|
|
@@ -91,16 +91,16 @@ discard block |
|
|
block discarded – undo |
|
91
|
91
|
?> |
|
92
|
92
|
<tr> |
|
93
|
93
|
<td> |
|
94
|
|
- <input type='radio' name='creation' value='new'><?php echo sprintf(_("New %s"),$uiElements->nomenclatureParticipant); ?></input> |
|
|
94
|
+ <input type='radio' name='creation' value='new'><?php echo sprintf(_("New %s"), $uiElements->nomenclatureParticipant); ?></input> |
|
95
|
95
|
</td> |
|
96
|
96
|
<td> |
|
97
|
97
|
<?php echo _("Name"); ?><input type='text' size='30' id='name' name='name' onchange='document.sendinvite.creation[1].checked = true'/> |
|
98
|
98
|
</td> |
|
99
|
99
|
<td> |
|
100
|
100
|
<select name="participant_type"> |
|
101
|
|
- <option value="IdPSP" selected><?php printf(_("%s and %s"),$uiElements->nomenclatureInst, $uiElements->nomenclatureHotspot)?></option> |
|
102
|
|
- <option value="IdP"><?php printf(_("%s"),$uiElements->nomenclatureInst)?></option> |
|
103
|
|
- <option value="SP"><?php printf(_("%s"),$uiElements->nomenclatureHotspot)?></option> |
|
|
101
|
+ <option value="IdPSP" selected><?php printf(_("%s and %s"), $uiElements->nomenclatureInst, $uiElements->nomenclatureHotspot)?></option> |
|
|
102
|
+ <option value="IdP"><?php printf(_("%s"), $uiElements->nomenclatureInst)?></option> |
|
|
103
|
+ <option value="SP"><?php printf(_("%s"), $uiElements->nomenclatureHotspot)?></option> |
|
104
|
104
|
</select> |
|
105
|
105
|
</td> |
|
106
|
106
|
<td><?php echo $uiElements->nomenclatureFed; ?> |