Passed
Push — master ( d6d278...2db2b5 )
by Stefan
08:07
created
core/CertificationAuthorityEduPkiServer.php 1 patch
Spacing   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@  discard block
 block discarded – undo
17 17
 class CertificationAuthorityEduPkiServer extends EntityWithDBProperties implements CertificationAuthorityInterface
18 18
 {
19 19
 
20
-    private const LOCATION_RA_CERT = ROOT . "/config/SilverbulletClientCerts/edupki-test-ra.pem";
21
-    private const LOCATION_RA_KEY = ROOT . "/config/SilverbulletClientCerts/edupki-test-ra.clearkey";
22
-    private const LOCATION_WEBROOT = ROOT . "/config/SilverbulletClientCerts/eduPKI-webserver-root.pem";
20
+    private const LOCATION_RA_CERT = ROOT."/config/SilverbulletClientCerts/edupki-test-ra.pem";
21
+    private const LOCATION_RA_KEY = ROOT."/config/SilverbulletClientCerts/edupki-test-ra.clearkey";
22
+    private const LOCATION_WEBROOT = ROOT."/config/SilverbulletClientCerts/eduPKI-webserver-root.pem";
23 23
     private const EDUPKI_RA_ID = 700;
24 24
     private const EDUPKI_CERT_PROFILE = "Radius Server SOAP";
25 25
     private const EDUPKI_RA_PKEY_PASSPHRASE = "...";
@@ -35,13 +35,13 @@  discard block
 block discarded – undo
35 35
         parent::__construct();
36 36
 
37 37
         if (stat(CertificationAuthorityEduPkiServer::LOCATION_RA_CERT) === FALSE) {
38
-            throw new Exception("RA operator PEM file not found: " . CertificationAuthorityEduPkiServer::LOCATION_RA_CERT);
38
+            throw new Exception("RA operator PEM file not found: ".CertificationAuthorityEduPkiServer::LOCATION_RA_CERT);
39 39
         }
40 40
         if (stat(CertificationAuthorityEduPkiServer::LOCATION_RA_KEY) === FALSE) {
41
-            throw new Exception("RA operator private key file not found: " . CertificationAuthorityEduPkiServer::LOCATION_RA_KEY);
41
+            throw new Exception("RA operator private key file not found: ".CertificationAuthorityEduPkiServer::LOCATION_RA_KEY);
42 42
         }
43 43
         if (stat(CertificationAuthorityEduPkiServer::LOCATION_WEBROOT) === FALSE) {
44
-            throw new Exception("CA website root CA file not found: " . CertificationAuthorityEduPkiServer::LOCATION_WEBROOT);
44
+            throw new Exception("CA website root CA file not found: ".CertificationAuthorityEduPkiServer::LOCATION_WEBROOT);
45 45
         }
46 46
     }
47 47
 
@@ -96,19 +96,19 @@  discard block
 block discarded – undo
96 96
         // initialise connection to eduPKI CA / eduroam RA and send the request to them
