@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | 'getUserCerts', |
40 | 40 | ]; |
41 | 41 | |
42 | -function getRequest($varName,$filter) { |
|
42 | +function getRequest($varName, $filter) { |
|
43 | 43 | $safeText = ["options"=>["regexp"=>"/^[\w\d-]+$/"]]; |
44 | 44 | switch ($filter) { |
45 | 45 | case 'safe_text': |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | |
58 | 58 | // make sure this is a known action |
59 | 59 | $actionR = getRequest('action', 'safe_text'); |
60 | -$action = array_search($actionR,LISTOFACTIONS) ? $actionR : FALSE; |
|
60 | +$action = array_search($actionR, LISTOFACTIONS) ? $actionR : FALSE; |
|
61 | 61 | if ($action === FALSE) { |
62 | 62 | exit; |
63 | 63 | } |
@@ -65,18 +65,18 @@ discard block |
||
65 | 65 | $lang = $langR ? $validator->supportedLanguage($langR) : FALSE; |
66 | 66 | $deviceR = getRequest('device', 'safe_text'); |
67 | 67 | $device = $deviceR ? $validator->Device($deviceR) : FALSE; |
68 | -$idpR = getRequest('idp','int'); |
|
68 | +$idpR = getRequest('idp', 'int'); |
|
69 | 69 | $idp = $idpR ? $validator->IdP($idpR)->identifier : FALSE; |
70 | -$profileR = getRequest('profile','int'); |
|
70 | +$profileR = getRequest('profile', 'int'); |
|
71 | 71 | $profile = $profileR ? $validator->Profile($profileR)->identifier : FALSE; |
72 | -$federationR = getRequest('federation','safe_text'); |
|
72 | +$federationR = getRequest('federation', 'safe_text'); |
|
73 | 73 | $federation = $federationR ? $validator->Federation($deviceR)->identifier : FALSE; |
74 | -$disco = getRequest('disco','int'); |
|
75 | -$width = getRequest('width','int') ?? 0; |
|
76 | -$height = getRequest('height','int') ?? 0; |
|
77 | -$sort = getRequest('sort','int') ?? 0; |
|
78 | -$generatedforR = getRequest('generatedfor','safe_text') ?? 'user'; |
|
79 | -$token = getRequest('token','safe_text'); |
|
74 | +$disco = getRequest('disco', 'int'); |
|
75 | +$width = getRequest('width', 'int') ?? 0; |
|
76 | +$height = getRequest('height', 'int') ?? 0; |
|
77 | +$sort = getRequest('sort', 'int') ?? 0; |
|
78 | +$generatedforR = getRequest('generatedfor', 'safe_text') ?? 'user'; |
|
79 | +$token = getRequest('token', 'safe_text'); |
|
80 | 80 | |
81 | 81 | |
82 | 82 | switch ($action) { |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | <key>PayloadIdentifier</key> |
73 | 73 | <string>" . self::$iPhonePayloadPrefix . ".$this->massagedConsortium.$this->massagedCountry.$this->massagedInst.$this->massagedProfile.$this->lang</string> |
74 | 74 | <key>PayloadOrganization</key> |
75 | - <string>" . htmlspecialchars(iconv("UTF-8", "UTF-8//IGNORE", $this->attributes['general:instname'][0]), ENT_XML1, 'UTF-8') . ( $this->attributes['internal:profile_count'][0] > 1 ? " (" . htmlspecialchars(iconv("UTF-8", "UTF-8//IGNORE", $this->attributes['profile:name'][0]), ENT_XML1, 'UTF-8') . ")" : "") . "</string> |
|
75 | + <string>" . htmlspecialchars(iconv("UTF-8", "UTF-8//IGNORE", $this->attributes['general:instname'][0]), ENT_XML1, 'UTF-8') . ($this->attributes['internal:profile_count'][0] > 1 ? " (" . htmlspecialchars(iconv("UTF-8", "UTF-8//IGNORE", $this->attributes['profile:name'][0]), ENT_XML1, 'UTF-8') . ")" : "") . "</string> |
|
76 | 76 | <key>PayloadType</key> |
77 | 77 | <string>Configuration</string> |
78 | 78 | <key>PayloadUUID</key> |
@@ -325,9 +325,9 @@ discard block |
||
325 | 325 | $retval .= " |
326 | 326 | </array>"; |
327 | 327 | if ($eapType['INNER'] == \core\common\EAP::NE_SILVERBULLET) { |
328 | - $retval .= "<key>UserName</key><string>".$this->clientCert["username"]."</string>"; |
|
328 | + $retval .= "<key>UserName</key><string>" . $this->clientCert["username"] . "</string>"; |
|
329 | 329 | } |
330 | - $retval .=" |
|
330 | + $retval .= " |
|
331 | 331 | <key>TTLSInnerAuthentication</key> |
332 | 332 | <string>" . ($eapType['INNER'] == \core\common\EAP::NONE ? "PAP" : "MSCHAPv2") . "</string> |
333 | 333 | </dict>"; |
@@ -504,7 +504,7 @@ discard block |
||
504 | 504 | <key>PayloadVersion</key> |
505 | 505 | <integer>1</integer> |
506 | 506 | </dict>", |
507 | - "UUID" => $payloadUUID,]; |
|
507 | + "UUID" => $payloadUUID, ]; |
|
508 | 508 | } |
509 | 509 | |
510 | 510 | private function expiryBlock() { |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | $fcontents .= "\n" . '!define USER_GROUP "' . $this->translateString(str_replace('"', '$\\"', $attr['profile:name'][0]), $this->codePage) . '" |
233 | 233 | '; |
234 | 234 | } |
235 | - $fcontents .= ' |
|
235 | + $fcontents .= ' |
|
236 | 236 | Caption "' . $this->translateString(sprintf(WindowsCommon::sprint_nsi(_("%s installer for %s")), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], $attr['general:instname'][0]), $this->codePage) . '" |
237 | 237 | !define APPLICATION "' . $this->translateString(sprintf(WindowsCommon::sprint_nsi(_("%s installer for %s")), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], $attr['general:instname'][0]), $this->codePage) . '" |
238 | 238 | !define VERSION "' . \core\CAT::VERSION_MAJOR . '.' . \core\CAT::VERSION_MINOR . '" |
@@ -241,8 +241,8 @@ discard block |
||
241 | 241 | !define LOCALE "' . preg_replace('/\..*$/', '', CONFIG['LANGUAGES'][$this->languageInstance->getLang()]['locale']) . '" |
242 | 242 | ;-------------------------------- |
243 | 243 | !define ORGANISATION "' . $this->translateString($attr['general:instname'][0], $this->codePage) . '" |
244 | -!define SUPPORT "' . ((isset($attr['support:email'][0]) && $attr['support:email'][0] ) ? $attr['support:email'][0] : $this->translateString($this->support_email_substitute, $this->codePage)) . '" |
|
245 | -!define URL "' . ((isset($attr['support:url'][0]) && $attr['support:url'][0] ) ? $attr['support:url'][0] : $this->translateString($this->support_url_substitute, $this->codePage)) . '" |
|
244 | +!define SUPPORT "' . ((isset($attr['support:email'][0]) && $attr['support:email'][0]) ? $attr['support:email'][0] : $this->translateString($this->support_email_substitute, $this->codePage)) . '" |
|
245 | +!define URL "' . ((isset($attr['support:url'][0]) && $attr['support:url'][0]) ? $attr['support:url'][0] : $this->translateString($this->support_url_substitute, $this->codePage)) . '" |
|
246 | 246 | '; |
247 | 247 | |
248 | 248 | |
@@ -256,11 +256,11 @@ discard block |
||
256 | 256 | $fcontents .= '!define REALM "' . $attr['internal:realm'][0] . '" |
257 | 257 | '; |
258 | 258 | } |
259 | - if(!empty($attr['internal:hint_userinput_suffix'][0]) && $attr['internal:hint_userinput_suffix'][0] == 1) { |
|
259 | + if (!empty($attr['internal:hint_userinput_suffix'][0]) && $attr['internal:hint_userinput_suffix'][0] == 1) { |
|
260 | 260 | $fcontents .= '!define HINT_USER_INPUT "' . $attr['internal:hint_userinput_suffix'][0] . '" |
261 | 261 | '; |
262 | 262 | } |
263 | - if(!empty($attr['internal:verify_userinput_suffix'][0]) && $attr['internal:verify_userinput_suffix'][0] == 1) { |
|
263 | + if (!empty($attr['internal:verify_userinput_suffix'][0]) && $attr['internal:verify_userinput_suffix'][0] == 1) { |
|
264 | 264 | $fcontents .= '!define VERIFY_USER_REALM_INPUT "' . $attr['internal:verify_userinput_suffix'][0] . '" |
265 | 265 | '; |
266 | 266 | } |
@@ -137,7 +137,7 @@ |
||
137 | 137 | |
138 | 138 | $out .= 'Config.sb_user_file = """' . $this->mkSbUserFile() . '"""' . "\n"; |
139 | 139 | if (!empty($this->attributes['internal:realm'][0])) { |
140 | - $out .= 'Config.user_realm = "' . $this->attributes['internal:realm'][0] . "\"\n"; |
|
140 | + $out .= 'Config.user_realm = "' . $this->attributes['internal:realm'][0] . "\"\n"; |
|
141 | 141 | } |
142 | 142 | if(!empty($this->attributes['internal:hint_userinput_suffix'][0]) && $this->attributes['internal:hint_userinput_suffix'][0] == 1) { |
143 | 143 | $out .= "Config.hint_user_input = True\n"; |
@@ -33,9 +33,9 @@ discard block |
||
33 | 33 | public function writeInstaller() { |
34 | 34 | $installerPath = $this->installerBasename . ".py"; |
35 | 35 | $this->copyFile("main.py", $installerPath); |
36 | - $installer = fopen($installerPath,"a"); |
|
37 | - fwrite($installer,$this->writeMessages()); |
|
38 | - fwrite($installer,$this->writeConfigVars()); |
|
36 | + $installer = fopen($installerPath, "a"); |
|
37 | + fwrite($installer, $this->writeMessages()); |
|
38 | + fwrite($installer, $this->writeConfigVars()); |
|
39 | 39 | fwrite($installer, "run_installer()\n"); |
40 | 40 | return($installerPath); |
41 | 41 | } |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | $out .= 'Messages.p12_title = "' . _("personal certificate file (p12 or pfx)") . "\"\n"; |
101 | 101 | $out .= 'Messages.save_wpa_conf = "' . _("Network Manager configuration failed, but we may generate a wpa_supplicant configuration file if you wish. Be warned that your connection password will be saved in this file as clear text.") . "\"\n"; |
102 | 102 | $out .= 'Messages.save_wpa_confirm = "' . _("Write the file") . "\"\n"; |
103 | - $out .= 'Messages.wrongUsernameFormat = "' ._("Error: Your username must be of the form 'xxx@institutionID' e.g. '[email protected]'!") . "\"\n"; |
|
103 | + $out .= 'Messages.wrongUsernameFormat = "' . _("Error: Your username must be of the form 'xxx@institutionID' e.g. '[email protected]'!") . "\"\n"; |
|
104 | 104 | $out .= 'Messages.wrong_realm = "' . _("Error: your username must be in the form of 'xxx@{}'. Please enter the username in the correct format.") . "\"\n"; |
105 | 105 | $out .= 'Messages.wrong_realm_suffix = "' . _("Error: your username must be in the form of 'xxx@institutionID' and end with '{}'. Please enter the username in the correct format.") . "\"\n"; |
106 | 106 | |
@@ -129,8 +129,8 @@ discard block |
||
129 | 129 | $out .= "Config.use_other_tls_id = False\n"; |
130 | 130 | } |
131 | 131 | $tou = $this->mkUserConsent(); |
132 | - $out .= 'Config.tou = ' . ( $tou ? '"""' . $tou . '"""' : 'None' ) . "\n"; |
|
133 | - $out .= 'Config.CA = """' . $this->mkCAfile() . '"""' . "\n"; |
|
132 | + $out .= 'Config.tou = ' . ($tou ? '"""' . $tou . '"""' : 'None') . "\n"; |
|
133 | + $out .= 'Config.CA = """' . $this->mkCAfile() . '"""' . "\n"; |
|
134 | 134 | $out .= "Config.anonymous_identity = '" . $this->determineOuterIdString() . "'\n"; |
135 | 135 | $out .= 'Config.init_info = """' . $this->mkIntro() . '"""' . "\n"; |
136 | 136 | $out .= 'Config.init_confirmation = "' . $this->mkProfileConfirmation() . "\"\n"; |
@@ -139,10 +139,10 @@ discard block |
||
139 | 139 | if (!empty($this->attributes['internal:realm'][0])) { |
140 | 140 | $out .= 'Config.user_realm = "' . $this->attributes['internal:realm'][0] . "\"\n"; |
141 | 141 | } |
142 | - if(!empty($this->attributes['internal:hint_userinput_suffix'][0]) && $this->attributes['internal:hint_userinput_suffix'][0] == 1) { |
|
142 | + if (!empty($this->attributes['internal:hint_userinput_suffix'][0]) && $this->attributes['internal:hint_userinput_suffix'][0] == 1) { |
|
143 | 143 | $out .= "Config.hint_user_input = True\n"; |
144 | 144 | } |
145 | - if(!empty($this->attributes['internal:verify_userinput_suffix'][0]) && $this->attributes['internal:verify_userinput_suffix'][0] == 1) { |
|
145 | + if (!empty($this->attributes['internal:verify_userinput_suffix'][0]) && $this->attributes['internal:verify_userinput_suffix'][0] == 1) { |
|
146 | 146 | $out .= "Config.verify_user_realm_input = True\n"; |
147 | 147 | } |
148 | 148 | return $out; |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | } |
183 | 183 | $out .= "'DNS:$oneServer'"; |
184 | 184 | } |
185 | - return "[" . $out. "]"; |
|
185 | + return "[" . $out . "]"; |
|
186 | 186 | } |
187 | 187 | |
188 | 188 | |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | return '[' . implode(', ', $outArray) . ']'; |
207 | 207 | } |
208 | 208 | |
209 | - private function mkCAfile(){ |
|
209 | + private function mkCAfile() { |
|
210 | 210 | $out = ''; |
211 | 211 | $cAlist = $this->attributes['internal:CAs'][0]; |
212 | 212 | foreach ($cAlist as $oneCa) { |
@@ -124,8 +124,7 @@ |
||
124 | 124 | $out .= "Config.eap_inner = '" . $eapMethod['INNER'] . "'\n"; |
125 | 125 | if ($this->selectedEap == \core\common\EAP::EAPTYPE_TLS && isset($this->attributes['eap-specific:tls_use_other_id']) && $this->attributes['eap-specific:tls_use_other_id'][0] == 'on') { |
126 | 126 | $out .= "Config.use_other_tls_id = True\n"; |
127 | - } |
|
128 | - else { |
|
127 | + } else { |
|
129 | 128 | $out .= "Config.use_other_tls_id = False\n"; |
130 | 129 | } |
131 | 130 | $tou = $this->mkUserConsent(); |
@@ -56,6 +56,9 @@ discard block |
||
56 | 56 | |
57 | 57 | const PRODUCTNAME = "Managed IdP"; |
58 | 58 | |
59 | + /** |
|
60 | + * @param integer $length |
|
61 | + */ |
|
59 | 62 | public static function randomString( |
60 | 63 | $length, $keyspace = '23456789abcdefghijkmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' |
61 | 64 | ) { |
@@ -236,6 +239,7 @@ discard block |
||
236 | 239 | /** |
237 | 240 | * create a CSR |
238 | 241 | * |
242 | + * @param resource $privateKey |
|
239 | 243 | * @return |
240 | 244 | */ |
241 | 245 | private function generateCsr($privateKey) { |
@@ -274,6 +278,7 @@ discard block |
||
274 | 278 | * take a CSR and sign it with our issuing CA's certificate |
275 | 279 | * |
276 | 280 | * @param $csr the CSR |
281 | + * @param integer $expiryDays |
|
277 | 282 | */ |
278 | 283 | private function signCsr($csr, $expiryDays) { |
279 | 284 | switch (CONFIG_CONFASSISTANT['SILVERBULLET']['CA']['type']) { |
@@ -698,7 +703,6 @@ discard block |
||
698 | 703 | |
699 | 704 | /** |
700 | 705 | * |
701 | - * @param string $host |
|
702 | 706 | * @return string |
703 | 707 | */ |
704 | 708 | public static function generateTokenLink($token) { |
@@ -176,11 +176,11 @@ discard block |
||
176 | 176 | public function invitationMailBody($invitationLink) { |
177 | 177 | $text = _("Hello!"); |
178 | 178 | $text .= "\n\n"; |
179 | - $text .= sprintf(_("A new %s access credential has been created for you by your network administrator."),CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']); |
|
179 | + $text .= sprintf(_("A new %s access credential has been created for you by your network administrator."), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']); |
|
180 | 180 | $text .= " "; |
181 | 181 | $text .= sprintf(_("Please follow the following link with the device you want to enable for %s to get a custom %s installation program just for you. You can click on the link, copy and paste it into a browser or scan the attached QR code."), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']); |
182 | 182 | $text .= "\n\n$invitationLink\n\n"; // gets replaced with the token value by getBody() |
183 | - $text .= sprintf(_("Please keep this email or bookmark this link for future use. After picking up your %s installation program, you can use the same link to get status information about your %s account."),CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']); |
|
183 | + $text .= sprintf(_("Please keep this email or bookmark this link for future use. After picking up your %s installation program, you can use the same link to get status information about your %s account."), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']); |
|
184 | 184 | $text .= "\n\n"; |
185 | 185 | $text .= _("Regards,"); |
186 | 186 | $text .= "\n\n"; |
@@ -561,7 +561,7 @@ discard block |
||
561 | 561 | if (!$invitationsResult || $invitationsResult->num_rows == 0) { |
562 | 562 | $loggerInstance->debug(2, "Token $tokenvalue not found in database or database query error!\n"); |
563 | 563 | return ["status" => self::SB_TOKENSTATUS_INVALID, |
564 | - "cert_status" => [],]; |
|
564 | + "cert_status" => [], ]; |
|
565 | 565 | } |
566 | 566 | // if not returned, we found the token in the DB |
567 | 567 | $invitationRow = mysqli_fetch_object($invitationsResult); |
@@ -716,9 +716,9 @@ discard block |
||
716 | 716 | $link = $link . $relPath; |
717 | 717 | |
718 | 718 | if (preg_match('/admin$/', $link)) { |
719 | - $link = substr($link, 0, strlen($link)-6); |
|
719 | + $link = substr($link, 0, strlen($link) - 6); |
|
720 | 720 | } |
721 | - $link .= '/accountstatus/accountstatus.php?token='.$token; |
|
721 | + $link .= '/accountstatus/accountstatus.php?token=' . $token; |
|
722 | 722 | return $link; |
723 | 723 | } |
724 | 724 |
@@ -94,7 +94,7 @@ |
||
94 | 94 | |
95 | 95 | while ($oneAttrib = mysqli_fetch_object($idpWideOptionsQuery)) { |
96 | 96 | if (!isset($profiles[$oneAttrib->institution_id])) { |
97 | - $idp = new \core\IdP((int)$oneAttrib->institution_id); |
|
97 | + $idp = new \core\IdP((int) $oneAttrib->institution_id); |
|
98 | 98 | $profiles[$oneAttrib->institution_id] = ['IdP' => $idp, 'Profiles' => $idp->listProfiles()]; |
99 | 99 | echo "Debug: IdP " . $idp->identifier . " has profiles "; |
100 | 100 | foreach ($profiles[$oneAttrib->institution_id]['Profiles'] as $oneProfileObject) { |
@@ -29,6 +29,6 @@ |
||
29 | 29 | $link = \core\ProfileSilverbullet::generateTokenLink($cleanToken); |
30 | 30 | header("Content-Type:text/html;charset=utf-8"); |
31 | 31 | ?> |
32 | -<h1 style='text-align:center;'><?php echo _("Invitation Token QR Code");?></h1> |
|
33 | -<img style='float:none' src='data:image/png;base64,<?php echo base64_encode($uiElements->pngInjectConsortiumLogo(\QRcode::png($link, FALSE, QR_ECLEVEL_Q, 11), 11));?>'/> |
|
34 | -<p>(<a href='<?php echo $link;?>'><?php echo $link;?>)</a></p> |
|
35 | 32 | \ No newline at end of file |
33 | +<h1 style='text-align:center;'><?php echo _("Invitation Token QR Code"); ?></h1> |
|
34 | +<img style='float:none' src='data:image/png;base64,<?php echo base64_encode($uiElements->pngInjectConsortiumLogo(\QRcode::png($link, FALSE, QR_ECLEVEL_Q, 11), 11)); ?>'/> |
|
35 | +<p>(<a href='<?php echo $link; ?>'><?php echo $link; ?>)</a></p> |
|
36 | 36 | \ No newline at end of file |
@@ -388,7 +388,7 @@ discard block |
||
388 | 388 | $jsEncodedBody = str_replace('\n', '%0D%0A', str_replace('"', '', json_encode($profile->invitationMailBody($link)))); |
389 | 389 | $tokenHtmlBuffer .= "<td> |
390 | 390 | |
391 | - The invitation token <input type='text' readonly='readonly' color='grey' size='60' value='$link' name='token' class='identifiedtokenarea-".$tokenWithoutCert['db_id']."'>(…)<br/> is ready for sending! Choose how to send it: |
|
391 | + The invitation token <input type='text' readonly='readonly' color='grey' size='60' value='$link' name='token' class='identifiedtokenarea-" . $tokenWithoutCert['db_id'] . "'>(…)<br/> is ready for sending! Choose how to send it: |
|
392 | 392 | <table> |
393 | 393 | <tr><td style='vertical-align:bottom;'>E-Mail:</td><td> |
394 | 394 | $formtext |
@@ -406,7 +406,7 @@ discard block |
||
406 | 406 | </form> |
407 | 407 | </td></tr> |
408 | 408 | <tr><td style='vertical-align:bottom;'>Manual:</td><td> |
409 | - <button type='button' class='clipboardButton' onclick='clipboardCopy(".$tokenWithoutCert['db_id'].");'>" . _("Copy to Clipboard") . "</button> |
|
409 | + <button type='button' class='clipboardButton' onclick='clipboardCopy(".$tokenWithoutCert['db_id'] . ");'>" . _("Copy to Clipboard") . "</button> |
|
410 | 410 | <form style='display:inline-block;' method='post' action='inc/displayQRcode.inc.php' onsubmit='popupRedirectWindow(this); return false;' accept-charset='UTF-8'> |
411 | 411 | <input type='hidden' value='" . $tokenWithoutCert['value'] . "' name='token'><br/> |
412 | 412 | <button type='submit'>" . _("Display QR code") . "</button> |
@@ -437,7 +437,7 @@ discard block |
||
437 | 437 | ?> |
438 | 438 | |
439 | 439 | <td> |
440 | - <?php echo $formtext;?> |
|
440 | + <?php echo $formtext; ?> |
|
441 | 441 | <div class="sb-date-container"> |
442 | 442 | <input type="text" maxlength="10" id="sb-date-picker-1" class="sb-date-picker" name="userexpiry" value="<?php echo $profile->getUserExpiryDate($oneUserId); ?>"> |
443 | 443 | <button class="sb-date-button" type="button">▼</button> |
@@ -450,7 +450,7 @@ discard block |
||
450 | 450 | <div class="sb-user-buttons"> |
451 | 451 | <?php |
452 | 452 | if ($hasOnePendingInvite || count($validCerts) > 0) { |
453 | - echo $formtext ." |
|
453 | + echo $formtext . " |
|
454 | 454 | <input type='hidden' name='userid' value='$oneUserId'/> |
455 | 455 | <button type='submit' id='userdel' name='command' value='" . \web\lib\common\FormElements::BUTTON_DEACTIVATEUSER . "' class='delete'>" . _("Deactivate User") . "</button> |
456 | 456 | </form>"; |
@@ -488,7 +488,7 @@ discard block |
||
488 | 488 | . ' If all accounts shown as active above are indeed still valid, please check the box below and push "Save".' |
489 | 489 | . ' If any of the accounts are stale, please deactivate them by pushing the corresponding button before doing this.'), CONFIG_CONFASSISTANT['SILVERBULLET']['gracetime'] ?? core\ProfileSilverbullet::SB_ACKNOWLEDGEMENT_REQUIRED_DAYS); |
490 | 490 | |
491 | - echo $formtext."<div style='padding-bottom: 20px;'>" |
|
491 | + echo $formtext . "<div style='padding-bottom: 20px;'>" |
|
492 | 492 | . " |
493 | 493 | <p>$acknowledgeText</p> |
494 | 494 | <input type='checkbox' name='acknowledge' value='true'> |
@@ -512,7 +512,7 @@ discard block |
||
512 | 512 | </ul> |
513 | 513 | <!--adding manual --> |
514 | 514 | <div id="tabs-1"> |
515 | - <?php echo $formtext;?> |
|
515 | + <?php echo $formtext; ?> |
|
516 | 516 | <div class="sb-add-new-user"> |
517 | 517 | <label for="username"><?php echo _("Please enter a username of your choice and user expiry date to create a new user:"); ?></label> |
518 | 518 | <div style="margin: 5px 0px 10px 0px;"> |
@@ -529,7 +529,7 @@ discard block |
||
529 | 529 | <!--CSV --> |
530 | 530 | <div id="tabs-2"> |
531 | 531 | <div> |
532 | - <?php echo $formtext;?> |
|
532 | + <?php echo $formtext; ?> |
|
533 | 533 | <div class="sb-add-new-user"> |
534 | 534 | <p><?php echo _("Comma separated values should be provided in CSV file: username, expiration date 'yyyy-mm-dd', number of tokens (optional):"); ?></p> |
535 | 535 | <div style="margin: 5px 0px 10px 0px;"> |
@@ -557,7 +557,7 @@ discard block |
||
557 | 557 | <hr> |
558 | 558 | <?php echo $profile->termsAndConditions; ?> |
559 | 559 | <hr> |
560 | - <?php echo $formtext;?> |
|
560 | + <?php echo $formtext; ?> |
|
561 | 561 | <div style="position: relative; padding-bottom: 5px;"> |
562 | 562 | <input type="checkbox" name="agreement" value="true"> <label><?php echo _("I have read and agree to the terms."); ?></label> |
563 | 563 | </div> |
@@ -60,11 +60,11 @@ discard block |
||
60 | 60 | |
61 | 61 | $deco = new \web\lib\admin\PageDecoration(); |
62 | 62 | ?> |
63 | -<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $Gui->skinObject->findResourceUrl("CSS","cat-user.css");?>" /> |
|
63 | +<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $Gui->skinObject->findResourceUrl("CSS", "cat-user.css"); ?>" /> |
|
64 | 64 | <!-- JQuery --> |
65 | -<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","jquery/jquery.js") ?>"></script> |
|
66 | -<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","jquery/jquery-migrate.js") ?>"></script> |
|
67 | -<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","jquery/jquery-ui.js") ?>"></script> |
|
65 | +<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "jquery/jquery.js") ?>"></script> |
|
66 | +<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "jquery/jquery-migrate.js") ?>"></script> |
|
67 | +<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "jquery/jquery-ui.js") ?>"></script> |
|
68 | 68 | <!-- JQuery --> |
69 | 69 | <script type="text/javascript"> |
70 | 70 | if (screen.width <= 480) { |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | <div id="heading"> |
107 | 107 | <?php |
108 | 108 | print '<img src="' . $Gui->skinObject->findResourceUrl("IMAGES", "consortium_logo.png") . '" alt="Consortium Logo" style="float:right; padding-right:20px; padding-top:20px"/>'; |
109 | - print '<div id="motd">' . ( isset(CONFIG['APPEARANCE']['MOTD']) ? CONFIG['APPEARANCE']['MOTD'] : ' ' ) . '</div>'; |
|
109 | + print '<div id="motd">' . (isset(CONFIG['APPEARANCE']['MOTD']) ? CONFIG['APPEARANCE']['MOTD'] : ' ') . '</div>'; |
|
110 | 110 | print '<h1 style="padding-bottom:0px; height:1em;">' . sprintf(_("Welcome to %s"), CONFIG['APPEARANCE']['productname']) . '</h1> |
111 | 111 | <h2 style="padding-bottom:0px; height:0px; vertical-align:bottom;">' . CONFIG['APPEARANCE']['productname_long'] . '</h2>'; |
112 | 112 | echo '<table id="lang_select"><tr><td>'; |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | <span id="line1"><?php printf(_("%s installation made easy:"), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']) ?></span> |
161 | 161 | <span id="line2"></span> |
162 | 162 | <span id="line3"></span> |
163 | - <span id="line4"><?php echo sprintf(_("Custom built for your %s"),$Gui->nomenclature_inst) ?></span> |
|
163 | + <span id="line4"><?php echo sprintf(_("Custom built for your %s"), $Gui->nomenclature_inst) ?></span> |
|
164 | 164 | <span id="line5"> |
165 | 165 | <?php |
166 | 166 | if (isset(CONFIG_CONFASSISTANT['CONSORTIUM']['signer_name']) && CONFIG_CONFASSISTANT['CONSORTIUM']['signer_name'] != "") { |