@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | * @author Zilvinas Vaira |
27 | 27 | * |
28 | 28 | */ |
29 | -class UserCredentialsForm implements PageElementInterface{ |
|
29 | +class UserCredentialsForm implements PageElementInterface { |
|
30 | 30 | |
31 | 31 | const EDITABLEBLOCK_CLASS = 'sb-editable-block'; |
32 | 32 | const TITLEROW_CLASS = 'sb-title-row'; |
@@ -118,10 +118,10 @@ discard block |
||
118 | 118 | |
119 | 119 | $this->acknowledgeDays = CONFIG_CONFASSISTANT['SILVERBULLET']['gracetime'] ?? SilverbulletUser::MAX_ACKNOWLEDGE; |
120 | 120 | $this->acknowledgeText = $acknowledgeText; |
121 | - if($isAcknowledgeEnabled){ |
|
121 | + if ($isAcknowledgeEnabled) { |
|
122 | 122 | $div = new CompositeTag('div'); |
123 | 123 | $div->addAttribute('style', 'padding-bottom: 20px;'); |
124 | - $this->acknowledgeNotice = new Tag ('p'); |
|
124 | + $this->acknowledgeNotice = new Tag('p'); |
|
125 | 125 | $div->addTag($this->acknowledgeNotice); |
126 | 126 | $checkbox = new UnaryTag('input'); |
127 | 127 | $checkbox->addAttribute('type', 'checkbox'); |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | $label->addText('I have verified that all configured users are still eligible for eduroam'); |
133 | 133 | $div->addTag($label); |
134 | 134 | $this->decorator->addHtmlElement($div); |
135 | - $this->decorator->addHtmlElement(new Button(_('Save'),'submit', SaveUsersCommand::COMMAND, SaveUsersCommand::COMMAND)); |
|
135 | + $this->decorator->addHtmlElement(new Button(_('Save'), 'submit', SaveUsersCommand::COMMAND, SaveUsersCommand::COMMAND)); |
|
136 | 136 | } |
137 | 137 | |
138 | 138 | $this->addTitleRow(); |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | /** |
142 | 142 | * |
143 | 143 | */ |
144 | - private function addTitleRow(){ |
|
144 | + private function addTitleRow() { |
|
145 | 145 | $row = new Row(array(self::USER_COLUMN => _('User'), self::TOKEN_COLUMN => _('Token/Certificate details'), self::EXPIRY_COLUMN => _('User/Token Expiry'), self::ACTION_COLUMN => _('Actions'))); |
146 | 146 | $row->addAttribute('class', self::TITLEROW_CLASS); |
147 | 147 | $this->table->addRow($row); |
@@ -151,19 +151,19 @@ discard block |
||
151 | 151 | * |
152 | 152 | * @param SilverbulletUser $user |
153 | 153 | */ |
154 | - public function addUserRow($user){ |
|
154 | + public function addUserRow($user) { |
|
155 | 155 | $row = new Row(array(self::USER_COLUMN => $user->getUsername(), self::EXPIRY_COLUMN => new DatePicker(SaveUsersCommand::PARAM_EXPIRY_MULTIPLE, $user->getExpiry()))); |
156 | 156 | $row->addAttribute('class', self::USERROW_CLASS); |
157 | 157 | |
158 | 158 | $acknowledgeLevel = $user->getAcknowledgeLevel(); |
159 | - if($acknowledgeLevel == SilverbulletUser::LEVEL_YELLOW){ |
|
159 | + if ($acknowledgeLevel == SilverbulletUser::LEVEL_YELLOW) { |
|
160 | 160 | $row->addAttribute('style', 'background-color:#F0EAC0;'); |
161 | - }elseif ($acknowledgeLevel == SilverbulletUser::LEVEL_RED){ |
|
161 | + }elseif ($acknowledgeLevel == SilverbulletUser::LEVEL_RED) { |
|
162 | 162 | $row->addAttribute('style', 'background-color:#F0C0C0;'); |
163 | 163 | } |
164 | 164 | |
165 | 165 | $acknowledgeDays = $user->getAcknowledgeDays(); |
166 | - if($acknowledgeDays < $this->acknowledgeDays){ |
|
166 | + if ($acknowledgeDays < $this->acknowledgeDays) { |
|
167 | 167 | $this->acknowledgeDays = $acknowledgeDays; |
168 | 168 | } |
169 | 169 | |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | $action = new CompositeTag('div'); |
184 | 184 | $action->addAttribute('class', 'sb-user-buttons'); |
185 | 185 | $deactivationButton = new Button(_('Deactivate User'), 'submit', DeleteUserCommand::COMMAND, $user->getIdentifier(), 'delete'); |
186 | - if($user->isDeactivated()){ |
|
186 | + if ($user->isDeactivated()) { |
|
187 | 187 | $deactivationButton->addAttribute('disabled', 'disabled'); |
188 | 188 | } |
189 | 189 | $action->addTag($deactivationButton); |
@@ -206,8 +206,8 @@ discard block |
||
206 | 206 | * |
207 | 207 | * @param SilverbulletCertificate $certificate |
208 | 208 | */ |
209 | - public function addCertificateRow($certificate){ |
|
210 | - if($certificate->isGenerated()){ |
|
209 | + public function addCertificateRow($certificate) { |
|
210 | + if ($certificate->isGenerated()) { |
|
211 | 211 | |
212 | 212 | //Create certificate box |
213 | 213 | $certificateBox = new CompositeTag('div'); |
@@ -221,15 +221,15 @@ discard block |
||
221 | 221 | |
222 | 222 | //Create button container div |
223 | 223 | $buttonContainer = new Tag('div'); |
224 | - if($certificate->isRevoked()){ |
|
224 | + if ($certificate->isRevoked()) { |
|
225 | 225 | $certificateBox->addAttribute('style', 'background-color:#F0C0C0;'); |
226 | 226 | $buttonContainer->addAttribute('style', 'height:22px; margin-top:7px; text-align:center;'); |
227 | 227 | $buttonContainer->addText(_("REVOKED")); |
228 | - }elseif ($certificate->isExpired()){ |
|
228 | + }elseif ($certificate->isExpired()) { |
|
229 | 229 | $certificateBox->addAttribute('style', 'background-color:lightgrey;'); |
230 | 230 | $buttonContainer->addAttribute('style', 'height:22px; margin-top:7px; text-align:center;'); |
231 | 231 | $buttonContainer->addText(_("EXPIRED")); |
232 | - }else{ |
|
232 | + } else { |
|
233 | 233 | $buttonContainer->addAttribute('style', 'text-align:right;padding-top: 5px;'); |
234 | 234 | $buttonContainer->addText(new Button(_('Revoke'), 'submit', RevokeCertificateCommand::COMMAND, $certificate->getIdentifier(), 'delete')); |
235 | 235 | } |
@@ -243,7 +243,7 @@ discard block |
||
243 | 243 | * |
244 | 244 | * @param SilverbulletInvitation $invitation |
245 | 245 | */ |
246 | - public function addInvitationRow($invitation){ |
|
246 | + public function addInvitationRow($invitation) { |
|
247 | 247 | $expiryColumn = _("Expiry Date: ") . $invitation->getExpiry(); |
248 | 248 | $expiryColumn .= "<br>"; |
249 | 249 | $expiryColumn .= _("Activations: ") . $invitation->getRemainingActivations(); |
@@ -251,13 +251,13 @@ discard block |
||
251 | 251 | $row->addAttribute('class', self::CERTIFICATEROW_CLASS); |
252 | 252 | $index = $this->table->size(); |
253 | 253 | $this->table->addRow($row); |
254 | - if(!$invitation->isExpired() && !$invitation->isRevoked() && !$invitation->isAbsent()){ |
|
254 | + if (!$invitation->isExpired() && !$invitation->isRevoked() && !$invitation->isAbsent()) { |
|
255 | 255 | $this->table->addToCell($index, self::TOKEN_COLUMN, new Button(_('Copy to Clipboard'), 'button', '', '', self::INVITATION_TOKEN_CLASS . '-copy')); |
256 | - $this->table->addToCell($index, self::TOKEN_COLUMN, new Button(_('Compose mail...'), 'button', '', '', self::INVITATION_TOKEN_CLASS. '-compose')); |
|
257 | - $this->table->addToCell($index, self::TOKEN_COLUMN, new Button(_('Send in SMS...'), 'button', '', '', self::INVITATION_TOKEN_CLASS. '-sms')); |
|
258 | - $this->table->addToCell($index, self::TOKEN_COLUMN, new Button(_('Generate QR code...'), 'button', '', '', self::INVITATION_TOKEN_CLASS. '-qrcode')); |
|
256 | + $this->table->addToCell($index, self::TOKEN_COLUMN, new Button(_('Compose mail...'), 'button', '', '', self::INVITATION_TOKEN_CLASS . '-compose')); |
|
257 | + $this->table->addToCell($index, self::TOKEN_COLUMN, new Button(_('Send in SMS...'), 'button', '', '', self::INVITATION_TOKEN_CLASS . '-sms')); |
|
258 | + $this->table->addToCell($index, self::TOKEN_COLUMN, new Button(_('Generate QR code...'), 'button', '', '', self::INVITATION_TOKEN_CLASS . '-qrcode')); |
|
259 | 259 | } |
260 | - if(!$invitation->isRevoked()){ |
|
260 | + if (!$invitation->isRevoked()) { |
|
261 | 261 | $this->table->addToCell($index, self::ACTION_COLUMN, new Button(_('Revoke'), 'submit', RevokeInvitationCommand::COMMAND, $invitation->getIdentifier(), 'delete')); |
262 | 262 | } |
263 | 263 | } |
@@ -268,11 +268,11 @@ discard block |
||
268 | 268 | * @see \web\lib\admin\view\PageElementInterface::render() |
269 | 269 | */ |
270 | 270 | public function render() { |
271 | - if($this->acknowledgeNotice!=null){ |
|
271 | + if ($this->acknowledgeNotice != null) { |
|
272 | 272 | $this->acknowledgeNotice->addText(sprintf($this->acknowledgeText, $this->acknowledgeDays)); |
273 | 273 | } |
274 | 274 | ?> |
275 | - <div class="<?php echo self::EDITABLEBLOCK_CLASS;?>"> |
|
275 | + <div class="<?php echo self::EDITABLEBLOCK_CLASS; ?>"> |
|
276 | 276 | <?php $this->decorator->render(); ?> |
277 | 277 | </div> |
278 | 278 | <?php |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | |
131 | 131 | * @var array |
132 | 132 | */ |
133 | - 'MAILSETTINGS' => [ // we always use Submission |
|
133 | + 'MAILSETTINGS' => [// we always use Submission |
|
134 | 134 | 'host' => 'submission.capable.mta', |
135 | 135 | 'user'=> 'mailuser', |
136 | 136 | 'pass' => 'mailpass', |
@@ -146,25 +146,25 @@ discard block |
||
146 | 146 | * @var array |
147 | 147 | */ |
148 | 148 | 'LANGUAGES' => [ |
149 | - 'bg' => ['display' => 'Български', 'locale' => 'bg_BG.utf8', 'latin_based' => FALSE], |
|
150 | - 'ca' => ['display' => 'Català', 'locale' => 'ca_ES.utf8', 'latin_based' => TRUE], |
|
151 | - 'cs' => ['display' => 'Čeština', 'locale' => 'cs_CZ.utf8', 'latin_based' => TRUE], |
|
152 | - 'de' => ['display' => 'Deutsch', 'locale' => 'de_DE.utf8', 'latin_based' => TRUE], |
|
153 | - 'el' => ['display' => 'Ελληνικά', 'locale' => 'el_GR.utf8', 'latin_based' => FALSE], |
|
154 | - 'en' => ['display' => 'English(GB)', 'locale' => 'en_GB.utf8', 'latin_based' => TRUE], |
|
155 | - 'es' => ['display' => 'Español', 'locale' => 'es_ES.utf8', 'latin_based' => TRUE], |
|
156 | - 'fr' => ['display' => 'Français', 'locale' => 'fr_FR.utf8', 'latin_based' => TRUE], |
|
157 | - 'gl' => ['display' => 'Galego', 'locale' => 'gl_ES.utf8', 'latin_based' => TRUE], |
|
158 | - 'hr' => ['display' => 'Hrvatski', 'locale' => 'hr_HR.utf8', 'latin_based' => TRUE], |
|
159 | - 'it' => ['display' => 'Italiano', 'locale' => 'it_IT.utf8', 'latin_based' => TRUE], |
|
160 | - 'lt' => ['display' => 'lietuvių', 'locale' => 'lt_LT.utf8', 'latin_based' => TRUE], |
|
161 | - 'nb' => ['display' => 'Norsk', 'locale' => 'nb_NO.utf8', 'latin_based' => TRUE], |
|
162 | - 'pl' => ['display' => 'Polski', 'locale' => 'pl_PL.utf8', 'latin_based' => TRUE], |
|
163 | - 'sl' => ['display' => 'Slovenščina', 'locale' => 'sl_SI.utf8', 'latin_based' => TRUE], |
|
164 | - 'sr' => ['display' => 'Srpski', 'locale' => 'sr_RS@latin', 'latin_based' => TRUE], |
|
165 | - 'fi' => ['display' => 'Suomi', 'locale' => 'fi_FI.utf8', 'latin_based' => TRUE], |
|
166 | - 'hu' => ['display' => 'Magyar', 'locale' => 'hu_HU.utf8', 'latin_based' => TRUE], |
|
167 | - 'pt' => ['display' => 'Português', 'locale' => 'pt_PT.utf8', 'latin_based' => TRUE], |
|
149 | + 'bg' => ['display' => 'Български', 'locale' => 'bg_BG.utf8', 'latin_based' => FALSE], |
|
150 | + 'ca' => ['display' => 'Català', 'locale' => 'ca_ES.utf8', 'latin_based' => TRUE], |
|
151 | + 'cs' => ['display' => 'Čeština', 'locale' => 'cs_CZ.utf8', 'latin_based' => TRUE], |
|
152 | + 'de' => ['display' => 'Deutsch', 'locale' => 'de_DE.utf8', 'latin_based' => TRUE], |
|
153 | + 'el' => ['display' => 'Ελληνικά', 'locale' => 'el_GR.utf8', 'latin_based' => FALSE], |
|
154 | + 'en' => ['display' => 'English(GB)', 'locale' => 'en_GB.utf8', 'latin_based' => TRUE], |
|
155 | + 'es' => ['display' => 'Español', 'locale' => 'es_ES.utf8', 'latin_based' => TRUE], |
|
156 | + 'fr' => ['display' => 'Français', 'locale' => 'fr_FR.utf8', 'latin_based' => TRUE], |
|
157 | + 'gl' => ['display' => 'Galego', 'locale' => 'gl_ES.utf8', 'latin_based' => TRUE], |
|
158 | + 'hr' => ['display' => 'Hrvatski', 'locale' => 'hr_HR.utf8', 'latin_based' => TRUE], |
|
159 | + 'it' => ['display' => 'Italiano', 'locale' => 'it_IT.utf8', 'latin_based' => TRUE], |
|
160 | + 'lt' => ['display' => 'lietuvių', 'locale' => 'lt_LT.utf8', 'latin_based' => TRUE], |
|
161 | + 'nb' => ['display' => 'Norsk', 'locale' => 'nb_NO.utf8', 'latin_based' => TRUE], |
|
162 | + 'pl' => ['display' => 'Polski', 'locale' => 'pl_PL.utf8', 'latin_based' => TRUE], |
|
163 | + 'sl' => ['display' => 'Slovenščina', 'locale' => 'sl_SI.utf8', 'latin_based' => TRUE], |
|
164 | + 'sr' => ['display' => 'Srpski', 'locale' => 'sr_RS@latin', 'latin_based' => TRUE], |
|
165 | + 'fi' => ['display' => 'Suomi', 'locale' => 'fi_FI.utf8', 'latin_based' => TRUE], |
|
166 | + 'hu' => ['display' => 'Magyar', 'locale' => 'hu_HU.utf8', 'latin_based' => TRUE], |
|
167 | + 'pt' => ['display' => 'Português', 'locale' => 'pt_PT.utf8', 'latin_based' => TRUE], |
|
168 | 168 | |
169 | 169 | // For the following languages, partial translations exist in Transifex, but |
170 | 170 | // they are not complete enough for display. Their Transifex content is not |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | */ |
62 | 62 | public function __construct() { |
63 | 63 | $this->loggerInstance = new Logging(); |
64 | - $this->loggerInstance->debug(3, "--- BEGIN constructing class ". get_class($this)." .\n"); |
|
64 | + $this->loggerInstance->debug(3, "--- BEGIN constructing class " . get_class($this) . " .\n"); |
|
65 | 65 | $this->languageInstance = new Language(); |
66 | 66 | } |
67 | 67 | |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | * Logs the end of lifetime of the entity to the debug log on level 5. |
72 | 72 | */ |
73 | 73 | public function __destruct() { |
74 | - (new Logging())->debug(5,"--- KILL Destructing class ". get_class($this)." .\n"); |
|
74 | + (new Logging())->debug(5, "--- KILL Destructing class " . get_class($this) . " .\n"); |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | /** |
@@ -56,8 +56,8 @@ |
||
56 | 56 | |
57 | 57 | $i = 0; |
58 | 58 | foreach ($salvageFedPrivs as $oneFed) { |
59 | - $_POST['option']["S123456789".$i] = "user:fedadmin#string##"; |
|
60 | - $_POST['value']["S123456789".$i."-0"] = $oneFed; |
|
59 | + $_POST['option']["S123456789" . $i] = "user:fedadmin#string##"; |
|
60 | + $_POST['value']["S123456789" . $i . "-0"] = $oneFed; |
|
61 | 61 | $i++; |
62 | 62 | } |
63 | 63 | ?> |
@@ -26,4 +26,4 @@ |
||
26 | 26 | $Gui->defaultPagePrelude(); |
27 | 27 | |
28 | 28 | // and now, serve actual data |
29 | -include("skins/".$Gui->skinObject->skin."/index.php"); |
|
29 | +include("skins/" . $Gui->skinObject->skin . "/index.php"); |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | namespace core\common; |
12 | 12 | use \Exception; |
13 | 13 | |
14 | -require_once(dirname(dirname(__DIR__))."/config/_config.php"); |
|
14 | +require_once(dirname(dirname(__DIR__)) . "/config/_config.php"); |
|
15 | 15 | |
16 | 16 | class Logging { |
17 | 17 | |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | echo " ($category) "; |
87 | 87 | echo " " . $user . ": "; |
88 | 88 | if (is_string($message)) { |
89 | - echo $message ."\n"; |
|
89 | + echo $message . "\n"; |
|
90 | 90 | } else { |
91 | 91 | echo var_export($message); |
92 | 92 | } |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | <select id='lang' name='lang' onchange='this.form.submit()'>"; |
66 | 66 | |
67 | 67 | foreach (CONFIG['LANGUAGES'] as $lang => $value) { |
68 | - $retval .= "<option value='$lang' " . (strtoupper($language) == strtoupper($lang) ? "selected" : "" ) . " >" . $value['display'] . "</option> "; |
|
68 | + $retval .= "<option value='$lang' " . (strtoupper($language) == strtoupper($lang) ? "selected" : "") . " >" . $value['display'] . "</option> "; |
|
69 | 69 | } |
70 | 70 | $retval .= "</select>"; |
71 | 71 | |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | $retval .= "</form> |
78 | 78 | </div><!--langselection-->"; |
79 | 79 | |
80 | - $logoUrl = "//" . $this->validator->hostname($_SERVER['SERVER_NAME']) . substr($_SERVER['PHP_SELF'], 0, (strrpos($_SERVER['PHP_SELF'], "admin/") !== FALSE ? strrpos($_SERVER['PHP_SELF'], "admin/") : strrpos($_SERVER['PHP_SELF'], "/")))."/resources/images/consortium_logo.png"; |
|
80 | + $logoUrl = "//" . $this->validator->hostname($_SERVER['SERVER_NAME']) . substr($_SERVER['PHP_SELF'], 0, (strrpos($_SERVER['PHP_SELF'], "admin/") !== FALSE ? strrpos($_SERVER['PHP_SELF'], "admin/") : strrpos($_SERVER['PHP_SELF'], "/"))) . "/resources/images/consortium_logo.png"; |
|
81 | 81 | $retval .= "<div class='consortium_logo'> |
82 | 82 | <img id='test_locate' src='$logoUrl' alt='Consortium Logo'> |
83 | 83 | </div> <!-- consortium_logo --> |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | switch ($area) { |
120 | 120 | case "ADMIN-IDP": |
121 | 121 | $cap1 = CONFIG['APPEARANCE']['productname_long']; |
122 | - $cap2 = sprintf(_("Administrator Interface - Identity Provider"),$this->ui->nomenclature_inst); |
|
122 | + $cap2 = sprintf(_("Administrator Interface - Identity Provider"), $this->ui->nomenclature_inst); |
|
123 | 123 | $advancedControls = TRUE; |
124 | 124 | break; |
125 | 125 | case "ADMIN-IDP-USERS": |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | break; |
140 | 140 | case "FEDERATION": |
141 | 141 | $cap1 = CONFIG['APPEARANCE']['productname_long']; |
142 | - $cap2 = sprintf(_("Administrator Interface - %s Management"),$this->ui->nomenclature_fed); |
|
142 | + $cap2 = sprintf(_("Administrator Interface - %s Management"), $this->ui->nomenclature_fed); |
|
143 | 143 | $advancedControls = TRUE; |
144 | 144 | break; |
145 | 145 | case "USER": |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | // content from here on will SCROLL instead of being fixed at the top |
169 | 169 | $retval .= "<div class='pagecontent'>"; // closes in footer again |
170 | 170 | $retval .= "<div class='trick'>"; // closes in footer again |
171 | - $retval .= "<div id='secondrow' style='border-bottom:5px solid ".CONFIG['APPEARANCE']['colour1']."; min-height:100px;'> |
|
171 | + $retval .= "<div id='secondrow' style='border-bottom:5px solid " . CONFIG['APPEARANCE']['colour1'] . "; min-height:100px;'> |
|
172 | 172 | <div id='secondarycaptions' style='display:inline-block; float:left'> |
173 | 173 | <h2>$cap2</h2> |
174 | 174 | </div><!--secondarycaptions-->"; |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | $cutoffPosition = strrpos($_SERVER['PHP_SELF'], "/"); |
214 | 214 | } |
215 | 215 | |
216 | - $cssUrl = "//" . $this->validator->hostname($_SERVER['SERVER_NAME']) . substr($_SERVER['PHP_SELF'], 0, $cutoffPosition )."/resources/css/cat.css.php"; |
|
216 | + $cssUrl = "//" . $this->validator->hostname($_SERVER['SERVER_NAME']) . substr($_SERVER['PHP_SELF'], 0, $cutoffPosition) . "/resources/css/cat.css.php"; |
|
217 | 217 | |
218 | 218 | $retval .= "<link rel='stylesheet' type='text/css' href='$cssUrl' />"; |
219 | 219 | $retval .= "<title>" . htmlspecialchars($pagetitle) . "</title>"; |
@@ -241,7 +241,7 @@ discard block |
||
241 | 241 | $cutoffPosition = strrpos($_SERVER['PHP_SELF'], "/"); |
242 | 242 | } |
243 | 243 | |
244 | - $logoBase = "//" . $this->validator->hostname($_SERVER['SERVER_NAME']) . substr($_SERVER['PHP_SELF'], 0, $cutoffPosition)."/resources/images"; |
|
244 | + $logoBase = "//" . $this->validator->hostname($_SERVER['SERVER_NAME']) . substr($_SERVER['PHP_SELF'], 0, $cutoffPosition) . "/resources/images"; |
|
245 | 245 | |
246 | 246 | return "<span id='logos' style='position:fixed; left:50%;'><img src='$logoBase/dante.png' alt='DANTE' style='height:23px;width:47px'/> |
247 | 247 | <img src='$logoBase/eu.png' alt='EU' style='height:23px;width:27px;border-width:0px;'/></span> |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | * @package ModuleWriting |
20 | 20 | */ |
21 | 21 | namespace devices\xml; |
22 | -require_once(dirname(__FILE__).'/XML.inc.php'); |
|
22 | +require_once(dirname(__FILE__) . '/XML.inc.php'); |
|
23 | 23 | |
24 | 24 | /** |
25 | 25 | * This class implements full functionality of the generic XML device |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | $objs = []; |
155 | 155 | if ($this->langScope === 'global') { |
156 | 156 | foreach ($attributeList['langs'] as $language => $value) { |
157 | - $language = ( $language === 'C' ? 'any' : $language ); |
|
157 | + $language = ($language === 'C' ? 'any' : $language); |
|
158 | 158 | $obj = new $className(); |
159 | 159 | $obj->setValue($value); |
160 | 160 | $obj->setAttributes(['lang' => $language]); |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | $profileNameLangs = $attr['profile:name']['langs']; |
179 | 179 | } |
180 | 180 | foreach ($instNameLangs as $language => $value) { |
181 | - $language = ( $language === 'C' ? 'any' : $language ); |
|
181 | + $language = ($language === 'C' ? 'any' : $language); |
|
182 | 182 | $displayname = new DisplayName(); |
183 | 183 | if (isset($profileNameLangs)) { |
184 | 184 | $langOrC = isset($profileNameLangs[$language]) ? $profileNameLangs[$language] : $profileNameLangs['C']; |
@@ -351,7 +351,7 @@ discard block |
||
351 | 351 | $clientCertificateObject->setValue(base64_encode($this->clientCert["certdata"])); |
352 | 352 | $clientCertificateObject->setAttributes(['format' => 'PKCS12', 'encoding' => 'base64']); |
353 | 353 | |
354 | - $clientsidecredential->setProperty('ClientCertificate',$clientCertificateObject); |
|
354 | + $clientsidecredential->setProperty('ClientCertificate', $clientCertificateObject); |
|
355 | 355 | } |
356 | 356 | |
357 | 357 | $authmethod->setProperty('ClientSideCredential', $clientsidecredential); |
@@ -6,7 +6,7 @@ discard block |
||
6 | 6 | * @author Zilvinas Vaira |
7 | 7 | * |
8 | 8 | */ |
9 | -class TermsOfUseBox extends AbstractDialogBox{ |
|
9 | +class TermsOfUseBox extends AbstractDialogBox { |
|
10 | 10 | |
11 | 11 | private $command = ''; |
12 | 12 | private $parameter = ''; |
@@ -28,28 +28,28 @@ discard block |
||
28 | 28 | * {@inheritDoc} |
29 | 29 | * @see \web\lib\admin\view\AbstractDialogBox::renderContent() |
30 | 30 | */ |
31 | - public function renderContent(){ |
|
31 | + public function renderContent() { |
|
32 | 32 | ?> |
33 | 33 | <hr> |
34 | 34 | <h2>Product Definition</h2> |
35 | - <p><?php echo \core\ProfileSilverbullet::PRODUCTNAME;?> outsources the technical setup of <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'] ." ".CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution'];?> functions to the <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'];?> Operations Team. The system includes</p> |
|
35 | + <p><?php echo \core\ProfileSilverbullet::PRODUCTNAME; ?> outsources the technical setup of <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'] . " " . CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution']; ?> functions to the <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']; ?> Operations Team. The system includes</p> |
|
36 | 36 | <ul> |
37 | 37 | <li>a web-based user management interface where user accounts and access credentials can be created and revoked (there is a limit to the number of active users)</li> |
38 | 38 | <li>a technical infrastructure ("CA") which issues and revokes credentials</li> |
39 | - <li>a technical infrastructure ("RADIUS") which verifies access credentials and subsequently grants access to <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'];?></li> |
|
40 | - <li><span style='color: red;'>TBD: a lookup/notification system which informs you of network abuse complaints by <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'];?> Service Providers that pertain to your users</span></li> |
|
39 | + <li>a technical infrastructure ("RADIUS") which verifies access credentials and subsequently grants access to <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']; ?></li> |
|
40 | + <li><span style='color: red;'>TBD: a lookup/notification system which informs you of network abuse complaints by <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']; ?> Service Providers that pertain to your users</span></li> |
|
41 | 41 | </ul> |
42 | 42 | <h2>User Account Liability</h2> |
43 | - <p>As an <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'] ." ".CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution'];?> administrator using this system, you are authorized to create user accounts according to your local <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution'] ?> policy. You are fully responsible for the accounts you issue. In particular, you</p> |
|
43 | + <p>As an <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'] . " " . CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution']; ?> administrator using this system, you are authorized to create user accounts according to your local <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution'] ?> policy. You are fully responsible for the accounts you issue. In particular, you</p> |
|
44 | 44 | <ul> |
45 | - <li>only issue accounts to members of your <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution'];?>, as defined by your local policy.</li> |
|
45 | + <li>only issue accounts to members of your <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution']; ?>, as defined by your local policy.</li> |
|
46 | 46 | <li>must make sure that all accounts that you issue can be linked by you to actual human end users</li> |
47 | - <li>have to immediately revoke accounts of users when they leave or otherwise stop being a member of your <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution'];?></li> |
|
47 | + <li>have to immediately revoke accounts of users when they leave or otherwise stop being a member of your <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution']; ?></li> |
|
48 | 48 | <li>will act upon notifications about possible network abuse by your users and will appropriately sanction them</li> |
49 | 49 | </ul> |
50 | - <p>Failure to comply with these requirements may lead to the deletion of your <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution'];?> (and all the users you create inside) in this system.</p> |
|
50 | + <p>Failure to comply with these requirements may lead to the deletion of your <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution']; ?> (and all the users you create inside) in this system.</p> |
|
51 | 51 | <h2>Privacy</h2> |
52 | - <p>With <?php echo \core\ProfileSilverbullet::PRODUCTNAME;?>, we are not interested in and strive not to collect any personally identifiable information about the end users you create. To that end,</p> |
|
52 | + <p>With <?php echo \core\ProfileSilverbullet::PRODUCTNAME; ?>, we are not interested in and strive not to collect any personally identifiable information about the end users you create. To that end,</p> |
|
53 | 53 | <ul> |
54 | 54 | <li>the usernames you create in the system are not expected to be human-readable identifiers of actual humans. We encourage you to create usernames like 'hr-user-12' rather than 'Jane Doe, Human Resources Department'. You are the only one who needs to be able to make a link to the human behind the identifiers you create.</li> |
55 | 55 | <li>the identifiers in the credentials we create are not linked to the usernames you add to the system; they are pseudonyms.</li> |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | * {@inheritDoc} |
65 | 65 | * @see \web\lib\admin\view\AbstractDialogBox::renderControls() |
66 | 66 | */ |
67 | - public function renderControls(){ |
|
67 | + public function renderControls() { |
|
68 | 68 | ?> |
69 | 69 | <div style="position: relative; padding-bottom: 5px;"> |
70 | 70 | <input type="checkbox" name="<?php echo $this->parameter; ?>" value="true"> <label>I have read and agree to the terms.</label> |