97 97
         try {
98 98
             $altArray = [# Array mit den Subject Alternative Names
99
-                "email:" . $csr["USERMAIL"]
99
+                "email:".$csr["USERMAIL"]
100 100
             ];
101 101
             $soapPub = $this->initEduPKISoapSession("PUBLIC");
102 102
             $this->loggerInstance->debug(5, "FIRST ACTUAL SOAP REQUEST (Public, newRequest)!\n");
103
-            $this->loggerInstance->debug(5, "PARAM_1: " . CertificationAuthorityEduPkiServer::EDUPKI_RA_ID . "\n");
104
-            $this->loggerInstance->debug(5, "PARAM_2: " . $csr["CSR"] . "\n");
103
+            $this->loggerInstance->debug(5, "PARAM_1: ".CertificationAuthorityEduPkiServer::EDUPKI_RA_ID."\n");
104
+            $this->loggerInstance->debug(5, "PARAM_2: ".$csr["CSR"]."\n");
105 105
             $this->loggerInstance->debug(5, "PARAM_3: ");
106 106
             $this->loggerInstance->debug(5, $altArray);
107
-            $this->loggerInstance->debug(5, "PARAM_4: " . CertificationAuthorityEduPkiServer::EDUPKI_CERT_PROFILE . "\n");
108
-            $this->loggerInstance->debug(5, "PARAM_5: " . sha1("notused") . "\n");
109
-            $this->loggerInstance->debug(5, "PARAM_6: " . $csr["USERNAME"] . "\n");
110
-            $this->loggerInstance->debug(5, "PARAM_7: " . $csr["USERMAIL"] . "\n");
111
-            $this->loggerInstance->debug(5, "PARAM_8: " . ProfileSilverbullet::PRODUCTNAME . "\n");
107
+            $this->loggerInstance->debug(5, "PARAM_4: ".CertificationAuthorityEduPkiServer::EDUPKI_CERT_PROFILE."\n");
108
+            $this->loggerInstance->debug(5, "PARAM_5: ".sha1("notused")."\n");
109
+            $this->loggerInstance->debug(5, "PARAM_6: ".$csr["USERNAME"]."\n");
110
+            $this->loggerInstance->debug(5, "PARAM_7: ".$csr["USERMAIL"]."\n");
111
+            $this->loggerInstance->debug(5, "PARAM_8: ".ProfileSilverbullet::PRODUCTNAME."\n");
112 112
             $this->loggerInstance->debug(5, "PARAM_9: false\n");
113 113
             $soapNewRequest = $soapPub->newRequest(
114 114
                     CertificationAuthorityEduPkiServer::EDUPKI_RA_ID, # RA-ID
@@ -130,11 +130,11 @@  discard block
 block discarded – undo
130 130
         } catch (Exception $e) {
131 131
             // PHP 7.1 can do this much better
132 132
             if (is_soap_fault($e)) {
133
-                throw new Exception("Error when sending SOAP request: " . "{$e->faultcode}:  {
133
+                throw new Exception("Error when sending SOAP request: "."{$e->faultcode}:  {
134 134
                     $e->faultstring
135 135
                 }\n");
136 136
             }
137
-            throw new Exception("Something odd happened while doing the SOAP request:" . $e->getMessage());
137
+            throw new Exception("Something odd happened while doing the SOAP request:".$e->getMessage());
138 138
         }
139 139
         try {
140 140
             $soap = $this->initEduPKISoapSession("RA");
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
             // for obnoxious reasons, we have to dump the request into a file and let pkcs7_sign read from the file
169 169
             // rather than just using the string. Grr.
170 170
             $tempdir = \core\common\Entity::createTemporaryDirectory("test");
171
-            file_put_contents($tempdir['dir'] . "/content.txt", $soapCleartext);
171
+            file_put_contents($tempdir['dir']."/content.txt", $soapCleartext);
172 172
             // retrieve our RA cert from filesystem                    
173 173
             // the RA certificates are not needed right now because we
174 174
             // have resorted to S/MIME signatures with openssl command-line
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
             // sign the data, using cmdline because openssl_pkcs7_sign produces strange results
181 181
             // -binary didn't help, nor switch -md to sha1 sha256 or sha512
182 182
             $this->loggerInstance->debug(5, "Actual content to be signed is this:\n  $soapCleartext\n");
183
-        $execCmd = \config\Master::PATHS['openssl'] . " smime -sign -binary -in " . $tempdir['dir'] . "/content.txt -out " . $tempdir['dir'] . "/signature.txt -outform pem -inkey " . ROOT . "/config/SilverbulletClientCerts/edupki-test-ra.clearkey -signer " . ROOT . "/config/SilverbulletClientCerts/edupki-test-ra.pem";
183
+        $execCmd = \config\Master::PATHS['openssl']." smime -sign -binary -in ".$tempdir['dir']."/content.txt -out ".$tempdir['dir']."/signature.txt -outform pem -inkey ".ROOT."/config/SilverbulletClientCerts/edupki-test-ra.clearkey -signer ".ROOT."/config/SilverbulletClientCerts/edupki-test-ra.pem";
184 184
             $this->loggerInstance->debug(2, "Calling openssl smime with following cmdline:   $execCmd\n");
185 185
             $output = [];
186 186
             $return = 999;
@@ -189,21 +189,21 @@  discard block
 block discarded – undo
189 189
                 throw new Exception("Non-zero return value from openssl smime!");
190 190
             }
191 191
             // and get the signature blob back from the filesystem
192
-            $detachedSig = trim(file_get_contents($tempdir['dir'] . "/signature.txt"));
192
+            $detachedSig = trim(file_get_contents($tempdir['dir']."/signature.txt"));
193 193
             $this->loggerInstance->debug(5, "Request for server approveRequest has parameters:\n");
194
-            $this->loggerInstance->debug(5, $soapReqnum . "\n");
195
-            $this->loggerInstance->debug(5, $soapCleartext . "\n"); // PHP magically encodes this as base64 while sending!
196
-            $this->loggerInstance->debug(5, $detachedSig . "\n");
194
+            $this->loggerInstance->debug(5, $soapReqnum."\n");
195
+            $this->loggerInstance->debug(5, $soapCleartext."\n"); // PHP magically encodes this as base64 while sending!
196
+            $this->loggerInstance->debug(5, $detachedSig."\n");
197 197
             $soapIssueCert = $soap->approveRequest($soapReqnum, $soapCleartext, $detachedSig);
198
-            $this->loggerInstance->debug(5, "approveRequest Request was: \n" . $soap->__getLastRequest());
199
-            $this->loggerInstance->debug(5, "approveRequest Response was: \n" . $soap->__getLastResponse());
198
+            $this->loggerInstance->debug(5, "approveRequest Request was: \n".$soap->__getLastRequest());
199
+            $this->loggerInstance->debug(5, "approveRequest Response was: \n".$soap->__getLastResponse());
200 200
             if ($soapIssueCert === FALSE) {
201 201
                 throw new Exception("The locally approved request was NOT processed by the CA.");
202 202
             }
203 203
         } catch (SoapFault $e) {
204
-            throw new Exception("SoapFault: Error when sending or receiving SOAP message: " . "{$e->faultcode}: {$e->faultname}: {$e->faultstring}: {$e->faultactor}: {$e->detail}: {$e->headerfault}\n");
204
+            throw new Exception("SoapFault: Error when sending or receiving SOAP message: "."{$e->faultcode}: {$e->faultname}: {$e->faultstring}: {$e->faultactor}: {$e->detail}: {$e->headerfault}\n");
205 205
         } catch (Exception $e) {
206
-            throw new Exception("Exception: Something odd happened between the SOAP requests:" . $e->getMessage());
206
+            throw new Exception("Exception: Something odd happened between the SOAP requests:".$e->getMessage());
207 207
         }
208 208
         return $soapReqnum;
209 209
     }
@@ -255,9 +255,9 @@  discard block
 block discarded – undo
255 255
                 throw new Exception("CAInfo has no root certificate for us!");
256 256
             }
257 257
         } catch (SoapFault $e) {
258
-            throw new Exception("SoapFault: Error when sending or receiving SOAP message: " . "{$e->faultcode}: {$e->faultname}: {$e->faultstring}: {$e->faultactor}: {$e->detail}: {$e->headerfault}\n");
258
+            throw new Exception("SoapFault: Error when sending or receiving SOAP message: "."{$e->faultcode}: {$e->faultname}: {$e->faultstring}: {$e->faultactor}: {$e->detail}: {$e->headerfault}\n");
259 259
         } catch (Exception $e) {
260
-            throw new Exception("Exception: Something odd happened between the SOAP requests:" . $e->getMessage());
260
+            throw new Exception("Exception: Something odd happened between the SOAP requests:".$e->getMessage());
261 261
         }
