Passed
Push — master ( 30d070...476e2a )
by Tomasz
03:28
created
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.
web/admin/edit_idp.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
             sprintf(_("In this section, you define on which media %s should be configured on user devices."), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']) . "</p>
138 138
           <ul>";
139 139
             echo "<li>";
140
-            echo "<strong>" . ( count(CONFIG_CONFASSISTANT['CONSORTIUM']['ssid']) > 0 ? _("Additional SSIDs:") : _("SSIDs:")) . " </strong>";
140
+            echo "<strong>" . (count(CONFIG_CONFASSISTANT['CONSORTIUM']['ssid']) > 0 ? _("Additional SSIDs:") : _("SSIDs:")) . " </strong>";
141 141
             if (count(CONFIG_CONFASSISTANT['CONSORTIUM']['ssid']) > 0) {
142 142
                 $ssidlist = "";
143 143
                 foreach (CONFIG_CONFASSISTANT['CONSORTIUM']['ssid'] as $ssid) {
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
             echo "</li>";
157 157
 
158 158
             echo "<li>";
159
-            echo "<strong>" . ( count(CONFIG_CONFASSISTANT['CONSORTIUM']['ssid']) > 0 ? _("Additional Hotspot 2.0 / Passpoint Consortia:") : _("Hotspot 2.0 / Passpoint Consortia:")) . " </strong>";
159
+            echo "<strong>" . (count(CONFIG_CONFASSISTANT['CONSORTIUM']['ssid']) > 0 ? _("Additional Hotspot 2.0 / Passpoint Consortia:") : _("Hotspot 2.0 / Passpoint Consortia:")) . " </strong>";
160 160
             if (count(CONFIG_CONFASSISTANT['CONSORTIUM']['interworking-consortium-oi']) > 0) {
161 161
                 $consortiumlist = "";
162 162
                 foreach (CONFIG_CONFASSISTANT['CONSORTIUM']['interworking-consortium-oi'] as $oi) {
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
         <legend><strong><?php echo _("Helpdesk Details for all users"); ?></strong></legend>
187 187
         <?php
188 188
         if ($wizardStyle) {
189
-            echo "<p>"._("This section can be used to upload specific Terms of Use for your users and to display details of how your users can reach your local helpdesk.")."</p>";
189
+            echo "<p>" . _("This section can be used to upload specific Terms of Use for your users and to display details of how your users can reach your local helpdesk.") . "</p>";
190 190
             
191 191
             if (CONFIG['FUNCTIONALITY_LOCATIONS']['CONFASSISTANT_RADIUS'] == "LOCAL") {
192 192
                 echo "<p>" .
@@ -194,10 +194,10 @@  discard block
 block discarded – undo
194 194
                 "<p>" .
195 195
                 _("If you enter a value here, it will be added to the installers for all your users, and will be displayed on the download page. If you operate separate helpdesks for different user groups (we call this 'profiles'), or operate no help desk at all, you can also leave any of these fields empty and optionally specify per-profile helpdesk information later in this wizard.") . "</p>";
196 196
                 if (CONFIG['FUNCTIONALITY_LOCATIONS']['CONFASSISTANT_SILVERBULLET'] == "LOCAL") {
197
-                echo "<p>" . sprintf(_("For %s deployments, providing at least a local e-mail contact is required."), core\ProfileSilverbullet::PRODUCTNAME) ." " . _("This is the contact point for your end users' level 1 support.") . "</p>";
197
+                echo "<p>" . sprintf(_("For %s deployments, providing at least a local e-mail contact is required."), core\ProfileSilverbullet::PRODUCTNAME) . " " . _("This is the contact point for your end users' level 1 support.") . "</p>";
198 198
                 }
199 199
             } elseif (CONFIG['FUNCTIONALITY_LOCATIONS']['CONFASSISTANT_SILVERBULLET'] == "LOCAL") {
200
-                echo "<p>". _("Providing at least a local support e-mail contact is required.")." "._("This is the contact point for your end users' level 1 support.")."</p>";
200
+                echo "<p>" . _("Providing at least a local support e-mail contact is required.") . " " . _("This is the contact point for your end users' level 1 support.") . "</p>";
201 201
             }
202 202
             
203 203
         }
Please login to merge, or discard this patch.
config/_config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
 
95 95
 /* load sub-configs if we are dealing with those in this installation */
96 96
 
97
-if (CONFIG['FUNCTIONALITY_LOCATIONS']['CONFASSISTANT_SILVERBULLET'] == 'LOCAL' || CONFIG['FUNCTIONALITY_LOCATIONS']['CONFASSISTANT_RADIUS'] == 'LOCAL' ) {
97
+if (CONFIG['FUNCTIONALITY_LOCATIONS']['CONFASSISTANT_SILVERBULLET'] == 'LOCAL' || CONFIG['FUNCTIONALITY_LOCATIONS']['CONFASSISTANT_RADIUS'] == 'LOCAL') {
98 98
     include(ROOT . "/config/config-confassistant.php");
99 99
 }
100 100
 
Please login to merge, or discard this patch.
web/admin/edit_profile.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
                 </td>
280 280
                 <td>
281 281
                     <input type='checkbox' <?php
282
-                    echo ($verify != FALSE ? "checked" : "" );
282
+                    echo ($verify != FALSE ? "checked" : "");
283 283
                     ?> name='verify_support' onclick='
284 284
                             if (this.form.elements["verify_support"].checked !== true || this.form.elements["realm"].value.length == 0) {
285 285
                                 this.form.elements["hint_support"].setAttribute("disabled", "disabled");
@@ -287,48 +287,48 @@  discard block
 block discarded – undo
287 287
                                 this.form.elements["hint_support"].removeAttribute("disabled");
288 288
                             }
289 289
                             ;'/>
290
-                    <span id='hint_label' style='<?php echo ($realm == "" ? "color:#999999" : "" ); ?>'>
290
+                    <span id='hint_label' style='<?php echo ($realm == "" ? "color:#999999" : ""); ?>'>
291 291
                         <?php echo _("Prefill user input with realm suffix:"); ?>
292 292
                     </span>
293
-                    <input type='checkbox' <?php echo ($verify == FALSE ? "disabled" : "" ); ?> name='hint_support' <?php echo ( $hint != FALSE ? "checked" : "" ); ?> />
293
+                    <input type='checkbox' <?php echo ($verify == FALSE ? "disabled" : ""); ?> name='hint_support' <?php echo ($hint != FALSE ? "checked" : ""); ?> />
294 294
                 </td>
295 295
             </tr>
296 296
             <tr>
297 297
 
298 298
                 <!-- checkbox and input field for anonymity support, available only when realm is known-->
299 299
                 <td>
300
-                    <span id='anon_support_label' style='<?php echo ($realm == "" ? "color:#999999" : "" ); ?>'>
300
+                    <span id='anon_support_label' style='<?php echo ($realm == "" ? "color:#999999" : ""); ?>'>
301 301
                         <?php echo _("Enable Anonymous Outer Identity:"); ?>
302 302
                     </span>
303 303
                 </td>
304 304
                 <td>
305
-                    <input type='checkbox' <?php echo ($useAnon != FALSE ? "checked" : "" ) . ($realm == "" ? " disabled" : "" ); ?> name='anon_support' onclick='
305
+                    <input type='checkbox' <?php echo ($useAnon != FALSE ? "checked" : "") . ($realm == "" ? " disabled" : ""); ?> name='anon_support' onclick='
306 306
                             if (this.form.elements["anon_support"].checked !== true) {
307 307
                                 this.form.elements["anon_local"].setAttribute("disabled", "disabled");
308 308
                             } else {
309 309
                                 this.form.elements["anon_local"].removeAttribute("disabled");
310 310
                             }
311 311
                             ;'/>
312
-                    <input type='text' <?php echo ($checkuserOuter == FALSE ? "disabled" : "" ); ?> name='anon_local' value='<?php echo $anonLocal; ?>'/>
312
+                    <input type='text' <?php echo ($checkuserOuter == FALSE ? "disabled" : ""); ?> name='anon_local' value='<?php echo $anonLocal; ?>'/>
313 313
                 </td>    
314 314
             </tr>
315 315
             <tr>
316 316
 
317 317
                 <!-- checkbox and input field for check realm outer id, available only when realm is known-->
318 318
                 <td>
319
-                    <span id='checkuser_label' style='<?php echo ($realm == "" ? "color:#999999" : "" ); ?>'>
319
+                    <span id='checkuser_label' style='<?php echo ($realm == "" ? "color:#999999" : ""); ?>'>
320 320
                         <?php echo _("Use special Outer Identity for realm checks:"); ?>
321 321
                     </span>
322 322
                 </td>
323 323
                 <td>
324
-                    <input type='checkbox' <?php echo ($checkuserOuter != FALSE ? "checked" : "" ) . ($realm == "" ? " disabled" : "" ); ?> name='checkuser_support' onclick='
324
+                    <input type='checkbox' <?php echo ($checkuserOuter != FALSE ? "checked" : "") . ($realm == "" ? " disabled" : ""); ?> name='checkuser_support' onclick='
325 325
                             if (this.form.elements["checkuser_support"].checked !== true) {
326 326
                                 this.form.elements["checkuser_local"].setAttribute("disabled", "disabled");
327 327
                             } else {
328 328
                                 this.form.elements["checkuser_local"].removeAttribute("disabled");
329 329
                             }
330 330
                             ;'/>
331
-                    <input type='text' <?php echo ($checkuserOuter == FALSE ? "disabled" : "" ); ?> name='checkuser_local' value='<?php echo $checkuserValue; ?>'/>
331
+                    <input type='text' <?php echo ($checkuserOuter == FALSE ? "disabled" : ""); ?> name='checkuser_local' value='<?php echo $checkuserValue; ?>'/>
332 332
                 </td>
333 333
             </tr>
334 334
         </table>
@@ -344,14 +344,14 @@  discard block
 block discarded – undo
344 344
     <p>
345 345
 
346 346
         <?php
347
-        echo "<span id='redirect_label' style='" . ($realm == "" ? "color:#999999" : "" ) . "'><label for='redirect'>" . _("Redirect end users to own web page:") . "</label></span>
348
-                          <input type='checkbox'  name='redirect' id='redirect' " . ($blacklisted === FALSE ? "" : "checked " ) . "onclick='
347
+        echo "<span id='redirect_label' style='" . ($realm == "" ? "color:#999999" : "") . "'><label for='redirect'>" . _("Redirect end users to own web page:") . "</label></span>
348
+                          <input type='checkbox'  name='redirect' id='redirect' " . ($blacklisted === FALSE ? "" : "checked ") . "onclick='
349 349
                               if (this.form.elements[\"redirect\"].checked != true) {
350 350
                                 this.form.elements[\"redirect_target\"].setAttribute(\"disabled\", \"disabled\");
351 351
                               } else {
352 352
                                 this.form.elements[\"redirect_target\"].removeAttribute(\"disabled\");
353 353
                               };'/>
354
-                          <input type='text' name='redirect_target' " . ($blacklisted !== FALSE ? "value='$blacklisted'" : "disabled" ) . "/>";
354
+                          <input type='text' name='redirect_target' " . ($blacklisted !== FALSE ? "value='$blacklisted'" : "disabled") . "/>";
355 355
         ?>
356 356
     </p>
357 357
 
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
     function priority(string $eapType, bool $isenabled, int $priority) {
376 376
         echo "<td><select id='$eapType-priority' name='$eapType-priority' " . (!$isenabled ? "disabled='disabled'" : "") . ">";
377 377
         for ($a = 1; $a < 7; $a = $a + 1) {
378
-            echo "<option id='$eapType-$a' value='$a' " . ( $isenabled && $a == $priority ? "selected" : "" ) . ">$a</option>";
378
+            echo "<option id='$eapType-$a' value='$a' " . ($isenabled && $a == $priority ? "selected" : "") . ">$a</option>";
379 379
         }
380 380
         echo "</select></td>";
381 381
     }
Please login to merge, or discard this patch.
web/skins/modern/test.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -18,9 +18,9 @@  discard block
 block discarded – undo
18 18
 ?>
19 19
 
20 20
 <!-- JQuery -->
21
-<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","jquery/jquery.js") ?>"></script>
22
-<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","jquery/jquery-migrate-1.2.1.js") ?>"></script>
23
-<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","jquery/jquery-ui.js") ?>"></script>
21
+<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "jquery/jquery.js") ?>"></script>
22
+<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "jquery/jquery-migrate-1.2.1.js") ?>"></script>
23
+<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "jquery/jquery-ui.js") ?>"></script>
24 24
 <!-- JQuery -->
25 25
 
26 26
 <script type="text/javascript">
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 include("user/js/cat_js.php");
49 49
 ?>
50 50
     var loading_ico = new Image();
51
-    loading_ico.src = "<?php echo $Gui->skinObject->findResourceUrl("IMAGES","icons/loading51.gif")?>";
51
+    loading_ico.src = "<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/loading51.gif")?>";
52 52
 </script>
53 53
 <?php $Gui->langObject->setTextDomain("web_user"); ?>
54 54
 <!-- DiscoJuice -->
@@ -57,9 +57,9 @@  discard block
 block discarded – undo
57 57
     front_page = 0;
58 58
     var lang = "<?php echo($Gui->langObject->getLang()) ?>";
59 59
 </script>
60
-<link rel="stylesheet" type="text/css" href="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","discojuice/css/discojuice.css")?>" />
60
+<link rel="stylesheet" type="text/css" href="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "discojuice/css/discojuice.css")?>" />
61 61
 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
62
-<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $Gui->skinObject->findResourceUrl("CSS","cat-user.css");?>" />
62
+<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $Gui->skinObject->findResourceUrl("CSS", "cat-user.css"); ?>" />
63 63
 </head>
64 64
 <body>
65 65
 <div id="wrap">
@@ -67,14 +67,14 @@  discard block
 block discarded – undo
67 67
     <?php echo $divs->div_heading($visibility); ?>
68 68
     <div id="main_page">
69 69
         <div id="loading_ico">
70
-          <?php echo _("Authenticating") . "..." ?><br><img src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES","icons/loading51.gif")?>" alt="Authenticating ..."/>
70
+          <?php echo _("Authenticating") . "..." ?><br><img src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/loading51.gif")?>" alt="Authenticating ..."/>
71 71
         </div>
72 72
         <div id="info_overlay"> <!-- device info -->
73 73
             <div id="info_window"></div>
74
-            <img id="info_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES","icons/button_cancel.png")?>" ALT="Close"/>
74
+            <img id="info_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/button_cancel.png")?>" ALT="Close"/>
75 75
         </div>
76 76
         <div id="main_menu_info" style="display:none"> <!-- stuff triggered form main menu -->
77
-          <img id="main_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES","icons/button_cancel.png")?>" ALT="Close"/>
77
+          <img id="main_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/button_cancel.png")?>" ALT="Close"/>
78 78
           <div id="main_menu_content"></div>
