Test Failed
Push — master ( 81a1e2...d0d67d )
by Stefan
32:51 queued 20:40
created
devices/ms/Files/common.inc 1 patch
Spacing   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -146,10 +146,10 @@  discard block
 block discarded – undo
146 146
 !define MUI_HEADERIMAGE_BITMAP "cat_150.bmp"
147 147
 !define MUI_COMPONENTSPAGE_SMALLDESC
148 148
 
149
-!define WELCOME_HEADER "<?php printf(WindowsCommon::sprintNsis(_("Welcome to the %s installer")),\config\ConfAssistant::CONSORTIUM['display_name'])?>"
150
-!define FAREWELL_HEADER "<?php WindowsCommon::echoNsis( _("Installation complete"))?>"
151
-!define FAREWELL_TEXT	"<?php WindowsCommon::echoNsis( _("Network profiles have been installed."))?>$\r$\n$\n <?php WindowsCommon::echoNsis(  _("Your system is ready."))?>"
152
-!define FAREWELL_FAIL	"<?php WindowsCommon::echoNsis( _("Network installation had errors."))?>$\r$\n$\n <?php WindowsCommon::echoNsis( _("Please contact \${SUPPORT}."))?>"
149
+!define WELCOME_HEADER "<?php printf(WindowsCommon::sprintNsis(_("Welcome to the %s installer")), \config\ConfAssistant::CONSORTIUM['display_name'])?>"
150
+!define FAREWELL_HEADER "<?php WindowsCommon::echoNsis(_("Installation complete"))?>"
151
+!define FAREWELL_TEXT	"<?php WindowsCommon::echoNsis(_("Network profiles have been installed."))?>$\r$\n$\n <?php WindowsCommon::echoNsis(_("Your system is ready."))?>"
152
+!define FAREWELL_FAIL	"<?php WindowsCommon::echoNsis(_("Network installation had errors."))?>$\r$\n$\n <?php WindowsCommon::echoNsis(_("Please contact \${SUPPORT}."))?>"
153 153
 ;--------------------------------
154 154
 ;Languages
155 155
 !insertmacro MUI_LANGUAGE "${LANG}"
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 ;--------------------------------
158 158
 ; Licence file
159 159
 !ifdef LICENSE_FILE
160
-LicenseForceSelection checkbox "<?php WindowsCommon::echoNsis( _("Accept"))?>"
160
+LicenseForceSelection checkbox "<?php WindowsCommon::echoNsis(_("Accept"))?>"
161 161
 LicenseText "<?php WindowsCommon::echoNsis(_("If you accept the conditions then select Accept and then click Install to continue."))?>"
162 162
 LicenseData ${LICENSE_FILE}
163 163
 !endif
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 VIAddVersionKey "CompanyName" "GÉANT"
171 171
 VIAddVersionKey "ProductVersion" "${VERSION}"
172 172
 
173
-MiscButtonText "" "" "" "<?php WindowsCommon::echoNsis( _("Finish"))?>"
173
+MiscButtonText "" "" "" "<?php WindowsCommon::echoNsis(_("Finish"))?>"
174 174
 ;----------------------------------
175 175
 ;  FUNCTIONS
176 176
 
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
 
205 205
 !macro install_ca_cert ca_file ca_fingerprint level
206 206
    !insertmacro debug_cat 2 "locating certificate  SHA=${ca_fingerprint} Level=${level}"
207
-   DetailPrint "<?php WindowsCommon::echoNsis( _("searching for certificate"))?> ${ca_file}"
207
+   DetailPrint "<?php WindowsCommon::echoNsis(_("searching for certificate"))?> ${ca_file}"
208 208
    File "${ca_file}"
209 209
    nsArray::Set Delete_files "${ca_file}"
210 210
    !insertmacro debug_cat 2 "Testing machine store root"
@@ -266,13 +266,13 @@  discard block
 block discarded – undo
266 266
    ${EndIf}
267 267
    !insertmacro debug_cat 2 "installing certificate $TEMP\${ca_file}"
268 268
    !insertmacro debug_cat 3 "Execute: certutil -addstore -user ${level} $TEMP\${ca_file}"
269
-   DetailPrint "<?php WindowsCommon::echoNsis( _("installing certificate"))?> ${ca_file}"
269
+   DetailPrint "<?php WindowsCommon::echoNsis(_("installing certificate"))?> ${ca_file}"
270 270
    nsExec::Exec '"certutil" -addstore -user ${level} "$TEMP"\${ca_file}'
271 271
    Pop $0
272 272
    !insertmacro debug_cat 3 "certutil returned $0"
273 273
    ${If} $0 != 0
274 274
      IfSilent +2
275
-     MessageBox MB_OK|MB_ICONEXCLAMATION "<?php WindowsCommon::echoNsis( _("could not install certificate"))?>  ${ca_file}"
275
+     MessageBox MB_OK|MB_ICONEXCLAMATION "<?php WindowsCommon::echoNsis(_("could not install certificate"))?>  ${ca_file}"
276 276
      !insertmacro debug_cat 1 "could not install certificate ${ca_file}"
277 277
    ${EndIf}
278 278
 no_install_${ca_file}:
@@ -479,26 +479,26 @@  discard block
 block discarded – undo
479 479
   pop $R0
480 480
   ${If} $tkip_count > 0
481 481
     ${If} $aes_count > 1
482
-      StrCpy $R1 "$\r$\n$\n<?php WindowsCommon::echoNsis( _("The non TKIP profiles are preferred. Always use them if you have a choice."))?>"
482
+      StrCpy $R1 "$\r$\n$\n<?php WindowsCommon::echoNsis(_("The non TKIP profiles are preferred. Always use them if you have a choice."))?>"
483 483
     ${Else}
484
-     StrCpy $R1 "$\r$\n$\n<?php WindowsCommon::echoNsis( _("The non TKIP profile is preferred. Always use it if you have a choice."))?>"
484
+     StrCpy $R1 "$\r$\n$\n<?php WindowsCommon::echoNsis(_("The non TKIP profile is preferred. Always use it if you have a choice."))?>"
485 485
     ${EndIf}
486 486
   ${Else}
487 487
     StrCpy $R1 ""
488 488
   ${EndIf}
489 489
   ${If} $profile_count > 0
490
-    StrCpy $welcome_message "<?php WindowsCommon::echoNsis( _("This installer has been prepared for \${ORGANISATION}"))?>.$\r$\n\
491
-<?php WindowsCommon::echoNsis( _("The installer will create the following wireless profiles:"))?>$\r$\n\
490
+    StrCpy $welcome_message "<?php WindowsCommon::echoNsis(_("This installer has been prepared for \${ORGANISATION}"))?>.$\r$\n\
491
+<?php WindowsCommon::echoNsis(_("The installer will create the following wireless profiles:"))?>$\r$\n\
492 492
 $R0.\
493 493
 $R1$\r$\n$\n\
494
-<?php WindowsCommon::echoNsis( _("More information and comments:"))?>$\r$\n\
494
+<?php WindowsCommon::echoNsis(_("More information and comments:"))?>$\r$\n\
495 495
    EMAIL: ${SUPPORT}$\r$\n\
496 496
    WWW: ${URL}"
497 497
 ${Else}