262 262
         return [
263 263
             "CERT" => openssl_x509_read($parsedCert['pem']),
@@ -290,12 +290,12 @@  discard block
 block discarded – undo
290 290
             // for obnoxious reasons, we have to dump the request into a file and let pkcs7_sign read from the file
291 291
             // rather than just using the string. Grr.
292 292
             $tempdir = \core\common\Entity::createTemporaryDirectory("test");
293
-            file_put_contents($tempdir['dir'] . "/content.txt", $soapRawRevRequest);
293
+            file_put_contents($tempdir['dir']."/content.txt", $soapRawRevRequest);
294 294
             // retrieve our RA cert from filesystem
295 295
             // sign the data, using cmdline because openssl_pkcs7_sign produces strange results
296 296
             // -binary didn't help, nor switch -md to sha1 sha256 or sha512
297 297
             $this->loggerInstance->debug(5, "Actual content to be signed is this:\n$soapRawRevRequest\n");
298
-        $execCmd = \config\Master::PATHS['openssl'] . " smime -sign -binary -in " . $tempdir['dir'] . "/content.txt -out " . $tempdir['dir'] . "/signature.txt -outform pem -inkey " . CertificationAuthorityEduPkiServer::LOCATION_RA_KEY . " -signer " . CertificationAuthorityEduPkiServer::LOCATION_RA_CERT;
298
+        $execCmd = \config\Master::PATHS['openssl']." smime -sign -binary -in ".$tempdir['dir']."/content.txt -out ".$tempdir['dir']."/signature.txt -outform pem -inkey ".CertificationAuthorityEduPkiServer::LOCATION_RA_KEY." -signer ".CertificationAuthorityEduPkiServer::LOCATION_RA_CERT;
299 299
             $this->loggerInstance->debug(2, "Calling openssl smime with following cmdline: $execCmd\n");
300 300
             $output = [];
301 301
             $return = 999;
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
                 throw new Exception("Non-zero return value from openssl smime!");
305 305
             }
306 306
             // and get the signature blob back from the filesystem
307
-            $detachedSig = trim(file_get_contents($tempdir['dir'] . "/signature.txt"));
307
+            $detachedSig = trim(file_get_contents($tempdir['dir']."/signature.txt"));
308 308
             $soapIssueRev = $soap->approveRevocationRequest($soapRevocationSerial, $soapRawRevRequest, $detachedSig);
309 309
             if ($soapIssueRev === FALSE) {
310 310
                 throw new Exception("The locally approved revocation request was NOT processed by the CA.");
@@ -312,9 +312,9 @@  discard block
 block discarded – undo
312 312
         } catch (Exception $e) {
313 313
             // PHP 7.1 can do this much better
314 314
             if (is_soap_fault($e)) {
315
-                throw new Exception("Error when sending SOAP request: " . "{$e->faultcode}: {$e->faultstring}\n");
315
+                throw new Exception("Error when sending SOAP request: "."{$e->faultcode}: {$e->faultstring}\n");
316 316
             }
317
-            throw new Exception("Something odd happened while doing the SOAP request:" . $e->getMessage());
317
+            throw new Exception("Something odd happened while doing the SOAP request:".$e->getMessage());
318 318
         }
319 319
     }
320 320
 
@@ -414,9 +414,9 @@  discard block
 block discarded – undo
414 414
      */
415 415
     public function soapToXmlInteger($x)
416 416
     {
417
-        return '<' . $x[0] . '>'
417
+        return '<'.$x[0].'>'
418 418
                 . htmlentities($x[1], ENT_NOQUOTES | ENT_XML1)
419
-                . '</' . $x[0] . '>';
419
+                . '</'.$x[0].'>';
420 420
     }
421 421
 
422 422
     /**
@@ -435,9 +435,9 @@  discard block
 block discarded – undo
435 435
         // dump private key into directory
436 436
         $outstring = "";
437 437
         openssl_pkey_export($privateKey, $outstring);
438
-        file_put_contents($tempdir . "/pkey.pem", $outstring);
438
+        file_put_contents($tempdir."/pkey.pem", $outstring);
439 439
         // PHP can only do one DC in the Subject. But we need three.
440
-        $execCmd = \config\Master::PATHS['openssl'] . " req -new -sha256 -key $tempdir/pkey.pem -out $tempdir/request.csr -subj /DC=test/DC=test/DC=eduroam/C=$fed/O=" . \config\ConfAssistant::CONSORTIUM['name'] . "/OU=$fed/CN=$username/emailAddress=$username";
440
+        $execCmd = \config\Master::PATHS['openssl']." req -new -sha256 -key $tempdir/pkey.pem -out $tempdir/request.csr -subj /DC=test/DC=test/DC=eduroam/C=$fed/O=".\config\ConfAssistant::CONSORTIUM['name']."/OU=$fed/CN=$username/emailAddress=$username";
441 441
         $this->loggerInstance->debug(2, "Calling openssl req with following cmdline: $execCmd\n");
442 442
         $output = [];
443 443
         $return = 999;
Please login to merge, or discard this patch.
web/admin/edit_profile_result.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
  *          <base_url>/copyright.php after deploying the software
20 20
  */
21 21
 
22
-require_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php";
22
+require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php";
23 23
 
24 24
 $auth = new \web\lib\admin\Authentication();
25 25
 $deco = new \web\lib\admin\PageDecoration();
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
             $uiElements = new web\lib\admin\UIElements();
126 126
             // set realm info, if submitted
127 127
             if ($realm !== FALSE) {
128
-                $profile->setRealm($anonLocal . "@" . $realm);
128
+                $profile->setRealm($anonLocal."@".$realm);
129 129
                 echo $uiElements->boxOkay(sprintf(_("Realm: <strong>%s</strong>"), $realm));
130 130
             } else {
131 131
                 $profile->setRealm("");
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
                     echo $uiElements->boxError(_("Realm check username cannot be configured: realm is missing!"));
149 149
                 } else {
150 150
                     $profile->setRealmcheckUser(true, $checkuser_name);
151
-                    echo $uiElements->boxOkay(sprintf(_("Special username for realm check is <strong>%s</strong>, the value is <strong>%s</strong>"), _("ON"), $checkuser_name . "@" . $realm));
151
+                    echo $uiElements->boxOkay(sprintf(_("Special username for realm check is <strong>%s</strong>, the value is <strong>%s</strong>"), _("ON"), $checkuser_name."@".$realm));
152 152
                 }