79 79
         </div>
80 80
         <div id="main_body">
Please login to merge, or discard this patch.
web/skins/modern/resources/css/cat-basic.css.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
    font-size:25px;
22 22
    font-size:5vw;
23 23
    width: 100%;
24
-   background: <?php echo $colour2;?>;
24
+   background: <?php echo $colour2; ?>;
25 25
    color: #ffffff;
26 26
 }
27 27
 
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
    font-size:25px;
49 49
    font-size:5vw;
50 50
    width: 100%;
51
-   background: <?php echo $colour2;?>;
51
+   background: <?php echo $colour2; ?>;
52 52
    color: #ffffff;
53 53
    border-radius:10px ; 
54 54
    border-radius:2vw ; 
Please login to merge, or discard this patch.
core/common/Logging.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 namespace core\common;
12 12
 use \Exception;
13 13
 
14
-require_once(dirname(dirname(__DIR__))."/config/_config.php");
14
+require_once(dirname(dirname(__DIR__)) . "/config/_config.php");
15 15
 
16 16
 class Logging {
17 17
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
                 echo " ($category) ";
87 87
                 echo " " . $user . ": ";
88 88
                 if (is_string($message)) {
89
-                    echo $message ."\n";
89
+                    echo $message . "\n";
90 90
                 } else {
91 91
                     var_export($message);
92 92
                 }
Please login to merge, or discard this patch.
core/ProfileRADIUS.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
                 "row" => $attributeQuery->row,
177 177
                 "flag" => $optinfo['flag'],
178 178
                 "device" => ($devicesOrEAPMethods == "DEVICES" ? $attributeQuery->deviceormethod : NULL),
179
-                "eapmethod" => ($devicesOrEAPMethods == "DEVICES" ? 0 : (new \core\common\EAP($attributeQuery->deviceormethod))->getArrayRep() )];
179
+                "eapmethod" => ($devicesOrEAPMethods == "DEVICES" ? 0 : (new \core\common\EAP($attributeQuery->deviceormethod))->getArrayRep())];
180 180
         }
