Passed
Branch release_2_0 (0e04e8)
by Stefan
07:12
created
web/skins/example/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  */
10 10
 ?>
11 11
 <h1>Example Skin (main user frontpage)</h1>
12
-<img src="<?php echo $Gui->skinObject->findresourceUrl("IMAGES","consortium_logo.png");?>"/>
12
+<img src="<?php echo $Gui->skinObject->findresourceUrl("IMAGES", "consortium_logo.png"); ?>"/>
13 13
 <p>This skin is much more sober and less bloated than the default one. As it happens, it also doesn't do anything.</p>
14 14
 <p>But at least it goes to show that it's possible to include custom images/CSS/external software using findResourceUrl(..., $filename):
15
-<img src="<?php echo $Gui->skinObject->findresourceUrl("IMAGES","custom.png");?>"/>
15
+<img src="<?php echo $Gui->skinObject->findresourceUrl("IMAGES", "custom.png"); ?>"/>
Please login to merge, or discard this patch.
web/user/tou.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
     they are from the same user group. You are not allowed to share them to an unlimited
53 53
     audience (e.g. on a publicly accessible web server).</li>
54 54
 <li>If You are an eduroam Identity Provider administrator, you are allowed to download and pass on the Installers to
55
-your own <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution'];?> end users, e.g. on the support web pages of your <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution'];?>, on Welcome Package CDs or USB sticks, etc.</li>
55
+your own <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution']; ?> end users, e.g. on the support web pages of your <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution']; ?>, on Welcome Package CDs or USB sticks, etc.</li>
56 56
 <li>If You are a third-party not affiliated with eduroam, you are only allowed to download and pass on
57 57
 the Metadata and/or the Installers after having received written permission by the eduroam Operations team.</li>
58 58
 </ul>
Please login to merge, or discard this patch.
devices/ms/Files/common.inc 1 patch
Spacing   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -120,10 +120,10 @@  discard block
 block discarded – undo
120 120
 !define MUI_HEADERIMAGE_BITMAP "cat_150.bmp"
121 121
 !define MUI_COMPONENTSPAGE_SMALLDESC
122 122
 
123
-!define WELCOME_HEADER "<?php printf(WindowsCommon::sprint_nsi(_("Welcome to the %s installer")),CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'])?>"
124
-!define FAREWELL_HEADER "<?php WindowsCommon::echo_nsi( _("Installation complete"))?>"
125
-!define FAREWELL_TEXT	"<?php WindowsCommon::echo_nsi( _("Network profiles have been installed."))?>$\r$\n$\n <?php WindowsCommon::echo_nsi(  _("Your system is ready."))?>"
126
-!define FAREWELL_FAIL	"<?php WindowsCommon::echo_nsi( _("Network installation had errors."))?>$\r$\n$\n <?php WindowsCommon::echo_nsi( _("Please contact \${SUPPORT}."))?>"
123
+!define WELCOME_HEADER "<?php printf(WindowsCommon::sprint_nsi(_("Welcome to the %s installer")), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'])?>"
124
+!define FAREWELL_HEADER "<?php WindowsCommon::echo_nsi(_("Installation complete"))?>"
125
+!define FAREWELL_TEXT	"<?php WindowsCommon::echo_nsi(_("Network profiles have been installed."))?>$\r$\n$\n <?php WindowsCommon::echo_nsi(_("Your system is ready."))?>"
126
+!define FAREWELL_FAIL	"<?php WindowsCommon::echo_nsi(_("Network installation had errors."))?>$\r$\n$\n <?php WindowsCommon::echo_nsi(_("Please contact \${SUPPORT}."))?>"
127 127
 ;--------------------------------
128 128
 ;Languages
129 129
 !insertmacro MUI_LANGUAGE "${LANG}"
@@ -131,14 +131,14 @@  discard block
 block discarded – undo
131 131
 ;--------------------------------
132 132
 ; License file
133 133
 !ifdef LICENSE_FILE
134
-LicenseForceSelection checkbox "<?php WindowsCommon::echo_nsi( _("Accept"))?>"
134
+LicenseForceSelection checkbox "<?php WindowsCommon::echo_nsi(_("Accept"))?>"
135 135
 LicenseText "<?php WindowsCommon::echo_nsi(_("If you accept the conditions then select Accept and then click Install to continue."))?>"
136 136
 LicenseData ${LICENSE_FILE}
137 137
 !endif
138 138
 
139 139
 ;-----------------------------------
140 140
 
141
-MiscButtonText "" "" "" "<?php WindowsCommon::echo_nsi( _("Finish"))?>"
141
+MiscButtonText "" "" "" "<?php WindowsCommon::echo_nsi(_("Finish"))?>"
142 142
 ;----------------------------------