498
-StrCpy $welcome_message "<?php WindowsCommon::echoNsis( _("This installer has been prepared for \${ORGANISATION}"))?>.$\r$\n\
499
-<?php WindowsCommon::echoNsis( _("The installer will create the wireless profile:"))?> $R0.\
498
+StrCpy $welcome_message "<?php WindowsCommon::echoNsis(_("This installer has been prepared for \${ORGANISATION}"))?>.$\r$\n\
499
+<?php WindowsCommon::echoNsis(_("The installer will create the wireless profile:"))?> $R0.\
500 500
 $R1$\r$\n$\n\
501
-<?php WindowsCommon::echoNsis( _("More information and comments:"))?>$\r$\n\
501
+<?php WindowsCommon::echoNsis(_("More information and comments:"))?>$\r$\n\
502 502
    EMAIL: ${SUPPORT}$\r$\n\
503 503
    WWW: ${URL}"
504 504
 ${EndIf}
@@ -524,7 +524,7 @@  discard block
 block discarded – undo
524 524
   SendMessage $HEADLINE ${WM_SETFONT} $HEADLINE_FONT 0
525 525
 ;TRANSLATION
526 526
   nsDialogs::CreateControl STATIC ${WS_VISIBLE}|${WS_CHILD}|${WS_CLIPSIBLINGS} 0 120u 46u -130u -32u "$welcome_message\
527
-$\r$\n$\r$\n<?php WindowsCommon::echoNsis( _("Installer created with software from the GEANT project."))?>"
527
+$\r$\n$\r$\n<?php WindowsCommon::echoNsis(_("Installer created with software from the GEANT project."))?>"
528 528
   Pop $TEXT
529 529
 
530 530
   SetCtlColors $DIALOG "" 0xffffff
@@ -661,18 +661,18 @@  discard block
 block discarded – undo
661 661
     ${If} $wireless_result == 1
662 662
       !insertmacro debug_cat 1 "wlan_test.exe did not find wireless configuration service"
663 663
       IfSilent +2
664
-      MessageBox MB_OK|MB_ICONEXCLAMATION "<?php WindowsCommon::echoNsis( _("Windows wireless configuration service is not enabled. The installer cannot continue."))?>"
664
+      MessageBox MB_OK|MB_ICONEXCLAMATION "<?php WindowsCommon::echoNsis(_("Windows wireless configuration service is not enabled. The installer cannot continue."))?>"
665 665
       Call Cleanup
666 666
     ${EndIf}
667 667
     ${If} $wireless_result == 2
668 668
       IfSilent +2
669
-      MessageBox MB_OK|MB_ICONEXCLAMATION "<?php WindowsCommon::echoNsis( _("No wireless interfaces found. The installer cannot continue."))?>"
669
+      MessageBox MB_OK|MB_ICONEXCLAMATION "<?php WindowsCommon::echoNsis(_("No wireless interfaces found. The installer cannot continue."))?>"
670 670
       Call Cleanup
671 671
     ${EndIf}
672 672
   ${Else}
673 673
     ${If} $wireless_result > 0
674 674
        IfSilent +3
675
-       MessageBox MB_YESNO "<?php WindowsCommon::echoNsis( _("No wireless interfaces found. Wireless access will not be configured. Would you like to continue and configure access on the wired interface?"))?>" IDYES wired_yes
675
+       MessageBox MB_YESNO "<?php WindowsCommon::echoNsis(_("No wireless interfaces found. Wireless access will not be configured. Would you like to continue and configure access on the wired interface?"))?>" IDYES wired_yes
676 676
        Call Cleanup
677 677
        wired_yes:
678 678
        Push 1
@@ -688,7 +688,7 @@  discard block
 block discarded – undo
688 688
     ${If} $wired == 1
689 689
       ${If} $force_wired == 0
690 690
         IfSilent wired
691
-        MessageBox MB_YESNO "<?php WindowsCommon::echoNsis( _("Do you want to enable access on wired interfaces?"))?>" IDYES wired
691
+        MessageBox MB_YESNO "<?php WindowsCommon::echoNsis(_("Do you want to enable access on wired interfaces?"))?>" IDYES wired
692 692
         Push 0
693 693
         Pop $wired
694 694
         wired:
@@ -729,7 +729,7 @@  discard block
 block discarded – undo
729 729
 ;================================
730 730
 
731 731
 Function ShowInstfiles
732
-  !insertmacro MUI_HEADER_TEXT "<?php WindowsCommon::echoNsis( _("Profiles installation"))?>" " "
732
+  !insertmacro MUI_HEADER_TEXT "<?php WindowsCommon::echoNsis(_("Profiles installation"))?>" " "
733 733
 FunctionEnd
734 734
 ;================================
735 735
 ;  Check if a wireless profile exist and put it on delete list
@@ -748,7 +748,7 @@  discard block
 block discarded – undo
748 748
 
749 749
 Function FindProfile
750 750
   Pop $R8
751
-  DetailPrint "<?php WindowsCommon::echoNsis( _("Checking for profile \$R8"))?>"
751
+  DetailPrint "<?php WindowsCommon::echoNsis(_("Checking for profile \$R8"))?>"
752 752
   !insertmacro debug_cat 2 "Checking for profile $R8"
753 753
   !insertmacro debug_cat 3 "Exec: $Netsh wlan show profiles $R8"
754 754
   nsExec::Exec  '"$Netsh" wlan show profiles "$R8"'
@@ -756,7 +756,7 @@  discard block
 block discarded – undo
756 756
   !insertmacro debug_cat 4 "netsh returned $0"
757 757
   ${If} $0 == 0
758 758
     !insertmacro debug_cat 1 "found profile $R8"
759
-    DetailPrint "<?php WindowsCommon::echoNsis( _("found profile \$R8"))?>"
759
+    DetailPrint "<?php WindowsCommon::echoNsis(_("found profile \$R8"))?>"
760 760
     Push 0
761 761
   ${Else}
762 762
     !insertmacro debug_cat 1 "profile $R8 not found"
@@ -853,7 +853,7 @@  discard block
 block discarded – undo
853 853
     ${If} $Symantec_installed  != 0
854 854
      !insertmacro debug_cat 3 "Symantec problem"
855 855
      IfSilent +2
856
-     MessageBox MB_OK|MB_ICONEXCLAMATION "<?php printf(WindowsCommon::sprintNsis(_("Please READ this message it is IMPORTANT.$\\r$\\nInstallation problems may be due to the fact that Symantec Endpoint Protection is installed on your machine.$\\r$\\nWhile this is a well-known bug of the Symantec product, about which the installer can not do anything, there is a workaround.$\\r$\\nWhen you close this window the installer will exit and an explorer window will be started (it could appear underneath already opened windows). In this window you should see a script named inst_cat. Start it by double-clicking, It will install the profiles. You will need to login to %s with your username and password.")),\config\ConfAssistant::CONSORTIUM['display_name']) ?>"
856
+     MessageBox MB_OK|MB_ICONEXCLAMATION "<?php printf(WindowsCommon::sprintNsis(_("Please READ this message it is IMPORTANT.$\\r$\\nInstallation problems may be due to the fact that Symantec Endpoint Protection is installed on your machine.$\\r$\\nWhile this is a well-known bug of the Symantec product, about which the installer can not do anything, there is a workaround.$\\r$\\nWhen you close this window the installer will exit and an explorer window will be started (it could appear underneath already opened windows). In this window you should see a script named inst_cat. Start it by double-clicking, It will install the profiles. You will need to login to %s with your username and password.")), \config\ConfAssistant::CONSORTIUM['display_name']) ?>"
857 857
     Exec '"explorer" /select,"$EXEDIR\inst_cat.cmd"'