153 153
             } else {
154 154
                 $profile->setRealmCheckUser(false);
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
                 } else {
162 162
                     $profile->setInputVerificationPreference($verify, $hint);
163 163
                     if ($hint !== FALSE) {
164
-                        $extratext = " " . sprintf(_("and the input field will be prefilled with '<strong>@%s</strong>'."), $realm);
164
+                        $extratext = " ".sprintf(_("and the input field will be prefilled with '<strong>@%s</strong>'."), $realm);
165 165
                     } else {
166 166
                         $extratext = ".";
167 167
                     }
@@ -198,29 +198,29 @@  discard block
 block discarded – undo
198 198
                 echo $uiElements->boxOkay(_("Redirection is <strong>OFF</strong>"));
199 199
             }
200 200
 
201
-            $loggerInstance->writeAudit($_SESSION['user'], "MOD", "Profile " . $profile->identifier . " - attributes changed");
201
+            $loggerInstance->writeAudit($_SESSION['user'], "MOD", "Profile ".$profile->identifier." - attributes changed");
202 202
 
203 203
             foreach (\core\common\EAP::listKnownEAPTypes() as $a) {
204 204
                 if ($a->getIntegerRep() == \core\common\EAP::INTEGER_SILVERBULLET) { // do not allow adding silverbullet via the backdoor
205 205
                     continue;
206 206
                 }
207
-                if (isset($_POST[$a->getPrintableRep()]) && isset($_POST[$a->getPrintableRep() . "-priority"]) && is_numeric($_POST[$a->getPrintableRep() . "-priority"])) {
208
-                    $priority = (int) $_POST[$a->getPrintableRep() . "-priority"];
207
+                if (isset($_POST[$a->getPrintableRep()]) && isset($_POST[$a->getPrintableRep()."-priority"]) && is_numeric($_POST[$a->getPrintableRep()."-priority"])) {
208
+                    $priority = (int) $_POST[$a->getPrintableRep()."-priority"];
209 209
                     // add EAP type to profile as requested, but ...
210 210
                     $profile->addSupportedEapMethod($a, $priority);
211
-                    $loggerInstance->writeAudit($_SESSION['user'], "MOD", "Profile " . $profile->identifier . " - supported EAP types changed");
211
+                    $loggerInstance->writeAudit($_SESSION['user'], "MOD", "Profile ".$profile->identifier." - supported EAP types changed");
212 212
                     // see if we can enable the EAP type, or if info is missing
213 213
                     $eapcompleteness = $profile->isEapTypeDefinitionComplete($a);
214 214
                     if ($eapcompleteness === true) {
215
-                        echo $uiElements->boxOkay(_("Supported EAP Type: ") . "<strong>" . $a->getPrintableRep() . "</strong>");
215
+                        echo $uiElements->boxOkay(_("Supported EAP Type: ")."<strong>".$a->getPrintableRep()."</strong>");
216 216
                     } else {
217 217
                         $warntext = "";
218 218
                         if (is_array($eapcompleteness)) {
219 219
                             foreach ($eapcompleteness as $item) {
220
-                                $warntext .= "<strong>" . $uiElements->displayName($item) . "</strong> ";
220
+                                $warntext .= "<strong>".$uiElements->displayName($item)."</strong> ";
221 221
                             }
222 222
                         }
223
-                        echo $uiElements->boxWarning(sprintf(_("Supported EAP Type: <strong>%s</strong> is missing required information %s !"), $a->getPrintableRep(), $warntext) . "<br/>" . _("The EAP type was added to the profile, but you need to complete the missing information before we can produce installers for you."));
223
+                        echo $uiElements->boxWarning(sprintf(_("Supported EAP Type: <strong>%s</strong> is missing required information %s !"), $a->getPrintableRep(), $warntext)."<br/>"._("The EAP type was added to the profile, but you need to complete the missing information before we can produce installers for you."));
224 224
                     }
225 225
                 }
226 226
             }
@@ -230,23 +230,23 @@  discard block
 block discarded – undo
230 230
             if (count($significantChanges) > 0) {
231 231
                 $myInstOriginal = new \core\IdP($profile->institution);
232 232
                 // send a notification/alert mail to someone we know is in charge
233
-                $text = _("To whom it may concern,") . "\n\n";
233
+                $text = _("To whom it may concern,")."\n\n";
234 234
                 /// were made to the *Identity Provider* *LU* / integer number of IdP / (previously known as) Name
235
-                $text .= sprintf(_("significant changes were made to a RADIUS deployment profile of the %s %s / %s / '%s'."), $ui->nomenclatureInst, strtoupper($myInstOriginal->federation), $myInstOriginal->identifier, $myInstOriginal->name) . "\n\n";
235
+                $text .= sprintf(_("significant changes were made to a RADIUS deployment profile of the %s %s / %s / '%s'."), $ui->nomenclatureInst, strtoupper($myInstOriginal->federation), $myInstOriginal->identifier, $myInstOriginal->name)."\n\n";
236 236
                 if (isset($significantChanges[\core\AbstractProfile::CA_CLASH_ADDED])) {
237
-                    $text .= _("WARNING! A new trusted root CA was added, and it has the exact same name as a previously existing root CA. This may (but does not necessarily) mean that this is an attempt to insert an unauthorised trust root by disguising as the genuine one. The details are below:") . "\n\n";
238
-                    $text .= $significantChanges[\core\AbstractProfile::CA_CLASH_ADDED] . "\n\n";
237
+                    $text .= _("WARNING! A new trusted root CA was added, and it has the exact same name as a previously existing root CA. This may (but does not necessarily) mean that this is an attempt to insert an unauthorised trust root by disguising as the genuine one. The details are below:")."\n\n";
238
+                    $text .= $significantChanges[\core\AbstractProfile::CA_CLASH_ADDED]."\n\n";
239 239
                 }
240 240
                 if (isset($significantChanges[\core\AbstractProfile::CA_ADDED])) {
241 241
                     $text .= _("A new trusted root CA was added. The details are below:\n\n");
242
-                    $text .= $significantChanges[\core\AbstractProfile::CA_ADDED] . "\n\n";
242
+                    $text .= $significantChanges[\core\AbstractProfile::CA_ADDED]."\n\n";
243 243
                 }
244 244
                 if (isset($significantChanges[\core\AbstractProfile::SERVERNAME_ADDED])) {
245
-                    $text .= _("A new acceptable server name for the authentication server was added. The details are below:") . "\n\n";
246
-                    $text .= $significantChanges[\core\AbstractProfile::SERVERNAME_ADDED] . "\n\n";
245
+                    $text .= _("A new acceptable server name for the authentication server was added. The details are below:")."\n\n";
246
+                    $text .= $significantChanges[\core\AbstractProfile::SERVERNAME_ADDED]."\n\n";
247 247
                 }
248
-                $text .= _("This mail is merely a cross-check because these changes can be security-relevant. If the change was expected, you do not need to take any action.") . "\n\n";
249
-                $text .= _("Greetings, ") . "\n\n" . \config\Master::APPEARANCE['productname_long'];
248
+                $text .= _("This mail is merely a cross-check because these changes can be security-relevant. If the change was expected, you do not need to take any action.")."\n\n";
249
+                $text .= _("Greetings, ")."\n\n".\config\Master::APPEARANCE['productname_long'];
250 250
                 // (currently, send hard-wired to NRO - future: for linked insts, check eduroam DBv2 and send to registered admins directly)
251 251
                 $fed = new core\Federation($myInstOriginal->federation);
252 252
                 foreach ($fed->listFederationAdmins() as $id) {
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
         <?php
266 266
         if (count($reloadedProfile->getEapMethodsinOrderOfPreference(1)) > 0) {
267 267
             echo "<form method='post' action='overview_installers.php?inst_id=$my_inst->identifier&profile_id=$reloadedProfile->identifier' accept-charset='UTF-8'>
268
-        <button type='submit'>" . _("Continue to Installer Fine-Tuning and Download") . "</button>
268
+        <button type='submit'>"._("Continue to Installer Fine-Tuning and Download")."</button>
269 269
     </form>";
270 270
         }
271 271
         echo $deco->footer();
Please login to merge, or discard this patch.
web/admin/edit_participant_result.php 1 patch
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
  *          <base_url>/copyright.php after deploying the software
21 21
  */
22 22
 
23
-require_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php";
23
+require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php";
24 24
 
25 25
 $auth = new \web\lib\admin\Authentication();
26 26
 $loggerInstance = new \core\common\Logging();
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     $instId = $my_inst->identifier;
36 36
     // delete the IdP and send user to enrollment
37 37
     $my_inst->destroy();
38
-    $loggerInstance->writeAudit($_SESSION['user'], "DEL", "IdP " . $instId);
38
+    $loggerInstance->writeAudit($_SESSION['user'], "DEL", "IdP ".$instId);
39 39
     header("Location: overview_user.php");
40 40
     exit;
41 41
 }
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     }
52 52
     // flush all IdP attributes and send user to creation wizard
53 53
     $my_inst->flushAttributes();
54
-    $loggerInstance->writeAudit($_SESSION['user'], "DEL", "IdP starting over" . $instId);
54
+    $loggerInstance->writeAudit($_SESSION['user'], "DEL", "IdP starting over".$instId);
55 55
     header("Location: edit_participant.php?inst_id=$instId&wizard=true");
56 56
     exit;
57 57
 }