143 143
 ;  FUNCTIONS
144 144
 
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 
172 172
 !macro install_ca_cert ca_file ca_fingerprint level
173 173
    !insertmacro debug_cat 2 "locating certificate  SHA=${ca_fingerprint} Level=${level}"
174
-   DetailPrint "<?php WindowsCommon::echo_nsi( _("searching for certificate"))?> ${ca_file}"
174
+   DetailPrint "<?php WindowsCommon::echo_nsi(_("searching for certificate"))?> ${ca_file}"
175 175
    File "${ca_file}"
176 176
    nsArray::Set Delete_files "${ca_file}"
177 177
    !insertmacro debug_cat 2 "Testing machine store root"
@@ -233,13 +233,13 @@  discard block
 block discarded – undo
233 233
    ${EndIf}
234 234
    !insertmacro debug_cat 2 "installing certificate $TEMP\${ca_file}"
235 235
    !insertmacro debug_cat 3 "Execute: certutil -addstore -user ${level} $TEMP\${ca_file}"
236
-   DetailPrint "<?php WindowsCommon::echo_nsi( _("installing certificate"))?> ${ca_file}"
236
+   DetailPrint "<?php WindowsCommon::echo_nsi(_("installing certificate"))?> ${ca_file}"
237 237
    nsExec::Exec '"certutil" -addstore -user ${level} $TEMP\${ca_file}'
238 238
    Pop $0
239 239
    !insertmacro debug_cat 3 "certutil returned $0"
240 240
    ${If} $0 != 0
241 241
      IfSilent +2
242
-     MessageBox MB_OK|MB_ICONEXCLAMATION "<?php WindowsCommon::echo_nsi( _("could not install certificate"))?>  ${ca_file}"
242
+     MessageBox MB_OK|MB_ICONEXCLAMATION "<?php WindowsCommon::echo_nsi(_("could not install certificate"))?>  ${ca_file}"
243 243
      !insertmacro debug_cat 1 "could not install certificate ${ca_file}"
244 244
    ${EndIf}
245 245
 no_install_${ca_file}:
@@ -428,26 +428,26 @@  discard block
 block discarded – undo
428 428
   pop $R0
429 429
   ${If} $tkip_count > 0
430 430
     ${If} $aes_count > 1
431
-      StrCpy $R1 "$\r$\n$\n<?php WindowsCommon::echo_nsi( _("The non TKIP profiles are preferred. Always use them if you have a choice."))?>"
431
+      StrCpy $R1 "$\r$\n$\n<?php WindowsCommon::echo_nsi(_("The non TKIP profiles are preferred. Always use them if you have a choice."))?>"
432 432
     ${Else}
433
-     StrCpy $R1 "$\r$\n$\n<?php WindowsCommon::echo_nsi( _("The non TKIP profile is preferred. Always use it if you have a choice."))?>"
433
+     StrCpy $R1 "$\r$\n$\n<?php WindowsCommon::echo_nsi(_("The non TKIP profile is preferred. Always use it if you have a choice."))?>"
434 434
     ${EndIf}
435 435
   ${Else}
436 436
     StrCpy $R1 ""
437 437
   ${EndIf}
438 438
   ${If} $profile_count > 0
439
-    StrCpy $welcome_message "<?php WindowsCommon::echo_nsi( _("This installer has been prepared for \${ORGANISATION}"))?>.$\r$\n\
440
-<?php WindowsCommon::echo_nsi( _("The installer will create the following wireless profiles:"))?>$\r$\n\
439
+    StrCpy $welcome_message "<?php WindowsCommon::echo_nsi(_("This installer has been prepared for \${ORGANISATION}"))?>.$\r$\n\
440
+<?php WindowsCommon::echo_nsi(_("The installer will create the following wireless profiles:"))?>$\r$\n\
441 441
 $R0.\
442 442
 $R1$\r$\n$\n\
443
-<?php WindowsCommon::echo_nsi( _("More information and comments:"))?>$\r$\n\
443
+<?php WindowsCommon::echo_nsi(_("More information and comments:"))?>$\r$\n\
444 444
    EMAIL: ${SUPPORT}$\r$\n\
445 445
    WWW: ${URL}"
446 446
 ${Else}
447
-StrCpy $welcome_message "<?php WindowsCommon::echo_nsi( _("This installer has been prepared for \${ORGANISATION}"))?>.$\r$\n\
448
-<?php WindowsCommon::echo_nsi( _("The installer will create the wireless profile:"))?> $R0.\
447
+StrCpy $welcome_message "<?php WindowsCommon::echo_nsi(_("This installer has been prepared for \${ORGANISATION}"))?>.$\r$\n\
448
+<?php WindowsCommon::echo_nsi(_("The installer will create the wireless profile:"))?> $R0.\
449 449
 $R1$\r$\n$\n\