858 858
     Quit
859 859
 
@@ -1186,7 +1186,7 @@  discard block
 block discarded – undo
1186 1186
 Function PFXCertificateSelect
1187 1187
   !ifndef SILVERBULLET
1188 1188
 ;TRANSLATION
1189
-!insertmacro MUI_HEADER_TEXT "<?php printf(WindowsCommon::sprintNsis(_("%s installer for")),\config\ConfAssistant::CONSORTIUM['display_name'])?> " "<?php WindowsCommon::echoNsis(_("Install personal certificate"))?>"
1189
+!insertmacro MUI_HEADER_TEXT "<?php printf(WindowsCommon::sprintNsis(_("%s installer for")), \config\ConfAssistant::CONSORTIUM['display_name'])?> " "<?php WindowsCommon::echoNsis(_("Install personal certificate"))?>"
1190 1190
 ;TRANSLATION
1191 1191
     IfSilent +2
1192 1192
   MessageBox MB_OK "<?php WindowsCommon::echoNsis(_("Preparing to install personal certificate."))?>$\r$\n<?php WindowsCommon::echoNsis(_("Click OK to continue"))?> "
@@ -1202,7 +1202,7 @@  discard block
 block discarded – undo
1202 1202
         $certPasswordLength = strlen($certPasswordLabel);
1203 1203
         $certUsernameLabel = WindowsCommon::sprintNsis(_("Username:"));
1204 1204
         $certUsernameLength = strlen($certUsernameLabel);
1205
-        $labelLength = max($certPasswordLength,$certUsernameLength);
1205
+        $labelLength = max($certPasswordLength, $certUsernameLength);
1206 1206
   ?>
1207 1207
   ${NSD_CreateLabel} 0 0 100% 32u "<?php WindowsCommon::echoNsis(_("Selected file: \$Cert_file"))?>"
1208 1208
   !else
@@ -1219,11 +1219,11 @@  discard block
 block discarded – undo
1219 1219
   !insertmacro debug_cat 3 "Vista level (Vista without Service pack): $VistaNoSP";
1220 1220
   ${If} $VistaNoSP == 0
1221 1221
     !ifdef PFX_USERNAME
1222
-       !define LABEL_LENGTH "<?php echo($labelLength*3.5)?>u"
1223
-       !define TEXT_START "<?php echo($labelLength*3.5 +5)?>u"
1222
+       !define LABEL_LENGTH "<?php echo($labelLength * 3.5)?>u"
1223
+       !define TEXT_START "<?php echo($labelLength * 3.5 + 5)?>u"
1224 1224
     !else
1225
-       !define LABEL_LENGTH "<?php echo($certPasswordLength*3.5)?>u"
1226
-       !define TEXT_START "<?php echo($certPasswordLength*3.5 +5)?>u"
1225
+       !define LABEL_LENGTH "<?php echo($certPasswordLength * 3.5)?>u"
1226
+       !define TEXT_START "<?php echo($certPasswordLength * 3.5 + 5)?>u"
1227 1227
     !endif
1228 1228
     ${NSD_CreateLabel} 0 35u ${LABEL_LENGTH} 12u "<?php echo $certPasswordLabel?>"
1229 1229
     ${NSD_CreatePassword} ${TEXT_START} 34.5u 120u 12u ""
@@ -1595,7 +1595,7 @@  discard block
 block discarded – undo
1595 1595
 Section "-start"
1596 1596
 SectionIn RO
1597 1597
 
1598
-!insertmacro MUI_HEADER_TEXT "<?php WindowsCommon::echoNsis( _("Installation"))?>" "<?php WindowsCommon::echoNsis( _("Checking for existing wireless profiles"))?>"
1598
+!insertmacro MUI_HEADER_TEXT "<?php WindowsCommon::echoNsis(_("Installation"))?>" "<?php WindowsCommon::echoNsis(_("Checking for existing wireless profiles"))?>"
1599 1599
 !ifndef PWD
1600 1600
 !include "certs.nsh"
1601 1601
 !endif
Please login to merge, or discard this patch.
devices/ms/WindowsCommon.php 1 patch
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 
104 104
         $this->loggerInstance->debug(5, "translateFile($source_name, $output_name)\n");
105 105
         ob_start();
106
-        $this->loggerInstance->debug(5, $this->module_path . '/Files/' . $this->device_id . '/' . $source_name . "\n");
106
+        $this->loggerInstance->debug(5, $this->module_path.'/Files/'.$this->device_id.'/'.$source_name."\n");
107 107
         $source = $this->findSourceFile($source_name);
108 108
 