@@ -77,15 +77,15 @@  discard block
 block discarded – undo
77 77
 $myInstOriginal = $validator->IdP($_GET['inst_id'], $_SESSION['user']);
78 78
 $instId = $myInstOriginal->identifier;
79 79
 
80
-$hello = _("To whom it may concern,") . "\n\n";
81
-$bye = _("This mail is merely a cross-check because these changes can be security-relevant. If the change was expected, you do not need to take any action.") . "\n\n" .
82
-        _("Greetings, ") . "\n\n" .
80
+$hello = _("To whom it may concern,")."\n\n";
81
+$bye = _("This mail is merely a cross-check because these changes can be security-relevant. If the change was expected, you do not need to take any action.")."\n\n".
82
+        _("Greetings, ")."\n\n".
83 83
         \config\Master::APPEARANCE['productname_long'];
84 84
 
85 85
 switch ($_POST['submitbutton']) {
86 86
     case web\lib\common\FormElements::BUTTON_DELETE:
87 87
         $myInstOriginal->destroy();
88
-        $loggerInstance->writeAudit($_SESSION['user'], "DEL", "IdP " . $instId);
88
+        $loggerInstance->writeAudit($_SESSION['user'], "DEL", "IdP ".$instId);
89 89
         header("Location: overview_user.php");
90 90
         exit;
91 91
     case web\lib\common\FormElements::BUTTON_FLUSH_AND_RESTART:
@@ -95,9 +95,9 @@  discard block
 block discarded – undo
95 95
         }
96 96
         // flush all IdP attributes and send user to creation wizard
97 97
         $myInstOriginal->flushAttributes();
98
-        $loggerInstance->writeAudit($_SESSION['user'], "DEL", "IdP starting over" . $instId);
99
-        $text = $hello .
100
-                sprintf(_("the %s %s / %s / (previously known as) '%s' has deleted all properties and is starting over freshly. This means that its not recognisable by its name any more, and it may assume a different name in the future. You will get another mail if and when the name change happens."), $ui->nomenclatureInst, strtoupper($myInstOriginal->federation), $myInstOriginal->identifier, $myInstOriginal->name) . "\n\n" .
98
+        $loggerInstance->writeAudit($_SESSION['user'], "DEL", "IdP starting over".$instId);
99
+        $text = $hello.
100
+                sprintf(_("the %s %s / %s / (previously known as) '%s' has deleted all properties and is starting over freshly. This means that its not recognisable by its name any more, and it may assume a different name in the future. You will get another mail if and when the name change happens."), $ui->nomenclatureInst, strtoupper($myInstOriginal->federation), $myInstOriginal->identifier, $myInstOriginal->name)."\n\n".
101 101
                 $bye;
102 102
         $fed = new core\Federation($myInstOriginal->federation);
103 103
         foreach ($fed->listFederationAdmins() as $id) {
@@ -116,19 +116,19 @@  discard block
 block discarded – undo
116 116
             exit(0);
117 117
         }
118 118
         $inst_name = $myInstOriginal->name;
119
-        echo "<h1>" . sprintf(_("Submitted attributes for IdP '%s'"), $inst_name) . "</h1>";
119
+        echo "<h1>".sprintf(_("Submitted attributes for IdP '%s'"), $inst_name)."</h1>";
120 120
         echo "<table>";