450
-<?php WindowsCommon::echo_nsi( _("More information and comments:"))?>$\r$\n\
450
+<?php WindowsCommon::echo_nsi(_("More information and comments:"))?>$\r$\n\
451 451
    EMAIL: ${SUPPORT}$\r$\n\
452 452
    WWW: ${URL}"
453 453
 ${EndIf}
@@ -473,7 +473,7 @@  discard block
 block discarded – undo
473 473
   SendMessage $HEADLINE ${WM_SETFONT} $HEADLINE_FONT 0
474 474
 ;TRANSLATION
475 475
   nsDialogs::CreateControl STATIC ${WS_VISIBLE}|${WS_CHILD}|${WS_CLIPSIBLINGS} 0 120u 46u -130u -32u "$welcome_message\
476
-$\r$\n$\r$\n<?php WindowsCommon::echo_nsi( _("Installer created with software from the GEANT project."))?>"
476
+$\r$\n$\r$\n<?php WindowsCommon::echo_nsi(_("Installer created with software from the GEANT project."))?>"
477 477
   Pop $TEXT
478 478
 
479 479
   SetCtlColors $DIALOG "" 0xffffff
@@ -585,18 +585,18 @@  discard block
 block discarded – undo
585 585
     ${If} $wireless_result == 1
586 586
       !insertmacro debug_cat 1 "wlan_test.exe did not find wireless configuration service"
587 587
       IfSilent +2
588
-      MessageBox MB_OK|MB_ICONEXCLAMATION "<?php WindowsCommon::echo_nsi( _("Windows wireless configuration service is not enabled. The installer cannot continue."))?>"
588
+      MessageBox MB_OK|MB_ICONEXCLAMATION "<?php WindowsCommon::echo_nsi(_("Windows wireless configuration service is not enabled. The installer cannot continue."))?>"
589 589
       Call Cleanup
590 590
     ${EndIf}
591 591
     ${If} $wireless_result == 2
592 592
       IfSilent +2
593
-      MessageBox MB_OK|MB_ICONEXCLAMATION "<?php WindowsCommon::echo_nsi( _("No wireless interfaces found. The installer cannot continue."))?>"
593
+      MessageBox MB_OK|MB_ICONEXCLAMATION "<?php WindowsCommon::echo_nsi(_("No wireless interfaces found. The installer cannot continue."))?>"
594 594
       Call Cleanup
595 595
     ${EndIf}
596 596
   ${Else}
597 597
     ${If} $wireless_result > 0
598 598
        IfSilent +3
599
-       MessageBox MB_YESNO "<?php WindowsCommon::echo_nsi( _("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
599
+       MessageBox MB_YESNO "<?php WindowsCommon::echo_nsi(_("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
600 600
        Call Cleanup
601 601
        wired_yes:
602 602
        Push 1
@@ -612,7 +612,7 @@  discard block
 block discarded – undo
612 612
     ${If} $wired == 1
613 613
       ${If} $force_wired == 0
614 614
         IfSilent wired
615
-        MessageBox MB_YESNO "<?php WindowsCommon::echo_nsi( _("Do you want to enable access on wired interfaces?"))?>" IDYES wired
615
+        MessageBox MB_YESNO "<?php WindowsCommon::echo_nsi(_("Do you want to enable access on wired interfaces?"))?>" IDYES wired
616 616
         Push 0
617 617
         Pop $wired
618 618
       ${EndIf}
@@ -647,7 +647,7 @@  discard block
 block discarded – undo
647 647
 ;================================
648 648
 
649 649
 Function ShowInstfiles
650
-  !insertmacro MUI_HEADER_TEXT "<?php WindowsCommon::echo_nsi( _("Profiles installation"))?>" " "
650
+  !insertmacro MUI_HEADER_TEXT "<?php WindowsCommon::echo_nsi(_("Profiles installation"))?>" " "
651 651
 FunctionEnd
652 652
 ;================================
653 653
 ;  Check if a wireless profile exist and put it on delete list
@@ -666,7 +666,7 @@  discard block
 block discarded – undo
666 666
 
667 667
 Function FindProfile
668 668
   Pop $R8
669
-  DetailPrint "<?php WindowsCommon::echo_nsi( _("Checking for profile \$R8"))?>"
669
+  DetailPrint "<?php WindowsCommon::echo_nsi(_("Checking for profile \$R8"))?>"
670 670
   !insertmacro debug_cat 2 "Checking for profile $R8"
671 671
   !insertmacro debug_cat 3 "Exec: $Netsh wlan show profiles $R8"
672 672
   nsExec::Exec  '"$Netsh" wlan show profiles "$R8"'
@@ -674,7 +674,7 @@  discard block
 block discarded – undo