181 181
         return $temparray;
182 182
     }
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
      */
277 277
     public function setRealmCheckUser($shallwe, $localpart = NULL) {
278 278
         $this->databaseHandle->exec("UPDATE profile SET checkuser_outer = " . ($shallwe === true ? "1" : "0") .
279
-                ( $localpart !== NULL ? ", checkuser_value = '$localpart' " : "") .
279
+                ($localpart !== NULL ? ", checkuser_value = '$localpart' " : "") .
280 280
                 " WHERE profile_id = $this->identifier");
281 281
     }
282 282
 
Please login to merge, or discard this patch.
core/UserManagement.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -276,9 +276,9 @@
 block discarded – undo
276 276
         $retval = [];
277 277
         $invitations = $this->databaseHandle->exec("SELECT cat_institution_id, country, name, invite_issuer_level, invite_dest_mail, invite_token 
278 278
                                         FROM invitations 
279
-                                        WHERE cat_institution_id " . ( $idpIdentifier != 0 ? "= $idpIdentifier" : "IS NULL") . " AND invite_created >= TIMESTAMPADD(DAY, -1, NOW()) AND used = 0");
279
+                                        WHERE cat_institution_id " . ($idpIdentifier != 0 ? "= $idpIdentifier" : "IS NULL") . " AND invite_created >= TIMESTAMPADD(DAY, -1, NOW()) AND used = 0");
280 280
         // SELECT -> resource, not boolean
281
-        $this->loggerInstance->debug(4, "Retrieving pending invitations for " . ($idpIdentifier != 0 ? "IdP $idpIdentifier" : "IdPs awaiting initial creation" ) . ".\n");
281
+        $this->loggerInstance->debug(4, "Retrieving pending invitations for " . ($idpIdentifier != 0 ? "IdP $idpIdentifier" : "IdPs awaiting initial creation") . ".\n");
282 282
         while ($invitationQuery = mysqli_fetch_object(/** @scrutinizer ignore-type */ $invitations)) {
283 283
             $retval[] = ["country" => $invitationQuery->country, "name" => $invitationQuery->name, "mail" => $invitationQuery->invite_dest_mail, "token" => $invitationQuery->invite_token];
284 284
         }
Please login to merge, or discard this patch.