121 121
         echo $optionParser->processSubmittedFields($myInstOriginal, $_POST, $_FILES);
122 122
         echo "</table>";
123 123
 // delete cached logo, if present
124
-        $dir = ROOT . '/web/downloads/logos/';
125
-        $globResult = glob($dir . $myInstOriginal->identifier . "_*.png");
124
+        $dir = ROOT.'/web/downloads/logos/';
125
+        $globResult = glob($dir.$myInstOriginal->identifier."_*.png");
126 126
         if ($globResult === FALSE) { // we should catch the improbable error condition
127 127
             $globResult = [];
128 128
         }
129 129
         array_map('unlink', $globResult);
130 130
         $loggerInstance->debug(4, "UNLINK from $dir\n");
131
-        $loggerInstance->writeAudit($_SESSION['user'], "MOD", "IdP " . $myInstOriginal->identifier . " - attributes changed");
131
+        $loggerInstance->writeAudit($_SESSION['user'], "MOD", "IdP ".$myInstOriginal->identifier." - attributes changed");
132 132
 
133 133
 // re-instantiate ourselves... profiles need fresh data
134 134
         $myInstReinstantiated = $validator->IdP($_GET['inst_id'], $_SESSION['user']);
@@ -137,10 +137,10 @@  discard block
 block discarded – undo
137 137
         if (count($significantChanges) > 0) {
138 138
             // send a notification/alert mail to someone we know is in charge
139 139
             /// were made to the *Identity Provider* *LU* / integer number of IdP / (previously known as) Name
140
-            $text = $hello . sprintf(_("significant changes were made to the %s %s / %s / (previously known as) '%s'."), $ui->nomenclatureInst, strtoupper($myInstOriginal->federation), $myInstOriginal->identifier, $myInstOriginal->name) . "\n\n";
140
+            $text = $hello.sprintf(_("significant changes were made to the %s %s / %s / (previously known as) '%s'."), $ui->nomenclatureInst, strtoupper($myInstOriginal->federation), $myInstOriginal->identifier, $myInstOriginal->name)."\n\n";
141 141
             if (isset($significantChanges[\core\IdP::INSTNAME_CHANGED])) {
142
-                $text .= sprintf(_("The %s has changed its name. The details are below:"), $ui->nomenclatureInst) . "\n\n";
143
-                $text .= $significantChanges[\core\IdP::INSTNAME_CHANGED] . "\n\n";
142
+                $text .= sprintf(_("The %s has changed its name. The details are below:"), $ui->nomenclatureInst)."\n\n";
143
+                $text .= $significantChanges[\core\IdP::INSTNAME_CHANGED]."\n\n";
144 144
             }
145 145
             $text .= $bye;
146 146
             // (currently, send hard-wired to NRO - future: for linked insts, check eduroam DBv2 and send to registered admins directly)
@@ -156,15 +156,15 @@  discard block
 block discarded – undo
156 156
 
157 157
         if (isset(\config\ConfAssistant::CONSORTIUM['ssid']) && count(\config\ConfAssistant::CONSORTIUM['ssid']) > 0) {
158 158
             foreach (\config\ConfAssistant::CONSORTIUM['ssid'] as $ssidname) {
159
-                $ssids[] = $ssidname . " " . (isset(\config\ConfAssistant::CONSORTIUM['tkipsupport']) && \config\ConfAssistant::CONSORTIUM['tkipsupport'] === TRUE ? _("(WPA2/AES and WPA/TKIP)") : _("(WPA2/AES)") );
159
+                $ssids[] = $ssidname." ".(isset(\config\ConfAssistant::CONSORTIUM['tkipsupport']) && \config\ConfAssistant::CONSORTIUM['tkipsupport'] === TRUE ? _("(WPA2/AES and WPA/TKIP)") : _("(WPA2/AES)"));
160 160
             }
161 161
         }
162 162
 
163 163
         foreach ($myInstReinstantiated->getAttributes("media:SSID_with_legacy") as $ssidname) {
164
-            $ssids[] = $ssidname['value'] . " " . _("(WPA2/AES and WPA/TKIP)");
164
+            $ssids[] = $ssidname['value']." "._("(WPA2/AES and WPA/TKIP)");
165 165
         }
166 166
         foreach ($myInstReinstantiated->getAttributes("media:SSID") as $ssidname) {
167
-            $ssids[] = $ssidname['value'] . " " . _("(WPA2/AES)");
167
+            $ssids[] = $ssidname['value']." "._("(WPA2/AES)");
168 168
         }
169 169
 
170 170
         echo "<table>";
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
         if (count($ssids) > 0) {
173 173
             $printedlist = "";
174 174
             foreach ($ssids as $names) {
175
-                $printedlist = $printedlist . "$names ";
175
+                $printedlist = $printedlist."$names ";
176 176
             }
177 177
             echo $uiElements->boxOkay(sprintf(_("Your installers will configure the following SSIDs: <strong>%s</strong>"), $printedlist), _("SSIDs configured"));
178 178
         }
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
                 // did we get an email address? then, show the silverbullet jumpstart button
201 201
                 // otherwise, issue a smartass comment
202 202
                 if (count($my_inst->getAttributes("support:email")) > 0) {
203
-                    echo "<form method='post' action='edit_silverbullet.php?inst_id=$my_inst->identifier' accept-charset='UTF-8'><button type='submit'>" . sprintf(_("Continue to %s properties"), \core\ProfileSilverbullet::PRODUCTNAME) . "</button></form>";
203
+                    echo "<form method='post' action='edit_silverbullet.php?inst_id=$my_inst->identifier' accept-charset='UTF-8'><button type='submit'>".sprintf(_("Continue to %s properties"), \core\ProfileSilverbullet::PRODUCTNAME)."</button></form>";
204 204
                 } else {
205 205
                     echo "<table>";
206 206
                     echo $uiElements->boxError(sprintf(_("You did not submit an e-mail address. This is required for %s. Please go to the %s dashboard and edit your helpdesk settings to include a helpdesk e-mail address."), core\ProfileSilverbullet::PRODUCTNAME, $ui->nomenclatureInst), _("No support e-mail!"));
@@ -208,10 +208,10 @@  discard block
 block discarded – undo
208 208
                 }
209 209
             }