674 674
   !insertmacro debug_cat 4 "netsh returned $0"
675 675
   ${If} $0 == 0
676 676
     !insertmacro debug_cat 1 "found profile $R8"
677
-    DetailPrint "<?php WindowsCommon::echo_nsi( _("found profile \$R8"))?>"
677
+    DetailPrint "<?php WindowsCommon::echo_nsi(_("found profile \$R8"))?>"
678 678
     Push 0
679 679
   ${Else}
680 680
     !insertmacro debug_cat 1 "profile $R8 not found"
@@ -769,7 +769,7 @@  discard block
 block discarded – undo
769 769
     ${If} $Symantec_installed  != 0
770 770
      !insertmacro debug_cat 3 "Symantec problem"
771 771
      IfSilent +2
772
-     MessageBox MB_OK|MB_ICONEXCLAMATION "<?php printf(WindowsCommon::sprint_nsi(_("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']) ?>"
772
+     MessageBox MB_OK|MB_ICONEXCLAMATION "<?php printf(WindowsCommon::sprint_nsi(_("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']) ?>"
773 773
     Exec '"explorer" /select,"$EXEDIR\inst_cat.cmd"'
774 774
     Quit
775 775
 
@@ -1002,7 +1002,7 @@  discard block
 block discarded – undo
1002 1002
 Function PFXCertificateSelect
1003 1003
   !ifndef SILVERBULLET
1004 1004
 ;TRANSLATION
1005
-!insertmacro MUI_HEADER_TEXT "<?php printf(WindowsCommon::sprint_nsi(_("%s installer for")),CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'])?> " "<?php WindowsCommon::echo_nsi(_("Install personal certificate"))?>"
1005
+!insertmacro MUI_HEADER_TEXT "<?php printf(WindowsCommon::sprint_nsi(_("%s installer for")), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'])?> " "<?php WindowsCommon::echo_nsi(_("Install personal certificate"))?>"
1006 1006
 ;TRANSLATION
1007 1007
     IfSilent +2
1008 1008
   MessageBox MB_OK "<?php WindowsCommon::echo_nsi(_("Preparing to install personal certificate."))?>$\r$\n<?php WindowsCommon::echo_nsi(_("Click OK to continue"))?> "
@@ -1018,7 +1018,7 @@  discard block
 block discarded – undo
1018 1018
         $certPasswordLength = strlen($certPasswordLabel);
1019 1019
         $certUsernameLabel = WindowsCommon::sprint_nsi(_("Username:"));
1020 1020
         $certUsernameLength = strlen($certUsernameLabel);
1021
-        $labelLength = max($certPasswordLength,$certUsernameLength);
1021
+        $labelLength = max($certPasswordLength, $certUsernameLength);
1022 1022
   ?>
1023 1023
   ${NSD_CreateLabel} 0 0 100% 32u "<?php WindowsCommon::echo_nsi(_("Selected file: \$Cert_file"))?>"
1024 1024
   !else
@@ -1035,11 +1035,11 @@  discard block
 block discarded – undo
1035 1035
   !insertmacro debug_cat 3 "Vista level (Vista without Service pack): $VistaNoSP";
1036 1036
   ${If} $VistaNoSP == 0
1037 1037
     !ifdef PFX_USERNAME
1038
-       !define LABEL_LENGTH "<?php echo($labelLength*3.5)?>u"
1039
-       !define TEXT_START "<?php echo($labelLength*3.5 +5)?>u"
1038
+       !define LABEL_LENGTH "<?php echo($labelLength * 3.5)?>u"
1039
+       !define TEXT_START "<?php echo($labelLength * 3.5 + 5)?>u"
1040 1040
     !else
1041
-       !define LABEL_LENGTH "<?php echo($certPasswordLength*3.5)?>u"
1042
-       !define TEXT_START "<?php echo($certPasswordLength*3.5 +5)?>u"
1041
+       !define LABEL_LENGTH "<?php echo($certPasswordLength * 3.5)?>u"
1042
+       !define TEXT_START "<?php echo($certPasswordLength * 3.5 + 5)?>u"
1043 1043
     !endif
1044 1044
     ${NSD_CreateLabel} 0 35u ${LABEL_LENGTH} 12u "<?php echo $certPasswordLabel?>"
1045 1045
     ${NSD_CreatePassword} ${TEXT_START} 34.5u 120u 12u ""
@@ -1226,7 +1226,7 @@  discard block
 block discarded – undo
1226 1226
 Section "-start"
1227 1227
 SectionIn RO
1228 1228
 