109 109
         if ($source !== false) { // if there is no file found, don't attempt to include an uninitialised variable
@@ -230,8 +230,8 @@  discard block
 block discarded – undo
230 230
         $out .= sprintf(_("%s installer will be in the form of an EXE file. It will configure %s on your device, by creating wireless network profiles.<p>When you click the download button, the installer will be saved by your browser. Copy it to the machine you want to configure and execute."), \config\ConfAssistant::CONSORTIUM['display_name'], \config\ConfAssistant::CONSORTIUM['display_name']);
231 231
         $out .= "<p>";
232 232
         if ($networksCount > $configCount) {
233
-            $out .= sprintf(ngettext("In addition to <strong>%s</strong> the installer will also configure access to:", "In addition to <strong>%s</strong> the installer will also configure access to the following networks:", $networksCount - $configCount), implode(', ', $configNetworkList)) . " ";
234
-            $out .= '<strong>' . join('</strong>, <strong>', array_diff($networkList, $configNetworkList)) . '</strong>';
233
+            $out .= sprintf(ngettext("In addition to <strong>%s</strong> the installer will also configure access to:", "In addition to <strong>%s</strong> the installer will also configure access to the following networks:", $networksCount - $configCount), implode(', ', $configNetworkList))." ";
234
+            $out .= '<strong>'.join('</strong>, <strong>', array_diff($networkList, $configNetworkList)).'</strong>';
235 235
             $out .= "<p>";
236 236
         }
237 237
 // TODO - change this below
@@ -340,14 +340,14 @@  discard block
 block discarded – undo
340 340
      */
341 341
     protected function signInstaller()
342 342
     {
343
-        $fileName = $this->installerBasename . '.exe';
343
+        $fileName = $this->installerBasename.'.exe';
344 344
         if (!$this->sign) {
345 345
             rename("installer.exe", $fileName);
346 346
             return $fileName;
347 347
         }
348 348
         $retval = 0;
349 349
         // are actually signing
350
-        $outputFromSigning = system($this->sign . " installer.exe '$fileName' > /dev/null", $retval);
350
+        $outputFromSigning = system($this->sign." installer.exe '$fileName' > /dev/null", $retval);
351 351
         $this->loggerInstance->debug(4, $retval, "Output from Windows signing:", "==\n");
352 352
         if ($retval !== 0 || $outputFromSigning === false) {
353 353
             $this->loggerInstance->debug(2, "Signing the WindowsCommon installer $fileName FAILED!\n");
@@ -365,12 +365,12 @@  discard block
 block discarded – undo
365 365
      */
366 366
     protected function compileNSIS()
367 367
     {
368
-        $makensis = \config\ConfAssistant::PATHS['makensis'] . " -INPUTCHARSET UTF8";
368
+        $makensis = \config\ConfAssistant::PATHS['makensis']." -INPUTCHARSET UTF8";
369 369
         $lcAll = getenv("LC_ALL");
370 370
         putenv("LC_ALL=en_US.UTF-8");
371
-        $command = $makensis . ' -V4 cat.NSI > nsis.log 2>&1';
371
+        $command = $makensis.' -V4 cat.NSI > nsis.log 2>&1';
372 372
         system($command);
373
-        putenv("LC_ALL=" . $lcAll);
373
+        putenv("LC_ALL=".$lcAll);
374 374
         $this->loggerInstance->debug(4, "compileNSIS:$command\n");
375 375
     }
376 376
 
@@ -387,10 +387,10 @@  discard block
 block discarded – undo
387 387
             'email' => 'SUPPORT',
388 388
             'url' => 'URL',
389 389
         ];
390
-        $s = "support_" . $type . "_substitute";
390
+        $s = "support_".$type."_substitute";
391 391
         $substitute = $this->translateString($this->$s);
392
-        $returnValue = !empty($attr['support:' . $type][0]) ? $attr['support:' . $type][0] : $substitute;
393
-        return '!define ' . $supportString[$type] . ' "' . $returnValue . '"' . "\n";
392
+        $returnValue = !empty($attr['support:'.$type][0]) ? $attr['support:'.$type][0] : $substitute;
393
+        return '!define '.$supportString[$type].' "'.$returnValue.'"'."\n";
394 394
     }
395 395
 
396 396
     /**
@@ -403,18 +403,18 @@  discard block
 block discarded – undo
403 403
     {
404 404
         $fcontents = '';
405 405
         if ($attr['internal:profile_count'][0] > 1) {
406
-            $fcontents .= "\n" . '!define USER_GROUP "' . $this->translateString(str_replace('"', '$\\"', $attr['profile:name'][0])) . '"
406
+            $fcontents .= "\n".'!define USER_GROUP "'.$this->translateString(str_replace('"', '$\\"', $attr['profile:name'][0])).'"
407 407
 ';
408 408
         }
409 409
         $fcontents .= '
410
-Caption "' . $this->translateString(sprintf(WindowsCommon::sprintNsis(_("%s installer for %s")), \config\ConfAssistant::CONSORTIUM['display_name'], $attr['general:instname'][0])) . '"
411
-!define APPLICATION "' . $this->translateString(sprintf(WindowsCommon::sprintNsis(_("%s installer for %s")), \config\ConfAssistant::CONSORTIUM['display_name'], $attr['general:instname'][0])) . '"
412
-!define VERSION "' . \core\CAT::VERSION_MAJOR . '.' . \core\CAT::VERSION_MINOR . '.' . \core\CAT::VERSION_PATCH . '"
410
+Caption "' . $this->translateString(sprintf(WindowsCommon::sprintNsis(_("%s installer for %s")), \config\ConfAssistant::CONSORTIUM['display_name'], $attr['general:instname'][0])).'"
411
+!define APPLICATION "' . $this->translateString(sprintf(WindowsCommon::sprintNsis(_("%s installer for %s")), \config\ConfAssistant::CONSORTIUM['display_name'], $attr['general:instname'][0])).'"
412
+!define VERSION "' . \core\CAT::VERSION_MAJOR.'.'.\core\CAT::VERSION_MINOR.'.'.\core\CAT::VERSION_PATCH.'"
413 413
 !define INSTALLER_NAME "installer.exe"
414
-!define LANG "' . $this->lang . '"
415
-!define LOCALE "' . preg_replace('/\..*$/', '', \config\Master::LANGUAGES[$this->languageInstance->getLang()]['locale']) . '"
414
+!define LANG "' . $this->lang.'"
415
+!define LOCALE "' . preg_replace('/\..*$/', '', \config\Master::LANGUAGES[$this->languageInstance->getLang()]['locale']).'"
416 416
 ;--------------------------------
417
-!define ORGANISATION "' . $this->translateString($attr['general:instname'][0]) . '"
417
+!define ORGANISATION "' . $this->translateString($attr['general:instname'][0]).'"
418 418
 ';
419 419
         $fcontents .= $this->getSupport($attr, 'email');
420 420
         $fcontents .= $this->getSupport($attr, 'url');
@@ -422,18 +422,18 @@  discard block
 block discarded – undo
422 422
             $fcontents .= '!define WIRED
423 423
         ';
424 424
         }
425
-        $fcontents .= '!define PROVIDERID "urn:UUID:' . $this->deviceUUID . '"
425
+        $fcontents .= '!define PROVIDERID "urn:UUID:'.$this->deviceUUID.'"
426 426
 ';
427 427
         if (!empty($attr['internal:realm'][0])) {
428
-            $fcontents .= '!define REALM "' . $attr['internal:realm'][0] . '"
428
+            $fcontents .= '!define REALM "'.$attr['internal:realm'][0].'"
429 429
 ';
430 430
         }
431 431
         if (!empty($attr['internal:hint_userinput_suffix'][0]) && $attr['internal:hint_userinput_suffix'][0] == 1) {
432
-            $fcontents .= '!define HINT_USER_INPUT "' . $attr['internal:hint_userinput_suffix'][0] . '"
432
+            $fcontents .= '!define HINT_USER_INPUT "'.$attr['internal:hint_userinput_suffix'][0].'"
433 433
 ';
434 434
         }
435 435
         if (!empty($attr['internal:verify_userinput_suffix'][0]) && $attr['internal:verify_userinput_suffix'][0] == 1) {
436
-            $fcontents .= '!define VERIFY_USER_REALM_INPUT "' . $attr['internal:verify_userinput_suffix'][0] . '"
436
+            $fcontents .= '!define VERIFY_USER_REALM_INPUT "'.$attr['internal:verify_userinput_suffix'][0].'"
437 437
 ';
438 438
         }
439 439
         $fcontents .= $this->msInfoFile($attr);
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
             $out .= '!define EXTERNAL_INFO "';
455 455
 //  $this->loggerInstance->debug(4,"Info file type ".$attr['support:info_file'][0]['mime']."\n");
456 456
             if ($attr['internal:info_file'][0]['mime'] == 'rtf') {
457
-                $out = '!define LICENSE_FILE "' . $attr['internal:info_file'][0]['name'];
457
+                $out = '!define LICENSE_FILE "'.$attr['internal:info_file'][0]['name'];
458 458
             } elseif ($attr['internal:info_file'][0]['mime'] == 'txt') {
459 459
                 $infoFile = file_get_contents($attr['internal:info_file'][0]['name']);
460 460
                 if ($infoFile === false) {
@@ -467,7 +467,7 @@  discard block
 block discarded – undo
467 467
                     $out = '!define LICENSE_FILE " info_f.txt';
468 468
                 }
469 469
             } else {
470
-                $out = '!define EXTERNAL_INFO "' . $attr['internal:info_file'][0]['name'];
470
+                $out = '!define EXTERNAL_INFO "'.$attr['internal:info_file'][0]['name'];
471 471
             }
472 472
 
473 473
             $out .= "\"\n";
Please login to merge, or discard this patch.
web/lib/admin/MapGoogle.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     public function htmlHeadCode() {
48 48
         $cat = new \core\CAT();
49 49
         \core\common\Entity::intoThePotatoes();
50
-        $retval = "<script type='text/javascript' src='https://maps.googleapis.com/maps/api/js?key=" . \config\Master::APPEARANCE['google_maps_api_key'] . "'></script>
50
+        $retval = "<script type='text/javascript' src='https://maps.googleapis.com/maps/api/js?key=".\config\Master::APPEARANCE['google_maps_api_key']."'></script>
51 51
     <script type='text/javascript'>
52 52
         // some global variables;
53 53
         var center_lat=49.6114885608729;
@@ -103,19 +103,19 @@  discard block
 block discarded – undo
103 103
          *
104 104
          */
105 105
         function locator_magic() {
106
-            geocoder.geocode({'address':\"" . preg_replace("/\"/", "&quot;", $this->instName) . "\", 'region':\"" . strtolower($this->fedName) . "\"},
106
+            geocoder.geocode({'address':\"" . preg_replace("/\"/", "&quot;", $this->instName)."\", 'region':\"".strtolower($this->fedName)."\"},
107 107
             function(r,status) {
108 108
                 if(status != google.maps.GeocoderStatus.OK) {
109
-                    locate_country(\"" . $cat->knownFederations[strtoupper($this->fedName)]['name'] . "\");
109
+                    locate_country(\"" . $cat->knownFederations[strtoupper($this->fedName)]['name']."\");
110 110
                 } else {
111 111
                     var i;
112 112
                     for(i = 0; i < r.length; i++) {
113 113
                         Addr = getAddressElements(r[i].address_components);
114
-                        if(Addr.country == \"" . strtoupper($this->fedName) . "\")
114
+                        if(Addr.country == \"" . strtoupper($this->fedName)."\")
115 115
                         break;
116 116
                     }
117
-                    if(Addr.country != \"" . strtoupper($this->fedName) . "\")
118
-                    locate_country(\"" . $cat->knownFederations[strtoupper($this->fedName)]['name'] . "\");
117
+                    if(Addr.country != \"" . strtoupper($this->fedName)."\")
118
+                    locate_country(\"" . $cat->knownFederations[strtoupper($this->fedName)]['name']."\");
119 119
                     else {
120 120
                         addMarker(r[i].geometry.location,15,null);
121 121
                     }
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
          */
129 129
         function markerClicked(m) {
130 130
             info_window.close();
131
-            var t = \"" . _("This is location ") . "\"+m.info;
131
+            var t = \"" . _("This is location ")."\"+m.info;
132 132
             info_window.setContent(t);
133 133
             info_window.setPosition(m.getPosition());
134 134
             info_window.open(map,m);
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
         function getAddressLocation() {
208 208
             var city = $('#address').val();
209 209
             if(city == '') {
210
-                alert(\"" . _("nothing entered in the address field") . "\");
210
+                alert(\"" . _("nothing entered in the address field")."\");
211 211
                 return false;
212 212
             }
213 213
             geocoder.geocode( { 'address': city}, function(results, status) {
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
          * trigger geolocation
228 228
          */
229 229
         function locateMe() {
230
-            $('#address').val(\"" . _("locating") . "\");
230
+            $('#address').val(\"" . _("locating")."\");
231 231
             navigator.geolocation.getCurrentPosition(locate_succes,locate_fail,{maximumAge:3600000, timeout:5000});
232 232
         }
233 233
 
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
         if ($this->readOnly) {
346 346
             return "<div id='map' class='googlemap'></div>";
347 347
         } else {
348
-            return $this->htmlPreEdit($wizard, $additional) . $this->findLocationHtml() . "<div id='map' class='googlemap'></div>" . $this->htmlPostEdit(FALSE);
348
+            return $this->htmlPreEdit($wizard, $additional).$this->findLocationHtml()."<div id='map' class='googlemap'></div>".$this->htmlPostEdit(FALSE);
349 349
         }
350 350
     }
351 351
 
@@ -358,11 +358,11 @@  discard block
 block discarded – undo
358 358
      */
359 359
     public static function optionListDisplayCode($coords, $number) {
360 360
         // quiesce warnings about unused variable
361
-        if (strlen(sprintf("%s", $coords)) <0) {
361
+        if (strlen(sprintf("%s", $coords)) < 0) {
362 362
             throw new \Exception("A miracle! A string with negative length!");
363 363
         };
364 364
         \core\common\Entity::intoThePotatoes();
365
-        $retval = "<button id='location_b_" . $number . "' class='location_button'>" . _("Click to see location") . " $number</button>";
365
+        $retval = "<button id='location_b_".$number."' class='location_button'>"._("Click to see location")." $number</button>";
366 366
         \core\common\Entity::outOfThePotatoes();
367 367
         return $retval;
368 368
     }
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
      * @return string
374 374
      */
375 375
     public function bodyTagCode() {
376
-        return "onload='load(" . ($this->readOnly ? "0" : "1") . ")'";
376
+        return "onload='load(".($this->readOnly ? "0" : "1").")'";
377 377
     }
378 378
 
379 379
     /**
@@ -383,7 +383,7 @@  discard block
 block discarded – undo
383 383
      */
384 384
     private function findLocationHtml() {
385 385
         \core\common\Entity::intoThePotatoes();
386
-        $retval = "<p>" . _("Address:") . " <input name='address' id='address' /><button type='button' onclick='getAddressLocation()'>" . _("Find address") . "</button> <button type='button' onclick='locateMe()'>" . _("Locate Me!") . "</button></p>";
386
+        $retval = "<p>"._("Address:")." <input name='address' id='address' /><button type='button' onclick='getAddressLocation()'>"._("Find address")."</button> <button type='button' onclick='locateMe()'>"._("Locate Me!")."</button></p>";
387 387
         \core\common\Entity::outOfThePotatoes();
388 388
         return $retval;
389 389
     }
Please login to merge, or discard this patch.
web/lib/admin/MapOpenLayers.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
         
84 84
 // use HTML5 geolocation
85 85
         function locateMe() {
86
-            $('#address').val(\"" . _("locating") . "\");
86
+            $('#address').val(\"" . _("locating")."\");
87 87
             navigator.geolocation.getCurrentPosition(locate_succes,locate_fail,{maximumAge:3600000, timeout:5000});
88 88
         }
89 89
         
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
                 view.fit(extent, {padding: [10, 0, 10, 0]});
206 206
             } else {
207 207
                 view.setCenter([0,0]);
208
-                locate_country('" . $cat->knownFederations[strtoupper($this->fedName)]['name'] . "'); // use the federation code to locate the country
208
+                locate_country('" . $cat->knownFederations[strtoupper($this->fedName)]['name']."'); // use the federation code to locate the country
209 209
                 map.setView(view);
210 210
             }
211 211
             view.setMaxZoom(20);
@@ -227,14 +227,14 @@  discard block
 block discarded – undo
227 227
         function getAddressLocation() {
228 228
             var city = $('#address').val();
229 229
             if(city == '') {
230
-                alert(\"" . _("nothing entered in the address field") . "\");
230
+                alert(\"" . _("nothing entered in the address field")."\");
231 231
                 return false;
232 232
             }
233 233
             city = city.replace(/\s*,\s*/g,',+');
234 234
             city = city.replace(/ +/,'+');
235 235
             $.get(addressService+'?format=json&addressdetails=0&q='+city, '',  function(data) {
236 236
                 if (data[0] === undefined) {
237
-                    alert('" . _("Address not found, perhaps try another form, like putting the street number to the front.") . "');
237
+                    alert('" . _("Address not found, perhaps try another form, like putting the street number to the front.")."');
238 238
                     return;
239 239
                 }
240 240
                 showTmpPointer(data[0].lon, data[0].lat);
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
         if ($this->readOnly) {
286 286
             return "<div id='map' class='locationmap'></div><script>generateMap('map')</script>";
287 287
         } else {
288
-            return $this->htmlPreEdit($wizard, $additional) . $this->findLocationHtml() . "<span id='location-prompt'>You can drag the pointer to the final location before you save the results.</span><div id='map' class='locationmap'></div><script>generateMap('map')</script>" . $this->htmlPostEdit(FALSE);
288
+            return $this->htmlPreEdit($wizard, $additional).$this->findLocationHtml()."<span id='location-prompt'>You can drag the pointer to the final location before you save the results.</span><div id='map' class='locationmap'></div><script>generateMap('map')</script>".$this->htmlPostEdit(FALSE);
289 289
         }
290 290
     }
291 291
 
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
         // we don't need this parameter in this subclass
311 311
         unset($coords);
312 312
         \core\common\Entity::intoThePotatoes();
313
-        $retval = "<button id='location_b_" . $number . "' class='location_button'>" . _("Click to see location") . " $number</button>";
313
+        $retval = "<button id='location_b_".$number."' class='location_button'>"._("Click to see location")." $number</button>";
314 314
         \core\common\Entity::outOfThePotatoes();
315 315
         return $retval;
316 316
     }
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
      */
323 323
     private function findLocationHtml() {
324 324
         \core\common\Entity::intoThePotatoes();
325
-        $retval = "<p>" . _("Address:") . " <input name='address' id='address' /><button type='button' onclick='getAddressLocation()'>" . _("Find address") . "</button> <button type='button' onclick='locateMe()'>" . _("Locate Me!") . "</button></p>";
325
+        $retval = "<p>"._("Address:")." <input name='address' id='address' /><button type='button' onclick='getAddressLocation()'>"._("Find address")."</button> <button type='button' onclick='locateMe()'>"._("Locate Me!")."</button></p>";
326 326
         \core\common\Entity::outOfThePotatoes();
327 327
         return $retval;
328 328
     }
Please login to merge, or discard this patch.
web/admin/edit_participant.php 1 patch
Spacing   +7 added lines, -7 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();
@@ -116,12 +116,12 @@  discard block
 block discarded – undo
116 116
         </table>
117 117
     </div>
118 118
     <?php
119
-    echo "<form enctype='multipart/form-data' action='edit_participant_result.php?inst_id=$my_inst->identifier" . ($wizardStyle ? "&wizard=true" : "") . "' method='post' accept-charset='UTF-8'>
120
-              <input type='hidden' name='MAX_FILE_SIZE' value='" . \config\Master::MAX_UPLOAD_SIZE . "'>";
119
+    echo "<form enctype='multipart/form-data' action='edit_participant_result.php?inst_id=$my_inst->identifier".($wizardStyle ? "&wizard=true" : "")."' method='post' accept-charset='UTF-8'>
120
+              <input type='hidden' name='MAX_FILE_SIZE' value='" . \config\Master::MAX_UPLOAD_SIZE."'>";
121 121
 
122 122
     if ($wizardStyle) {
123
-        echo "<p>" .
124
-        sprintf(_("Hello, newcomer. The %s is new to us. This wizard will ask you several questions about it, so that we can generate beautiful profiles for you in the end. All of the information below is optional, but it is important to fill out as many fields as possible for the benefit of your end users."), $uiElements->nomenclatureParticipant) . "</p>";
123
+        echo "<p>".
124
+        sprintf(_("Hello, newcomer. The %s is new to us. This wizard will ask you several questions about it, so that we can generate beautiful profiles for you in the end. All of the information below is optional, but it is important to fill out as many fields as possible for the benefit of your end users."), $uiElements->nomenclatureParticipant)."</p>";
125 125
     }
126 126
     $optionDisplay = new web\lib\admin\OptionDisplay($idpoptions, \core\Options::LEVEL_IDP);
127 127
     ?>
@@ -163,9 +163,9 @@  discard block
 block discarded – undo
163 163
         $discardLabel = _("Discard changes");
164 164
     }
165 165
     if ($wizardStyle) {
166
-        echo "<p>" . sprintf(_("When you are sure that everything is correct, please click on %sContinue ...%s"), "<button type='submit' name='submitbutton' value='" . web\lib\common\FormElements::BUTTON_CONTINUE . "'>", "</button>") . "</p></form>";
166
+        echo "<p>".sprintf(_("When you are sure that everything is correct, please click on %sContinue ...%s"), "<button type='submit' name='submitbutton' value='".web\lib\common\FormElements::BUTTON_CONTINUE."'>", "</button>")."</p></form>";
167 167
     } else {
168
-        echo "<div><button type='submit' id='submitbutton' name='submitbutton' value='" . web\lib\common\FormElements::BUTTON_SAVE . "'>" . _("Save data") . "</button> <button type='button' name='abortbutton' value='abort' onclick='javascript:window.location = \"overview_org.php?inst_id=$my_inst->identifier\"'>".$discardLabel."</button></div></form>";
168
+        echo "<div><button type='submit' id='submitbutton' name='submitbutton' value='".web\lib\common\FormElements::BUTTON_SAVE."'>"._("Save data")."</button> <button type='button' name='abortbutton' value='abort' onclick='javascript:window.location = \"overview_org.php?inst_id=$my_inst->identifier\"'>".$discardLabel."</button></div></form>";
169 169
     }
170 170
     echo $deco->footer();
171 171
     
172 172
\ No newline at end of file
Please login to merge, or discard this patch.
web/admin/sort_profiles.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 ?>
28 28
 
29 29
 <?php
30
-require_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php";
30
+require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php";
31 31
 
32 32
 $deco = new \web\lib\admin\PageDecoration();
33 33
 $validator = new \web\lib\common\InputValidation();
Please login to merge, or discard this patch.
web/admin/css/wizard.css.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 // we need to know if we are serving a RTL language so we can flip some heading
22 22
 // items
23 23
 header("Content-Type:text/css");
24
-require_once dirname(dirname(dirname(__DIR__))) . "/config/_config.php";
24
+require_once dirname(dirname(dirname(__DIR__)))."/config/_config.php";
25 25
 $langInstance = new core\common\Language();
26 26
 $start = $langInstance->rtl ? "right" : "left";
27 27
 $end = $langInstance->rtl ? "left" : "right";
Please login to merge, or discard this patch.
web/admin/edit_profile.php 1 patch
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
  */
27 27
 ?>
28 28
 <?php
29
-require_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php";
29
+require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php";
30 30
 
31 31
 $deco = new \web\lib\admin\PageDecoration();
32 32
 $validator = new \web\lib\common\InputValidation();
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
         $detectRealm = $validator->string($_POST['realm_to_detect']);
128 128
         $localname = $validator->string($_POST['username_to_detect']);
129 129
         $checker = new \core\diag\RADIUSTests($detectRealm, $localname);
130
-        $detectionResult = $checker->autodetectCAWithProbe($localname . "@" . $detectRealm);
130
+        $detectionResult = $checker->autodetectCAWithProbe($localname."@".$detectRealm);
131 131
         $loggerInstance->debug(2, "CA Auto-Detection yields:");
132 132
         $loggerInstance->debug(2, $detectionResult);
133 133
         if ($detectionResult['ROOT_CA'] !== NULL) { // we are lucky!
@@ -171,8 +171,8 @@  discard block
 block discarded – undo
171 171
     <?php
172 172
     echo $uiElements->instLevelInfoBoxes($my_inst);
173 173
 
174
-    echo "<form enctype='multipart/form-data' action='edit_profile_result.php?inst_id=$my_inst->identifier" . ($my_profile !== NULL ? "&amp;profile_id=" . $my_profile->identifier : "") . "' method='post' accept-charset='UTF-8'>
175
-                <input type='hidden' name='MAX_FILE_SIZE' value='" . \config\Master::MAX_UPLOAD_SIZE . "'>";
174
+    echo "<form enctype='multipart/form-data' action='edit_profile_result.php?inst_id=$my_inst->identifier".($my_profile !== NULL ? "&amp;profile_id=".$my_profile->identifier : "")."' method='post' accept-charset='UTF-8'>
175
+                <input type='hidden' name='MAX_FILE_SIZE' value='" . \config\Master::MAX_UPLOAD_SIZE."'>";
176 176
     $optionDisplay = new \web\lib\admin\OptionDisplay($profile_options, \core\Options::LEVEL_PROFILE);
177 177
     ?>
178 178
     <fieldset class="option_container">
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
         </legend>
182 182
         <?php
183 183
         if ($wizardStyle) {
184
-             echo "<p>" . _("We will now define a profile for your user group(s).  You can add as many profiles as you like by choosing the appropriate button on the end of the page. After we are done, the wizard is finished and you will be taken to the main IdP administration page.") . "</p>";
184
+             echo "<p>"._("We will now define a profile for your user group(s).  You can add as many profiles as you like by choosing the appropriate button on the end of the page. After we are done, the wizard is finished and you will be taken to the main IdP administration page.")."</p>";
185 185
         }
186 186
          ?>
187 187
         <h3><?php echo _("Profile Name and RADIUS realm"); ?>
@@ -258,37 +258,37 @@  discard block
 block discarded – undo
258 258
             <tr>
259 259
                 <!-- checkbox and input field for anonymity support, available only when realm is known-->
260 260
                 <td>
261
-                    <span id='anon_support_label' style='<?php echo ($realm == "" ? "color:#999999" : "" ); ?>'>
261
+                    <span id='anon_support_label' style='<?php echo ($realm == "" ? "color:#999999" : ""); ?>'>
262 262
                         <?php echo _("Enable Anonymous Outer Identity:"); ?>
263 263
                     </span>
264 264
                 </td>
265 265
                 <td>
266
-                    <input type='checkbox' <?php echo ($useAnon != FALSE ? "checked" : "" ) . ($realm == "" ? " disabled" : "" ); ?> name='anon_support' onclick='
266
+                    <input type='checkbox' <?php echo ($useAnon != FALSE ? "checked" : "").($realm == "" ? " disabled" : ""); ?> name='anon_support' onclick='
267 267
                             if (this.form.elements["anon_support"].checked !== true) {
268 268
                                 this.form.elements["anon_local"].setAttribute("disabled", "disabled");
269 269
                             } else {
270 270
                                 this.form.elements["anon_local"].removeAttribute("disabled");
271 271
                             }
272 272
                             ;'/>
273
-                    <input type='text' <?php echo ($useAnon == FALSE ? "disabled" : "" ); ?> name='anon_local' value='<?php echo $anonLocal; ?>'/>
273
+                    <input type='text' <?php echo ($useAnon == FALSE ? "disabled" : ""); ?> name='anon_local' value='<?php echo $anonLocal; ?>'/>
274 274
                 </td>
275 275
             </tr>
276 276
             <tr>
277 277
                 <!-- checkbox and input field for check realm outer id, available only when realm is known-->
278 278
                 <td>
279
-                    <span id='checkuser_label' style='<?php echo ($realm == "" ? "color:#999999" : "" ); ?>'>
279
+                    <span id='checkuser_label' style='<?php echo ($realm == "" ? "color:#999999" : ""); ?>'>
280 280
                         <?php echo _("Use special Outer Identity for realm checks:"); ?>
281 281
                     </span>
282 282
                 </td>
283 283
                 <td>
284
-                    <input type='checkbox' <?php echo ($checkuserOuter != FALSE ? "checked" : "" ) . ($realm == "" ? " disabled" : "" ); ?> name='checkuser_support' onclick='
284
+                    <input type='checkbox' <?php echo ($checkuserOuter != FALSE ? "checked" : "").($realm == "" ? " disabled" : ""); ?> name='checkuser_support' onclick='
285 285
                             if (this.form.elements["checkuser_support"].checked !== true) {
286 286
                                 this.form.elements["checkuser_local"].setAttribute("disabled", "disabled");
287 287
                             } else {
288 288
                                 this.form.elements["checkuser_local"].removeAttribute("disabled");
289 289
                             }
290 290
                             ;'/>
291
-                    <input type='text' <?php echo ($checkuserOuter == FALSE ? "disabled" : "" ); ?> name='checkuser_local' value='<?php echo $checkuserValue; ?>'/>
291
+                    <input type='text' <?php echo ($checkuserOuter == FALSE ? "disabled" : ""); ?> name='checkuser_local' value='<?php echo $checkuserValue; ?>'/>
292 292
                 </td>
293 293
             </tr>
294 294
             <tr>
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
                 </td>
304 304
                 <td>
305 305
                     <input type='checkbox' <?php
306
-                    echo ($verify != FALSE ? "checked" : "" );
306
+                    echo ($verify != FALSE ? "checked" : "");
307 307
                     ?> name='verify_support' onclick='
308 308
                                 if (this.form.elements["verify_support"].checked !== true || this.form.elements["realm"].value.length == 0) {
309 309
                                     this.form.elements["hint_support"].setAttribute("disabled", "disabled");
@@ -315,12 +315,12 @@  discard block
 block discarded – undo
315 315
             </tr>
316 316
             <tr>
317 317
                 <td>
318
-                    <span id='hint_label' style='<?php echo ($realm == "" ? "color:#999999" : "" ); ?>'>
318
+                    <span id='hint_label' style='<?php echo ($realm == "" ? "color:#999999" : ""); ?>'>
319 319
                         <?php echo _("Enforce exact realm in username"); ?>
320 320
                     </span>
321 321
                 </td>
322 322
                 <td>
323
-                    <input type='checkbox' <?php echo ($verify == FALSE ? "disabled" : "" ); ?> name='hint_support' <?php echo ( $hint != FALSE ? "checked" : "" ); ?> />
323
+                    <input type='checkbox' <?php echo ($verify == FALSE ? "disabled" : ""); ?> name='hint_support' <?php echo ($hint != FALSE ? "checked" : ""); ?> />
324 324
                 </td>
325 325
             </tr>
326 326
         </table>
@@ -334,14 +334,14 @@  discard block
 block discarded – undo
334 334
     <p>
335 335
 
336 336
         <?php
337
-        echo "<span id='redirect_label' style='" . ($realm == "" ? "color:#999999" : "" ) . "'><label for='redirect'>" . _("Redirect end users to own web page:") . "</label></span>
338
-                          <input type='checkbox'  name='redirect' id='redirect' " . ($blacklisted === FALSE ? "" : "checked " ) . "onclick='
337
+        echo "<span id='redirect_label' style='".($realm == "" ? "color:#999999" : "")."'><label for='redirect'>"._("Redirect end users to own web page:")."</label></span>
338
+                          <input type='checkbox'  name='redirect' id='redirect' " . ($blacklisted === FALSE ? "" : "checked ")."onclick='
339 339
                               if (this.form.elements[\"redirect\"].checked != true) {
340 340
                                 this.form.elements[\"redirect_target\"].setAttribute(\"disabled\", \"disabled\");
341 341
                               } else {
342 342
                                 this.form.elements[\"redirect_target\"].removeAttribute(\"disabled\");
343 343
                               };'/>
344
-                          <input type='text' name='redirect_target' " . ($blacklisted !== FALSE ? "value='$blacklisted'" : "disabled" ) . "/>";
344
+                          <input type='text' name='redirect_target' " . ($blacklisted !== FALSE ? "value='$blacklisted'" : "disabled")."/>";
345 345
         ?>
346 346
     </p>
347 347
 
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
                         <?php
382 382
                         $D = [];
383 383
                         foreach ($prefill_methods as $prio => $value) {
384
-                            print '<li>' . $value->getPrintableRep() . "</li>\n";
384
+                            print '<li>'.$value->getPrintableRep()."</li>\n";
385 385
                             $D[$value->getPrintableRep()] = $prio;
386 386
                         }
387 387
                         ?>
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
                             }
408 408
                             $display = $a->getPrintableRep();
409 409
                             if (!isset($D[$a->getPrintableRep()])) {
410
-                                print '<li class="eap1">' . $a->getPrintableRep() . "</li>\n";
410
+                                print '<li class="eap1">'.$a->getPrintableRep()."</li>\n";
411 411
                             }
412 412
                         }
413 413
                         ?>
@@ -420,8 +420,8 @@  discard block
 block discarded – undo
420 420
     foreach ($methods as $a) {
421 421
         $display = $a->getPrintableRep();
422 422
         $v = isset($D[$display]) ? $D[$display] : '';
423
-        print '<input type="hidden" class="eapm" name="' . $display . '" id="EAP-' . $display . '" value="' . $display . '">';
424
-        print '<input type="hidden" class="eapmv" name="' . $display . '-priority" id="EAP-' . $display . '-priority" value="' . $v . '">';
423
+        print '<input type="hidden" class="eapm" name="'.$display.'" id="EAP-'.$display.'" value="'.$display.'">';
424
+        print '<input type="hidden" class="eapmv" name="'.$display.'-priority" id="EAP-'.$display.'-priority" value="'.$v.'">';
425 425
     }
426 426
     ?>
427 427
     <br style="clear:both;" />
@@ -441,11 +441,11 @@  discard block
 block discarded – undo
441 441
 foreach ($optionsAlreadySet as $optionNames) {
442 442
     if (preg_match("/^support:/", $optionNames)) {
443 443
         $has_support_options[$optionNames] = "SET";
444
-        $support_text .= "<li><strong>" . $uiElements->displayName($optionNames) . "</strong></li>";
444
+        $support_text .= "<li><strong>".$uiElements->displayName($optionNames)."</strong></li>";
445 445
     }
446 446
     if (preg_match("/^media:/", $optionNames)) {
447 447
         $has_media_options[$optionNames] = "SET";
448
-        $media_text .= "<li><strong>" . $uiElements->displayName($optionNames) . "</strong></li>";
448
+        $media_text .= "<li><strong>".$uiElements->displayName($optionNames)."</strong></li>";
449 449
     }
450 450
 }
451 451
 $fields = [
@@ -454,12 +454,12 @@  discard block
 block discarded – undo
454 454
     "media" => _("Media Properties for this profile")];
455 455
 
456 456
 foreach ($fields as $name => $description) {
457
-    echo "<fieldset class='option_container' id='" . $name . "_override'>
457
+    echo "<fieldset class='option_container' id='".$name."_override'>
458 458
     <legend><strong>$description</strong></legend>
459 459
     <p>";
460 460
     echo $wizard->displayHelp($name);
461
-    if (count(${"has_" . $name . "_options"}) > 0) {
462
-        printf(ngettext("The option %s is already defined IdP-wide. If you set it here on profile level, this setting will override the IdP-wide one.", "The options %s are already defined IdP-wide. If you set them here on profile level, these settings will override the IdP-wide ones.", count(${"has_" . $name . "_options"})), "<ul>" . ${$name . "_text"} . "</ul>");
461
+    if (count(${"has_".$name."_options"}) > 0) {
462
+        printf(ngettext("The option %s is already defined IdP-wide. If you set it here on profile level, this setting will override the IdP-wide one.", "The options %s are already defined IdP-wide. If you set them here on profile level, these settings will override the IdP-wide ones.", count(${"has_".$name."_options"})), "<ul>".${$name."_text"}."</ul>");
463 463
     }
464 464
     echo "</p>";
465 465
     echo $optionDisplay->prefilledOptionTable($name, $my_inst->federation);
@@ -469,7 +469,7 @@  discard block
 block discarded – undo
469 469
     echo "</fieldset>";
470 470
 }
471 471
 if ($wizardStyle) {
472
-    echo "<p>" . _("When you are sure that everything is correct, please click on 'Save data' and you will be taken to your IdP Dashboard page.") . "</p>";
472
+    echo "<p>"._("When you are sure that everything is correct, please click on 'Save data' and you will be taken to your IdP Dashboard page.")."</p>";
473 473
 }
474 474
 if ($editMode == 'readonly') {
475 475
     $discardLabel = _("Return");
@@ -477,6 +477,6 @@  discard block
 block discarded – undo
477 477
 if ($editMode == 'fullaccess') {
478 478
     $discardLabel = _("Discard changes");
479 479
 }
480
-echo "<p><button type='submit' id='submitbutton' name='submitbutton' value='" . web\lib\common\FormElements::BUTTON_SAVE . "'>" . _("Save data") . "</button><button type='button' class='delete' id=='abortbutton' style='visibility: visible' value='abort' onclick='javascript:window.location = \"overview_org.php?inst_id=$my_inst->identifier\"'>".$discardLabel."</button></p></form>";
480
+echo "<p><button type='submit' id='submitbutton' name='submitbutton' value='".web\lib\common\FormElements::BUTTON_SAVE."'>"._("Save data")."</button><button type='button' class='delete' id=='abortbutton' style='visibility: visible' value='abort' onclick='javascript:window.location = \"overview_org.php?inst_id=$my_inst->identifier\"'>".$discardLabel."</button></p></form>";
481 481
 echo $deco->footer();
482 482
 
Please login to merge, or discard this patch.
web/admin/sort_profiles_result.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 ?>
28 28
 
29 29
 <?php
30
-require_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php";
30
+require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php";
31 31
 
32 32
 $deco = new \web\lib\admin\PageDecoration();
33 33
 $validator = new \web\lib\common\InputValidation();
Please login to merge, or discard this patch.