210 210
             if (\config\Master::FUNCTIONALITY_LOCATIONS['CONFASSISTANT_RADIUS'] == "LOCAL") {
211
-                echo "<br/><form method='post' action='edit_profile.php?inst_id=$my_inst->identifier' accept-charset='UTF-8'><button type='submit'>" . _("Continue to RADIUS/EAP profile definition") . "</button></form>";
211
+                echo "<br/><form method='post' action='edit_profile.php?inst_id=$my_inst->identifier' accept-charset='UTF-8'><button type='submit'>"._("Continue to RADIUS/EAP profile definition")."</button></form>";
212 212
             }
213 213
         }
214
-        echo "<br/><form method='post' action='overview_user.php?inst_id=$my_inst->identifier' accept-charset='UTF-8'><button type='submit'>" . _("Continue to dashboard") . "</button></form>";
214
+        echo "<br/><form method='post' action='overview_user.php?inst_id=$my_inst->identifier' accept-charset='UTF-8'><button type='submit'>"._("Continue to dashboard")."</button></form>";
215 215
 
216 216
         break;
217 217
     default:
Please login to merge, or discard this patch.
web/admin/overview_user.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 
22 22
 namespace core;
23 23
 
24
-require_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php";
24
+require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php";
25 25
 
26 26
 $instMgmt = new \core\UserManagement();
27 27
 $deco = new \web\lib\admin\PageDecoration();
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
             <?php echo $uiElements->infoblock($user->getAttributes(), "user", "User"); ?>
52 52
             <tr>
53 53
                 <td>
54
-                    <?php echo "" . _("Unique Identifier") ?>
54
+                    <?php echo ""._("Unique Identifier") ?>
55 55
                 </td>
56 56
                 <td>
57 57
                 </td>
@@ -64,14 +64,14 @@  discard block
 block discarded – undo
64 64
     <div>
65 65
         <?php
66 66
         if (\config\Master::DB['USER']['readonly'] === FALSE) {
67
-            echo "<a href='edit_user.php'><button>" . _("Edit User Details") . "</button></a>";
67
+            echo "<a href='edit_user.php'><button>"._("Edit User Details")."</button></a>";
68 68
         }
69 69
 
70 70
         if ($user->isFederationAdmin()) {
71
-            echo "<form action='overview_federation.php' method='GET' accept-charset='UTF-8'><button type='submit'>" . sprintf(_('Click here for %s management tasks'), $uiElements->nomenclatureFed) . "</button></form>";
71
+            echo "<form action='overview_federation.php' method='GET' accept-charset='UTF-8'><button type='submit'>".sprintf(_('Click here for %s management tasks'), $uiElements->nomenclatureFed)."</button></form>";
72 72
         }
73 73
         if ($user->isSuperadmin()) {
74
-            echo "<form action='112365365321.php' method='GET' accept-charset='UTF-8'><button type='submit'>" . _('Click here to access the superadmin page') . "</button></form>";
74
+            echo "<form action='112365365321.php' method='GET' accept-charset='UTF-8'><button type='submit'>"._('Click here to access the superadmin page')."</button></form>";
75 75
         }
76 76
         ?>
77 77
     </div>
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         if (\config\Master::FUNCTIONALITY_LOCATIONS['CONFASSISTANT_SILVERBULLET'] == "LOCAL") {
85 85
             $target = "https://wiki.geant.org/x/6Zg7Bw"; // Managed IdP manual
86 86
         }
87
-        $helptext = "<h3 style='display:inline;'>" . sprintf(_("(Need help? Refer to the <a href='%s'>%s administrator manual</a>)"), $target, $uiElements->nomenclatureInst) . "</h3>";
87
+        $helptext = "<h3 style='display:inline;'>".sprintf(_("(Need help? Refer to the <a href='%s'>%s administrator manual</a>)"), $target, $uiElements->nomenclatureInst)."</h3>";
88 88
     } else {
89 89
         $helptext = "";
90 90
     }
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
         // we need to run the Federation constructor
94 94
         $cat = new \core\CAT;
95 95
         /// first parameter: number of Identity Providers; second param is the literal configured term for 'Identity Provider' (you may or may not be able to add a plural suffix for your locale)
96
-        echo "<h2>" . sprintf(ngettext("You are managing the following <span style='display:none'>%d </span>%s:", "You are managing the following <strong>%d</strong> %s:", sizeof($hasInst)), sizeof($hasInst), $uiElements->nomenclatureParticipant) . "</h2>";
96
+        echo "<h2>".sprintf(ngettext("You are managing the following <span style='display:none'>%d </span>%s:", "You are managing the following <strong>%d</strong> %s:", sizeof($hasInst)), sizeof($hasInst), $uiElements->nomenclatureParticipant)."</h2>";
97 97
         $instlist = [];
98 98
         $my_idps = [];
99 99
         $myFeds = [];
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
     <?php
138 138
     foreach ($myFeds as $fed_id => $fed_name) {
139 139
 /// nomenclature 'fed', fed name, nomenclature 'inst'
140
-        echo "<tr><td colspan='4'><strong>" . sprintf(_("%s %s: %s list"), $uiElements->nomenclatureFed, $fed_name, $uiElements->nomenclatureParticipant) . "</strong></td></tr>";
140
+        echo "<tr><td colspan='4'><strong>".sprintf(_("%s %s: %s list"), $uiElements->nomenclatureFed, $fed_name, $uiElements->nomenclatureParticipant)."</strong></td></tr>";
141 141
 
142 142
         $fedOrganisations = $my_idps[$fed_id];
143 143
         asort($fedOrganisations);
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
             $the_inst = $oneinst['object'];
147 147
 
148 148
             echo "<tr>"
149
-            . "<td>" . $oneinst['name'] . "</td>";
149
+            . "<td>".$oneinst['name']."</td>";
150 150
             echo "<td>";
151 151
             $admins = $the_inst->listOwners();
152 152
             $blessedUser = FALSE;
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
                     $coadmin = new \core\User($username['ID']);
156 156
                     $coadmin_name = $coadmin->getAttributes('user:realname');
157 157
                     if (count($coadmin_name) > 0) {
158
-                        echo $coadmin_name[0]['value'] . "<br/>";
158
+                        echo $coadmin_name[0]['value']."<br/>";
159 159
                         unset($admins[$number]);
160 160
                     }
161 161
                 } else { // don't list self
@@ -166,11 +166,11 @@  discard block
 block discarded – undo
166 166
                 }