1229
-!insertmacro MUI_HEADER_TEXT "<?php WindowsCommon::echo_nsi( _("Installation"))?>" "<?php WindowsCommon::echo_nsi( _("Checking for existing wireless profiles"))?>"
1229
+!insertmacro MUI_HEADER_TEXT "<?php WindowsCommon::echo_nsi(_("Installation"))?>" "<?php WindowsCommon::echo_nsi(_("Checking for existing wireless profiles"))?>"
1230 1230
 !ifndef PWD
1231 1231
 !include "certs.nsh"
1232 1232
 !endif
Please login to merge, or discard this patch.
config/config-master-template.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
 
156 156
      * @var array
157 157
      */
158
-    'MAILSETTINGS' => [ // we always use Submission
158
+    'MAILSETTINGS' => [// we always use Submission
159 159
         'host' => 'submission.capable.mta',
160 160
         'user'=> 'mailuser',
161 161
         'pass' => 'mailpass',
@@ -172,25 +172,25 @@  discard block
 block discarded – undo
172 172
      * @var array
173 173
      */
174 174
     'LANGUAGES' => [
175
-      'bg' => ['display' => 'Български',   'locale' => 'bg_BG.utf8',    'latin_based' => FALSE],
176
-      'ca' => ['display' => 'Català',      'locale' => 'ca_ES.utf8',    'latin_based' => TRUE],
177
-      'cs' => ['display' => 'Čeština',     'locale' => 'cs_CZ.utf8',    'latin_based' => TRUE],
178
-      'de' => ['display' => 'Deutsch',     'locale' => 'de_DE.utf8',    'latin_based' => TRUE],
179
-      'el' => ['display' => 'Ελληνικά',    'locale' => 'el_GR.utf8',    'latin_based' => FALSE],
180
-      'en' => ['display' => 'English(GB)', 'locale' => 'en_GB.utf8',    'latin_based' => TRUE],
181
-      'es' => ['display' => 'Español',     'locale' => 'es_ES.utf8',    'latin_based' => TRUE],     
182
-      'et' => ['display' => 'Eesti',       'locale' => 'et_EE.utf8',    'latin_based' => TRUE], 
183
-      'fr' => ['display' => 'Français',    'locale' => 'fr_FR.utf8',    'latin_based' => TRUE],
184
-      'hr' => ['display' => 'Hrvatski',    'locale' => 'hr_HR.utf8',    'latin_based' => TRUE],
185
-      'hu' => ['display' => 'Magyar',      'locale' => 'hu_HU.utf8',    'latin_based' => TRUE],
186
-      'it' => ['display' => 'Italiano',    'locale' => 'it_IT.utf8',    'latin_based' => TRUE],
187
-      'nb' => ['display' => 'Norsk',       'locale' => 'nb_NO.utf8',    'latin_based' => TRUE],
188
-      'pl' => ['display' => 'Polski',      'locale' => 'pl_PL.utf8',    'latin_based' => TRUE],
189
-      'pt' => ['display' => 'Português',   'locale' => 'pt_PT.utf8',    'latin_based' => TRUE],
190
-      'sl' => ['display' => 'Slovenščina', 'locale' => 'sl_SI.utf8',    'latin_based' => TRUE],
191
-      'sr' => ['display' => 'Srpski',      'locale' => 'sr_RS@latin',   'latin_based' => TRUE],
192
-      'fi' => ['display' => 'Suomi',       'locale' => 'fi_FI.utf8',    'latin_based' => TRUE],
193
-      'tr' => ['display' => 'Türkçe',      'locale' => 'tr_TR.utf8',    'latin_based' => TRUE],
175
+      'bg' => ['display' => 'Български', 'locale' => 'bg_BG.utf8', 'latin_based' => FALSE],
176
+      'ca' => ['display' => 'Català', 'locale' => 'ca_ES.utf8', 'latin_based' => TRUE],
177
+      'cs' => ['display' => 'Čeština', 'locale' => 'cs_CZ.utf8', 'latin_based' => TRUE],
178
+      'de' => ['display' => 'Deutsch', 'locale' => 'de_DE.utf8', 'latin_based' => TRUE],
179
+      'el' => ['display' => 'Ελληνικά', 'locale' => 'el_GR.utf8', 'latin_based' => FALSE],
180
+      'en' => ['display' => 'English(GB)', 'locale' => 'en_GB.utf8', 'latin_based' => TRUE],
181
+      'es' => ['display' => 'Español', 'locale' => 'es_ES.utf8', 'latin_based' => TRUE],     
182
+      'et' => ['display' => 'Eesti', 'locale' => 'et_EE.utf8', 'latin_based' => TRUE], 
183
+      'fr' => ['display' => 'Français', 'locale' => 'fr_FR.utf8', 'latin_based' => TRUE],
184
+      'hr' => ['display' => 'Hrvatski', 'locale' => 'hr_HR.utf8', 'latin_based' => TRUE],
185
+      'hu' => ['display' => 'Magyar', 'locale' => 'hu_HU.utf8', 'latin_based' => TRUE],
186
+      'it' => ['display' => 'Italiano', 'locale' => 'it_IT.utf8', 'latin_based' => TRUE],
187
+      'nb' => ['display' => 'Norsk', 'locale' => 'nb_NO.utf8', 'latin_based' => TRUE],
188
+      'pl' => ['display' => 'Polski', 'locale' => 'pl_PL.utf8', 'latin_based' => TRUE],
189
+      'pt' => ['display' => 'Português', 'locale' => 'pt_PT.utf8', 'latin_based' => TRUE],
190
+      'sl' => ['display' => 'Slovenščina', 'locale' => 'sl_SI.utf8', 'latin_based' => TRUE],
191
+      'sr' => ['display' => 'Srpski', 'locale' => 'sr_RS@latin', 'latin_based' => TRUE],
192
+      'fi' => ['display' => 'Suomi', 'locale' => 'fi_FI.utf8', 'latin_based' => TRUE],
193
+      'tr' => ['display' => 'Türkçe', 'locale' => 'tr_TR.utf8', 'latin_based' => TRUE],
194 194
 
195 195
 
196 196
 
Please login to merge, or discard this patch.
config/autoloader.php 1 patch
Spacing   +5 added lines, -5 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 __DIR__ . "/../core/Psr4Autoloader.php";
22
+require_once __DIR__."/../core/Psr4Autoloader.php";
23 23
 use core\autoloader\Psr4Autoloader;
24 24
 
25 25
 // instantiate the loader
@@ -30,11 +30,11 @@  discard block
 block discarded – undo
30 30
 
31 31
 // register the base directories for the namespace prefix
32 32
 // include CAT/core library
33
-$loader->addNamespace('core', __DIR__ . "/../core");
33
+$loader->addNamespace('core', __DIR__."/../core");
34 34
 // include CAT/devices library
35
-$loader->addNamespace('devices', __DIR__ . "/../devices");
35
+$loader->addNamespace('devices', __DIR__."/../devices");
36 36
 // include CAT/web library
37
-$loader->addNamespace('web', __DIR__ . "/../web");
37
+$loader->addNamespace('web', __DIR__."/../web");
38 38
 
39 39
 // include PHPMailer library
40
-$loader->addNamespace('PHPMailer\PHPMailer', __DIR__ . "/../core/PHPMailer/src");
40
+$loader->addNamespace('PHPMailer\PHPMailer', __DIR__."/../core/PHPMailer/src");
Please login to merge, or discard this patch.
config/_config.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
  */
21 21
 
22 22
 require_once "autoloader.php";
23
-require_once __DIR__ . "/../packageRoot.php";
23
+require_once __DIR__."/../packageRoot.php";
24 24
 
25 25
 /* This code block compares the template config against the actual one to find
26 26
  * out which of the values are MISSING, which are still at DEFAULT and which
@@ -88,12 +88,12 @@  discard block
 block discarded – undo
88 88
  */
89 89
 // this is the actual config
90 90
 
91
-if (!file_exists(ROOT . "/config/config-master.php")) {
91
+if (!file_exists(ROOT."/config/config-master.php")) {
92 92
     echo "Master configuration file not found. You need to configure the product! At least config-master.php is required!";
93 93
     throw new Exception("Master config file not found!");
94 94
 }
95 95
 
96
-require ROOT . "/config/config-master.php";
96
+require ROOT."/config/config-master.php";
97 97
 
98 98
 /* as a test for the config comparison, run this, display in browser and exit 
99 99
 
@@ -109,14 +109,14 @@  discard block
 block discarded – undo
109 109
 /* load sub-configs if we are dealing with those in this installation */
110 110
 
111 111
 if (CONFIG['FUNCTIONALITY_LOCATIONS']['CONFASSISTANT_SILVERBULLET'] == 'LOCAL' || CONFIG['FUNCTIONALITY_LOCATIONS']['CONFASSISTANT_RADIUS'] == 'LOCAL') {
112
-    include ROOT . "/config/config-confassistant.php";
112
+    include ROOT."/config/config-confassistant.php";
113 113
 } else { // we want to define the constant itself anyway, to avoid some ugly warnings on the console
114 114
     // this is done with an inline include
115 115
     define("CONFIG_CONFASSISTANT", []);
116 116
 }
117 117
 
118 118
 if (CONFIG['FUNCTIONALITY_LOCATIONS']['DIAGNOSTICS'] == 'LOCAL') {
119
-    include ROOT . "/config/config-diagnostics.php";
119
+    include ROOT."/config/config-diagnostics.php";
120 120
 } else { // same here
121 121
     define("CONFIG_DIAGNOSTICS", []);
122 122
 }
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
 function CAT_session_start() {
130 130
     if (session_status() != PHP_SESSION_ACTIVE) {
131 131
         session_name("CAT");
132
-        session_set_cookie_params(0, "/", $_SERVER['SERVER_NAME'], (isset($_SERVER['HTTPS']) ? TRUE : FALSE ));
132
+        session_set_cookie_params(0, "/", $_SERVER['SERVER_NAME'], (isset($_SERVER['HTTPS']) ? TRUE : FALSE));
133 133
         session_start();
134 134
     }
135 135
 }
Please login to merge, or discard this patch.
core/CAT.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
 namespace core;
34 34
 
35
-require_once dirname(__DIR__) . "/config/_config.php";
35
+require_once dirname(__DIR__)."/config/_config.php";
36 36
 
37 37
 CAT_session_start();
38 38
 
@@ -107,17 +107,17 @@  discard block
 block discarded – undo
107 107
         
108 108
         $this->CAT_VERSION_STRING = _("Unreleased <a href='https://github.com/GEANT/CAT/tree/master/Changes.md'>Git Revision</a>");
109 109
         if (CAT::RELEASE_VERSION) {
110
-            $temp_version = "CAT-" . CAT::VERSION_MAJOR . "." . CAT::VERSION_MINOR;
111
-            $branch = "release_" . CAT::VERSION_MAJOR . "_" . CAT::VERSION_MINOR;
110
+            $temp_version = "CAT-".CAT::VERSION_MAJOR.".".CAT::VERSION_MINOR;
111
+            $branch = "release_".CAT::VERSION_MAJOR."_".CAT::VERSION_MINOR;
112 112
             if (CAT::VERSION_PATCH != 0) {
113
-                $temp_version .= "." . CAT::VERSION_PATCH;
113
+                $temp_version .= ".".CAT::VERSION_PATCH;
114 114
             }
115 115
             if (CAT::VERSION_EXTRA != "") {
116
-                $temp_version .= "-" . CAT::VERSION_EXTRA;
116
+                $temp_version .= "-".CAT::VERSION_EXTRA;
117 117
             }
118
-            $this->CAT_VERSION_STRING = sprintf(_("Release <a href='%s'>%s</a>"), "https://github.com/GEANT/CAT/tree/" . $branch . "/Changes.md", $temp_version);
118
+            $this->CAT_VERSION_STRING = sprintf(_("Release <a href='%s'>%s</a>"), "https://github.com/GEANT/CAT/tree/".$branch."/Changes.md", $temp_version);
119 119
         }
120
-        $this->CAT_COPYRIGHT = CONFIG['APPEARANCE']['productname'] . " - " . $this->CAT_VERSION_STRING . " &copy; " . CAT::COPYRIGHT_MIN_YEAR . "-" . CAT::COPYRIGHT_MAX_YEAR . " " . CAT::COPYRIGHT_HOLDER . "<br/>on behalf of " . CAT::COPYRIGHT_CONSORTIA . "; and others <a href='copyright.php'>Full Copyright and Licenses</a>";
120
+        $this->CAT_COPYRIGHT = CONFIG['APPEARANCE']['productname']." - ".$this->CAT_VERSION_STRING." &copy; ".CAT::COPYRIGHT_MIN_YEAR."-".CAT::COPYRIGHT_MAX_YEAR." ".CAT::COPYRIGHT_HOLDER."<br/>on behalf of ".CAT::COPYRIGHT_CONSORTIA."; and others <a href='copyright.php'>Full Copyright and Licenses</a>";
121 121
         
122 122
 
123 123
         /* Federations are created in DB with bootstrapFederation, and listed via listFederations
Please login to merge, or discard this patch.
core/User.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -154,8 +154,8 @@  discard block
 block discarded – undo
154 154
         common\Entity::intoThePotatoes();
155 155
         $mail = \core\common\OutsideComm::mailHandle();
156 156
 // who to whom?
157
-        $mail->FromName = CONFIG['APPEARANCE']['productname'] . " Notification System";
158
-        $mail->addReplyTo(CONFIG['APPEARANCE']['support-contact']['developer-mail'], CONFIG['APPEARANCE']['productname'] . " " . _("Feedback"));
157
+        $mail->FromName = CONFIG['APPEARANCE']['productname']." Notification System";
158
+        $mail->addReplyTo(CONFIG['APPEARANCE']['support-contact']['developer-mail'], CONFIG['APPEARANCE']['productname']." "._("Feedback"));
159 159
         $mail->addAddress($mailaddr[0]["value"]);
160 160
 // what do we want to say?
161 161
         $mail->Subject = $subject;
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
                 }
218 218
                 $lookFor .= "$name";
219 219
             }
220
-            $finding = preg_match("/^(" . $lookFor . "):(.*)/", $oneRow->user_id, $matches);
220
+            $finding = preg_match("/^(".$lookFor."):(.*)/", $oneRow->user_id, $matches);
221 221
             if ($finding === 0 || $finding === FALSE) {
222 222
                 return FALSE;
223 223
             }
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
                         $matchedProviders[] = $idp;
236 236
                         $name = $idp;
237 237
                         if ($skipCurl == 0) {
238
-                            $url = CONFIG_DIAGNOSTICS['eduGainResolver']['url'] . "?action=get_entity_name&type=idp&e_id=$idp&lang=$lang";
238
+                            $url = CONFIG_DIAGNOSTICS['eduGainResolver']['url']."?action=get_entity_name&type=idp&e_id=$idp&lang=$lang";
239 239
                             $ch = curl_init($url);
240 240
                             curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
241 241
                             curl_setopt($ch, CURLOPT_TIMEOUT, CONFIG_DIAGNOSTICS['eduGainResolver']['timeout']);
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
                             }
248 248
                             curl_close($ch);
249 249
                         }
250
-                        $listOfProviders[] = User::PROVIDER_STRINGS[$providerStrings[0]] . " - IdP: " . $name;
250
+                        $listOfProviders[] = User::PROVIDER_STRINGS[$providerStrings[0]]." - IdP: ".$name;
251 251
                     }
252 252
                     break;
253 253
                 case $providerStrings[1]:
Please login to merge, or discard this patch.
core/EntityWithDBProperties.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
      * @return array list of row id's of file-based attributes which weren't deleted
162 162
      */
163 163
     public function beginFlushAttributes($extracondition = "") {
164
-        $quotedIdentifier = (!is_int($this->getRelevantIdentifier()) ? "\"" : "") . $this->getRelevantIdentifier() . (!is_int($this->getRelevantIdentifier()) ? "\"" : "");
164
+        $quotedIdentifier = (!is_int($this->getRelevantIdentifier()) ? "\"" : "").$this->getRelevantIdentifier().(!is_int($this->getRelevantIdentifier()) ? "\"" : "");
165 165
         $this->databaseHandle->exec("DELETE FROM $this->entityOptionTable WHERE $this->entityIdColumn = $quotedIdentifier AND option_name NOT LIKE '%_file' $extracondition");
166 166
         $this->updateFreshness();
167 167
         $execFlush = $this->databaseHandle->exec("SELECT row FROM $this->entityOptionTable WHERE $this->entityIdColumn = $quotedIdentifier $extracondition");
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
      * @return void
181 181
      */
182 182
     public function commitFlushAttributes(array $tobedeleted) {
183
-        $quotedIdentifier = (!is_int($this->getRelevantIdentifier()) ? "\"" : "") . $this->getRelevantIdentifier() . (!is_int($this->getRelevantIdentifier()) ? "\"" : "");
183
+        $quotedIdentifier = (!is_int($this->getRelevantIdentifier()) ? "\"" : "").$this->getRelevantIdentifier().(!is_int($this->getRelevantIdentifier()) ? "\"" : "");
184 184
         foreach (array_keys($tobedeleted) as $row) {
185 185
             $this->databaseHandle->exec("DELETE FROM $this->entityOptionTable WHERE $this->entityIdColumn = $quotedIdentifier AND row = $row");
186 186
             $this->updateFreshness();
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
     public function addAttribute($attrName, $attrLang, $attrValue) {
208 208
         $relevantId = $this->getRelevantIdentifier();
209 209
         $identifierType = (is_int($relevantId) ? "i" : "s");
210
-        $this->databaseHandle->exec("INSERT INTO $this->entityOptionTable ($this->entityIdColumn, option_name, option_lang, option_value) VALUES(?,?,?,?)", $identifierType . "sss", $relevantId, $attrName, $attrLang, $attrValue);
210
+        $this->databaseHandle->exec("INSERT INTO $this->entityOptionTable ($this->entityIdColumn, option_name, option_lang, option_value) VALUES(?,?,?,?)", $identifierType."sss", $relevantId, $attrName, $attrLang, $attrValue);
211 211
         $this->updateFreshness();
212 212
     }
213 213
 
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
         $handle = DBConnection::handle("INST");
262 262
         $blobQuery = $handle->exec("SELECT option_value from $table WHERE row = $row");
263 263
         // SELECT -> returns resource, not boolean
264
-        while ($returnedData =  mysqli_fetch_object(/** @scrutinizer ignore-type */ $blobQuery)) {
264
+        while ($returnedData = mysqli_fetch_object(/** @scrutinizer ignore-type */ $blobQuery)) {
265 265
             $blob = $returnedData->option_value;
266 266
         }
267 267
         if (!isset($blob)) {
Please login to merge, or discard this patch.