167 167
                 $otherAdminCount = count($admins); // only the unnamed remain
168 168
                 if ($otherAdminCount > 0) {
169
-                    echo sprintf(ngettext("%d other user", "%d other users", $otherAdminCount),$otherAdminCount);
169
+                    echo sprintf(ngettext("%d other user", "%d other users", $otherAdminCount), $otherAdminCount);
170 170
                 }
171 171
                 echo "</td><td>";
172 172
                 if ($blessedUser && \config\Master::DB['INST']['readonly'] === FALSE) {
173
-                    echo "<div style='white-space: nowrap;'><form method='post' action='inc/manageAdmins.inc.php?inst_id=" . $the_inst->identifier . "' onsubmit='popupRedirectWindow(this); return false;' accept-charset='UTF-8'><button type='submit'>" . _("Add/Remove Administrators") . "</button></form></div>";
173
+                    echo "<div style='white-space: nowrap;'><form method='post' action='inc/manageAdmins.inc.php?inst_id=".$the_inst->identifier."' onsubmit='popupRedirectWindow(this); return false;' accept-charset='UTF-8'><button type='submit'>"._("Add/Remove Administrators")."</button></form></div>";
174 174
                 }
175 175
                 echo "</td></tr>";
176 176
             }
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
             echo "</td><td>"; // danger zone 
211 211
             ?>
212 212
             <form action='edit_participant_result.php?inst_id=<?php echo $the_inst->identifier; ?>' method='post' accept-charset='UTF-8'>
213
-                <button class='delete' type='submit' name='submitbutton' value='<?php echo \web\lib\common\FormElements::BUTTON_DELETE; ?>' onclick="return confirm('<?php echo ( \config\ConfAssistant::CONSORTIUM['selfservice_registration'] === NULL ? sprintf(_("After deleting the %s, you can not recreate it yourself - you need a new invitation token from the %s administrator!"), $uiElements->nomenclatureInst, $uiElements->nomenclatureFed) . " " : "" ) . sprintf(_("Do you really want to delete your %s %s?"), $uiElements->nomenclatureParticipant, $my_inst->name); ?>')"><?php echo sprintf(_("Delete %s"), $uiElements->nomenclatureParticipant); ?></button>
213
+                <button class='delete' type='submit' name='submitbutton' value='<?php echo \web\lib\common\FormElements::BUTTON_DELETE; ?>' onclick="return confirm('<?php echo (\config\ConfAssistant::CONSORTIUM['selfservice_registration'] === NULL ? sprintf(_("After deleting the %s, you can not recreate it yourself - you need a new invitation token from the %s administrator!"), $uiElements->nomenclatureInst, $uiElements->nomenclatureFed)." " : "").sprintf(_("Do you really want to delete your %s %s?"), $uiElements->nomenclatureParticipant, $my_inst->name); ?>')"><?php echo sprintf(_("Delete %s"), $uiElements->nomenclatureParticipant); ?></button>
214 214
             </form>
215 215
             <form action='edit_participant_result.php?inst_id=<?php echo $the_inst->identifier; ?>' method='post' accept-charset='UTF-8'>
216 216
                 <button class='delete' type='submit' name='submitbutton' value='<?php echo \web\lib\common\FormElements::BUTTON_FLUSH_AND_RESTART; ?>' onclick="return confirm('<?php echo sprintf(_("This action will delete all properties of the %s and start over the configuration from scratch. Do you really want to reset all settings of the %s %s?"), $uiElements->nomenclatureParticipant, $uiElements->nomenclatureParticipant, $my_inst->name); ?>')"><?php echo sprintf(_("Reset all %s settings"), $uiElements->nomenclatureParticipant); ?></button>
@@ -221,18 +221,18 @@  discard block
 block discarded – undo
221 221
     }
222 222
     echo "</table>";
223 223
 } else {
224
-    echo "<h2>" . sprintf(_("You are not managing any %s."), $uiElements->nomenclatureInst) . "</h2>";
224
+    echo "<h2>".sprintf(_("You are not managing any %s."), $uiElements->nomenclatureInst)."</h2>";
225 225
 }
226 226
 if (\config\Master::DB['INST']['readonly'] === FALSE) {
227 227
     if (\config\ConfAssistant::CONSORTIUM['selfservice_registration'] === NULL) {
228
-        echo "<p>" . sprintf(_("Please ask your %s administrator to invite you to become an %s administrator."), $uiElements->nomenclatureFed, $uiElements->nomenclatureParticipant) . "</p>";
228
+        echo "<p>".sprintf(_("Please ask your %s administrator to invite you to become an %s administrator."), $uiElements->nomenclatureFed, $uiElements->nomenclatureParticipant)."</p>";
229 229
         echo "<hr/>
230 230
              <div style='white-space: nowrap;'>
231 231
                 <form action='action_enrollment.php' method='get' accept-charset='UTF-8'>" .
232
-        sprintf(_("Did you receive an invitation token to manage an %s? Please paste it here:"), $uiElements->nomenclatureParticipant) .
232
+        sprintf(_("Did you receive an invitation token to manage an %s? Please paste it here:"), $uiElements->nomenclatureParticipant).
233 233
         "        <input type='text' id='token' name='token'/>
234 234
                     <button type='submit'>" .
235
-        _("Go!") . "
235
+        _("Go!")."
236 236
                     </button>
237 237
                 </form>
238 238
              </div>";
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
             <div style='white-space: nowrap;'>
242 242
         <form action='action_enrollment.php' method='get'><button type='submit' accept-charset='UTF-8'>
243 243
                 <input type='hidden' id='token' name='token' value='SELF-REGISTER'/>" .
244
-        sprintf(_("New %s Registration"), $uiElements->nomenclatureParticipant) . "
244
+        sprintf(_("New %s Registration"), $uiElements->nomenclatureParticipant)."
245 245
             </button>
246 246
         </form>
247 247
         </div>";
Please login to merge, or discard this patch.